From f6afdd6604f3977ac327d69a19f3ab4236d281e0 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 23 Apr 2024 16:22:48 +0800 Subject: [PATCH] build --- CHANGELOG.md | 6 +- language/translate.json | 2 +- package.json | 2 +- public/js/build/404.8b9ce07a.js | 1 + public/js/build/404.999ac81a.js | 1 - ...ch.4f5fb92a.js => @traptitech.363dce05.js} | 2 +- ...itor.9724e814.js => AceEditor.ee1743e2.js} | 2 +- ....747b2304.js => ApproveExport.b1600867.js} | 2 +- ....b0d38216.js => CheckinExport.601957c7.js} | 2 +- ...0d486d1.css => CheckinExport.68b4950e.css} | 0 ....5184c28a.js => DialogWrapper.4f742dbc.js} | 10 +- ...{Drawio.7ea92229.js => Drawio.9ac6f0d0.js} | 2 +- ...nt.c3694775.js => FileContent.fefeb44a.js} | 2 +- public/js/build/FilePreview.6f0543c4.js | 1 + public/js/build/FilePreview.cf87ec8f.js | 1 - ...{IFrame.3b0629c7.js => IFrame.c1a86434.js} | 2 +- ...load.d82fa303.js => ImgUpload.b233effb.js} | 2 +- ...9bc138b1.js => MeetingManager.f1d05517.js} | 2 +- ...Apps.dba2f711.js => MicroApps.aa6194e7.js} | 2 +- ...{Minder.fcfad20d.js => Minder.e832edb9.js} | 2 +- ...ice.6bf143a3.js => OnlyOffice.b4318521.js} | 2 +- ...Log.297ef125.js => ProjectLog.d2e94cb9.js} | 2 +- ...l.e430db44.js => ReportDetail.822059d1.js} | 2 +- ...dit.9f1df008.js => ReportEdit.e54407e0.js} | 2 +- ...Editor.0841978b.js => TEditor.10324bed.js} | 2 +- ...ail.2665236e.js => TaskDetail.1b7e7bb8.js} | 2 +- .../{app.f8a6fa5e.js => app.57070a0d.js} | 4 +- public/js/build/app.a4396c6f.css | 7 + public/js/build/app.e18e3ed3.css | 7 - ...on.b8116394.js => application.a386c7fb.js} | 2 +- public/js/build/apps.5d5342c9.js | 1 + public/js/build/apps.67109f3f.js | 1 - public/js/build/apps.9b84818a.js | 1 - public/js/build/apps.e7732887.js | 1 + ...0445182.js => async-validator.289edf0d.js} | 2 +- ...endar.93d27477.js => calendar.e47babb8.js} | 2 +- ...heckin.343cc0f9.js => checkin.e5796891.js} | 2 +- ...oard.907979fd.js => clipboard.d74ec60d.js} | 2 +- ...oard.c8b2c3c1.js => dashboard.3cd7bbf3.js} | 2 +- ...{delete.f317d0cc.js => delete.258f9007.js} | 2 +- ...etails.ef31cd47.js => details.663d818a.js} | 2 +- ...ea.74fd8f4e.js => element-sea.b954f5d6.js} | 2 +- .../{email.1ede360c.js => email.533d264e.js} | 2 +- public/js/build/eventemitter3.78b735ad.js | 1 - .../{file.48be823a.js => file.474bab15.js} | 2 +- .../{file.04024a5d.js => file.f8d9732d.js} | 2 +- public/js/build/fileMsg.2bee63d2.js | 1 - public/js/build/fileMsg.f3988070.js | 1 + public/js/build/fileTask.4bc5cd8d.js | 1 + public/js/build/fileTask.9dfe020e.js | 1 - ...{drawio.0122e3f0.svg => flow.0122e3f0.svg} | 0 ...{drawio.a58ab0df.svg => flow.a58ab0df.svg} | 0 .../{index.4a24dc10.js => index.26e84caa.js} | 2 +- .../{index.2c3843c6.js => index.43c0c37f.js} | 2 +- .../{index.d312a146.js => index.580630c2.js} | 2 +- .../{index.04b74879.js => index.92bfd6b8.js} | 2 +- .../{index.b5f44692.js => index.e3114e7c.js} | 2 +- ...{jquery.7b5830c7.js => jquery.accd1716.js} | 2 +- public/js/build/katex.0b94f27c.js | 261 ++ public/js/build/katex.8068bc0b.js | 261 -- ...board.24c9ac7d.js => keyboard.38e82f76.js} | 2 +- ...guage.024a0634.js => language.828bac9b.js} | 2 +- ...re.bd86c9e9.js => le5le-store.b40f9152.js} | 0 ...icense.4f8d16fd.js => license.8f9514f2.js} | 2 +- ...-it.43898b73.js => linkify-it.3ecfda1e.js} | 2 +- ...ge.dae0aa5a.js => localforage.879ac172.js} | 2 +- ...{lodash.90965718.js => lodash.9e3f755f.js} | 2 +- ...06f0f7.js => lodash.clonedeep.91f4d524.js} | 2 +- ...d456a716.js => lodash.isequal.0dd437dc.js} | 2 +- .../{login.2f8a1aa0.js => login.6c6c873f.js} | 2 +- public/js/build/manage.02d05877.js | 1 - public/js/build/manage.2f051742.js | 1 + ...it.34483999.js => markdown-it.f3afa976.js} | 2 +- .../{mdurl.ddaf799d.js => mdurl.2f66c031.js} | 0 ...eate.41663ea5.svg => meeting.41663ea5.svg} | 0 public/js/build/meeting.e0cf6482.js | 1 - public/js/build/meeting.f26583ce.js | 1 + public/js/build/messenger.04c1715a.js | 1 + public/js/build/messenger.2e32994c.js | 1 - ...sword.82eec530.js => password.b22d7fc3.js} | 2 +- ...sonal.77b22863.js => personal.f1b6bad4.js} | 2 +- public/js/build/preview.2fd94df0.js | 1 + public/js/build/preview.ac00254d.js | 1 - public/js/build/pro.3ef8a217.js | 1 + public/js/build/pro.5e4dad3d.js | 1 - public/js/build/project.7145e58b.js | 1 + public/js/build/project.b20993c4.js | 1 - ....6f7f7a52.js => projectInvite.1a76d49e.js} | 2 +- ...ycode.32c740ed.js => punycode.87a5269f.js} | 2 +- ...ta.a505f2bf.js => quill-delta.72524c38.js} | 2 +- public/js/build/quill-hi.a45c8e94.js | 48 - public/js/build/quill-hi.c85eceed.js | 48 + ...6fa3cb.js => quill-mention-hi.beaa1617.js} | 2 +- public/js/build/reportDetail.64d7223c.js | 1 + public/js/build/reportDetail.92f46031.js | 1 - ...dit.4f4f4580.js => reportEdit.63f4e221.js} | 2 +- ...s => resize-observer-polyfill.e60103ad.js} | 2 +- ...ejs.4880fe6b.js => sortablejs.8b819437.js} | 2 +- .../{swipe.9a811620.js => swipe.fbccdf8b.js} | 2 +- ...{system.26880585.js => system.ee7d6f03.js} | 2 +- public/js/build/task.337ddce0.js | 1 - public/js/build/task.b2ee03b1.js | 1 + ...nt.eff4c18a.js => taskContent.f83848a2.js} | 2 +- .../{theme.d9a92b2d.js => theme.ce4f7a83.js} | 2 +- ...inymce.286c5863.js => tinymce.e0553569.js} | 2 +- .../{tip.059db614.js => tip.e9c85d1f.js} | 2 +- public/js/build/token.353827e6.js | 1 - public/js/build/token.79deb86b.js | 1 + ...d27d4e0.js => tui-calendar-hi.ae5960be.js} | 2 +- ...d59ecb.js => tui-code-snippet.449e7a67.js} | 2 +- ...80618c0.js => tui-date-picker.87c69814.js} | 2 +- ...5ec3a74.js => tui-time-picker.edd3de9f.js} | 0 ...micro.3245408e.js => uc.micro.39573202.js} | 0 ...ail.7090a5ef.js => validEmail.d3e74390.js} | 2 +- ...afe77d1e.js => view-design-hi.76cbd75d.js} | 2 +- .../{view.d6249067.js => view.f528c89e.js} | 2 +- ...facc05aa.js => vue-clipboard2.4402036c.js} | 2 +- ...68b.js => vue-resize-observer.5fb00380.js} | 2 +- ...=> vue-virtual-scroll-list-hi.f3f58d09.js} | 2 +- .../{vue.da9c4dc7.js => vue.eaf71fac.js} | 2 +- ...e.aaa0fd6a.js => vuedraggable.c8fae132.js} | 2 +- public/language/web/de.js | 2 +- public/language/web/en.js | 2 +- public/language/web/fr.js | 2 +- public/language/web/id.js | 2 +- public/language/web/ja.js | 2 +- public/language/web/ko.js | 2 +- public/manifest.json | 2596 ++++++++--------- resources/mobile | 2 +- 129 files changed, 1716 insertions(+), 1723 deletions(-) create mode 100644 public/js/build/404.8b9ce07a.js delete mode 100644 public/js/build/404.999ac81a.js rename public/js/build/{@traptitech.4f5fb92a.js => @traptitech.363dce05.js} (97%) rename public/js/build/{AceEditor.9724e814.js => AceEditor.ee1743e2.js} (83%) rename public/js/build/{ApproveExport.747b2304.js => ApproveExport.b1600867.js} (97%) rename public/js/build/{CheckinExport.b0d38216.js => CheckinExport.601957c7.js} (99%) rename public/js/build/{ApproveExport.d0d486d1.css => CheckinExport.68b4950e.css} (100%) rename public/js/build/{DialogWrapper.5184c28a.js => DialogWrapper.4f742dbc.js} (61%) rename public/js/build/{Drawio.7ea92229.js => Drawio.9ac6f0d0.js} (68%) rename public/js/build/{FileContent.c3694775.js => FileContent.fefeb44a.js} (67%) create mode 100644 public/js/build/FilePreview.6f0543c4.js delete mode 100644 public/js/build/FilePreview.cf87ec8f.js rename public/js/build/{IFrame.3b0629c7.js => IFrame.c1a86434.js} (94%) rename public/js/build/{ImgUpload.d82fa303.js => ImgUpload.b233effb.js} (99%) rename public/js/build/{MeetingManager.9bc138b1.js => MeetingManager.f1d05517.js} (99%) rename public/js/build/{MicroApps.dba2f711.js => MicroApps.aa6194e7.js} (89%) rename public/js/build/{Minder.fcfad20d.js => Minder.e832edb9.js} (86%) rename public/js/build/{OnlyOffice.6bf143a3.js => OnlyOffice.b4318521.js} (81%) rename public/js/build/{ProjectLog.297ef125.js => ProjectLog.d2e94cb9.js} (98%) rename public/js/build/{ReportDetail.e430db44.js => ReportDetail.822059d1.js} (97%) rename public/js/build/{ReportEdit.9f1df008.js => ReportEdit.e54407e0.js} (83%) rename public/js/build/{TEditor.0841978b.js => TEditor.10324bed.js} (71%) rename public/js/build/{TaskDetail.2665236e.js => TaskDetail.1b7e7bb8.js} (99%) rename public/js/build/{app.f8a6fa5e.js => app.57070a0d.js} (80%) create mode 100644 public/js/build/app.a4396c6f.css delete mode 100644 public/js/build/app.e18e3ed3.css rename public/js/build/{application.b8116394.js => application.a386c7fb.js} (97%) create mode 100644 public/js/build/apps.5d5342c9.js delete mode 100644 public/js/build/apps.67109f3f.js delete mode 100644 public/js/build/apps.9b84818a.js create mode 100644 public/js/build/apps.e7732887.js rename public/js/build/{async-validator.e0445182.js => async-validator.289edf0d.js} (99%) rename public/js/build/{calendar.93d27477.js => calendar.e47babb8.js} (91%) rename public/js/build/{checkin.343cc0f9.js => checkin.e5796891.js} (90%) rename public/js/build/{clipboard.907979fd.js => clipboard.d74ec60d.js} (99%) rename public/js/build/{dashboard.c8b2c3c1.js => dashboard.3cd7bbf3.js} (85%) rename public/js/build/{delete.f317d0cc.js => delete.258f9007.js} (88%) rename public/js/build/{details.ef31cd47.js => details.663d818a.js} (93%) rename public/js/build/{element-sea.74fd8f4e.js => element-sea.b954f5d6.js} (99%) rename public/js/build/{email.1ede360c.js => email.533d264e.js} (81%) delete mode 100644 public/js/build/eventemitter3.78b735ad.js rename public/js/build/{file.48be823a.js => file.474bab15.js} (62%) rename public/js/build/{file.04024a5d.js => file.f8d9732d.js} (92%) delete mode 100644 public/js/build/fileMsg.2bee63d2.js create mode 100644 public/js/build/fileMsg.f3988070.js create mode 100644 public/js/build/fileTask.4bc5cd8d.js delete mode 100644 public/js/build/fileTask.9dfe020e.js rename public/js/build/{drawio.0122e3f0.svg => flow.0122e3f0.svg} (100%) rename public/js/build/{drawio.a58ab0df.svg => flow.a58ab0df.svg} (100%) rename public/js/build/{index.4a24dc10.js => index.26e84caa.js} (58%) rename public/js/build/{index.2c3843c6.js => index.43c0c37f.js} (95%) rename public/js/build/{index.d312a146.js => index.580630c2.js} (99%) rename public/js/build/{index.04b74879.js => index.92bfd6b8.js} (98%) rename public/js/build/{index.b5f44692.js => index.e3114e7c.js} (85%) rename public/js/build/{jquery.7b5830c7.js => jquery.accd1716.js} (99%) create mode 100644 public/js/build/katex.0b94f27c.js delete mode 100644 public/js/build/katex.8068bc0b.js rename public/js/build/{keyboard.24c9ac7d.js => keyboard.38e82f76.js} (80%) rename public/js/build/{language.024a0634.js => language.828bac9b.js} (63%) rename public/js/build/{le5le-store.bd86c9e9.js => le5le-store.b40f9152.js} (100%) rename public/js/build/{license.4f8d16fd.js => license.8f9514f2.js} (80%) rename public/js/build/{linkify-it.43898b73.js => linkify-it.3ecfda1e.js} (99%) rename public/js/build/{localforage.dae0aa5a.js => localforage.879ac172.js} (99%) rename public/js/build/{lodash.90965718.js => lodash.9e3f755f.js} (99%) rename public/js/build/{lodash.clonedeep.4c06f0f7.js => lodash.clonedeep.91f4d524.js} (99%) rename public/js/build/{lodash.isequal.d456a716.js => lodash.isequal.0dd437dc.js} (99%) rename public/js/build/{login.2f8a1aa0.js => login.6c6c873f.js} (93%) delete mode 100644 public/js/build/manage.02d05877.js create mode 100644 public/js/build/manage.2f051742.js rename public/js/build/{markdown-it.34483999.js => markdown-it.f3afa976.js} (99%) rename public/js/build/{mdurl.ddaf799d.js => mdurl.2f66c031.js} (100%) rename public/js/build/{meeting-create.41663ea5.svg => meeting.41663ea5.svg} (100%) delete mode 100644 public/js/build/meeting.e0cf6482.js create mode 100644 public/js/build/meeting.f26583ce.js create mode 100644 public/js/build/messenger.04c1715a.js delete mode 100644 public/js/build/messenger.2e32994c.js rename public/js/build/{password.82eec530.js => password.b22d7fc3.js} (79%) rename public/js/build/{personal.77b22863.js => personal.f1b6bad4.js} (78%) create mode 100644 public/js/build/preview.2fd94df0.js delete mode 100644 public/js/build/preview.ac00254d.js create mode 100644 public/js/build/pro.3ef8a217.js delete mode 100644 public/js/build/pro.5e4dad3d.js create mode 100644 public/js/build/project.7145e58b.js delete mode 100644 public/js/build/project.b20993c4.js rename public/js/build/{projectInvite.6f7f7a52.js => projectInvite.1a76d49e.js} (75%) rename public/js/build/{punycode.32c740ed.js => punycode.87a5269f.js} (97%) rename public/js/build/{quill-delta.a505f2bf.js => quill-delta.72524c38.js} (98%) delete mode 100644 public/js/build/quill-hi.a45c8e94.js create mode 100644 public/js/build/quill-hi.c85eceed.js rename public/js/build/{quill-mention-hi.f26fa3cb.js => quill-mention-hi.beaa1617.js} (99%) create mode 100644 public/js/build/reportDetail.64d7223c.js delete mode 100644 public/js/build/reportDetail.92f46031.js rename public/js/build/{reportEdit.4f4f4580.js => reportEdit.63f4e221.js} (50%) rename public/js/build/{resize-observer-polyfill.e0279f38.js => resize-observer-polyfill.e60103ad.js} (99%) rename public/js/build/{sortablejs.4880fe6b.js => sortablejs.8b819437.js} (99%) rename public/js/build/{swipe.9a811620.js => swipe.fbccdf8b.js} (65%) rename public/js/build/{system.26880585.js => system.ee7d6f03.js} (96%) delete mode 100644 public/js/build/task.337ddce0.js create mode 100644 public/js/build/task.b2ee03b1.js rename public/js/build/{taskContent.eff4c18a.js => taskContent.f83848a2.js} (62%) rename public/js/build/{theme.d9a92b2d.js => theme.ce4f7a83.js} (69%) rename public/js/build/{tinymce.286c5863.js => tinymce.e0553569.js} (99%) rename public/js/build/{tip.059db614.js => tip.e9c85d1f.js} (98%) delete mode 100644 public/js/build/token.353827e6.js create mode 100644 public/js/build/token.79deb86b.js rename public/js/build/{tui-calendar-hi.ed27d4e0.js => tui-calendar-hi.ae5960be.js} (99%) rename public/js/build/{tui-code-snippet.1ad59ecb.js => tui-code-snippet.449e7a67.js} (99%) rename public/js/build/{tui-date-picker.f80618c0.js => tui-date-picker.87c69814.js} (99%) rename public/js/build/{tui-time-picker.65ec3a74.js => tui-time-picker.edd3de9f.js} (100%) rename public/js/build/{uc.micro.3245408e.js => uc.micro.39573202.js} (100%) rename public/js/build/{validEmail.7090a5ef.js => validEmail.d3e74390.js} (63%) rename public/js/build/{view-design-hi.afe77d1e.js => view-design-hi.76cbd75d.js} (99%) rename public/js/build/{view.d6249067.js => view.f528c89e.js} (82%) rename public/js/build/{vue-clipboard2.facc05aa.js => vue-clipboard2.4402036c.js} (95%) rename public/js/build/{vue-resize-observer.2ab4768b.js => vue-resize-observer.5fb00380.js} (97%) rename public/js/build/{vue-virtual-scroll-list-hi.23b1f28e.js => vue-virtual-scroll-list-hi.f3f58d09.js} (99%) rename public/js/build/{vue.da9c4dc7.js => vue.eaf71fac.js} (99%) rename public/js/build/{vuedraggable.aaa0fd6a.js => vuedraggable.c8fae132.js} (99%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c5da2a9f..261e39c39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,11 @@ All notable changes to this project will be documented in this file. -## [0.36.94] +## [0.36.97] + +### Bug Fixes + +- 任务描述保存图片失败 ### Performance diff --git a/language/translate.json b/language/translate.json index e51b5053c..2a4818101 100644 --- a/language/translate.json +++ b/language/translate.json @@ -20206,4 +20206,4 @@ "fr": "Échec du chargement des données", "id": "Pemuatan data gagal" } -] +] \ No newline at end of file diff --git a/package.json b/package.json index 7935816d4..1c445f563 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.36.94", + "version": "0.36.97", "codeVerson": 128, "description": "DooTask is task management system.", "scripts": { diff --git a/public/js/build/404.8b9ce07a.js b/public/js/build/404.8b9ce07a.js new file mode 100644 index 000000000..89e629e36 --- /dev/null +++ b/public/js/build/404.8b9ce07a.js @@ -0,0 +1 @@ +import{n as e}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement;return t._self._c,t._m(0)},p=[function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"page-404"},[i("div",{staticClass:"flex-center position-ref full-height"},[i("div",{staticClass:"code"},[t._v("404")]),i("div",{staticClass:"message"},[t._v("Not Found")])])])}];const s={},o={};var _=e(s,m,p,!1,n,"7d7154a8",null,null);function n(t){for(let r in o)this[r]=o[r]}var Q=function(){return _.exports}();export{Q as default}; diff --git a/public/js/build/404.999ac81a.js b/public/js/build/404.999ac81a.js deleted file mode 100644 index 9a79af7bf..000000000 --- a/public/js/build/404.999ac81a.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,r=t.$createElement;return t._self._c,t._m(0)},p=[function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"page-404"},[i("div",{staticClass:"flex-center position-ref full-height"},[i("div",{staticClass:"code"},[t._v("404")]),i("div",{staticClass:"message"},[t._v("Not Found")])])])}];const s={},o={};var _=e(s,m,p,!1,n,"7d7154a8",null,null);function n(t){for(let r in o)this[r]=o[r]}var Q=function(){return _.exports}();export{Q as default}; diff --git a/public/js/build/@traptitech.4f5fb92a.js b/public/js/build/@traptitech.363dce05.js similarity index 97% rename from public/js/build/@traptitech.4f5fb92a.js rename to public/js/build/@traptitech.363dce05.js index 9e57b95ef..50213ed5b 100644 --- a/public/js/build/@traptitech.4f5fb92a.js +++ b/public/js/build/@traptitech.363dce05.js @@ -1,3 +1,3 @@ -import{k as m}from"./katex.8068bc0b.js";var $=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function x(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function _(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var l=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,l.get?l:{enumerable:!0,get:function(){return r[e]}})}),n}function y(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var d=m.exports;function k(r,n){var e,l,o=r.posMax,c=!0,i=!0;return e=n>0?r.src.charCodeAt(n-1):-1,l=n+1<=o?r.src.charCodeAt(n+1):-1,(e===32||e===9||l>=48&&l<=57)&&(i=!1),(l===32||l===9)&&(c=!1),{can_open:c,can_close:i}}function h(r,n){var e,l,o,c,i;if(r.src[r.pos]!=="$")return!1;if(c=k(r,r.pos),!c.can_open)return n||(r.pending+="$"),r.pos+=1,!0;for(e=r.pos+1,l=e;(l=r.src.indexOf("$",l))!==-1;){for(i=l-1;r.src[i]==="\\";)i-=1;if((l-i)%2==1)break;l+=1}return l===-1?(n||(r.pending+="$"),r.pos=e,!0):l-e===0?(n||(r.pending+="$$"),r.pos=e+1,!0):(c=k(r,l),c.can_close?(n||(o=r.push("math_inline","math",0),o.markup="$",o.content=r.src.slice(e,l)),r.pos=l+1,!0):(n||(r.pending+="$"),r.pos=e,!0))}function g(r,n,e,l){var o,c,i,a,u=!1,p,f=r.bMarks[n]+r.tShift[n],t=r.eMarks[n];if(f+2>t||r.src.slice(f,f+2)!=="$$")return!1;if(f+=2,o=r.src.slice(f,t),l)return!0;for(o.trim().slice(-2)==="$$"&&(o=o.trim().slice(0,-2),u=!0),i=n;!u&&(i++,!(i>=e||(f=r.bMarks[i]+r.tShift[i],t=r.eMarks[i],f0?r.src.charCodeAt(n-1):-1,l=n+1<=o?r.src.charCodeAt(n+1):-1,(e===32||e===9||l>=48&&l<=57)&&(i=!1),(l===32||l===9)&&(c=!1),{can_open:c,can_close:i}}function h(r,n){var e,l,o,c,i;if(r.src[r.pos]!=="$")return!1;if(c=k(r,r.pos),!c.can_open)return n||(r.pending+="$"),r.pos+=1,!0;for(e=r.pos+1,l=e;(l=r.src.indexOf("$",l))!==-1;){for(i=l-1;r.src[i]==="\\";)i-=1;if((l-i)%2==1)break;l+=1}return l===-1?(n||(r.pending+="$"),r.pos=e,!0):l-e===0?(n||(r.pending+="$$"),r.pos=e+1,!0):(c=k(r,l),c.can_close?(n||(o=r.push("math_inline","math",0),o.markup="$",o.content=r.src.slice(e,l)),r.pos=l+1,!0):(n||(r.pending+="$"),r.pos=e,!0))}function g(r,n,e,l){var o,c,i,a,u=!1,p,f=r.bMarks[n]+r.tShift[n],t=r.eMarks[n];if(f+2>t||r.src.slice(f,f+2)!=="$$")return!1;if(f+=2,o=r.src.slice(f,t),l)return!0;for(o.trim().slice(-2)==="$$"&&(o=o.trim().slice(0,-2),u=!0),i=n;!u&&(i++,!(i>=e||(f=r.bMarks[i]+r.tShift[i],t=r.eMarks[i],f/g,">").replace(/"/g,""").replace(/'/g,"'")}var v=function(n,e){e=e||{},e.katex&&(d=e.katex),e.blockClass||(e.blockClass="");var l=function(a){e.displayMode=!1;try{return d.renderToString(a,e)}catch(u){return e.throwOnError&&console.log(u),`${s(a)}`}},o=function(a,u){return l(a[u].content)},c=function(a){e.displayMode=!0;try{return`

`+d.renderToString(a,e)+"

"}catch(u){return e.throwOnError&&console.log(u),`

${s(a)}

`}},i=function(a,u){return c(a[u].content)+` `};n.inline.ruler.after("escape","math_inline",h),n.block.ruler.after("blockquote","math_block",g,{alt:["paragraph","reference","blockquote","list"]}),n.renderer.rules.math_inline=o,n.renderer.rules.math_block=i};export{y as a,x as b,$ as c,_ as g,v as m}; diff --git a/public/js/build/AceEditor.9724e814.js b/public/js/build/AceEditor.ee1743e2.js similarity index 83% rename from public/js/build/AceEditor.9724e814.js rename to public/js/build/AceEditor.ee1743e2.js index ccd958a0d..2d9724ce7 100644 --- a/public/js/build/AceEditor.9724e814.js +++ b/public/js/build/AceEditor.ee1743e2.js @@ -1 +1 @@ -import{m as h}from"./vuex.cc7cb26e.js";import{n as p}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";const l={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:i=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=i&&typeof i=="number"?`${i}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 i=this.supportedModes[t],r=i[0].split("|"),a=t.toLowerCase(),s=0;s({})},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:i=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=i&&typeof i=="number"?`${i}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 i=this.supportedModes[t],r=i[0].split("|"),a=t.toLowerCase(),s=0;s0},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}; +import{n}from"./app.57070a0d.js";var l=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BA1\u6279\u7C7B\u578B")}},[e("Select",{on:{"on-open-change":t.getProcName},model:{value:t.formData.proc_def_name,callback:function(a){t.$set(t.formData,"proc_def_name",a)},expression:"formData.proc_def_name"}},t._l(t.procList,function(a,s){return e("Option",{key:s,attrs:{value:a.name}},[t._v(t._s(a.name))])}),1)],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.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:{prop:"type",label:t.$L("\u5BFC\u51FA\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.is_finished,callback:function(a){t.$set(t.formData,"is_finished",a)},expression:"formData.is_finished"}},[e("Radio",{attrs:{label:"0"}},[t._v(t._s(t.$L("\u672A\u5B8C\u6210")))]),e("Radio",{attrs:{label:"1"}},[t._v(t._s(t.$L("\u5DF2\u5B8C\u6210")))])],1)],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)},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.b0d38216.js b/public/js/build/CheckinExport.601957c7.js similarity index 99% rename from public/js/build/CheckinExport.b0d38216.js rename to public/js/build/CheckinExport.601957c7.js index 000b29c47..f82d0cbf7 100644 --- a/public/js/build/CheckinExport.b0d38216.js +++ b/public/js/build/CheckinExport.601957c7.js @@ -1 +1 @@ -import{n as r,U as m}from"./app.f8a6fa5e.js";import{U as h}from"./tip.059db614.js";import{R as v}from"./ReportEdit.9f1df008.js";import{R as _}from"./ReportDetail.e430db44.js";import{D as $}from"./index.04b74879.js";import{m as f}from"./vuex.cc7cb26e.js";var g=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("UserAvatarTip",{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)},k=[];const y={name:"TeamManagement",components:{UserAvatarTip:h,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 L=r(y,g,k,!1,b,null,null,null);function b(t){for(let s in l)this[s]=l[s]}var X=function(){return L.exports}(),D=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)])},w=[];const S={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 x=r(S,D,w,!1,I,null,null,null);function I(t){for(let s in o)this[s]=o[s]}var C=function(){return x.exports}(),E=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)])},A=[];const T={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(T,E,A,!1,P,null,null,null);function P(t){for(let s in c)this[s]=c[s]}var O=function(){return M.exports}(),z=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)},R=[];const B={name:"Report",components:{DrawerOverlay:$,ReportEdit:v,ReportMy:C,ReportReceive:O,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:{...f(["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.$store.dispatch("openChildWindow",{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.$store.dispatch("openChildWindow",{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 U=r(B,z,R,!1,F,null,null,null);function F(t){for(let s in d)this[s]=d[s]}var Z=function(){return U.exports}(),W=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)},j=[];const N={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 H=r(N,W,j,!1,Y,null,null,null);function Y(t){for(let s in p)this[s]=p[s]}var tt=function(){return H.exports}();export{tt as C,Z as R,X as T}; +import{n as r,U as m}from"./app.57070a0d.js";import{U as h}from"./tip.e9c85d1f.js";import{R as v}from"./ReportEdit.e54407e0.js";import{R as _}from"./ReportDetail.822059d1.js";import{D as $}from"./index.92bfd6b8.js";import{m as f}from"./vuex.cc7cb26e.js";var g=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("UserAvatarTip",{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)},k=[];const y={name:"TeamManagement",components:{UserAvatarTip:h,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 L=r(y,g,k,!1,b,null,null,null);function b(t){for(let s in l)this[s]=l[s]}var X=function(){return L.exports}(),D=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)])},w=[];const S={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 x=r(S,D,w,!1,I,null,null,null);function I(t){for(let s in o)this[s]=o[s]}var C=function(){return x.exports}(),E=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)])},A=[];const T={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(T,E,A,!1,P,null,null,null);function P(t){for(let s in c)this[s]=c[s]}var O=function(){return M.exports}(),z=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)},R=[];const B={name:"Report",components:{DrawerOverlay:$,ReportEdit:v,ReportMy:C,ReportReceive:O,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:{...f(["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.$store.dispatch("openChildWindow",{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.$store.dispatch("openChildWindow",{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 U=r(B,z,R,!1,F,null,null,null);function F(t){for(let s in d)this[s]=d[s]}var Z=function(){return U.exports}(),W=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)},j=[];const N={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 H=r(N,W,j,!1,Y,null,null,null);function Y(t){for(let s in p)this[s]=p[s]}var tt=function(){return H.exports}();export{tt as C,Z as R,X as T}; diff --git a/public/js/build/ApproveExport.d0d486d1.css b/public/js/build/CheckinExport.68b4950e.css similarity index 100% rename from public/js/build/ApproveExport.d0d486d1.css rename to public/js/build/CheckinExport.68b4950e.css diff --git a/public/js/build/DialogWrapper.5184c28a.js b/public/js/build/DialogWrapper.4f742dbc.js similarity index 61% rename from public/js/build/DialogWrapper.5184c28a.js rename to public/js/build/DialogWrapper.4f742dbc.js index 887cefb0e..04092672d 100644 --- a/public/js/build/DialogWrapper.5184c28a.js +++ b/public/js/build/DialogWrapper.4f742dbc.js @@ -1,6 +1,6 @@ -import{m,a as F}from"./vuex.cc7cb26e.js";import{n as u,b as P,U as R,c as q,i as B}from"./app.f8a6fa5e.js";import{l as v}from"./le5le-store.bd86c9e9.js";import{l as $}from"./longpress.5305f240.js";import{D as U}from"./index.04b74879.js";import{Q as _}from"./quill-hi.a45c8e94.js";import"./quill-mention-hi.f26fa3cb.js";import{o as N}from"./vue-jsonp.be27271b.js";import{V as z}from"./vue-virtual-scroll-list-hi.23b1f28e.js";import{I as W}from"./ImgUpload.d82fa303.js";import{V as G}from"./vue.da9c4dc7.js";import{i as H}from"./view-design-hi.afe77d1e.js";import Q from"./details.ef31cd47.js";import{U as K}from"./tip.059db614.js";var Y=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"common-circle",style:t.style,attrs:{"data-id":t.percent}},[e("svg",{attrs:{viewBox:"0 0 28 28"}},[e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),e("path",{staticClass:"common-circle-g-path-core",attrs:{d:t.arc(t.args)}})])])])])},J=[];const X={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:t}=this;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args(){const{percent:t}=this;let i=Math.min(360,360/100*t);return i==360?i=0:i==0&&(i=360),{x:14,y:14,r:14,start:360,end:i}}},methods:{isNumeric(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)},point(t,i,e,s){return[(t+Math.sin(s)*e).toFixed(2),(i-Math.cos(s)*e).toFixed(2)]},full(t,i,e,s){return s<=0?`M ${t-e} ${i} A ${e} ${e} 0 1 1 ${t+e} ${i} A ${e} ${e} 1 1 1 ${t-e} ${i} Z`:`M ${t-e} ${i} A ${e} ${e} 0 1 1 ${t+e} ${i} A ${e} ${e} 1 1 1 ${t-e} ${i} M ${t-s} ${i} A ${s} ${s} 0 1 1 ${t+s} ${i} A ${s} ${s} 1 1 1 ${t-s} ${i} Z`},part(t,i,e,s,a,o){const[r,n]=[a/360*2*Math.PI,o/360*2*Math.PI],l=[this.point(t,i,s,r),this.point(t,i,e,r),this.point(t,i,e,n),this.point(t,i,s,n)],c=n-r>Math.PI?"1":"0";return`M ${l[0][0]} ${l[0][1]} L ${l[1][0]} ${l[1][1]} A ${e} ${e} 0 ${c} 1 ${l[2][0]} ${l[2][1]} L ${l[3][0]} ${l[3][1]} A ${s} ${s} 0 ${c} 0 ${l[0][0]} ${l[0][1]} Z`},arc(t){const{x:i=0,y:e=0}=t;let{R:s=0,r:a=0,start:o,end:r}=t;return[s,a]=[Math.max(s,a),Math.min(s,a)],s<=0?"":o!==+o||r!==+r?this.full(i,e,s,a):Math.abs(o-r)<1e-6?"":Math.abs(o-r)%360<1e-6?this.full(i,e,s,a):([o,r]=[o%360,r%360],o>r&&(r+=360),this.part(i,e,s,a,o,r))}}},w={};var Z=u(X,Y,J,!1,tt,null,null,null);function tt(t){for(let i in w)this[i]=w[i]}var et=function(){return Z.exports}();var st=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"markdown-body",domProps:{innerHTML:t._s(t.html)},on:{click:t.onCLick}})},it=[];const at={name:"DialogMarkdown",props:{text:{type:String,default:""}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:t}){return P(t)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(i=>{const e=i.querySelector(".code-block-header__copy"),s=i.querySelector(".code-block-body");e&&s&&e.getAttribute("data-copy")!=="click"&&(e.setAttribute("data-copy","click"),e.addEventListener("click",()=>{var a,o,r;(a=navigator.clipboard)!=null&&a.writeText?navigator.clipboard.writeText((o=s.textContent)!=null?o:""):this.copyContent({text:(r=s.textContent)!=null?r:"",origin:!0})}))})},copyContent(t){const i={origin:!0,...t};let e;i.origin?e=document.createElement("textarea"):e=document.createElement("input"),e.setAttribute("readonly","readonly"),e.value=i.text,document.body.appendChild(e),e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(e)},onCLick(t){this.$emit("click",t)}}},y={};var ot=u(at,st,it,!1,rt,null,null,null);function rt(t){for(let i in y)this[i]=y[i]}var nt=function(){return ot.exports}(),lt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-view",class:t.viewClass,attrs:{"data-id":t.msgData.id}},[t.dialogType==="group"?e("div",{staticClass:"dialog-username"},[e("UserAvatar",{attrs:{userid:t.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):t._e(),e("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:t.headClass},[!t.hideReply&&t.msgData.reply_id&&t.showReplyData(t.msgData.msg.reply_data)?e("div",{staticClass:"dialog-reply no-dark-content",on:{click:t.viewReply}},[e("div",{staticClass:"reply-avatar"},[e("UserAvatar",{attrs:{userid:t.msgData.msg.reply_data.userid,"show-icon":!1,"show-name":!0}})],1),e("div",{staticClass:"reply-desc",domProps:{innerHTML:t._s(t.$A.getMsgSimpleDesc(t.msgData.msg.reply_data,"image-preview"))}})]):t._e(),!t.hideForward&&t.msgData.forward_id&&t.showForwardData(t.msgData.msg.forward_data)?e("div",{staticClass:"dialog-reply no-dark-content",on:{click:function(s){return t.openDialog(t.msgData.msg.forward_data.userid)}}},[e("div",{staticClass:"reply-avatar"},[e("UserAvatar",{attrs:{userid:t.msgData.msg.forward_data.userid,"show-icon":!1,"show-name":!0}})],1)]):t._e(),e("div",{ref:"content",staticClass:"dialog-content",class:t.contentClass},[t.msgData.type==="text"?e("div",{staticClass:"content-text no-dark-content"},[t.msgData.msg.type==="md"?e("DialogMarkdown",{attrs:{text:t.msgData.msg.text},on:{click:t.viewText}}):e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))},on:{click:t.viewText}})],1):t.msgData.type==="file"?e("div",{class:`content-file ${t.msgData.msg.type}`},[e("div",{staticClass:"dialog-file"},[t.msgData.msg.type==="img"?e("img",{staticClass:"file-img",style:t.imageStyle(t.msgData.msg),attrs:{src:t.msgData.msg.thumb},on:{click:t.viewFile}}):e("div",{staticClass:"file-box",on:{click:t.downFile}},[e("img",{staticClass:"file-thumb",attrs:{src:t.msgData.msg.thumb}}),e("div",{staticClass:"file-info"},[e("div",{staticClass:"file-name"},[t._v(t._s(t.msgData.msg.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msgData.msg.size)))])])]),t.msgData.msg.percentage?e("div",{staticClass:"file-percentage"},[e("span",{style:t.fileStyle(t.msgData.msg.percentage)})]):t._e()])]):t.msgData.type==="record"?e("div",{staticClass:"content-record no-dark-content"},[e("div",{staticClass:"dialog-record",class:{playing:t.audioPlaying===t.msgData.msg.path},style:t.recordStyle(t.msgData.msg),on:{click:t.playRecord}},[e("div",{staticClass:"record-time"},[t._v(t._s(t.recordDuration(t.msgData.msg.duration)))]),e("div",{staticClass:"record-icon taskfont"})])]):t.msgData.type==="meeting"?e("div",{staticClass:"content-meeting no-dark-content"},[e("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!t.msgData.msg.end_at}},[e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),t._v(" "+t._s(t.msgData.msg.name)+" ")]),e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),e("UserAvatar",{attrs:{userid:t.msgData.msg.userid,"show-icon":!1,"show-name":!0}})],1),e("li",[e("em",[t._v(t._s(t.$L("\u9891\u9053ID")))]),t._v(" "+t._s(t.msgData.msg.meetingid.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3"))+" ")]),t.msgData.msg.end_at?e("li",{staticClass:"meeting-operation"},[t._v(" "+t._s(t.$L("\u4F1A\u8BAE\u5DF2\u7ED3\u675F"))+" ")]):e("li",{staticClass:"meeting-operation",on:{click:t.openMeeting}},[t._v(" "+t._s(t.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE68B")])])])]):t.msgData.type==="word-chain"?e("div",{staticClass:"content-text content-word-chain no-dark-content"},[e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))}}),e("ul",{class:{expand:t.unfoldWordChainData.indexOf(t.msgData.id)!==-1}},[t._l((t.msgData.msg.list||[]).filter(function(s){return s.type=="case"}),function(s){return e("li",[t._v(" "+t._s(t.$L("\u4F8B"))+" "+t._s(s.text)+" ")])}),t._l((t.msgData.msg.list||[]).filter(function(s){return s.type!="case"&&s.text}),function(s,a){return e("li",[a==2&&t.msgData.msg.list.length>4?e("span",{staticClass:"expand",on:{click:function(o){return t.unfoldWordChain(t.msgData)}}},[t._v(" ..."+t._s(t.$L("\u5C55\u5F00"))+"... ")]):t._e(),e("span",{class:{shrink:a>=2&&t.msgData.msg.list.length>4}},[t._v(" "+t._s(a+1)+". "+t._s(s.text)+" ")])])}),e("li",{staticClass:"participate",on:{click:t.onWordChain}},[t._v(" "+t._s(t.$L("\u53C2\u4E0E\u63A5\u9F99"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE703")])])],2)]):t.msgData.type==="vote"?e("div",{staticClass:"content-text content-word-vote no-dark-content"},[e("div",{staticClass:"vote-msg-head"},[e("i",{staticClass:"taskfont"},[t._v("\uE7FD")]),e("em",[t._v(t._s(t.$L("\u6295\u7968")))]),e("span",[t._v(t._s(t.msgData.msg.multiple==1?t.$L("\u591A\u9009"):t.$L("\u5355\u9009")))]),e("span",[t._v(t._s(t.msgData.msg.anonymous==1?t.$L("\u533F\u540D"):t.$L("\u5B9E\u540D")))])]),e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))}}),(t.msgData.msg.votes||[]).filter(function(s){return s.userid==t.userId}).length==0?[t.msgData.msg.multiple==0?e("RadioGroup",{attrs:{vertical:""},model:{value:t.voteData[t.msgData.msg.uuid],callback:function(s){t.$set(t.voteData,t.msgData.msg.uuid,s)},expression:"voteData[msgData.msg.uuid]"}},t._l(t.msgData.msg.list||[],function(s,a){return e("Radio",{key:a,attrs:{label:s.id}},[t._v(" "+t._s(s.text)+" ")])}),1):e("CheckboxGroup",{model:{value:t.voteData[t.msgData.msg.uuid],callback:function(s){t.$set(t.voteData,t.msgData.msg.uuid,s)},expression:"voteData[msgData.msg.uuid]"}},t._l(t.msgData.msg.list||[],function(s,a){return e("Checkbox",{key:a,attrs:{label:s.id}},[t._v(" "+t._s(s.text)+" ")])}),1),e("div",{staticClass:"btn-row"},[(t.voteData[t.msgData.msg.uuid]||[]).length==0?e("Button",{attrs:{type:"grey",disabled:""}},[t._v(t._s(t.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):e("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:t.msgData.msg._loadIng>0},on:{click:function(s){return t.onVote("vote",t.msgData)}}},[t._v(t._s(t.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[e("div",{staticClass:"vote-result-body"},[e("ul",t._l(t.msgData.msg.list||[],function(s){return e("li",[e("div",{staticClass:"vote-option-title"},[t._v(t._s(s.text))]),e("div",{staticClass:"ticket-num"},[e("span",[t._v(t._s(t.getVoteProgress(t.msgData.msg,s.id).num)+t._s(t.$L("\u7968")))]),e("span",[t._v(t._s(t.getVoteProgress(t.msgData.msg,s.id).progress+"%"))])]),e("Progress",{attrs:{percent:Number(t.getVoteProgress(t.msgData.msg,s.id).progress),"stroke-width":5,"hide-info":""}}),t.msgData.msg.anonymous==0?e("div",{staticClass:"avatar-row"},[t._l((t.msgData.msg.votes||[]).filter(function(a){return a.votes.indexOf(s.id)!=-1}),function(a){return[e("UserAvatar",{attrs:{userid:a.userid,size:18}})]})],2):t._e()],1)}),0)]),t.msgData.msg.state==1&&t.msgData.msg.userid==t.userId?e("div",{staticClass:"btn-row"},[e("Button",{attrs:{type:"warning",loading:t.msgData.msg._loadIng>0},on:{click:function(s){return t.onVote("again",t.msgData)}}},[t._v(t._s(t.$L("\u518D\u6B21\u53D1\u9001")))]),e("Button",{attrs:{type:"warning",loading:t.msgData.msg._loadIng>0},on:{click:function(s){return t.onVote("finish",t.msgData)}}},[t._v(t._s(t.$L("\u7ED3\u675F\u6295\u7968")))])],1):t._e()]],2):t.msgData.type==="loading"?e("div",{staticClass:"content-loading"},[t.msgData.error===!0?e("Icon",{attrs:{type:"ios-alert-outline"}}):e("Loading")],1):e("div",{staticClass:"content-unknown"},[t._v(t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F\u7C7B\u578B")))])]),t.$A.arrayLength(t.msgData.emoji)>0?e("ul",{staticClass:"dialog-emoji"},t._l(t.msgData.emoji,function(s,a){return e("li",{key:a,class:{hasme:s.userids.includes(t.userId)}},[e("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(o){return t.onEmoji(s.symbol)}}},[t._v(t._s(s.symbol))]),e("div",{staticClass:"emoji-users",on:{click:function(o){return t.onShowEmojiUser(s)}}},[e("ul",[t._l(s.userids,function(o,r){return[r0?e("div",{staticClass:"reply",on:{click:t.replyList}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),t._v(" "+t._s(t.msgData.reply_num)+"\u6761\u56DE\u590D ")]):t._e(),t.msgData.tag?e("div",{staticClass:"tag"},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")])]):t._e(),t.msgData.todo?e("div",{staticClass:"todo",on:{click:t.openTodo}},[e("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.todoShow,callback:function(s){t.todoShow=s},expression:"todoShow"}},[e("div",{staticClass:"read-poptip-content"},[e("Scrollbar",{attrs:{"class-name":"read"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoDoneList.length))]),t._v(t._s(t.$L("\u5B8C\u6210")))]),e("ul",t._l(t.todoDoneList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)]),e("Scrollbar",{attrs:{"class-name":"unread"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoUndoneList.length))]),t._v(t._s(t.$L("\u5F85\u529E")))]),e("ul",t._l(t.todoUndoneList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)])],1),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.todoLoad>0?e("Loading"):e("i",{staticClass:"taskfont"},[t._v("\uE7B7")])],1):t._e(),t.msgData.modify?e("div",{staticClass:"modify"},[e("i",{staticClass:"taskfont"},[t._v("\uE779")])]):t._e(),t.msgData.error===!0?e("div",{staticClass:"error",on:{click:t.onError}},[e("Icon",{attrs:{type:"ios-alert"}})],1):t.isLoading?e("Loading",{attrs:{delay:300}}):[t.timeShow?e("div",{staticClass:"time",on:{click:function(s){t.timeShow=!1}}},[t._v(t._s(t.msgData.created_at))]):e("div",{staticClass:"time",attrs:{title:t.msgData.created_at},on:{click:function(s){t.timeShow=!0}}},[t._v(t._s(t.$A.formatTime(t.msgData.created_at)))]),t.hidePercentage?t._e():[t.msgData.send>1||t.dialogType==="group"?e("div",{staticClass:"percent",on:{click:t.openReadPercentage}},[e("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.percentageShow,callback:function(s){t.percentageShow=s},expression:"percentageShow"}},[e("div",{staticClass:"read-poptip-content"},[e("Scrollbar",{attrs:{"class-name":"read"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.readList.length))]),t._v(t._s(t.$L("\u5DF2\u8BFB")))]),e("ul",t._l(t.readList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)]),e("Scrollbar",{attrs:{"class-name":"unread"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.unreadList.length))]),t._v(t._s(t.$L("\u672A\u8BFB")))]),e("ul",t._l(t.unreadList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)])],1),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.percentageLoad>0?e("Loading"):e("WCircle",{attrs:{percent:t.msgData.percentage,size:14}})],1):t.msgData.percentage===100?e("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):e("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},ct=[];const dt={name:"DialogView",components:{DialogMarkdown:nt,WCircle:et},directives:{longpress:$},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5,voteData:{},unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var t;this.$store.dispatch("audioStop",(t=this.msgData.msg)==null?void 0:t.path)},computed:{...m(["loads","audioPlaying"]),...F(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:t,operateAction:i,operateEnter:e}=this,s=[];return t.type&&s.push(t.type),i&&(s.push("operate-action"),e&&s.push("operate-enter")),s},readList(){return this.percentageList.filter(({read_at:t})=>t)},unreadList(){return this.percentageList.filter(({read_at:t})=>!t)},todoDoneList(){return this.todoList.filter(({done_at:t})=>t)},todoUndoneList(){return this.todoList.filter(({done_at:t})=>!t)},headClass(){const{reply_id:t,type:i,msg:e,emoji:s}=this.msgData,a=[];return t===0&&$A.arrayLength(s)===0&&i==="text"&&(/^]*?>$/.test(e.text)||/^\s*

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

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

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

\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/.test(i.text)&&e.push("an-emoji")),e}},watch:{operateAction(t){this.operateEnter=!1,t&&setTimeout(i=>this.operateEnter=!0,500)},voteData:{handler(t){const i=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const e in t)i[e]=t[e];Object.keys(i).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(i))},deep:!0}},methods:{handleLongpress(t,i){this.$emit("on-longpress",{event:t,el:i,msgData:this.msgData})},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.todoList=t}).catch(()=>{this.todoList=[]}).finally(t=>{setTimeout(()=>{this.todoLoad--,this.todoShow=!0},100)})}},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.percentageList=t}).catch(()=>{this.percentageList=[]}).finally(t=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},recordStyle(t){const{duration:i}=t;return{width:50+Math.min(180,Math.floor(i/200))+"px"}},recordDuration(t){const i=Math.floor(t/6e4),e=Math.floor(t/1e3)%60;return i>0?`${i}:${e}\u2033`:`${Math.max(1,e)}\u2033`},fileStyle(t){return t?{width:`${t}%`}:{}},imageStyle(t){const{width:i,height:e}=t;if(i&&e){let s=220,a=220,o=i,r=e;return(i>s||e>a)&&(i>e?(o=s,r=e*(s/i)):(o=i*(a/e),r=a)),{width:o+"px",height:r+"px"}}return{}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||v.Store.set("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},openDialog(t){this.$store.dispatch("openDialogUserid",t).then(i=>{this.goForward({name:"manage-messenger"})}).catch(({msg:i})=>{$A.modalError(i)})},showReplyData(t){return $A.isJson(t)?t.userid:!1},showForwardData(t){return $A.isJson(t)?t.show&&t.userid:!1},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(t){this.$emit("on-view-text",t,this.$refs.content)},viewFile(){!this.msgData.created_at||this.$emit("on-view-file",this.msgData)},downFile(){!this.msgData.created_at||this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(t){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:t})},onShowEmojiUser(t){this.$emit("on-show-emoji-user",t)},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},unfoldWordChain(t){if(this.unfoldWordChainData.indexOf(t.id)==-1){const i=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];i.push(t.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(i)),this.unfoldWordChainData.push(t.id)}},onVote(t,i){if(t!="vote"){$A.modalConfirm({content:t=="finish"?"\u786E\u5B9A\u7ED3\u675F\u6295\u7968\uFF1F":"\u518D\u6B21\u53D1\u9001\u6295\u7968\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.vote(t,i)}});return}this.vote(t,i)},vote(t,i){this.$set(i.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:i.dialog_id,uuid:i.msg.uuid,vote:this.voteData[i.msg.uuid]||[],type:t}}).then(({data:e})=>{t=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),e.forEach(s=>{this.$store.dispatch("saveDialogMsg",s)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$set(i.msg,"_loadIng",0)})},getVoteProgress(t,i){const e=t.votes.filter(a=>(a.votes||"").indexOf(i)!=-1).length,s=e?(e/t.votes.length*100).toFixed(2):"0.00";return{num:e,progress:s}}}},C={};var ht=u(dt,lt,ct,!1,ut,null,null,null);function ut(t){for(let i in C)this[i]=C[i]}var pt=function(){return ht.exports}(),mt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{class:t.classArray},[t.isUnreadStart?e("div",{staticClass:"dialog-unread-label"},[e("em"),e("span",[t._v(t._s(t.$L("\u4EE5\u4E0B\u4E3A\u65B0\u6D88\u606F")))]),e("em")]):t._e(),t.source.type==="tag"?e("div",{staticClass:"dialog-tag",on:{click:t.onViewTag}},[e("div",{staticClass:"tag-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" ')]):t.source.type==="top"?e("div",{staticClass:"dialog-top",on:{click:t.onViewTag}},[e("div",{staticClass:"tag-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u4E86"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" ')]):t.source.type==="todo"?e("div",{staticClass:"dialog-todo",on:{click:t.onViewTodo}},[e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" '),t.formatTodoUser(t.source.msg.data).length>0?e("div",{staticClass:"todo-users"},[e("span",[t._v(t._s(t.$L("\u7ED9")))]),t._l(t.formatTodoUser(t.source.msg.data),function(s,a){return[a<3?e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:s,"show-name":!0,"show-icon":!1}})],1):a==3?e("div",{staticClass:"todo-user"},[t._v("+"+t._s(t.formatTodoUser(t.source.msg.data).length-3))]):t._e()]})],2):t._e()]):t.source.type==="notice"?e("div",{staticClass:"dialog-notice"},[t._v(" "+t._s(t.source.msg.notice)+" ")]):[e("div",{staticClass:"dialog-avatar"},[e("UserAvatar",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.onMention,delay:300},expression:"{callback: onMention, delay: 300}"}],attrs:{userid:t.source.userid,size:30},on:{"open-dialog":t.onOpenDialog}})],1),e("DialogView",{attrs:{"msg-data":t.source,"dialog-type":t.dialogData.type,"hide-percentage":t.hidePercentage,"hide-reply":t.hideReply,"hide-forward":t.hideForward,"operate-visible":t.operateVisible,"operate-action":t.operateVisible&&t.source.id===t.operateItem.id,"is-right-msg":t.isRightMsg},on:{"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser}})]],2)},gt=[];const ft={name:"DialogItem",components:{DialogView:pt},directives:{longpress:$},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},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1}},computed:{...m(["userId"]),isRightMsg(){return this.source.userid==this.$store.state.userId},isReply(){return this.simpleView||this.msgId===this.source.id},isNoRead(){return this.isRightMsg||this.source.read_at},isUnreadStart(){return this.unreadOne===this.source.id},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},hideForward(){return this.simpleView||this.msgId>0},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,"unread-start":this.isUnreadStart,self:this.isRightMsg}}},watch:{readEnabled(){this.msgRead()},windowActive(){this.msgRead()},scrollIng(){this.msgRead()}},methods:{msgRead(){var t;this.isNoRead||!this.readEnabled||!this.windowActive||!((t=this.$el)!=null&&t.parentNode.classList.contains("item-enter"))||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(t){if($A.isJson(t)){const{userids:i}=t;if(i)return i.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onOpenDialog(t){this.dialogData.type=="group"&&this.$store.dispatch("openDialogUserid",t).then(i=>{this.goForward({name:"manage-messenger"})}).catch(({msg:i})=>{$A.modalError(i)})},onMention(){this.dispatch("on-mention",this.source)},onLongpress(t){this.dispatch("on-longpress",t)},onViewReply(t){this.dispatch("on-view-reply",t)},onViewText(t,i){this.dispatch("on-view-text",t,i)},onViewFile(t){this.dispatch("on-view-file",t)},onDownFile(t){this.dispatch("on-down-file",t)},onReplyList(t){this.dispatch("on-reply-list",t)},onError(t){this.dispatch("on-error",t)},onEmoji(t){this.dispatch("on-emoji",t)},onShowEmojiUser(t){this.dispatch("on-show-emoji-user",t)},dispatch(t,...i){if(this.isReply){this.$emit(t,...i);return}let e=this.$parent,s=e.$options.name;for(;e&&(!s||s!=="virtual-list");)e=e.$parent,e&&(s=e.$options.name);e&&e.$emit(t,...i)}}},D={};var _t=u(ft,mt,gt,!1,vt,null,null,null);function vt(t){for(let i in D)this[i]=D[i]}var k=function(){return _t.exports}(),$t=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("Upload",{ref:"upload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,data:t.params,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"before-upload":t.handleBeforeUpload,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize}})},wt=[];const yt={name:"DialogUpload",props:{dialogId:{type:Number,default:0},maxSize:{type:Number,default:1024e3}},data(){return{fileMsgCaches:{},uploadFormat:[],actionUrl:$A.apiUrl("dialog/msg/sendfile")}},computed:{...m(["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:t})=>t==this.dialogId)||{}}},methods:{fileMsgName(t){return`${t.name}::${t.size}`},fileMsgData(t,i=void 0){const e=this.fileMsgName(t);if($A.isJson(i)){this.fileMsgCaches[e]=Object.assign(this.fileMsgCaches[e]||{},i);return}i={type:"file",thumb:null,width:-1,height:-1,name:t.name,size:t.size,ext:t.name.split(".").pop()};let{ext:s}=i;s==="docx"?s="doc":s==="xlsx"?s="xls":s==="pptx"&&(s="ppt"),["ai","avi","bmp","cdr","doc","eps","gif","mov","mp3","mp4","pdf","ppt","pr","psd","rar","svg","tif","txt","xls","zip"].includes(s)?i.thumb=$A.mainUrl(`images/ext/${s}.png`):i.thumb=$A.mainUrl("images/ext/file.png"),this.fileMsgCaches[e]=i},handleBeforeUpload(t){return new Promise(i=>{if(this.fileMsgData(t),/\.(jpe?g|webp|png|gif)$/i.test(t.name)){this.$store.dispatch("showSpinner",600),this.imageFileToObject(t).then(e=>{this.fileMsgData(t,e),i()}).finally(()=>{this.$store.dispatch("hiddenSpinner")});return}i()})},handleProgress(t,i){if(i.tempId===void 0){this.$parent.$options.name==="DialogWrapper"?i.tempId=this.$parent.getTempId():i.tempId=$A.randNum(1e9,9999999999),i.msg={};const e=this.fileMsgName(i);this.fileMsgCaches[e]&&(i.msg=this.fileMsgCaches[e],delete this.fileMsgCaches[e])}this.$emit("on-progress",i)},handleSuccess(t,i){t.ret===1?(i.data=t.data,this.$emit("on-success",i),t.data.task_id&&this.$store.dispatch("getTaskFiles",t.data.task_id)):($A.modalWarning({title:"\u53D1\u9001\u5931\u8D25",content:"\u6587\u4EF6 "+i.name+" \u53D1\u9001\u5931\u8D25\uFF0C"+t.msg}),this.$emit("on-error",i),this.$refs.upload.fileList.pop())},handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleClick(){this.$refs.upload.handleClick()},upload(t){this.$refs.upload.upload(t)},cancel(t){return this.$refs.upload.cancel(t)},imageFileToObject(t){return new Promise((i,e)=>{const s=new FileReader;s.onload=({target:a})=>{const o=new Image;o.onload=()=>{const r=document.createElement("canvas"),n=r.getContext("2d"),l=o.width,c=o.height,d=500,h=500;let p=l,f=c;(l>d||c>h)&&(l/c>d/h?(p=d,f=Math.round(d*(c/l))):(f=h,p=Math.round(h*(l/c)))),r.width=p,r.height=f,n.clearRect(0,0,p,f),n.drawImage(o,0,0,p,f),i({type:"img",thumb:r.toDataURL("image/webp",.92),width:r.width,height:r.height})},o.onerror=()=>{e()},o.src=a.result},s.onerror=()=>{e()},s.readAsDataURL(t)})}}},b={};var Ct=u(yt,$t,wt,!1,Dt,null,null,null);function Dt(t){for(let i in b)this[i]=b[i]}var kt=function(){return Ct.exports}(),bt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-group-info"},[e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u540D")))]),e("div",{staticClass:"group-info-value"},[e("QuickEdit",{attrs:{value:t.dialogData.name,disabled:t.dialogData.owner_id!=t.userId},on:{"on-update":t.updateName}},[t._v(t._s(t.dialogData.name))])],1),e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u7C7B\u578B")))]),e("div",{staticClass:"group-info-value"},[t._v(t._s(t.$L(t.groupType)))]),e("div",{staticClass:"group-info-search"},[e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u6210\u5458"),clearable:""},model:{value:t.searchKey,callback:function(s){t.searchKey=s},expression:"searchKey"}})],1),e("div",{staticClass:"group-info-user"},[e("ul",[t._l(t.userList,function(s,a){return e("li",{key:a,on:{click:function(o){return t.openUser(s.userid)}}},[e("UserAvatar",{attrs:{userid:s.userid,size:32,showName:""}}),s.userid===t.dialogData.owner_id?e("div",{staticClass:"user-tag"},[t._v(t._s(t.$L("\u7FA4\u4E3B")))]):t.operableExit(s)?e("div",{staticClass:"user-exit",on:{click:function(o){return o.stopPropagation(),t.onExit(s)}}},[e("Icon",{attrs:{type:"md-exit"}})],1):t._e()],1)}),t.userList.length===0?e("li",{staticClass:"no"},[t.loadIng>0?e("Loading"):e("span",[t._v(t._s(t.$L("\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")))])],1):t._e()],2)]),t.operableAdd?e("div",{staticClass:"group-info-button"},[t.dialogData.owner_id==t.userId||t.dialogData.owner_id==0?e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.openAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6210\u5458")))]):t._e()],1):t._e(),e("Modal",{attrs:{title:t.$L("\u6DFB\u52A0\u7FA4\u6210\u5458"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u65B0\u589E\u6210\u5458")}},[e("UserSelect",{attrs:{disabledChoice:t.addData.disabledChoice,"multiple-max":100,"show-bot":"",title:t.$L("\u9009\u62E9\u6210\u5458")},model:{value:t.addData.userids,callback:function(s){t.$set(t.addData,"userids",s)},expression:"addData.userids"}}),t.dialogData.group_type==="department"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u90E8\u95E8")))]):t.dialogData.group_type==="project"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u9879\u76EE")))]):t.dialogData.group_type==="task"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):t._e()],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.addLoad>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u786E\u5B9A\u6DFB\u52A0")))])],1)],1)],1)},Lt=[];const St={name:"DialogGroupInfo",components:{UserSelect:R},props:{dialogId:{type:Number,default:0}},data(){return{searchKey:"",loadIng:0,dialogUser:[],addShow:!1,addData:{},addLoad:0,openIng:!1}},computed:{...m(["cacheDialogs","cacheUserBasic","userIsAdmin"]),dialogData(){return this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}},groupType(){const{group_type:t}=this.dialogData;return t==="department"?"\u90E8\u95E8\u7FA4\u7EC4":t==="project"?"\u9879\u76EE\u7FA4\u7EC4":t==="task"?"\u4EFB\u52A1\u7FA4\u7EC4":t==="user"?"\u4E2A\u4EBA\u7FA4\u7EC4":t==="all"?"\u5168\u5458\u7FA4\u7EC4":t==="okr"?"OKR\u7FA4\u7EC4":"\u672A\u77E5"},userList(){const{dialogUser:t,searchKey:i,cacheUserBasic:e,dialogData:s}=this;return t.map(o=>{const r=e.find(n=>n.userid==o.userid);return r&&(o.nickname=r.nickname,o.email=r.email),o}).filter(o=>!(i&&o.nickname&&!$A.strExists(o.nickname,i)&&!$A.strExists(o.email,i))).sort((o,r)=>o.userid===s.owner_id||r.userid===s.owner_id?(o.userid===s.owner_id?0:1)-(r.userid===s.owner_id?0:1):$A.Date(o.created_at)-$A.Date(r.created_at))}},watch:{dialogId:{handler(){this.getDialogUser()},immediate:!0}},methods:{updateName(t,i){if(!t){i();return}this.$store.dispatch("call",{url:"dialog/group/edit",data:{dialog_id:this.dialogId,chat_name:t}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),i()}).catch(({msg:e})=>{$A.modalError(e),i()})},getDialogUser(){this.dialogId<=0||(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId}}).then(({data:t})=>{this.dialogUser=t,this.$store.dispatch("saveDialog",{id:this.dialogId,people:t.length})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))},operableAdd(){const{owner_id:t,group_type:i}=this.dialogData;return i=="all"?this.userIsAdmin:[0,this.userId].includes(t)},openAdd(){this.addData={dialog_id:this.dialogId,userids:[],disabledChoice:this.dialogUser.map(t=>t.userid)},this.addShow=!0},onAdd(){this.addLoad++,this.$store.dispatch("call",{url:"dialog/group/adduser",data:this.addData}).then(({msg:t})=>{$A.messageSuccess(t),this.addShow=!1,this.addData={},this.getDialogUser()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.addLoad--})},operableExit(t){const{owner_id:i,group_type:e}=this.dialogData;return e=="all"?this.userIsAdmin:i==this.userId||t.inviter==this.userId},onExit(t){let i="\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",e=[];$A.isJson(t)&&t.userid!=this.userId&&(i=`\u4F60\u786E\u5B9A\u8981\u5C06\u3010${t.nickname}\u3011\u79FB\u51FA\u7FA4\u7EC4\u5417\uFF1F`,e=[t.userid]),$A.modalConfirm({content:i,loading:!0,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId,userids:e}}).then(({msg:o})=>{s(o),e.length>0?this.getDialogUser():(this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"}))}).catch(({msg:o})=>{a(o)})})})},openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(i=>{this.$emit("on-close")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.openIng=!1}))}}},L={};var It=u(St,bt,Lt,!1,xt,null,null,null);function xt(t){for(let i in L)this[i]=L[i]}var Mt=function(){return It.exports}(),Tt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-respond"},[e("div",{staticClass:"respond-title"},[e("em",{staticClass:"no-dark-content"},[t._v(t._s(t.respondData.symbol))]),t._v(t._s(t.$L("\u56DE\u5E94\u8BE6\u60C5"))+" ("+t._s(t.respondData.userids.length)+")")]),e("div",{staticClass:"respond-user"},[e("ul",t._l(t.respondData.userids,function(s,a){return e("li",{key:a,on:{click:function(o){return t.openUser(s)}}},[e("UserAvatar",{attrs:{userid:s,size:32,showName:""}})],1)}),0)])])},At=[];const Et={name:"DialogRespond",props:{respondData:{type:Object,default:()=>({})}},data(){return{openIng:!1}},methods:{openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(i=>{this.$emit("on-close")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.openIng=!1}))}}},S={};var jt=u(Et,Tt,At,!1,Ft,null,null,null);function Ft(t){for(let i in S)this[i]=S[i]}var Rt=function(){return jt.exports}(),Vt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"chat-emoji-wrapper"},[e("div",{staticClass:"chat-emoji-box"},[t.type==="emosearch"?e("div",{staticClass:"chat-emoji-emosearch"},[e("Input",{attrs:{clearable:"",placeholder:t.$L("\u641C\u7D22\u8868\u60C5")},model:{value:t.emosearchKey,callback:function(s){t.emosearchKey=s},expression:"emosearchKey"}},[e("Icon",{class:{"icon-loading":t.emosearchLoad},attrs:{slot:"prefix",type:t.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):t.type==="emoji"?e("div",{staticClass:"chat-emoji-nav"},t._l(t.emojiNavList,function(s){var a;return e("div",{key:s.type,class:(a={},a[`i-${s.name}`]=!0,a.active=s.type===t.emojiNavActive,a),domProps:{innerHTML:t._s(s.content)},on:{click:function(o){t.emojiNavActive=s.type}}})}),0):t._e(),e("Scrollbar",[e("ul",{class:[t.type,"no-dark-content"]},t._l(t.list,function(s){return e("li",{on:{click:function(a){return t.onSelect(a,s)}}},[s.type==="emoticon"?e("img",{attrs:{src:s.src,title:s.name,alt:s.name}}):e("span",{attrs:{title:s.name},domProps:{innerHTML:t._s(s.html)}})])}),0)])],1),t.onlyEmoji?t._e():e("ul",{ref:"chatEmojiMenuRef",staticClass:"chat-emoji-menu",style:t.chatEmojiMenuStyle,on:{scroll:t.onHandleScroll}},[t.showEmojiMenuScrollLeftBtn?e("li",{staticClass:"left-btn",on:{click:function(s){return t.onEmojiMenuScroll("left")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]):t._e(),e("li",{class:{active:t.type==="emosearch"},on:{click:function(s){t.type="emosearch"}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F8")])]),e("li",{class:{active:t.type==="emoji"},on:{click:function(s){t.type="emoji"}}},[e("span",{staticClass:"no-dark-content"},[t._v("\u{1F600}")])]),t._l(t.emoticonData,function(s){return e("li",{class:{active:t.type==="emoticon"&&t.emoticonPath==s.path},on:{click:function(a){return t.onEmoticon(s.path)}}},[e("img",{attrs:{title:s.name,alt:s.name,src:s.src}})])}),t.showEmojiMenuScrollRightBtn?e("li",{staticClass:"right-btn",on:{click:function(s){return t.onEmojiMenuScroll("right")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e()],2)])},Ot=[];const Pt={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.$store.state.windowPortrait||this.onMonitorWheel()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(t){this.emosearchKey=t},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(t=>t.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const t=this.emoticonData.find(({path:i})=>i===this.emoticonPath);if(t)return t.list}return[]},chatEmojiMenuStyle(){return{paddingLeft:this.showEmojiMenuScrollLeftBtn?"34px":0,paddingRight:this.showEmojiMenuScrollRightBtn?"34px":0}},showEmojiMenuScrollLeftBtn(){return this.emojiMenuScrollLeft>34},showEmojiMenuScrollRightBtn(){var e;const t=this.$refs.chatEmojiMenuRef,i=((e=t==null?void 0:t.querySelector("li"))==null?void 0:e.offsetWidth)||48;return this.emojiMenuScrollLeft{const i=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(e,s){return e.emoji_order-s.emoji_order}).map(e=>({type:"emoji",name:e.name,category:e.category,html:e.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(e=>Object.assign(e,{src:`${i}/${e.path}/${e.icon}`,list:e.list.map(s=>Object.assign(s,{type:"emoticon",asset:`images/emoticon/${e.path}/${s.path}`,src:`${i}/${e.path}/${s.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(t=>{N("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(i=>{if(this.emosearchList=[],i.status===0){const e=i.data.items;e.length>0&&(this.emosearchList=e.map(s=>({type:"emoticon",asset:"emosearch",name:s.title,src:s.thumbUrl,height:s.thumbHeight,width:s.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(i=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(i=>{this.emosearchLoad=!1})},300))},onEmoticon(t){this.type="emoticon",this.emoticonPath=t},onSelect(t,i){i.type==="emoji"?this.$emit("on-select",{type:"emoji",text:t.target.innerText}):this.$emit("on-select",i)},onMonitorWheel(){const t=this.$refs.chatEmojiMenuRef;t==null||t.addEventListener("wheel",i=>{i.preventDefault(),t.scrollLeft=t.scrollLeft+i.deltaY})},onEmojiMenuScroll(t){const i=this.$refs.chatEmojiMenuRef,e=i.offsetWidth-68,s=t=="right"?i.scrollLeft+e:i.scrollLeft-e;i.scrollTo({left:s,behavior:"smooth"})},onHandleScroll(t){this.emojiMenuScrollLeft=t.target.scrollLeft}}},I={};var qt=u(Pt,Vt,Ot,!1,Bt,null,null,null);function Bt(t){for(let i in I)this[i]=I[i]}var V=function(){return qt.exports}();const x="ontouchend"in document;var Ut={bind(t,i){let e=!1;t.__touchEvent__={start:s=>{s.preventDefault(),e=!0,i.value("down",s)},move:s=>{e&&i.value("move",s)},end:s=>{e&&(e=!1,i.value("up"))}},x?(t.addEventListener("touchstart",t.__touchEvent__.start),t.addEventListener("touchmove",t.__touchEvent__.move),t.addEventListener("touchend",t.__touchEvent__.end)):(t.addEventListener("mousedown",t.__touchEvent__.start,{passive:!1}),document.addEventListener("mousemove",t.__touchEvent__.move),document.addEventListener("mouseup",t.__touchEvent__.end))},update(){},unbind(t){x?(t.removeEventListener("touchstart",t.__touchEvent__.start),t.removeEventListener("touchmove",t.__touchEvent__.move),t.removeEventListener("touchend",t.__touchEvent__.end)):(t.removeEventListener("mousedown",t.__touchEvent__.start),document.removeEventListener("mousemove",t.__touchEvent__.move),document.removeEventListener("mouseup",t.__touchEvent__.end)),delete t.__touchEvent__}};const M="ontouchend"in document;var O={bind(t,i){if(M){const e={move:!1,time:0,x:0,y:0};t.__touchEvent__={start:s=>{s.preventDefault(),e.move=!1,e.time=new Date().getTime(),e.x=s.touches?s.touches[0].clientX:s.clientX,e.y=s.touches?s.touches[0].clientY:s.clientY},move:s=>{if(e.time>0){const a=s.touches?s.touches[0].clientX:s.clientX,o=s.touches?s.touches[0].clientY:s.clientY;(Math.abs(a-e.x)>5||Math.abs(o-e.y)>5)&&(e.move=!0)}},end:s=>{e.time>0&&(!e.move&&new Date().getTime()-e.time<300&&i.value(),e.time=0)}},t.addEventListener("touchstart",t.__touchEvent__.start),t.addEventListener("touchmove",t.__touchEvent__.move),t.addEventListener("touchend",t.__touchEvent__.end)}else t.__clickEvent__=e=>{e.preventDefault(),i.value()},t.addEventListener("click",t.__clickEvent__)},update(){},unbind(t){M?(t.removeEventListener("touchstart",t.__touchEvent__.start),t.removeEventListener("touchmove",t.__touchEvent__.move),t.removeEventListener("touchend",t.__touchEvent__.end),delete t.__touchEvent__):(t.removeEventListener("click",t.__clickEvent__),delete t.__clickEvent__)}};function g(t){return t===void 0&&(t=document.body),t===!0?document.body:t instanceof window.Node?t:document.querySelector(t)}const Nt={inserted(t,{value:i},e){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className?t.className+" v-transfer-dom":"v-transfer-dom";const s=t.parentNode;if(!s)return;const a=document.createComment("");let o=!1;i!==!1&&(s.replaceChild(a,t),g(i).appendChild(t),o=!0),t.__transferDomData||(t.__transferDomData={parentNode:s,home:a,target:g(i),hasMovedOut:o})},componentUpdated(t,{value:i}){if(t.dataset&&t.dataset.transfer!=="true")return!1;const e=t.__transferDomData;if(!e)return;const s=e.parentNode,a=e.home,o=e.hasMovedOut;!o&&i?(s.replaceChild(a,t),g(i).appendChild(t),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!0,target:g(i)})):o&&i===!1?(s.replaceChild(t,a),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!1,target:g(i)})):i&&g(i).appendChild(t)},unbind(t){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className.replace("v-transfer-dom",""),t.__transferDomData&&(t.__transferDomData.hasMovedOut===!0&&t.__transferDomData.parentNode&&t.__transferDomData.parentNode.appendChild(t),t.__transferDomData=null)}};var zt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:t.boxClass},[e("div",{staticClass:"chat-input-quick-emoji"},[e("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:t.emojiQuickShow,callback:function(s){t.emojiQuickShow=s},expression:"emojiQuickShow"}},[e("div",{attrs:{slot:"reference"},slot:"reference"}),e("Scrollbar",{ref:"emojiWrapper",attrs:{tag:"ul","enable-x":!0,"enable-y":!1,"touch-content-blur":!1,"class-name":"chat-quick-emoji-wrapper scrollbar-hidden"}},t._l(t.emojiQuickItems,function(s){return e("li",{on:{click:function(a){return t.onEmojiQuick(s)}}},[e("img",{attrs:{title:s.name,alt:s.name,src:s.src}})])}),0)],1)],1),e("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper",on:{click:function(s){return s.stopPropagation(),t.focus.apply(null,arguments)}}},[t.quoteData?e("div",{staticClass:"chat-quote"},[t.quoteUpdate?e("div",{staticClass:"quote-label"},[t._v(t._s(t.$L("\u7F16\u8F91\u6D88\u606F")))]):e("UserAvatar",{attrs:{userid:t.quoteData.userid,userResult:t.onQuoteUserResult,"show-icon":!1,"show-name":!0}}),e("div",{staticClass:"quote-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(t.quoteData)))]),e("i",{directives:[{name:"touchclick",rawName:"v-touchclick",value:t.cancelQuote,expression:"cancelQuote"}],staticClass:"taskfont"},[t._v("\uE6E5")])],1):t._e(),e("div",{ref:"editor",staticClass:"no-dark-content",on:{click:function(s){return s.stopPropagation(),t.onClickEditor.apply(null,arguments)},paste:t.handlePaste}}),e("div",{staticClass:"chat-space"},[e("input",{staticClass:"space-input",on:{focus:t.onSpaceInputFocus}})]),e("ul",{staticClass:"chat-toolbar",on:{click:function(s){s.stopPropagation()}}},[e("li",[t.emojiBottom?e("ETooltip",{ref:"emojiTip",attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")}},[e("i",{staticClass:"taskfont",on:{click:function(s){t.showEmoji=!t.showEmoji}}},[t._v("\uE7AD")])]):e("EPopover",{ref:"emoji",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:t.showEmoji,callback:function(s){t.showEmoji=s},expression:"showEmoji"}},[e("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE7AD")])]),t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e()],1)],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u9009\u62E9\u6210\u5458")}},[e("i",{staticClass:"taskfont",on:{click:function(s){return t.onToolbar("user")}}},[t._v("\uE78F")])])],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u9009\u62E9\u4EFB\u52A1")}},[e("i",{staticClass:"taskfont",on:{click:function(s){return t.onToolbar("task")}}},[t._v("\uE7D6")])])],1),e("li",[e("EPopover",{ref:"more",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMore,callback:function(s){t.showMore=s},expression:"showMore"}},[e("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showMore,placement:"top",content:t.$L("\u5C55\u5F00")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])]),t.recordReady?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("meeting")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C1")]),t._v(" "+t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ")]):t._e(),t.canCall?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("call")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BA")]),t._v(" "+t._s(t.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("image")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BC")]),t._v(" "+t._s(t.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C0")]),t._v(" "+t._s(t.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),t.canAnon?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("anon")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE690")]),t._v(" "+t._s(t.$L("\u533F\u540D\u6D88\u606F"))+" ")]):t._e(),t.dialogData.type=="group"?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("word-chain")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE80A")]),t._v(" "+t._s(t.$L("\u53D1\u8D77\u63A5\u9F99"))+" ")]):t._e(),t.dialogData.type=="group"?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("vote")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7FD")]),t._v(" "+t._s(t.$L("\u53D1\u8D77\u6295\u7968"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("full")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6A7")]),t._v(" "+t._s(t.$L("\u5168\u5C4F\u8F93\u5165"))+" ")])],1)],1),e("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:t.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:t.onShowMenu,delay:300},expression:"{callback: onShowMenu, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:t.sendClass},[e("EPopover",{ref:"menu",attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMenu,callback:function(s){t.showMenu=s},expression:"showMenu"}},[e("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:t.$isEEUiApp||t.windowTouch||t.showMenu,content:t.$L(t.sendContent)},slot:"reference"},[t.loading?e("div",[e("div",{staticClass:"chat-load"},[e("Loading")],1)]):e("div",[e("transition",{attrs:{name:"mobile-send"}},[t.sendClass==="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE609")]):t._e()]),e("transition",{attrs:{name:"mobile-send"}},[t.sendClass!=="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE606")]):t._e()])],1)]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onSend("silence")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7D7")]),t._v(" "+t._s(t.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onSend("md")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE647")]),t._v(" "+t._s(t.$L("MD \u683C\u5F0F\u53D1\u9001"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onSend("normal")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE71B")]),t._v(" "+t._s(t.$L("\u666E\u901A\u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1)]),e("div",{staticClass:"chat-record"},[e("div",{ref:"recwave"})]),e("div",{staticClass:"chat-cover",on:{click:function(s){return s.stopPropagation(),t.onClickCover.apply(null,arguments)}}})]),t.emojiBottom&&t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e(),e("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(t.recordState)?e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:t.touchLimitY},style:t.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:t.stopRecord}},[t.recordDuration>0?e("div",{staticClass:"record-duration"},[t._v(t._s(t.recordFormatDuration))]):e("div",{staticClass:"record-loading"},[e("Loading",{attrs:{type:"pure"}})],1),e("div",{staticClass:"record-cancel",on:{click:function(s){return s.stopPropagation(),t.stopRecord(!0)}}},[t._v(t._s(t.$L(t.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):t._e()]),e("Modal",{attrs:{"mask-closable":!1,beforeClose:t.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:t.fullInput,callback:function(s){t.fullInput=s},expression:"fullInput"}},[e("div",{staticClass:"chat-input-box"},[e("div",{staticClass:"chat-input-wrapper"},[e("div",{ref:"editorFull",staticClass:"no-dark-content"})])]),e("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[t._v("\uE6AB")])])],1)},Wt=[];const Gt={name:"ChatInput",components:{ChatEmoji:V},directives:{touchmouse:Ut,touchclick:O,TransferDom:Nt,clickoutside:q,longpress:$},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote",{list:"ordered"},{list:"bullet"},{list:"check"}]},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:[],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,textTimer:null,fileTimer:null,moreTimer:null,selectTimer:null,selectRange:null,fullInput:!1,fullQuill:null}},mounted(){this.init(),this.recordInter=setInterval(t=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(t,i)=>{t==="recordAudio"&&i===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var t;this.quill&&((t=this.quill.getModule("mention"))==null||t.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...m(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs","cacheKeyboard"]),isEnterSend({cacheKeyboard:t}){return this.$isEEUiApp?t.send_button_app==="enter":t.send_button_desktop==="enter"},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},recordTransferStyle(){const{windowScrollY:t}=this;return t>0?{marginTop:t/2+"px"}:null},boxClass(){const t=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?t.push("record-progress"):t.push("record-ready")),this.showMenu&&t.push("show-menu"),this.showMore&&t.push("show-more"),this.showEmoji&&t.push("show-emoji"),this.mentionMode&&t.push(this.mentionMode),t},sendClass(){return this.filterInvalidLine(this.value)?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:t}=this.$refs;return t&&t.$refs.popper&&(t.$refs.popper.style.visibility="hidden",t.showPopper=!1,setTimeout(i=>{t.$refs.popper&&(t.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:t}=this;let i=Math.floor(t/6e4),e=Math.floor(t/1e3)%60,s=("00"+t%1e3).substr(-2);return i<10&&(i=`0${i}`),e<10&&(e=`0${e}`),`${i}:${e}\u2033${s}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:t}=this.dialogData;return t?this.dialogMsgs.find(i=>i.id===t):null}},watch:{value(t){this.quill&&(t&&t!==this._content?(this._content=t,this.setContent(t)):t||this.quill.setText("")),this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:this.filterInvalidLine(t)})},disabled(t){var i;(i=this.quill)==null||i.enable(!t)},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(t){t&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(t){t&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(t){if(this.emojiBottom&&(t?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),t){let i=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(i&&i.indexOf(" ")===-1&&i.length>=1&&i.length<=8?this.emojiQuickKey=i:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const e=this.quill.selection.savedRange;this.rangeIndex=e?e.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex)},emojiQuickShow(t){t&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(t){this.scrollTimer&&clearInterval(this.scrollTimer),t?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var i;(i=this.quill)!=null&&i.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},200))):this.$emit("on-blur")},recordState(t){t==="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",t)},fullInput(t){var i;(i=this.quill)==null||i.enable(!t)}},methods:{init(){this._options=Object.assign({theme:"bubble",formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar:this.$isEEUiApp||this.windowTouch?!1:this.toolbar,keyboard:{bindings:{"short enter":{key:"Enter",shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:"Enter",shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:"Escape",shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:this.quillMention()}},this.options),this.quill=new _(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",t=>{if(t)this.selectRange=t;else if(this.selectRange&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(i=>{this.quill.setSelection(this.selectRange.index,this.selectRange.length)},100);return}this.isFocus=!!t}),this.quill.on("text-change",t=>{this.textTimer?clearTimeout(this.textTimer):this.changeLoad++,this.textTimer=setTimeout(i=>{this.textTimer=null,this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let e=this.$refs.editor.firstChild.innerHTML;this.updateEmojiQuick(e),this._content=e,this.$emit("input",this._content),this.$nextTick(s=>{const a=this.quill.getSelection();if(a){const o=this.quill.getText(a.index);/^\n\n$/.test(o)&&this.quill.deleteText(a.index,1)}})},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,i)=>(this.pasteClean&&(i.ops=i.ops.map(e=>{const s={insert:e.insert};try{typeof s.insert.mention=="object"&&t.innerHTML&&(s.insert=t.innerHTML.replace(/<[^>]+>/g,""))}catch{}return e.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{e.attributes[a]&&(typeof s.attributes=="undefined"&&(s.attributes={}),s.attributes[a]=e.attributes[a])}),s})),i)),this.$nextTick(t=>{this.quill.root.addEventListener("keydown",i=>{if(i.key==="\r\r"&&i.keyCode===229){const{index:e}=this.quill.getSelection(!0);this.quill.insertText(e,`\r -`),this.keyTimer&&clearTimeout(this.keyTimer),this.keyTimer=setTimeout(s=>{this.$refs.editor.firstChild.childNodes.forEach(a=>{/^\r+/.test(a.innerHTML)&&(a.innerHTML=a.innerHTML.replace(/^\r+/,"")||"
")})},200)}}),this.$isEEUiApp&&this.cacheKeyboard.send_button_app==="enter"&&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(t=>{typeof window.Recorder=="function"&&(this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,audioTrackSet:null,disableEnvInFix:!1,onProcess:(i,e,s,a,o,r)=>{var n;(n=this.recordWave)==null||n.input(i[i.length-1],e,a),this.recordDuration=s,s>=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:t=>{if(t.disabled===!0)return`

${t.value}
`;if(t.id===0)return`
@
${t.value}
${t.tip}
`;if(t.avatar){const i=t.bot?'
':"";return`
${i}
${t.value}
`}return t.tip?`
${t.value}
${t.tip}
`:`
${t.value}
`},renderLoading:()=>"Loading...",source:(t,i,e)=>{const s=e=="@"?"user-mention":e=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let r=0;r{const n=[];r.some(l=>{let c=l.list;t&&(c=c.filter(({value:d})=>$A.strExists(d,t))),c.length>0&&(l.label&&n.push(...l.label),n.push(...c))}),$A.jsonStringify(n.map(({id:l})=>l))!==o&&(o=$A.jsonStringify(n.map(({id:l})=>l)),i(n,t))})}}},updateEmojiQuick(t){if(!this.isFocus||!t){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(i=>{if(this.emojiTimer=null,/]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=8&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];const e=$A.mainUrl("images/emoticon");if(window.emoticonData.some(s=>{let a=0;if(s.list.some(o=>{const r=[o.name];if(o.key&&r.push(...`${o.key}`.split(" ")),r.includes(t)&&(this.emojiQuickItems.push(Object.assign(o,{type:"emoticon",asset:`images/emoticon/${s.path}/${o.path}`,name:o.name,src:`${e}/${s.path}/${o.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(s=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},getText(){return this.quill?`${this.quill.getText()}`.replace(/^\s+|\s+$/g,""):""},setText(t){this.quill&&this.quill.setText(t)},setContent(t){this.quill&&this.quill.setContents(this.quill.clipboard.convert({html:t}))},setPasteMode(t){this.pasteClean=t},loadInputDraft(){const{extra_draft_content:t}=this.dialogData;t?(this.pasteClean=!1,this.$emit("input",t),this.$nextTick(i=>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(t=>{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(t,i){if(!this.loading)switch(t){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=i.type==="touchstart"?i.touches[0]:i,(i.button===void 0||i.button===0)&&this.startRecord())return;i.button===2&&this.onShowMenu();break;case"move":const e=i.type==="touchmove"?i.touches[0]:i;this.touchLimitX=(this.touchStart.clientX-e.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-e.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(t="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(i=>{this.filterInvalidLine(this.value)!==""&&(this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),t==="auto"&&(t=B(this.value)?"md":""),t==="normal"&&(t=""),t?this.$emit("on-send",null,t):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(t=>{this.recordRec.open(i=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(e=>{this.recordRec.start()},300)):this.recordRec.close()},i=>{this.recordState="stop",$A.messageError(i||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(t){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((i,e)=>{this.recordRec.close(),t!==!0&&(e<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=i,this.uploadRecord(e)))},i=>{this.recordRec.close(),$A.messageError(i||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(t){this.showMenu=!1,this.showMore=!1,t!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(t=>{var i;(i=this.quill)==null||i.focus()})},uploadRecord(t){if(this.recordBlob===null)return;const i=new FileReader;i.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:i.result,duration:t})},i.readAsDataURL(this.recordBlob)},onEmojiQuick(t){t.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(t){!this.quill||(t.type==="emoji"?(this.quill.insertText(this.rangeIndex,t.text),this.rangeIndex+=t.text.length,this.windowLandscape&&(this.showEmoji=!1)):t.type==="emoticon"&&(this.$emit("on-send",``),t.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&(this.showEmoji=!1)))},onToolbar(t){switch(this.hidePopover(),t){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":v.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",t);break;case"word-chain":this.$store.state.dialogDroupWordChain={type:"create",dialog_id:this.dialogId};break;case"vote":this.$store.state.dialogGroupVote={type:"create",dialog_id:this.dialogId};break}},onFullInput(){this.disabled||(this.fullInput=!this.fullInput,this.fullInput&&this.$nextTick(t=>{this.fullQuill=new _(this.$refs.editorFull,Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:this.toolbar,mention:this.quillMention()}},this.options)),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(i=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(t=>{var i;(i=this.$refs.editorFull)!=null&&i.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),t()})},setQuote(t,i="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:t,extra_quote_type:i==="update"?"update":"reply"})},cancelQuote(){this.quoteUpdate&&this.$emit("input",""),this.setQuote(0)},onQuoteUserResult(t){this.dialogData.type==="group"&&(this.quoteUpdate||!this.quoteData||this.userId===t.userid||this.quoteData.userid!==t.userid||new RegExp(`]+?class="mention"[^>]+?data-id="${t.userid}"[^>]*?>`).test(this.$refs.editor.firstChild.innerHTML)||this.addMention({denotationChar:"@",id:t.userid,value:t.nickname}))},onSpaceInputFocus(){var t;this.selectRange&&((t=this.quill)==null||t.setSelection(this.selectRange.index,this.selectRange.length))},openMenu(t){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


"))this.quill.getModule("mention").openMenu(t);else{let i=this.value.replace(/<[^>]+>/g,"");i.length===0||i.endsWith(" ")?this.quill.getModule("mention").openMenu(t):this.quill.getModule("mention").openMenu(` ${t}`)}},addMention(t){if(!this.quill)return;const{index:i}=this.quill.getSelection(!0);this.quill.insertEmbed(i,"mention",t,_.sources.USER),this.quill.insertText(i+1," ",_.sources.USER),this.quill.setSelection(i+2,_.sources.USER)},getProjectId(){let t=null;if(this.dialogId>0){if(t=this.cacheProjects.find(({dialog_id:i})=>i==this.dialogId),t)return t.id;if(t=this.cacheTasks.find(({dialog_id:i})=>i==this.dialogId),t)return t.project_id}else if(this.taskId>0&&(t=this.cacheTasks.find(({id:i})=>i==this.taskId),t))return t.project_id;return 0},getMentionSource(t,i,e){switch(t){case"@":this.mentionMode="user-mention";const s=n=>{this.getMoreUser(i,n.map(l=>l.id)).then(l=>{let c=this.cacheDialogs.filter((d,h)=>d.type=="user"&&d.bot==0&&d.last_at);c.sort((d,h)=>d.last_at>h.last_at?-1:d.last_ath<5),l.forEach(d=>{d.last_at="1990-01-01 00:00:00",c.forEach(h=>{var p;((p=h.dialog_user)==null?void 0:p.userid)==d.id&&(d.last_at=h.last_at)})}),l.sort((d,h)=>d.last_at>h.last_at?-1:d.last_at0?(n.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:n},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u4EE5\u5916\u6210\u5458"),disabled:!0}],list:l})):n.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:n}):this.userCache.push({label:null,list:n}),e(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&e(this.userCache),this.userList!==null){s(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:n})=>{this.cacheDialogs.find(({id:l})=>l==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:n.length}),n.length>0&&a.push(...n.map(l=>({id:l.userid,value:l.nickname,avatar:l.userimg,online:l.online,bot:l.bot}))),s(a)}).catch(n=>{s(a)});else if(this.taskId>0){const n=this.cacheTasks.find(({id:l})=>l==this.taskId);n&&$A.isArray(n.task_user)&&n.task_user.some(l=>{const c=this.cacheUserBasic.find(({userid:d})=>d==l.userid);c&&a.push({id:c.userid,value:c.nickname,avatar:c.userimg,online:c.online,bot:c.bot})}),s(a)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){e(this.taskList);return}const o=n=>{this.taskList=[],n.length>0&&(n=n.map(d=>({id:d.id,value:d.name,tip:d.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:n}));let l=this.$store.getters.transforTasks(this.$store.getters.dashboardTask.all);l.length>0&&(l=l.sort((d,h)=>$A.Date(d.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:l.map(d=>({id:d.id,value:d.name}))}));let c=this.$store.getters.assistTask;c.length>0&&(c=c.sort((d,h)=>$A.Date(d.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:c.map(d=>({id:d.id,value:d.name}))})),e(this.taskList)},r=this.getProjectId();if(r>0){this.$store.dispatch("getTaskForProject",r).then(n=>{const l=this.cacheTasks.filter(c=>c.archived_at?!1:c.project_id==r&&c.parent_id===0&&!c.archived_at).sort((c,d)=>$A.Date(d.complete_at||"2099-12-31 23:59:59")-$A.Date(c.complete_at||"2099-12-31 23:59:59"));l.length>0?o(l):o([])}).catch(n=>{o([])});return}o([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[i])){e(this.fileList[i]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(n=>{this.$store.dispatch("searchFiles",i).then(({data:l})=>{this.fileList[i]=[{label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:l.filter(c=>c.type!=="folder").map(c=>({id:c.id,value:c.ext?`${c.name}.${c.ext}`:c.name}))}],e(this.fileList[i])}).catch(()=>{e([])})},300);break;default:e([]);break}},getMoreUser(t,i){return new Promise(e=>{const{owner_id:s,type:a}=this.dialogData,o=a==="group"&&[0,this.userId].includes(s);this.taskId>0||o?(this.moreTimer&&clearTimeout(this.moreTimer),this.moreTimer=setTimeout(r=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:t},state:1,take:30}}).then(({data:n})=>{const l=n.filter(c=>!i.includes(c.userid));e(l.map(c=>({id:c.userid,value:c.nickname,avatar:c.userimg,online:!!c.online})))}).catch(n=>{e([])})},this.userCache===null?0:600)):e([])})},checkIOSVersion(){let i=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const s=(i?i[1].replace(/_/g,"."):"unknown").split(".");return+s[0]==11&&+s[1]>=0&&+s[1]<3},handlePaste(t){const i=Array.prototype.slice.call(t.clipboardData.files);i.filter(s=>!$A.leftExists(s.type,"image/")).length>0&&(t.preventDefault(),this.$emit("on-file",i))},filterInvalidLine(t){return(t+"").replace(/^(

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

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

<\/p>)+|(

<\/p>)+$/gi,"")},updateTools(){var i,e,s,a;this.showEmoji&&((i=this.$refs.emoji)==null||i.updatePopper()),this.showMore&&((e=this.$refs.more)==null||e.updatePopper()),this.showMenu&&((s=this.$refs.menu)==null||s.updatePopper());const t=(a=this.quill)==null?void 0:a.getModule("mention");t.isOpen&&t.setMentionContainerPosition()}}},T={};var Ht=u(Gt,zt,Wt,!1,Qt,null,null,null);function Qt(t){for(let i in T)this[i]=T[i]}var Kt=function(){return Ht.exports}();function Yt(){return new Promise(t=>{const i=new G({render(a){return a(H.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":o=>{o||setTimeout(r=>{document.body.removeChild(this.$el)},500)}}},[a(V,{attrs:{onlyEmoji:!0},on:{"on-select":o=>{this.$children[0].visible=!1,o.type==="emoji"&&t(o.text)}}})])}}),e=i.$mount();document.body.appendChild(e.$el);const s=i.$children[0];s.visible=!0,s.$el.lastChild.addEventListener("click",({target:a})=>{a.classList.contains("ivu-modal-body")&&(s.visible=!1)})})}var Jt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("Modal",{attrs:{"class-name":"dialog-droup-word-chain","mask-closable":!1,title:t.dialogDroupWordChain.type=="create"?t.$L("\u53D1\u8D77\u63A5\u9F99"):t.$L("\u63A5\u9F99\u7ED3\u679C"),closable:!t.isFullscreen,fullscreen:t.isFullscreen,"footer-hide":t.isFullscreen},scopedSlots:t._u([{key:"header",fn:function(){return[t.isFullscreen?e("div",{staticClass:"chain-modal-header"},[e("div",{staticClass:"chain-modal-close",on:{click:function(s){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[t._v(" "+t._s(t.dialogDroupWordChain.type=="create"?t.$L("\u53D1\u8D77\u63A5\u9F99"):t.$L("\u63A5\u9F99\u7ED3\u679C"))+" ")]),e("div",{staticClass:"chain-modal-submit",class:{disabled:!t.isEdit},on:{click:t.onSend}},[t.loadIng>0?e("div",{staticClass:"submit-loading"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u53D1\u9001"))+" ")])]):t._e()]},proxy:!0},{key:"close",fn:function(){return[e("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0}]),model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("div",{ref:"wordChainBodyRef",staticClass:"word-chain-body"},[t.dialogDroupWordChain.type=="create"?e("div",{staticClass:"source"},[t._v(" "+t._s(t.$L("\u6765\u81EA"))+" "),e("span",[t._v(t._s(t.dialog.name))])]):t._e(),e("div",{staticClass:"initiate"},[e("span",[t._v(t._s(t.$L("\u7531")))]),e("UserAvatar",{attrs:{userid:t.createId,size:22,showName:!0}}),e("span",[t._v(" "+t._s(t.$L("\u53D1\u8D77\uFF0C\u53C2\u4E0E\u63A5\u9F99\u76EE\u524D\u5171"+t.num+"\u4EBA")))])],1),e("div",{staticClass:"textarea"},[e("Input",{ref:"wordChainTextareaRef",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},disabled:t.dialogDroupWordChain.type!="create",placeholder:t.$L("\u8BF7\u8F93\u5165\u63A5\u9F99\u4E3B\u9898")},model:{value:t.value,callback:function(s){t.value=s},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(s){return s.type=="case"&&(t.dialogDroupWordChain.type=="create"||s.text)?e("li",[e("span",[t._v(t._s(t.$L("\u4F8B")))]),e("Input",{attrs:{placeholder:t.$L("\u53EF\u586B\u5199\u63A5\u9F99\u683C\u5F0F"),disabled:t.dialogDroupWordChain.type!="create"},model:{value:s.text,callback:function(a){t.$set(s,"text",a)},expression:"item.text"}})],1):t._e()}),t._l(t.list.filter(function(s){return s.type!="case"}),function(s,a){return e("li",[e("span",[t._v(t._s(a+1))]),e("Input",{attrs:{disabled:s.userid!=t.userId,placeholder:t.$L("\u8BF7\u8F93\u5165\u63A5\u9F99\u5185\u5BB9")},model:{value:s.text,callback:function(o){t.$set(s,"text",o)},expression:"item.text"}})],1)}),e("li",{staticClass:"add"},[e("i",{staticClass:"taskfont",on:{click:t.onAdd}},[t._v("\uE78C")])])],2)]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0,disabled:!t.isEdit},on:{click:t.onSend}},[t._v(t._s(t.$L("\u53D1\u9001")))])],1)])},Xt=[];const Zt={name:"DialogDroupWordChain",data(){return{show:!1,createId:0,value:"#"+this.$L("\u63A5\u9F99")+` +import{m,a as F}from"./vuex.cc7cb26e.js";import{n as u,b as P,U as R,c as q,i as B}from"./app.57070a0d.js";import{l as v}from"./le5le-store.b40f9152.js";import{l as $}from"./longpress.5305f240.js";import{D as U}from"./index.92bfd6b8.js";import{Q as _}from"./quill-hi.c85eceed.js";import"./quill-mention-hi.beaa1617.js";import{o as N}from"./vue-jsonp.be27271b.js";import{V as z}from"./vue-virtual-scroll-list-hi.f3f58d09.js";import{I as W}from"./ImgUpload.b233effb.js";import{V as G}from"./vue.eaf71fac.js";import{i as H}from"./view-design-hi.76cbd75d.js";import Q from"./details.663d818a.js";import{U as K}from"./tip.e9c85d1f.js";var Y=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"common-circle",style:t.style,attrs:{"data-id":t.percent}},[e("svg",{attrs:{viewBox:"0 0 28 28"}},[e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),e("path",{staticClass:"common-circle-g-path-core",attrs:{d:t.arc(t.args)}})])])])])},J=[];const X={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:t}=this;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args(){const{percent:t}=this;let i=Math.min(360,360/100*t);return i==360?i=0:i==0&&(i=360),{x:14,y:14,r:14,start:360,end:i}}},methods:{isNumeric(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)},point(t,i,e,s){return[(t+Math.sin(s)*e).toFixed(2),(i-Math.cos(s)*e).toFixed(2)]},full(t,i,e,s){return s<=0?`M ${t-e} ${i} A ${e} ${e} 0 1 1 ${t+e} ${i} A ${e} ${e} 1 1 1 ${t-e} ${i} Z`:`M ${t-e} ${i} A ${e} ${e} 0 1 1 ${t+e} ${i} A ${e} ${e} 1 1 1 ${t-e} ${i} M ${t-s} ${i} A ${s} ${s} 0 1 1 ${t+s} ${i} A ${s} ${s} 1 1 1 ${t-s} ${i} Z`},part(t,i,e,s,a,o){const[r,n]=[a/360*2*Math.PI,o/360*2*Math.PI],l=[this.point(t,i,s,r),this.point(t,i,e,r),this.point(t,i,e,n),this.point(t,i,s,n)],d=n-r>Math.PI?"1":"0";return`M ${l[0][0]} ${l[0][1]} L ${l[1][0]} ${l[1][1]} A ${e} ${e} 0 ${d} 1 ${l[2][0]} ${l[2][1]} L ${l[3][0]} ${l[3][1]} A ${s} ${s} 0 ${d} 0 ${l[0][0]} ${l[0][1]} Z`},arc(t){const{x:i=0,y:e=0}=t;let{R:s=0,r:a=0,start:o,end:r}=t;return[s,a]=[Math.max(s,a),Math.min(s,a)],s<=0?"":o!==+o||r!==+r?this.full(i,e,s,a):Math.abs(o-r)<1e-6?"":Math.abs(o-r)%360<1e-6?this.full(i,e,s,a):([o,r]=[o%360,r%360],o>r&&(r+=360),this.part(i,e,s,a,o,r))}}},w={};var Z=u(X,Y,J,!1,tt,null,null,null);function tt(t){for(let i in w)this[i]=w[i]}var et=function(){return Z.exports}();var st=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"markdown-body",domProps:{innerHTML:t._s(t.html)},on:{click:t.onCLick}})},it=[];const at={name:"DialogMarkdown",props:{text:{type:String,default:""}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:t}){return P(t)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(i=>{const e=i.querySelector(".code-block-header__copy"),s=i.querySelector(".code-block-body");e&&s&&e.getAttribute("data-copy")!=="click"&&(e.setAttribute("data-copy","click"),e.addEventListener("click",()=>{var a,o,r;(a=navigator.clipboard)!=null&&a.writeText?navigator.clipboard.writeText((o=s.textContent)!=null?o:""):this.copyContent({text:(r=s.textContent)!=null?r:"",origin:!0})}))})},copyContent(t){const i={origin:!0,...t};let e;i.origin?e=document.createElement("textarea"):e=document.createElement("input"),e.setAttribute("readonly","readonly"),e.value=i.text,document.body.appendChild(e),e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(e)},onCLick(t){this.$emit("click",t)}}},y={};var ot=u(at,st,it,!1,rt,null,null,null);function rt(t){for(let i in y)this[i]=y[i]}var nt=function(){return ot.exports}(),lt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-view",class:t.viewClass,attrs:{"data-id":t.msgData.id}},[t.dialogType==="group"?e("div",{staticClass:"dialog-username"},[e("UserAvatar",{attrs:{userid:t.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):t._e(),e("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:t.headClass},[!t.hideReply&&t.msgData.reply_id&&t.showReplyData(t.msgData.msg.reply_data)?e("div",{staticClass:"dialog-reply no-dark-content",on:{click:t.viewReply}},[e("div",{staticClass:"reply-avatar"},[e("UserAvatar",{attrs:{userid:t.msgData.msg.reply_data.userid,"show-icon":!1,"show-name":!0}})],1),e("div",{staticClass:"reply-desc",domProps:{innerHTML:t._s(t.$A.getMsgSimpleDesc(t.msgData.msg.reply_data,"image-preview"))}})]):t._e(),!t.hideForward&&t.msgData.forward_id&&t.showForwardData(t.msgData.msg.forward_data)?e("div",{staticClass:"dialog-reply no-dark-content",on:{click:function(s){return t.openDialog(t.msgData.msg.forward_data.userid)}}},[e("div",{staticClass:"reply-avatar"},[e("UserAvatar",{attrs:{userid:t.msgData.msg.forward_data.userid,"show-icon":!1,"show-name":!0}})],1)]):t._e(),e("div",{ref:"content",staticClass:"dialog-content",class:t.contentClass},[t.msgData.type==="text"?e("div",{staticClass:"content-text no-dark-content"},[t.msgData.msg.type==="md"?e("DialogMarkdown",{attrs:{text:t.msgData.msg.text},on:{click:t.viewText}}):e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))},on:{click:t.viewText}})],1):t.msgData.type==="file"?e("div",{class:`content-file ${t.msgData.msg.type}`},[e("div",{staticClass:"dialog-file"},[t.msgData.msg.type==="img"?e("img",{staticClass:"file-img",style:t.imageStyle(t.msgData.msg),attrs:{src:t.msgData.msg.thumb},on:{click:t.viewFile}}):e("div",{staticClass:"file-box",on:{click:t.downFile}},[e("img",{staticClass:"file-thumb",attrs:{src:t.msgData.msg.thumb}}),e("div",{staticClass:"file-info"},[e("div",{staticClass:"file-name"},[t._v(t._s(t.msgData.msg.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msgData.msg.size)))])])]),t.msgData.msg.percentage?e("div",{staticClass:"file-percentage"},[e("span",{style:t.fileStyle(t.msgData.msg.percentage)})]):t._e()])]):t.msgData.type==="record"?e("div",{staticClass:"content-record no-dark-content"},[e("div",{staticClass:"dialog-record",class:{playing:t.audioPlaying===t.msgData.msg.path},style:t.recordStyle(t.msgData.msg),on:{click:t.playRecord}},[e("div",{staticClass:"record-time"},[t._v(t._s(t.recordDuration(t.msgData.msg.duration)))]),e("div",{staticClass:"record-icon taskfont"})])]):t.msgData.type==="meeting"?e("div",{staticClass:"content-meeting no-dark-content"},[e("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!t.msgData.msg.end_at}},[e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),t._v(" "+t._s(t.msgData.msg.name)+" ")]),e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),e("UserAvatar",{attrs:{userid:t.msgData.msg.userid,"show-icon":!1,"show-name":!0}})],1),e("li",[e("em",[t._v(t._s(t.$L("\u9891\u9053ID")))]),t._v(" "+t._s(t.msgData.msg.meetingid.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3"))+" ")]),t.msgData.msg.end_at?e("li",{staticClass:"meeting-operation"},[t._v(" "+t._s(t.$L("\u4F1A\u8BAE\u5DF2\u7ED3\u675F"))+" ")]):e("li",{staticClass:"meeting-operation",on:{click:t.openMeeting}},[t._v(" "+t._s(t.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE68B")])])])]):t.msgData.type==="word-chain"?e("div",{staticClass:"content-text content-word-chain no-dark-content"},[e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))}}),e("ul",{class:{expand:t.unfoldWordChainData.indexOf(t.msgData.id)!==-1}},[t._l((t.msgData.msg.list||[]).filter(function(s){return s.type=="case"}),function(s){return e("li",[t._v(" "+t._s(t.$L("\u4F8B"))+" "+t._s(s.text)+" ")])}),t._l((t.msgData.msg.list||[]).filter(function(s){return s.type!="case"&&s.text}),function(s,a){return e("li",[a==2&&t.msgData.msg.list.length>4?e("span",{staticClass:"expand",on:{click:function(o){return t.unfoldWordChain(t.msgData)}}},[t._v(" ..."+t._s(t.$L("\u5C55\u5F00"))+"... ")]):t._e(),e("span",{class:{shrink:a>=2&&t.msgData.msg.list.length>4}},[t._v(" "+t._s(a+1)+". "+t._s(s.text)+" ")])])}),e("li",{staticClass:"participate",on:{click:t.onWordChain}},[t._v(" "+t._s(t.$L("\u53C2\u4E0E\u63A5\u9F99"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE703")])])],2)]):t.msgData.type==="vote"?e("div",{staticClass:"content-text content-word-vote no-dark-content"},[e("div",{staticClass:"vote-msg-head"},[e("i",{staticClass:"taskfont"},[t._v("\uE7FD")]),e("em",[t._v(t._s(t.$L("\u6295\u7968")))]),e("span",[t._v(t._s(t.msgData.msg.multiple==1?t.$L("\u591A\u9009"):t.$L("\u5355\u9009")))]),e("span",[t._v(t._s(t.msgData.msg.anonymous==1?t.$L("\u533F\u540D"):t.$L("\u5B9E\u540D")))])]),e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgData.msg.text,t.userId))}}),(t.msgData.msg.votes||[]).filter(function(s){return s.userid==t.userId}).length==0?[t.msgData.msg.multiple==0?e("RadioGroup",{attrs:{vertical:""},model:{value:t.voteData[t.msgData.msg.uuid],callback:function(s){t.$set(t.voteData,t.msgData.msg.uuid,s)},expression:"voteData[msgData.msg.uuid]"}},t._l(t.msgData.msg.list||[],function(s,a){return e("Radio",{key:a,attrs:{label:s.id}},[t._v(" "+t._s(s.text)+" ")])}),1):e("CheckboxGroup",{model:{value:t.voteData[t.msgData.msg.uuid],callback:function(s){t.$set(t.voteData,t.msgData.msg.uuid,s)},expression:"voteData[msgData.msg.uuid]"}},t._l(t.msgData.msg.list||[],function(s,a){return e("Checkbox",{key:a,attrs:{label:s.id}},[t._v(" "+t._s(s.text)+" ")])}),1),e("div",{staticClass:"btn-row"},[(t.voteData[t.msgData.msg.uuid]||[]).length==0?e("Button",{attrs:{type:"grey",disabled:""}},[t._v(t._s(t.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):e("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:t.msgData.msg._loadIng>0},on:{click:function(s){return t.onVote("vote",t.msgData)}}},[t._v(t._s(t.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[e("div",{staticClass:"vote-result-body"},[e("ul",t._l(t.msgData.msg.list||[],function(s){return e("li",[e("div",{staticClass:"vote-option-title"},[t._v(t._s(s.text))]),e("div",{staticClass:"ticket-num"},[e("span",[t._v(t._s(t.getVoteProgress(t.msgData.msg,s.id).num)+t._s(t.$L("\u7968")))]),e("span",[t._v(t._s(t.getVoteProgress(t.msgData.msg,s.id).progress+"%"))])]),e("Progress",{attrs:{percent:Number(t.getVoteProgress(t.msgData.msg,s.id).progress),"stroke-width":5,"hide-info":""}}),t.msgData.msg.anonymous==0?e("div",{staticClass:"avatar-row"},[t._l((t.msgData.msg.votes||[]).filter(function(a){return a.votes.indexOf(s.id)!=-1}),function(a){return[e("UserAvatar",{attrs:{userid:a.userid,size:18}})]})],2):t._e()],1)}),0)]),t.msgData.msg.state==1&&t.msgData.msg.userid==t.userId?e("div",{staticClass:"btn-row"},[e("Button",{attrs:{type:"warning",loading:t.msgData.msg._loadIng>0},on:{click:function(s){return t.onVote("again",t.msgData)}}},[t._v(t._s(t.$L("\u518D\u6B21\u53D1\u9001")))]),e("Button",{attrs:{type:"warning",loading:t.msgData.msg._loadIng>0},on:{click:function(s){return t.onVote("finish",t.msgData)}}},[t._v(t._s(t.$L("\u7ED3\u675F\u6295\u7968")))])],1):t._e()]],2):t.msgData.type==="loading"?e("div",{staticClass:"content-loading"},[t.msgData.error===!0?e("Icon",{attrs:{type:"ios-alert-outline"}}):e("Loading")],1):e("div",{staticClass:"content-unknown"},[t._v(t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F\u7C7B\u578B")))])]),t.$A.arrayLength(t.msgData.emoji)>0?e("ul",{staticClass:"dialog-emoji"},t._l(t.msgData.emoji,function(s,a){return e("li",{key:a,class:{hasme:s.userids.includes(t.userId)}},[e("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(o){return t.onEmoji(s.symbol)}}},[t._v(t._s(s.symbol))]),e("div",{staticClass:"emoji-users",on:{click:function(o){return t.onShowEmojiUser(s)}}},[e("ul",[t._l(s.userids,function(o,r){return[r0?e("div",{staticClass:"reply",on:{click:t.replyList}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),t._v(" "+t._s(t.msgData.reply_num)+"\u6761\u56DE\u590D ")]):t._e(),t.msgData.tag?e("div",{staticClass:"tag"},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")])]):t._e(),t.msgData.todo?e("div",{staticClass:"todo",on:{click:t.openTodo}},[e("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.todoShow,callback:function(s){t.todoShow=s},expression:"todoShow"}},[e("div",{staticClass:"read-poptip-content"},[e("Scrollbar",{attrs:{"class-name":"read"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoDoneList.length))]),t._v(t._s(t.$L("\u5B8C\u6210")))]),e("ul",t._l(t.todoDoneList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)]),e("Scrollbar",{attrs:{"class-name":"unread"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.todoUndoneList.length))]),t._v(t._s(t.$L("\u5F85\u529E")))]),e("ul",t._l(t.todoUndoneList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)])],1),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.todoLoad>0?e("Loading"):e("i",{staticClass:"taskfont"},[t._v("\uE7B7")])],1):t._e(),t.msgData.modify?e("div",{staticClass:"modify"},[e("i",{staticClass:"taskfont"},[t._v("\uE779")])]):t._e(),t.msgData.error===!0?e("div",{staticClass:"error",on:{click:t.onError}},[e("Icon",{attrs:{type:"ios-alert"}})],1):t.isLoading?e("Loading",{attrs:{delay:300}}):[t.timeShow?e("div",{staticClass:"time",on:{click:function(s){t.timeShow=!1}}},[t._v(t._s(t.msgData.created_at))]):e("div",{staticClass:"time",attrs:{title:t.msgData.created_at},on:{click:function(s){t.timeShow=!0}}},[t._v(t._s(t.$A.formatTime(t.msgData.created_at)))]),t.hidePercentage?t._e():[t.msgData.send>1||t.dialogType==="group"?e("div",{staticClass:"percent",on:{click:t.openReadPercentage}},[e("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.percentageShow,callback:function(s){t.percentageShow=s},expression:"percentageShow"}},[e("div",{staticClass:"read-poptip-content"},[e("Scrollbar",{attrs:{"class-name":"read"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.readList.length))]),t._v(t._s(t.$L("\u5DF2\u8BFB")))]),e("ul",t._l(t.readList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)]),e("Scrollbar",{attrs:{"class-name":"unread"}},[e("div",{staticClass:"read-title"},[e("em",[t._v(t._s(t.unreadList.length))]),t._v(t._s(t.$L("\u672A\u8BFB")))]),e("ul",t._l(t.unreadList,function(s){return e("li",[e("UserAvatar",{attrs:{userid:s.userid,size:26,showName:""}})],1)}),0)])],1),e("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),t.percentageLoad>0?e("Loading"):e("WCircle",{attrs:{percent:t.msgData.percentage,size:14}})],1):t.msgData.percentage===100?e("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):e("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},dt=[];const ct={name:"DialogView",components:{DialogMarkdown:nt,WCircle:et},directives:{longpress:$},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5,voteData:{},unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var t;this.$store.dispatch("audioStop",(t=this.msgData.msg)==null?void 0:t.path)},computed:{...m(["loads","audioPlaying"]),...F(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:t,operateAction:i,operateEnter:e}=this,s=[];return t.type&&s.push(t.type),i&&(s.push("operate-action"),e&&s.push("operate-enter")),s},readList(){return this.percentageList.filter(({read_at:t})=>t)},unreadList(){return this.percentageList.filter(({read_at:t})=>!t)},todoDoneList(){return this.todoList.filter(({done_at:t})=>t)},todoUndoneList(){return this.todoList.filter(({done_at:t})=>!t)},headClass(){const{reply_id:t,type:i,msg:e,emoji:s}=this.msgData,a=[];return t===0&&$A.arrayLength(s)===0&&i==="text"&&(/^]*?>$/.test(e.text)||/^\s*

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

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

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

\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/.test(i.text)&&e.push("an-emoji")),e}},watch:{operateAction(t){this.operateEnter=!1,t&&setTimeout(i=>this.operateEnter=!0,500)},voteData:{handler(t){const i=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const e in t)i[e]=t[e];Object.keys(i).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(i))},deep:!0}},methods:{handleLongpress(t,i){this.$emit("on-longpress",{event:t,el:i,msgData:this.msgData})},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.todoList=t}).catch(()=>{this.todoList=[]}).finally(t=>{setTimeout(()=>{this.todoLoad--,this.todoShow=!0},100)})}},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:t})=>{this.percentageList=t}).catch(()=>{this.percentageList=[]}).finally(t=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},recordStyle(t){const{duration:i}=t;return{width:50+Math.min(180,Math.floor(i/200))+"px"}},recordDuration(t){const i=Math.floor(t/6e4),e=Math.floor(t/1e3)%60;return i>0?`${i}:${e}\u2033`:`${Math.max(1,e)}\u2033`},fileStyle(t){return t?{width:`${t}%`}:{}},imageStyle(t){const{width:i,height:e}=t;if(i&&e){let s=220,a=220,o=i,r=e;return(i>s||e>a)&&(i>e?(o=s,r=e*(s/i)):(o=i*(a/e),r=a)),{width:o+"px",height:r+"px"}}return{}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||v.Store.set("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},openDialog(t){this.$store.dispatch("openDialogUserid",t).then(i=>{this.goForward({name:"manage-messenger"})}).catch(({msg:i})=>{$A.modalError(i)})},showReplyData(t){return $A.isJson(t)?t.userid:!1},showForwardData(t){return $A.isJson(t)?t.show&&t.userid:!1},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(t){this.$emit("on-view-text",t,this.$refs.content)},viewFile(){!this.msgData.created_at||this.$emit("on-view-file",this.msgData)},downFile(){!this.msgData.created_at||this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(t){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:t})},onShowEmojiUser(t){this.$emit("on-show-emoji-user",t)},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},unfoldWordChain(t){if(this.unfoldWordChainData.indexOf(t.id)==-1){const i=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];i.push(t.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(i)),this.unfoldWordChainData.push(t.id)}},onVote(t,i){if(t!="vote"){$A.modalConfirm({content:t=="finish"?"\u786E\u5B9A\u7ED3\u675F\u6295\u7968\uFF1F":"\u518D\u6B21\u53D1\u9001\u6295\u7968\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.vote(t,i)}});return}this.vote(t,i)},vote(t,i){this.$set(i.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:i.dialog_id,uuid:i.msg.uuid,vote:this.voteData[i.msg.uuid]||[],type:t}}).then(({data:e})=>{t=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),e.forEach(s=>{this.$store.dispatch("saveDialogMsg",s)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$set(i.msg,"_loadIng",0)})},getVoteProgress(t,i){const e=t.votes.filter(a=>(a.votes||"").indexOf(i)!=-1).length,s=e?(e/t.votes.length*100).toFixed(2):"0.00";return{num:e,progress:s}}}},C={};var ht=u(ct,lt,dt,!1,ut,null,null,null);function ut(t){for(let i in C)this[i]=C[i]}var pt=function(){return ht.exports}(),mt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{class:t.classArray},[t.isUnreadStart?e("div",{staticClass:"dialog-unread-label"},[e("em"),e("span",[t._v(t._s(t.$L("\u4EE5\u4E0B\u4E3A\u65B0\u6D88\u606F")))]),e("em")]):t._e(),t.source.type==="tag"?e("div",{staticClass:"dialog-tag",on:{click:t.onViewTag}},[e("div",{staticClass:"tag-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" ')]):t.source.type==="top"?e("div",{staticClass:"dialog-top",on:{click:t.onViewTag}},[e("div",{staticClass:"tag-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u4E86"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" ')]):t.source.type==="todo"?e("div",{staticClass:"dialog-todo",on:{click:t.onViewTodo}},[e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:t.source.userid,"show-name":!0,"show-icon":!1}})],1),t._v(" "+t._s(t.$L(t.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+t._s(t.$A.getMsgSimpleDesc(t.source.msg.data))+'" '),t.formatTodoUser(t.source.msg.data).length>0?e("div",{staticClass:"todo-users"},[e("span",[t._v(t._s(t.$L("\u7ED9")))]),t._l(t.formatTodoUser(t.source.msg.data),function(s,a){return[a<3?e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:s,"show-name":!0,"show-icon":!1}})],1):a==3?e("div",{staticClass:"todo-user"},[t._v("+"+t._s(t.formatTodoUser(t.source.msg.data).length-3))]):t._e()]})],2):t._e()]):t.source.type==="notice"?e("div",{staticClass:"dialog-notice"},[t._v(" "+t._s(t.source.msg.notice)+" ")]):[e("div",{staticClass:"dialog-avatar"},[e("UserAvatar",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.onMention,delay:300},expression:"{callback: onMention, delay: 300}"}],attrs:{userid:t.source.userid,size:30},on:{"open-dialog":t.onOpenDialog}})],1),e("DialogView",{attrs:{"msg-data":t.source,"dialog-type":t.dialogData.type,"hide-percentage":t.hidePercentage,"hide-reply":t.hideReply,"hide-forward":t.hideForward,"operate-visible":t.operateVisible,"operate-action":t.operateVisible&&t.source.id===t.operateItem.id,"is-right-msg":t.isRightMsg},on:{"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser}})]],2)},gt=[];const ft={name:"DialogItem",components:{DialogView:pt},directives:{longpress:$},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},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1}},computed:{...m(["userId"]),isRightMsg(){return this.source.userid==this.$store.state.userId},isReply(){return this.simpleView||this.msgId===this.source.id},isNoRead(){return this.isRightMsg||this.source.read_at},isUnreadStart(){return this.unreadOne===this.source.id},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},hideForward(){return this.simpleView||this.msgId>0},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,"unread-start":this.isUnreadStart,self:this.isRightMsg}}},watch:{readEnabled(){this.msgRead()},windowActive(){this.msgRead()},scrollIng(){this.msgRead()}},methods:{msgRead(){var t;this.isNoRead||!this.readEnabled||!this.windowActive||!((t=this.$el)!=null&&t.parentNode.classList.contains("item-enter"))||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(t){if($A.isJson(t)){const{userids:i}=t;if(i)return i.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onOpenDialog(t){this.dialogData.type=="group"&&this.$store.dispatch("openDialogUserid",t).then(i=>{this.goForward({name:"manage-messenger"})}).catch(({msg:i})=>{$A.modalError(i)})},onMention(){this.dispatch("on-mention",this.source)},onLongpress(t){this.dispatch("on-longpress",t)},onViewReply(t){this.dispatch("on-view-reply",t)},onViewText(t,i){this.dispatch("on-view-text",t,i)},onViewFile(t){this.dispatch("on-view-file",t)},onDownFile(t){this.dispatch("on-down-file",t)},onReplyList(t){this.dispatch("on-reply-list",t)},onError(t){this.dispatch("on-error",t)},onEmoji(t){this.dispatch("on-emoji",t)},onShowEmojiUser(t){this.dispatch("on-show-emoji-user",t)},dispatch(t,...i){if(this.isReply){this.$emit(t,...i);return}let e=this.$parent,s=e.$options.name;for(;e&&(!s||s!=="virtual-list");)e=e.$parent,e&&(s=e.$options.name);e&&e.$emit(t,...i)}}},D={};var _t=u(ft,mt,gt,!1,vt,null,null,null);function vt(t){for(let i in D)this[i]=D[i]}var k=function(){return _t.exports}(),$t=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("Upload",{ref:"upload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,data:t.params,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"before-upload":t.handleBeforeUpload,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize}})},wt=[];const yt={name:"DialogUpload",props:{dialogId:{type:Number,default:0},maxSize:{type:Number,default:1024e3}},data(){return{fileMsgCaches:{},uploadFormat:[],actionUrl:$A.apiUrl("dialog/msg/sendfile")}},computed:{...m(["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:t})=>t==this.dialogId)||{}}},methods:{fileMsgName(t){return`${t.name}::${t.size}`},fileMsgData(t,i=void 0){const e=this.fileMsgName(t);if($A.isJson(i)){this.fileMsgCaches[e]=Object.assign(this.fileMsgCaches[e]||{},i);return}i={type:"file",thumb:null,width:-1,height:-1,name:t.name,size:t.size,ext:t.name.split(".").pop()};let{ext:s}=i;s==="docx"?s="doc":s==="xlsx"?s="xls":s==="pptx"&&(s="ppt"),["ai","avi","bmp","cdr","doc","eps","gif","mov","mp3","mp4","pdf","ppt","pr","psd","rar","svg","tif","txt","xls","zip"].includes(s)?i.thumb=$A.mainUrl(`images/ext/${s}.png`):i.thumb=$A.mainUrl("images/ext/file.png"),this.fileMsgCaches[e]=i},handleBeforeUpload(t){return new Promise(i=>{if(this.fileMsgData(t),/\.(jpe?g|webp|png|gif)$/i.test(t.name)){this.$store.dispatch("showSpinner",600),this.imageFileToObject(t).then(e=>{this.fileMsgData(t,e),i()}).finally(()=>{this.$store.dispatch("hiddenSpinner")});return}i()})},handleProgress(t,i){if(i.tempId===void 0){this.$parent.$options.name==="DialogWrapper"?i.tempId=this.$parent.getTempId():i.tempId=$A.randNum(1e9,9999999999),i.msg={};const e=this.fileMsgName(i);this.fileMsgCaches[e]&&(i.msg=this.fileMsgCaches[e],delete this.fileMsgCaches[e])}this.$emit("on-progress",i)},handleSuccess(t,i){t.ret===1?(i.data=t.data,this.$emit("on-success",i),t.data.task_id&&this.$store.dispatch("getTaskFiles",t.data.task_id)):($A.modalWarning({title:"\u53D1\u9001\u5931\u8D25",content:"\u6587\u4EF6 "+i.name+" \u53D1\u9001\u5931\u8D25\uFF0C"+t.msg}),this.$emit("on-error",i),this.$refs.upload.fileList.pop())},handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleClick(){this.$refs.upload.handleClick()},upload(t){this.$refs.upload.upload(t)},cancel(t){return this.$refs.upload.cancel(t)},imageFileToObject(t){return new Promise((i,e)=>{const s=new FileReader;s.onload=({target:a})=>{const o=new Image;o.onload=()=>{const r=document.createElement("canvas"),n=r.getContext("2d"),l=o.width,d=o.height,c=500,h=500;let p=l,f=d;(l>c||d>h)&&(l/d>c/h?(p=c,f=Math.round(c*(d/l))):(f=h,p=Math.round(h*(l/d)))),r.width=p,r.height=f,n.clearRect(0,0,p,f),n.drawImage(o,0,0,p,f),i({type:"img",thumb:r.toDataURL("image/webp",.92),width:r.width,height:r.height})},o.onerror=()=>{e()},o.src=a.result},s.onerror=()=>{e()},s.readAsDataURL(t)})}}},b={};var Ct=u(yt,$t,wt,!1,Dt,null,null,null);function Dt(t){for(let i in b)this[i]=b[i]}var kt=function(){return Ct.exports}(),bt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-group-info"},[e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u540D")))]),e("div",{staticClass:"group-info-value"},[e("QuickEdit",{attrs:{value:t.dialogData.name,disabled:t.dialogData.owner_id!=t.userId},on:{"on-update":t.updateName}},[t._v(t._s(t.dialogData.name))])],1),e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u7C7B\u578B")))]),e("div",{staticClass:"group-info-value"},[t._v(t._s(t.$L(t.groupType)))]),e("div",{staticClass:"group-info-search"},[e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u6210\u5458"),clearable:""},model:{value:t.searchKey,callback:function(s){t.searchKey=s},expression:"searchKey"}})],1),e("div",{staticClass:"group-info-user"},[e("ul",[t._l(t.userList,function(s,a){return e("li",{key:a,on:{click:function(o){return t.openUser(s.userid)}}},[e("UserAvatar",{attrs:{userid:s.userid,size:32,showName:""}}),s.userid===t.dialogData.owner_id?e("div",{staticClass:"user-tag"},[t._v(t._s(t.$L("\u7FA4\u4E3B")))]):t.operableExit(s)?e("div",{staticClass:"user-exit",on:{click:function(o){return o.stopPropagation(),t.onExit(s)}}},[e("Icon",{attrs:{type:"md-exit"}})],1):t._e()],1)}),t.userList.length===0?e("li",{staticClass:"no"},[t.loadIng>0?e("Loading"):e("span",[t._v(t._s(t.$L("\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")))])],1):t._e()],2)]),t.operableAdd?e("div",{staticClass:"group-info-button"},[t.dialogData.owner_id==t.userId||t.dialogData.owner_id==0?e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.openAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6210\u5458")))]):t._e()],1):t._e(),e("Modal",{attrs:{title:t.$L("\u6DFB\u52A0\u7FA4\u6210\u5458"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u65B0\u589E\u6210\u5458")}},[e("UserSelect",{attrs:{disabledChoice:t.addData.disabledChoice,"multiple-max":100,"show-bot":"",title:t.$L("\u9009\u62E9\u6210\u5458")},model:{value:t.addData.userids,callback:function(s){t.$set(t.addData,"userids",s)},expression:"addData.userids"}}),t.dialogData.group_type==="department"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u90E8\u95E8")))]):t.dialogData.group_type==="project"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u9879\u76EE")))]):t.dialogData.group_type==="task"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):t._e()],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.addLoad>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u786E\u5B9A\u6DFB\u52A0")))])],1)],1)],1)},Lt=[];const St={name:"DialogGroupInfo",components:{UserSelect:R},props:{dialogId:{type:Number,default:0}},data(){return{searchKey:"",loadIng:0,dialogUser:[],addShow:!1,addData:{},addLoad:0,openIng:!1}},computed:{...m(["cacheDialogs","cacheUserBasic","userIsAdmin"]),dialogData(){return this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}},groupType(){const{group_type:t}=this.dialogData;return t==="department"?"\u90E8\u95E8\u7FA4\u7EC4":t==="project"?"\u9879\u76EE\u7FA4\u7EC4":t==="task"?"\u4EFB\u52A1\u7FA4\u7EC4":t==="user"?"\u4E2A\u4EBA\u7FA4\u7EC4":t==="all"?"\u5168\u5458\u7FA4\u7EC4":t==="okr"?"OKR\u7FA4\u7EC4":"\u672A\u77E5"},userList(){const{dialogUser:t,searchKey:i,cacheUserBasic:e,dialogData:s}=this;return t.map(o=>{const r=e.find(n=>n.userid==o.userid);return r&&(o.nickname=r.nickname,o.email=r.email),o}).filter(o=>!(i&&o.nickname&&!$A.strExists(o.nickname,i)&&!$A.strExists(o.email,i))).sort((o,r)=>o.userid===s.owner_id||r.userid===s.owner_id?(o.userid===s.owner_id?0:1)-(r.userid===s.owner_id?0:1):$A.Date(o.created_at)-$A.Date(r.created_at))}},watch:{dialogId:{handler(){this.getDialogUser()},immediate:!0}},methods:{updateName(t,i){if(!t){i();return}this.$store.dispatch("call",{url:"dialog/group/edit",data:{dialog_id:this.dialogId,chat_name:t}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),i()}).catch(({msg:e})=>{$A.modalError(e),i()})},getDialogUser(){this.dialogId<=0||(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId}}).then(({data:t})=>{this.dialogUser=t,this.$store.dispatch("saveDialog",{id:this.dialogId,people:t.length})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))},operableAdd(){const{owner_id:t,group_type:i}=this.dialogData;return i=="all"?this.userIsAdmin:[0,this.userId].includes(t)},openAdd(){this.addData={dialog_id:this.dialogId,userids:[],disabledChoice:this.dialogUser.map(t=>t.userid)},this.addShow=!0},onAdd(){this.addLoad++,this.$store.dispatch("call",{url:"dialog/group/adduser",data:this.addData}).then(({msg:t})=>{$A.messageSuccess(t),this.addShow=!1,this.addData={},this.getDialogUser()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.addLoad--})},operableExit(t){const{owner_id:i,group_type:e}=this.dialogData;return e=="all"?this.userIsAdmin:i==this.userId||t.inviter==this.userId},onExit(t){let i="\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",e=[];$A.isJson(t)&&t.userid!=this.userId&&(i=`\u4F60\u786E\u5B9A\u8981\u5C06\u3010${t.nickname}\u3011\u79FB\u51FA\u7FA4\u7EC4\u5417\uFF1F`,e=[t.userid]),$A.modalConfirm({content:i,loading:!0,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId,userids:e}}).then(({msg:o})=>{s(o),e.length>0?this.getDialogUser():(this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"}))}).catch(({msg:o})=>{a(o)})})})},openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(i=>{this.$emit("on-close")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.openIng=!1}))}}},L={};var It=u(St,bt,Lt,!1,xt,null,null,null);function xt(t){for(let i in L)this[i]=L[i]}var Mt=function(){return It.exports}(),Tt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-respond"},[e("div",{staticClass:"respond-title"},[e("em",{staticClass:"no-dark-content"},[t._v(t._s(t.respondData.symbol))]),t._v(t._s(t.$L("\u56DE\u5E94\u8BE6\u60C5"))+" ("+t._s(t.respondData.userids.length)+")")]),e("div",{staticClass:"respond-user"},[e("ul",t._l(t.respondData.userids,function(s,a){return e("li",{key:a,on:{click:function(o){return t.openUser(s)}}},[e("UserAvatar",{attrs:{userid:s,size:32,showName:""}})],1)}),0)])])},At=[];const Et={name:"DialogRespond",props:{respondData:{type:Object,default:()=>({})}},data(){return{openIng:!1}},methods:{openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(i=>{this.$emit("on-close")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.openIng=!1}))}}},S={};var jt=u(Et,Tt,At,!1,Ft,null,null,null);function Ft(t){for(let i in S)this[i]=S[i]}var Rt=function(){return jt.exports}(),Vt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"chat-emoji-wrapper"},[e("div",{staticClass:"chat-emoji-box"},[t.type==="emosearch"?e("div",{staticClass:"chat-emoji-emosearch"},[e("Input",{attrs:{clearable:"",placeholder:t.$L("\u641C\u7D22\u8868\u60C5")},model:{value:t.emosearchKey,callback:function(s){t.emosearchKey=s},expression:"emosearchKey"}},[e("Icon",{class:{"icon-loading":t.emosearchLoad},attrs:{slot:"prefix",type:t.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):t.type==="emoji"?e("div",{staticClass:"chat-emoji-nav"},t._l(t.emojiNavList,function(s){var a;return e("div",{key:s.type,class:(a={},a[`i-${s.name}`]=!0,a.active=s.type===t.emojiNavActive,a),domProps:{innerHTML:t._s(s.content)},on:{click:function(o){t.emojiNavActive=s.type}}})}),0):t._e(),e("Scrollbar",[e("ul",{class:[t.type,"no-dark-content"]},t._l(t.list,function(s){return e("li",{on:{click:function(a){return t.onSelect(a,s)}}},[s.type==="emoticon"?e("img",{attrs:{src:s.src,title:s.name,alt:s.name}}):e("span",{attrs:{title:s.name},domProps:{innerHTML:t._s(s.html)}})])}),0)])],1),t.onlyEmoji?t._e():e("ul",{ref:"chatEmojiMenuRef",staticClass:"chat-emoji-menu",style:t.chatEmojiMenuStyle,on:{scroll:t.onHandleScroll}},[t.showEmojiMenuScrollLeftBtn?e("li",{staticClass:"left-btn",on:{click:function(s){return t.onEmojiMenuScroll("left")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]):t._e(),e("li",{class:{active:t.type==="emosearch"},on:{click:function(s){t.type="emosearch"}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F8")])]),e("li",{class:{active:t.type==="emoji"},on:{click:function(s){t.type="emoji"}}},[e("span",{staticClass:"no-dark-content"},[t._v("\u{1F600}")])]),t._l(t.emoticonData,function(s){return e("li",{class:{active:t.type==="emoticon"&&t.emoticonPath==s.path},on:{click:function(a){return t.onEmoticon(s.path)}}},[e("img",{attrs:{title:s.name,alt:s.name,src:s.src}})])}),t.showEmojiMenuScrollRightBtn?e("li",{staticClass:"right-btn",on:{click:function(s){return t.onEmojiMenuScroll("right")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e()],2)])},Ot=[];const Pt={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.$store.state.windowPortrait||this.onMonitorWheel()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(t){this.emosearchKey=t},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(t=>t.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const t=this.emoticonData.find(({path:i})=>i===this.emoticonPath);if(t)return t.list}return[]},chatEmojiMenuStyle(){return{paddingLeft:this.showEmojiMenuScrollLeftBtn?"34px":0,paddingRight:this.showEmojiMenuScrollRightBtn?"34px":0}},showEmojiMenuScrollLeftBtn(){return this.emojiMenuScrollLeft>34},showEmojiMenuScrollRightBtn(){var e;const t=this.$refs.chatEmojiMenuRef,i=((e=t==null?void 0:t.querySelector("li"))==null?void 0:e.offsetWidth)||48;return this.emojiMenuScrollLeft{const i=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(e,s){return e.emoji_order-s.emoji_order}).map(e=>({type:"emoji",name:e.name,category:e.category,html:e.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(e=>Object.assign(e,{src:`${i}/${e.path}/${e.icon}`,list:e.list.map(s=>Object.assign(s,{type:"emoticon",asset:`images/emoticon/${e.path}/${s.path}`,src:`${i}/${e.path}/${s.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(t=>{N("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(i=>{if(this.emosearchList=[],i.status===0){const e=i.data.items;e.length>0&&(this.emosearchList=e.map(s=>({type:"emoticon",asset:"emosearch",name:s.title,src:s.thumbUrl,height:s.thumbHeight,width:s.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(i=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(i=>{this.emosearchLoad=!1})},300))},onEmoticon(t){this.type="emoticon",this.emoticonPath=t},onSelect(t,i){i.type==="emoji"?this.$emit("on-select",{type:"emoji",text:t.target.innerText}):this.$emit("on-select",i)},onMonitorWheel(){const t=this.$refs.chatEmojiMenuRef;t==null||t.addEventListener("wheel",i=>{i.preventDefault(),t.scrollLeft=t.scrollLeft+i.deltaY})},onEmojiMenuScroll(t){const i=this.$refs.chatEmojiMenuRef,e=i.offsetWidth-68,s=t=="right"?i.scrollLeft+e:i.scrollLeft-e;i.scrollTo({left:s,behavior:"smooth"})},onHandleScroll(t){this.emojiMenuScrollLeft=t.target.scrollLeft}}},I={};var qt=u(Pt,Vt,Ot,!1,Bt,null,null,null);function Bt(t){for(let i in I)this[i]=I[i]}var V=function(){return qt.exports}();const x="ontouchend"in document;var Ut={bind(t,i){let e=!1;t.__touchEvent__={start:s=>{s.preventDefault(),e=!0,i.value("down",s)},move:s=>{e&&i.value("move",s)},end:s=>{e&&(e=!1,i.value("up"))}},x?(t.addEventListener("touchstart",t.__touchEvent__.start),t.addEventListener("touchmove",t.__touchEvent__.move),t.addEventListener("touchend",t.__touchEvent__.end)):(t.addEventListener("mousedown",t.__touchEvent__.start,{passive:!1}),document.addEventListener("mousemove",t.__touchEvent__.move),document.addEventListener("mouseup",t.__touchEvent__.end))},update(){},unbind(t){x?(t.removeEventListener("touchstart",t.__touchEvent__.start),t.removeEventListener("touchmove",t.__touchEvent__.move),t.removeEventListener("touchend",t.__touchEvent__.end)):(t.removeEventListener("mousedown",t.__touchEvent__.start),document.removeEventListener("mousemove",t.__touchEvent__.move),document.removeEventListener("mouseup",t.__touchEvent__.end)),delete t.__touchEvent__}};const M="ontouchend"in document;var O={bind(t,i){if(M){const e={move:!1,time:0,x:0,y:0};t.__touchEvent__={start:s=>{s.preventDefault(),e.move=!1,e.time=new Date().getTime(),e.x=s.touches?s.touches[0].clientX:s.clientX,e.y=s.touches?s.touches[0].clientY:s.clientY},move:s=>{if(e.time>0){const a=s.touches?s.touches[0].clientX:s.clientX,o=s.touches?s.touches[0].clientY:s.clientY;(Math.abs(a-e.x)>5||Math.abs(o-e.y)>5)&&(e.move=!0)}},end:s=>{e.time>0&&(!e.move&&new Date().getTime()-e.time<300&&i.value(),e.time=0)}},t.addEventListener("touchstart",t.__touchEvent__.start),t.addEventListener("touchmove",t.__touchEvent__.move),t.addEventListener("touchend",t.__touchEvent__.end)}else t.__clickEvent__=e=>{e.preventDefault(),i.value()},t.addEventListener("click",t.__clickEvent__)},update(){},unbind(t){M?(t.removeEventListener("touchstart",t.__touchEvent__.start),t.removeEventListener("touchmove",t.__touchEvent__.move),t.removeEventListener("touchend",t.__touchEvent__.end),delete t.__touchEvent__):(t.removeEventListener("click",t.__clickEvent__),delete t.__clickEvent__)}};function g(t){return t===void 0&&(t=document.body),t===!0?document.body:t instanceof window.Node?t:document.querySelector(t)}const Nt={inserted(t,{value:i},e){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className?t.className+" v-transfer-dom":"v-transfer-dom";const s=t.parentNode;if(!s)return;const a=document.createComment("");let o=!1;i!==!1&&(s.replaceChild(a,t),g(i).appendChild(t),o=!0),t.__transferDomData||(t.__transferDomData={parentNode:s,home:a,target:g(i),hasMovedOut:o})},componentUpdated(t,{value:i}){if(t.dataset&&t.dataset.transfer!=="true")return!1;const e=t.__transferDomData;if(!e)return;const s=e.parentNode,a=e.home,o=e.hasMovedOut;!o&&i?(s.replaceChild(a,t),g(i).appendChild(t),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!0,target:g(i)})):o&&i===!1?(s.replaceChild(t,a),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!1,target:g(i)})):i&&g(i).appendChild(t)},unbind(t){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className.replace("v-transfer-dom",""),t.__transferDomData&&(t.__transferDomData.hasMovedOut===!0&&t.__transferDomData.parentNode&&t.__transferDomData.parentNode.appendChild(t),t.__transferDomData=null)}};var zt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:t.boxClass},[e("div",{staticClass:"chat-input-quick-emoji"},[e("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:t.emojiQuickShow,callback:function(s){t.emojiQuickShow=s},expression:"emojiQuickShow"}},[e("div",{attrs:{slot:"reference"},slot:"reference"}),e("Scrollbar",{ref:"emojiWrapper",attrs:{tag:"ul","enable-x":!0,"enable-y":!1,"touch-content-blur":!1,"class-name":"chat-quick-emoji-wrapper scrollbar-hidden"}},t._l(t.emojiQuickItems,function(s){return e("li",{on:{click:function(a){return t.onEmojiQuick(s)}}},[e("img",{attrs:{title:s.name,alt:s.name,src:s.src}})])}),0)],1)],1),e("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper",on:{click:function(s){return s.stopPropagation(),t.focus.apply(null,arguments)}}},[t.quoteData?e("div",{staticClass:"chat-quote"},[t.quoteUpdate?e("div",{staticClass:"quote-label"},[t._v(t._s(t.$L("\u7F16\u8F91\u6D88\u606F")))]):e("UserAvatar",{attrs:{userid:t.quoteData.userid,userResult:t.onQuoteUserResult,"show-icon":!1,"show-name":!0}}),e("div",{staticClass:"quote-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(t.quoteData)))]),e("i",{directives:[{name:"touchclick",rawName:"v-touchclick",value:t.cancelQuote,expression:"cancelQuote"}],staticClass:"taskfont"},[t._v("\uE6E5")])],1):t._e(),e("div",{ref:"editor",staticClass:"no-dark-content",on:{click:function(s){return s.stopPropagation(),t.onClickEditor.apply(null,arguments)},paste:t.handlePaste}}),e("div",{staticClass:"chat-space"},[e("input",{staticClass:"space-input",on:{focus:t.onSpaceInputFocus}})]),e("ul",{staticClass:"chat-toolbar",on:{click:function(s){s.stopPropagation()}}},[e("li",[t.emojiBottom?e("ETooltip",{ref:"emojiTip",attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")}},[e("i",{staticClass:"taskfont",on:{click:function(s){t.showEmoji=!t.showEmoji}}},[t._v("\uE7AD")])]):e("EPopover",{ref:"emoji",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:t.showEmoji,callback:function(s){t.showEmoji=s},expression:"showEmoji"}},[e("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",content:t.$L("\u8868\u60C5")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE7AD")])]),t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e()],1)],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u9009\u62E9\u6210\u5458")}},[e("i",{staticClass:"taskfont",on:{click:function(s){return t.onToolbar("user")}}},[t._v("\uE78F")])])],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u9009\u62E9\u4EFB\u52A1")}},[e("i",{staticClass:"taskfont",on:{click:function(s){return t.onToolbar("task")}}},[t._v("\uE7D6")])])],1),e("li",[e("EPopover",{ref:"more",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMore,callback:function(s){t.showMore=s},expression:"showMore"}},[e("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showMore,placement:"top",content:t.$L("\u5C55\u5F00")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])]),t.recordReady?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("meeting")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C1")]),t._v(" "+t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ")]):t._e(),t.canCall?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("call")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BA")]),t._v(" "+t._s(t.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("image")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BC")]),t._v(" "+t._s(t.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C0")]),t._v(" "+t._s(t.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),t.canAnon?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("anon")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE690")]),t._v(" "+t._s(t.$L("\u533F\u540D\u6D88\u606F"))+" ")]):t._e(),t.dialogData.type=="group"?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("word-chain")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE80A")]),t._v(" "+t._s(t.$L("\u53D1\u8D77\u63A5\u9F99"))+" ")]):t._e(),t.dialogData.type=="group"?e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("vote")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7FD")]),t._v(" "+t._s(t.$L("\u53D1\u8D77\u6295\u7968"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onToolbar("full")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6A7")]),t._v(" "+t._s(t.$L("\u5168\u5C4F\u8F93\u5165"))+" ")])],1)],1),e("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:t.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:t.onShowMenu,delay:300},expression:"{callback: onShowMenu, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:t.sendClass},[e("EPopover",{ref:"menu",attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMenu,callback:function(s){t.showMenu=s},expression:"showMenu"}},[e("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:t.$isEEUiApp||t.windowTouch||t.showMenu,content:t.$L(t.sendContent)},slot:"reference"},[t.loading?e("div",[e("div",{staticClass:"chat-load"},[e("Loading")],1)]):e("div",[e("transition",{attrs:{name:"mobile-send"}},[t.sendClass==="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE609")]):t._e()]),e("transition",{attrs:{name:"mobile-send"}},[t.sendClass!=="recorder"?e("i",{staticClass:"taskfont"},[t._v("\uE606")]):t._e()])],1)]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onSend("silence")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7D7")]),t._v(" "+t._s(t.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onSend("md")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE647")]),t._v(" "+t._s(t.$L("MD \u683C\u5F0F\u53D1\u9001"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(s){return t.onSend("normal")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE71B")]),t._v(" "+t._s(t.$L("\u666E\u901A\u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1)]),e("div",{staticClass:"chat-record"},[e("div",{ref:"recwave"})]),e("div",{staticClass:"chat-cover",on:{click:function(s){return s.stopPropagation(),t.onClickCover.apply(null,arguments)}}})]),t.emojiBottom&&t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e(),e("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(t.recordState)?e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:t.touchLimitY},style:t.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:t.stopRecord}},[t.recordDuration>0?e("div",{staticClass:"record-duration"},[t._v(t._s(t.recordFormatDuration))]):e("div",{staticClass:"record-loading"},[e("Loading",{attrs:{type:"pure"}})],1),e("div",{staticClass:"record-cancel",on:{click:function(s){return s.stopPropagation(),t.stopRecord(!0)}}},[t._v(t._s(t.$L(t.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):t._e()]),e("Modal",{attrs:{"mask-closable":!1,beforeClose:t.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:t.fullInput,callback:function(s){t.fullInput=s},expression:"fullInput"}},[e("div",{staticClass:"chat-input-box"},[e("div",{staticClass:"chat-input-wrapper"},[e("div",{ref:"editorFull",staticClass:"no-dark-content"})])]),e("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[t._v("\uE6AB")])])],1)},Wt=[];const Gt={name:"ChatInput",components:{ChatEmoji:V},directives:{touchmouse:Ut,touchclick:O,TransferDom:Nt,clickoutside:q,longpress:$},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote",{list:"ordered"},{list:"bullet"},{list:"check"}]},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:[],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,textTimer:null,fileTimer:null,moreTimer:null,selectTimer:null,selectRange:null,fullInput:!1,fullQuill:null}},mounted(){this.init(),this.recordInter=setInterval(t=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(t,i)=>{t==="recordAudio"&&i===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var t;this.quill&&((t=this.quill.getModule("mention"))==null||t.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...m(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs","cacheKeyboard"]),isEnterSend({cacheKeyboard:t}){return this.$isEEUiApp?t.send_button_app==="enter":t.send_button_desktop==="enter"},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},recordTransferStyle(){const{windowScrollY:t}=this;return t>0?{marginTop:t/2+"px"}:null},boxClass(){const t=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?t.push("record-progress"):t.push("record-ready")),this.simpleMode&&t.push("simple-mode"),this.showMenu&&t.push("show-menu"),this.showMore&&t.push("show-more"),this.showEmoji&&t.push("show-emoji"),this.mentionMode&&t.push(this.mentionMode),t},sendClass(){return this.filterInvalidLine(this.value)?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:t}=this.$refs;return t&&t.$refs.popper&&(t.$refs.popper.style.visibility="hidden",t.showPopper=!1,setTimeout(i=>{t.$refs.popper&&(t.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:t}=this;let i=Math.floor(t/6e4),e=Math.floor(t/1e3)%60,s=("00"+t%1e3).substr(-2);return i<10&&(i=`0${i}`),e<10&&(e=`0${e}`),`${i}:${e}\u2033${s}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:t}=this.dialogData;return t?this.dialogMsgs.find(i=>i.id===t):null}},watch:{value(t){this.quill&&(t&&t!==this._content?(this._content=t,this.setContent(t)):t||this.quill.setText("")),this.simpleMode||this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:this.filterInvalidLine(t)})},disabled(t){var i;(i=this.quill)==null||i.enable(!t)},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(t){t&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(t){t&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(t){if(this.emojiBottom&&(t?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),t){let i=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(i&&i.indexOf(" ")===-1&&i.length>=1&&i.length<=8?this.emojiQuickKey=i:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const e=this.quill.selection.savedRange;this.rangeIndex=e?e.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex)},emojiQuickShow(t){t&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(t){this.scrollTimer&&clearInterval(this.scrollTimer),t?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var i;(i=this.quill)!=null&&i.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},200))):this.$emit("on-blur")},recordState(t){t==="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",t)},fullInput(t){var i;(i=this.quill)==null||i.enable(!t)}},methods:{init(){this._options=Object.assign({theme:"bubble",formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar:this.$isEEUiApp||this.windowTouch?!1:this.toolbar,keyboard:this.simpleMode?{}:{bindings:{"short enter":{key:"Enter",shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:"Enter",shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:"Escape",shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:this.quillMention()}},this.options),this.quill=new _(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",t=>{if(t)this.selectRange=t;else if(this.selectRange&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(i=>{this.quill.setSelection(this.selectRange.index,this.selectRange.length)},100);return}this.isFocus=!!t}),this.quill.on("text-change",t=>{this.textTimer?clearTimeout(this.textTimer):this.changeLoad++,this.textTimer=setTimeout(i=>{this.textTimer=null,this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let e=this.$refs.editor.firstChild.innerHTML;this.updateEmojiQuick(e),this._content=e,this.$emit("input",this._content),this.$nextTick(s=>{const a=this.quill.getSelection();if(a){const o=this.quill.getText(a.index);/^\n\n$/.test(o)&&this.quill.deleteText(a.index,1)}})},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,i)=>(this.pasteClean&&(i.ops=i.ops.map(e=>{const s={insert:e.insert};try{typeof s.insert.mention=="object"&&t.innerHTML&&(s.insert=t.innerHTML.replace(/<[^>]+>/g,""))}catch{}return e.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{e.attributes[a]&&(typeof s.attributes=="undefined"&&(s.attributes={}),s.attributes[a]=e.attributes[a])}),s})),i)),this.$nextTick(t=>{this.quill.root.addEventListener("keydown",i=>{if(i.key==="\r\r"&&i.keyCode===229){const{index:e}=this.quill.getSelection(!0);this.quill.insertText(e,`\r +`),this.keyTimer&&clearTimeout(this.keyTimer),this.keyTimer=setTimeout(s=>{this.$refs.editor.firstChild.childNodes.forEach(a=>{/^\r+/.test(a.innerHTML)&&(a.innerHTML=a.innerHTML.replace(/^\r+/,"")||"
")})},200)}}),this.$isEEUiApp&&this.cacheKeyboard.send_button_app==="enter"&&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(t=>{typeof window.Recorder=="function"&&(this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,audioTrackSet:null,disableEnvInFix:!1,onProcess:(i,e,s,a,o,r)=>{var n;(n=this.recordWave)==null||n.input(i[i.length-1],e,a),this.recordDuration=s,s>=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:t=>{if(t.disabled===!0)return`

${t.value}
`;if(t.id===0)return`
@
${t.value}
${t.tip}
`;if(t.avatar){const i=t.bot?'
':"";return`
${i}
${t.value}
`}return t.tip?`
${t.value}
${t.tip}
`:`
${t.value}
`},renderLoading:()=>"Loading...",source:(t,i,e)=>{const s=e=="@"?"user-mention":e=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let r=0;r{const n=[];r.some(l=>{let d=l.list;t&&(d=d.filter(({value:c})=>$A.strExists(c,t))),d.length>0&&(l.label&&n.push(...l.label),n.push(...d))}),$A.jsonStringify(n.map(({id:l})=>l))!==o&&(o=$A.jsonStringify(n.map(({id:l})=>l)),i(n,t))})}}},updateEmojiQuick(t){if(!this.isFocus||!t){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(i=>{if(this.emojiTimer=null,/]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=8&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];const e=$A.mainUrl("images/emoticon");if(window.emoticonData.some(s=>{let a=0;if(s.list.some(o=>{const r=[o.name];if(o.key&&r.push(...`${o.key}`.split(" ")),r.includes(t)&&(this.emojiQuickItems.push(Object.assign(o,{type:"emoticon",asset:`images/emoticon/${s.path}/${o.path}`,name:o.name,src:`${e}/${s.path}/${o.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(s=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},getText(){return this.quill?`${this.quill.getText()}`.replace(/^\s+|\s+$/g,""):""},setText(t){this.quill&&this.quill.setText(t)},setContent(t){this.quill&&this.quill.setContents(this.quill.clipboard.convert({html:t}))},setPasteMode(t){this.pasteClean=t},loadInputDraft(){const{extra_draft_content:t}=this.dialogData;if(this.simpleMode||!t){this.$emit("input","");return}this.pasteClean=!1,this.$emit("input",t),this.$nextTick(i=>this.pasteClean=!0)},onClickEditor(){this.clearSearchKey(),this.updateEmojiQuick(this.value)},clearSearchKey(){this.$parent.$options.name==="DialogWrapper"&&(this.$store.state.messengerSearchKey.dialog!=""||this.$store.state.messengerSearchKey.contacts!="")&&setTimeout(t=>{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(t,i){if(!this.loading)switch(t){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=i.type==="touchstart"?i.touches[0]:i,(i.button===void 0||i.button===0)&&this.startRecord())return;i.button===2&&this.onShowMenu();break;case"move":const e=i.type==="touchmove"?i.touches[0]:i;this.touchLimitX=(this.touchStart.clientX-e.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-e.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(t="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(i=>{this.filterInvalidLine(this.value)!==""&&(this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),t==="auto"&&(t=B(this.value)?"md":""),t==="normal"&&(t=""),t?this.$emit("on-send",null,t):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(t=>{this.recordRec.open(i=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(e=>{this.recordRec.start()},300)):this.recordRec.close()},i=>{this.recordState="stop",$A.messageError(i||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(t){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((i,e)=>{this.recordRec.close(),t!==!0&&(e<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=i,this.uploadRecord(e)))},i=>{this.recordRec.close(),$A.messageError(i||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(t){this.showMenu=!1,this.showMore=!1,t!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(t=>{var i;(i=this.quill)==null||i.focus()})},uploadRecord(t){if(this.recordBlob===null)return;const i=new FileReader;i.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:i.result,duration:t})},i.readAsDataURL(this.recordBlob)},onEmojiQuick(t){t.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(t){!this.quill||(t.type==="emoji"?(this.quill.insertText(this.rangeIndex,t.text),this.rangeIndex+=t.text.length,this.windowLandscape&&(this.showEmoji=!1)):t.type==="emoticon"&&(this.$emit("on-send",``),t.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&(this.showEmoji=!1)))},onToolbar(t){switch(this.hidePopover(),t){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":v.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",t);break;case"word-chain":this.$store.state.dialogDroupWordChain={type:"create",dialog_id:this.dialogId};break;case"vote":this.$store.state.dialogGroupVote={type:"create",dialog_id:this.dialogId};break}},onFullInput(){this.disabled||(this.fullInput=!this.fullInput,this.fullInput&&this.$nextTick(t=>{this.fullQuill=new _(this.$refs.editorFull,Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:this.toolbar,mention:this.quillMention()}},this.options)),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(i=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(t=>{var i;(i=this.$refs.editorFull)!=null&&i.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),t()})},setQuote(t,i="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:t,extra_quote_type:i==="update"?"update":"reply"})},cancelQuote(){this.quoteUpdate&&this.$emit("input",""),this.setQuote(0)},onQuoteUserResult(t){this.dialogData.type==="group"&&(this.quoteUpdate||!this.quoteData||this.userId===t.userid||this.quoteData.userid!==t.userid||new RegExp(`]+?class="mention"[^>]+?data-id="${t.userid}"[^>]*?>`).test(this.$refs.editor.firstChild.innerHTML)||this.addMention({denotationChar:"@",id:t.userid,value:t.nickname}))},onSpaceInputFocus(){var t;this.selectRange&&((t=this.quill)==null||t.setSelection(this.selectRange.index,this.selectRange.length))},openMenu(t){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


"))this.quill.getModule("mention").openMenu(t);else{let i=this.value.replace(/<[^>]+>/g,"");i.length===0||i.endsWith(" ")?this.quill.getModule("mention").openMenu(t):this.quill.getModule("mention").openMenu(` ${t}`)}},addMention(t){if(!this.quill)return;const{index:i}=this.quill.getSelection(!0);this.quill.insertEmbed(i,"mention",t,_.sources.USER),this.quill.insertText(i+1," ",_.sources.USER),this.quill.setSelection(i+2,_.sources.USER)},getProjectId(){let t=null;if(this.dialogId>0){if(t=this.cacheProjects.find(({dialog_id:i})=>i==this.dialogId),t)return t.id;if(t=this.cacheTasks.find(({dialog_id:i})=>i==this.dialogId),t)return t.project_id}else if(this.taskId>0&&(t=this.cacheTasks.find(({id:i})=>i==this.taskId),t))return t.project_id;return 0},getMentionSource(t,i,e){switch(t){case"@":this.mentionMode="user-mention";const s=n=>{this.getMoreUser(i,n.map(l=>l.id)).then(l=>{let d=this.cacheDialogs.filter((c,h)=>c.type=="user"&&c.bot==0&&c.last_at);d.sort((c,h)=>c.last_at>h.last_at?-1:c.last_ath<5),l.forEach(c=>{c.last_at="1990-01-01 00:00:00",d.forEach(h=>{var p;((p=h.dialog_user)==null?void 0:p.userid)==c.id&&(c.last_at=h.last_at)})}),l.sort((c,h)=>c.last_at>h.last_at?-1:c.last_at0?(n.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:n},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u4EE5\u5916\u6210\u5458"),disabled:!0}],list:l})):n.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:n}):this.userCache.push({label:null,list:n}),e(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&e(this.userCache),this.userList!==null){s(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:n})=>{this.cacheDialogs.find(({id:l})=>l==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:n.length}),n.length>0&&a.push(...n.map(l=>({id:l.userid,value:l.nickname,avatar:l.userimg,online:l.online,bot:l.bot}))),s(a)}).catch(n=>{s(a)});else if(this.taskId>0){const n=this.cacheTasks.find(({id:l})=>l==this.taskId);n&&$A.isArray(n.task_user)&&n.task_user.some(l=>{const d=this.cacheUserBasic.find(({userid:c})=>c==l.userid);d&&a.push({id:d.userid,value:d.nickname,avatar:d.userimg,online:d.online,bot:d.bot})}),s(a)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){e(this.taskList);return}const o=n=>{this.taskList=[],n.length>0&&(n=n.map(c=>({id:c.id,value:c.name,tip:c.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:n}));let l=this.$store.getters.transforTasks(this.$store.getters.dashboardTask.all);l.length>0&&(l=l.sort((c,h)=>$A.Date(c.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:l.map(c=>({id:c.id,value:c.name}))}));let d=this.$store.getters.assistTask;d.length>0&&(d=d.sort((c,h)=>$A.Date(c.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:d.map(c=>({id:c.id,value:c.name}))})),e(this.taskList)},r=this.getProjectId();if(r>0){this.$store.dispatch("getTaskForProject",r).then(n=>{const l=this.cacheTasks.filter(d=>d.archived_at?!1:d.project_id==r&&d.parent_id===0&&!d.archived_at).sort((d,c)=>$A.Date(c.complete_at||"2099-12-31 23:59:59")-$A.Date(d.complete_at||"2099-12-31 23:59:59"));l.length>0?o(l):o([])}).catch(n=>{o([])});return}o([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[i])){e(this.fileList[i]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(n=>{this.$store.dispatch("searchFiles",i).then(({data:l})=>{this.fileList[i]=[{label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:l.filter(d=>d.type!=="folder").map(d=>({id:d.id,value:d.ext?`${d.name}.${d.ext}`:d.name}))}],e(this.fileList[i])}).catch(()=>{e([])})},300);break;default:e([]);break}},getMoreUser(t,i){return new Promise(e=>{const{owner_id:s,type:a}=this.dialogData,o=a==="group"&&[0,this.userId].includes(s);this.taskId>0||o?(this.moreTimer&&clearTimeout(this.moreTimer),this.moreTimer=setTimeout(r=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:t},state:1,take:30}}).then(({data:n})=>{const l=n.filter(d=>!i.includes(d.userid));e(l.map(d=>({id:d.userid,value:d.nickname,avatar:d.userimg,online:!!d.online})))}).catch(n=>{e([])})},this.userCache===null?0:600)):e([])})},checkIOSVersion(){let i=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const s=(i?i[1].replace(/_/g,"."):"unknown").split(".");return+s[0]==11&&+s[1]>=0&&+s[1]<3},handlePaste(t){const i=Array.prototype.slice.call(t.clipboardData.files);i.filter(s=>!$A.leftExists(s.type,"image/")).length>0&&(t.preventDefault(),this.$emit("on-file",i))},filterInvalidLine(t){return(t+"").replace(/^(

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

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

<\/p>)+|(

<\/p>)+$/gi,"")},updateTools(){var i,e,s,a;this.showEmoji&&((i=this.$refs.emoji)==null||i.updatePopper()),this.showMore&&((e=this.$refs.more)==null||e.updatePopper()),this.showMenu&&((s=this.$refs.menu)==null||s.updatePopper());const t=(a=this.quill)==null?void 0:a.getModule("mention");t.isOpen&&t.setMentionContainerPosition()}}},T={};var Ht=u(Gt,zt,Wt,!1,Qt,null,null,null);function Qt(t){for(let i in T)this[i]=T[i]}var Kt=function(){return Ht.exports}();function Yt(){return new Promise(t=>{const i=new G({render(a){return a(H.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":o=>{o||setTimeout(r=>{document.body.removeChild(this.$el)},500)}}},[a(V,{attrs:{onlyEmoji:!0},on:{"on-select":o=>{this.$children[0].visible=!1,o.type==="emoji"&&t(o.text)}}})])}}),e=i.$mount();document.body.appendChild(e.$el);const s=i.$children[0];s.visible=!0,s.$el.lastChild.addEventListener("click",({target:a})=>{a.classList.contains("ivu-modal-body")&&(s.visible=!1)})})}var Jt=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("Modal",{attrs:{"class-name":"dialog-droup-word-chain","mask-closable":!1,title:t.dialogDroupWordChain.type=="create"?t.$L("\u53D1\u8D77\u63A5\u9F99"):t.$L("\u63A5\u9F99\u7ED3\u679C"),closable:!t.isFullscreen,fullscreen:t.isFullscreen,"footer-hide":t.isFullscreen},scopedSlots:t._u([{key:"header",fn:function(){return[t.isFullscreen?e("div",{staticClass:"chain-modal-header"},[e("div",{staticClass:"chain-modal-close",on:{click:function(s){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[t._v(" "+t._s(t.dialogDroupWordChain.type=="create"?t.$L("\u53D1\u8D77\u63A5\u9F99"):t.$L("\u63A5\u9F99\u7ED3\u679C"))+" ")]),e("div",{staticClass:"chain-modal-submit",class:{disabled:!t.isEdit},on:{click:t.onSend}},[t.loadIng>0?e("div",{staticClass:"submit-loading"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u53D1\u9001"))+" ")])]):t._e()]},proxy:!0},{key:"close",fn:function(){return[e("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0}]),model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("div",{ref:"wordChainBodyRef",staticClass:"word-chain-body"},[t.dialogDroupWordChain.type=="create"?e("div",{staticClass:"source"},[t._v(" "+t._s(t.$L("\u6765\u81EA"))+" "),e("span",[t._v(t._s(t.dialog.name))])]):t._e(),e("div",{staticClass:"initiate"},[e("span",[t._v(t._s(t.$L("\u7531")))]),e("UserAvatar",{attrs:{userid:t.createId,size:22,showName:!0}}),e("span",[t._v(" "+t._s(t.$L("\u53D1\u8D77\uFF0C\u53C2\u4E0E\u63A5\u9F99\u76EE\u524D\u5171"+t.num+"\u4EBA")))])],1),e("div",{staticClass:"textarea"},[e("Input",{ref:"wordChainTextareaRef",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},disabled:t.dialogDroupWordChain.type!="create",placeholder:t.$L("\u8BF7\u8F93\u5165\u63A5\u9F99\u4E3B\u9898")},model:{value:t.value,callback:function(s){t.value=s},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(s){return s.type=="case"&&(t.dialogDroupWordChain.type=="create"||s.text)?e("li",[e("span",[t._v(t._s(t.$L("\u4F8B")))]),e("Input",{attrs:{placeholder:t.$L("\u53EF\u586B\u5199\u63A5\u9F99\u683C\u5F0F"),disabled:t.dialogDroupWordChain.type!="create"},model:{value:s.text,callback:function(a){t.$set(s,"text",a)},expression:"item.text"}})],1):t._e()}),t._l(t.list.filter(function(s){return s.type!="case"}),function(s,a){return e("li",[e("span",[t._v(t._s(a+1))]),e("Input",{attrs:{disabled:s.userid!=t.userId,placeholder:t.$L("\u8BF7\u8F93\u5165\u63A5\u9F99\u5185\u5BB9")},model:{value:s.text,callback:function(o){t.$set(s,"text",o)},expression:"item.text"}})],1)}),e("li",{staticClass:"add"},[e("i",{staticClass:"taskfont",on:{click:t.onAdd}},[t._v("\uE78C")])])],2)]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0,disabled:!t.isEdit},on:{click:t.onSend}},[t._v(t._s(t.$L("\u53D1\u9001")))])],1)])},Xt=[];const Zt={name:"DialogDroupWordChain",data(){return{show:!1,createId:0,value:"#"+this.$L("\u63A5\u9F99")+` `,list:[],oldData:"",loadIng:0}},computed:{...m(["dialogDroupWordChain","userInfo","dialogMsgs","cacheDialogs"]),isFullscreen({windowWidth:t}){return t<576},num(){var t;return((t=this.list.filter(i=>i.type!="case"))==null?void 0:t.length)||0},allList(){var e;const t=((e=this.dialogDroupWordChain.msgData)==null?void 0:e.msg)||{};let i=JSON.parse(JSON.stringify(t.list||[]));return this.dialogMsgs.filter(s=>{var a;return s.type=="word-chain"&&((a=s.msg)==null?void 0:a.uuid)==t.uuid}).forEach(s=>{(s.msg.list||[]).forEach(a=>{a.type!="case"&&i.map(o=>o.id).indexOf(a.id)==-1&&i.push(a)})}),i.filter(s=>(s.text||"").trim())},isEdit(){return this.oldData!=JSON.stringify(this.list)},dialog(){return this.cacheDialogs.find(t=>t.id==this.dialogDroupWordChain.dialog_id)||{}}},watch:{show(t){t?(this.dialogDroupWordChain.type=="create"&&this.$nextTick(()=>{this.$refs.wordChainTextareaRef.focus()}),this.scrollTo()):(this.value="#"+this.$L("\u63A5\u9F99")+` -`,this.list=[])},dialogDroupWordChain(t){t.type=="create"&&t.dialog_id&&(this.show=!0,this.createId=this.userId,this.list=[],this.list.push({id:Date.now(),type:"case",userid:this.userId,text:""}),this.list.push({id:Date.now()+1,type:"text",userid:this.userId,text:this.userInfo.nickname})),t.type=="participate"&&t.dialog_id&&t.msgData&&(this.show=!0,this.createId=t.msgData.msg.createid||t.msgData.msg.userid,this.value=t.msgData.msg.text,this.list=this.allList,this.oldData=JSON.stringify(this.list))}},methods:{onAdd(){this.list.push({id:Date.now(),type:"text",userid:this.userId,text:this.userInfo.nickname}),this.scrollTo()},scrollTo(){this.$nextTick(()=>{this.$refs.wordChainListRef.scrollTo(0,99999)})},onSend(){if(!this.isEdit)return;if(!this.value){$A.messageError("\u8BF7\u8F93\u5165\u63A5\u9F99\u4E3B\u9898");return}const t=this.list.map(i=>i.text);if(t.length!=[...new Set(t)].length){$A.modalConfirm({content:"\u91CD\u590D\u5185\u5BB9\u5C06\u4E0D\u518D\u8BA1\u5165\u63A5\u9F99\u7ED3\u679C",cancelText:"\u8FD4\u56DE\u7F16\u8F91",okText:"\u7EE7\u7EED\u53D1\u9001",onOk:()=>{this.send()}});return}this.send()},send(){var i,e;const t=[];this.list.forEach(s=>{(s.text||s.type!="case")&&t.map(a=>a.text).indexOf(s.text)==-1&&t.push(s)}),this.loadIng++,this.$store.dispatch("call",{url:"dialog/msg/wordchain",method:"post",data:{dialog_id:this.dialogDroupWordChain.dialog_id,text:this.value,list:t,uuid:((e=(i=this.dialogDroupWordChain.msgData)==null?void 0:i.msg)==null?void 0:e.uuid)||""}}).then(({data:s})=>{this.show=!1,this.$store.dispatch("saveDialogMsg",s)}).catch(({msg:s})=>{if(s.indexOf("System error")!==-1){$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"});return}$A.modalError(s)}).finally(s=>{this.loadIng--})}}},A={};var te=u(Zt,Jt,Xt,!1,ee,null,null,null);function ee(t){for(let i in A)this[i]=A[i]}var se=function(){return te.exports}(),ie=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("Modal",{attrs:{"class-name":"dialog-droup-word-chain","mask-closable":!1,title:t.dialogGroupVote.type=="create"?t.$L("\u53D1\u8D77\u6295\u7968"):t.$L("\u6295\u7968\u7ED3\u679C"),closable:!t.isFullscreen,fullscreen:t.isFullscreen,"footer-hide":t.isFullscreen},scopedSlots:t._u([{key:"header",fn:function(){return[t.isFullscreen?e("div",{staticClass:"chain-modal-header"},[e("div",{staticClass:"chain-modal-close",on:{click:function(s){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[t._v(" "+t._s(t.dialogGroupVote.type=="create"?t.$L("\u53D1\u8D77\u6295\u7968"):t.$L("\u6295\u7968\u7ED3\u679C"))+" ")]),e("div",{staticClass:"chain-modal-submit",class:{disabled:!t.isEdit},on:{click:t.onSend}},[t.loadIng>0?e("div",{staticClass:"submit-loading"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u53D1\u9001"))+" ")])]):t._e()]},proxy:!0},{key:"close",fn:function(){return[e("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0}]),model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("div",{ref:"wordChainBodyRef",staticClass:"word-chain-body"},[t.dialogGroupVote.type=="create"?e("div",{staticClass:"source"},[t._v(" "+t._s(t.$L("\u6765\u81EA"))+" "),e("span",[t._v(t._s(t.dialog.name))])]):t._e(),e("div",{staticClass:"initiate"},[e("span",[t._v(t._s(t.$L("\u7531")))]),e("UserAvatar",{attrs:{userid:t.createId,size:22,showName:!0,tooltipDisabled:""}}),e("span",[t._v(" "+t._s(t.$L("\u53D1\u8D77")))])],1),e("div",{staticClass:"textarea"},[e("Input",{ref:"wordChainTextareaRef",attrs:{type:"textarea",placeholder:t.$L("\u8BF7\u8F93\u5165\u6295\u7968\u4E3B\u9898"),autosize:{minRows:3,maxRows:5},disabled:t.dialogGroupVote.type!="create"},model:{value:t.value,callback:function(s){t.value=s},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(s,a){return e("li",[e("i",{staticClass:"taskfont",class:{disabled:t.list.length<=2},on:{click:function(o){return t.onDel(a)}}},[t._v("\uE680")]),e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u9009\u9879\u5185\u5BB9")},model:{value:s.text,callback:function(o){t.$set(s,"text",o)},expression:"item.text"}})],1)}),e("li",{staticClass:"add"},[e("i",{staticClass:"taskfont",on:{click:t.onAdd}},[t._v("\uE78C")])])],2),t.dialogGroupVote.type=="create"?e("div",{staticClass:"switch-row"},[e("span",{staticClass:"label"},[t._v(t._s(t.$L("\u5141\u8BB8\u591A\u9009")))]),e("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.multiple,callback:function(s){t.multiple=s},expression:"multiple"}})],1):t._e(),t.dialogGroupVote.type=="create"?e("div",{staticClass:"switch-row"},[e("span",{staticClass:"label"},[t._v(t._s(t.$L("\u533F\u540D\u6295\u7968")))]),e("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.anonymous,callback:function(s){t.anonymous=s},expression:"anonymous"}})],1):t._e()]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0,disabled:!t.isEdit},on:{click:t.onSend}},[t._v(t._s(t.$L("\u53D1\u9001")))])],1)])},ae=[];const oe={name:"DialogGroupVote",data(){return{show:!1,createId:0,value:"",list:[],multiple:0,anonymous:0,oldData:"",loadIng:0}},computed:{...m(["dialogGroupVote","userInfo","dialogMsgs","cacheDialogs"]),isFullscreen({windowWidth:t}){return t<576},allList(){var e;const t=((e=this.dialogGroupVote.msgData)==null?void 0:e.msg)||{};let i=JSON.parse(JSON.stringify(t.list||[]));return this.dialogMsgs.filter(s=>{var a;return s.type=="word-chain"&&((a=s.msg)==null?void 0:a.uuid)==t.uuid}).forEach(s=>{(s.msg.list||[]).forEach(a=>{i.map(o=>o.id).indexOf(a.id)==-1&&i.push(a)})}),i},isEdit(){return this.oldData!=JSON.stringify(this.list)},dialog(){return this.cacheDialogs.find(t=>t.id==this.dialogGroupVote.dialog_id)||{}}},watch:{show(t){t?(this.dialogGroupVote.type=="create"&&this.$nextTick(()=>{this.$refs.wordChainTextareaRef.focus()}),this.scrollTo()):(this.value="",this.list=[])},dialogGroupVote(t){t.type=="create"&&t.dialog_id&&(this.show=!0,this.createId=this.userId,this.list=[{id:Date.now(),text:""},{id:Date.now()+1,text:""}]),t.type=="participate"&&t.dialog_id&&t.msgData&&(this.show=!0,this.createId=t.msgData.msg.userid,this.value=t.msgData.msg.text,this.list=this.allList,this.oldData=JSON.stringify(this.list))}},methods:{onAdd(){this.list.push({id:Date.now(),text:""}),this.scrollTo()},onDel(t){this.list.length>2&&this.list.splice(t,1)},scrollTo(){this.$nextTick(()=>{this.$refs.wordChainListRef.scrollTo(0,99999)})},onSend(){var t,i;if(!!this.isEdit){if(!this.value){$A.messageError("\u8BF7\u8F93\u5165\u6295\u7968\u4E3B\u9898");return}if(this.list.find(e=>!e.text)){$A.messageError("\u8BF7\u8F93\u5165\u9009\u9879\u5185\u5BB9");return}this.loadIng++,this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:this.dialogGroupVote.dialog_id,text:this.value,list:this.list,uuid:((i=(t=this.dialogGroupVote.msgData)==null?void 0:t.msg)==null?void 0:i.uuid)||"",multiple:this.multiple,anonymous:this.anonymous}}).then(({data:e})=>{this.show=!1,this.$store.dispatch("saveDialogMsg",e)}).catch(({msg:e})=>{if(e.indexOf("System error")!==-1){$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"});return}$A.modalError(e)}).finally(e=>{this.loadIng--})}}}},E={};var re=u(oe,ie,ae,!1,ne,null,null,null);function ne(t){for(let i in E)this[i]=E[i]}var le=function(){return re.exports}(),ce=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.isReady?e("div",{staticClass:"dialog-wrapper",class:t.wrapperClass,on:{drop:function(s){return s.preventDefault(),t.chatPasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),t.chatDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),t.chatDragOver(!1,s)},touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd}},[e("div",{ref:"nav",staticClass:"dialog-nav"},[t._t("head",function(){return[e("div",{staticClass:"nav-wrapper",class:t.navClass},[e("div",{staticClass:"dialog-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")]),t.msgUnreadOnly?e("div",{staticClass:"back-num"},[t._v(t._s(t.msgUnreadOnly))]):t._e()]),e("div",{staticClass:"dialog-block"},[e("div",{staticClass:"dialog-avatar",on:{click:t.onViewAvatar}},[t.dialogData.type=="group"?[t.dialogData.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:t.dialogData.avatar,size:42}}):t.dialogData.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):t.dialogData.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):t.dialogData.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):t.dialogData.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t.dialogData.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatarTip",{attrs:{online:t.dialogData.online_state,userid:t.dialogData.dialog_user.userid,size:42},on:{"update:online":function(s){return t.$set(t.dialogData,"online_state",s)}}},[t.dialogData.type==="user"&&t.dialogData.online_state!==!0?e("p",{attrs:{slot:"end"},slot:"end"},[t._v(" "+t._s(t.$L(t.dialogData.online_state))+" ")]):t._e()])],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),e("div",{staticClass:"dialog-title"},[e("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),function(s){return s.color!="success"?[e("Tag",{attrs:{color:s.color,fade:!1}},[t._v(t._s(t.$L(s.text)))])]:t._e()}),e("h2",[t._v(t._s(t.dialogData.name))]),t.peopleNum>0?e("em",{on:{click:function(s){return t.onDialogMenu("groupInfo")}}},[t._v("("+t._s(t.peopleNum)+")")]):t._e(),t.dialogData.bot?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u673A\u5668\u4EBA")))]):t._e(),t.dialogData.type==="user"&&t.approvaUserStatus?e("Tag",{staticClass:"after",attrs:{color:"red",fade:!1}},[t._v(t._s(t.$L(t.approvaUserStatus)))]):t._e(),t.dialogData.group_type=="all"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(s){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u5168\u5458")))]):t.dialogData.group_type=="department"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(s){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u90E8\u95E8")))]):t._e(),t.msgLoadIng>0&&t.allMsgs.length>0?e("div",{staticClass:"load"},[e("Loading")],1):t._e()],2),e("ul",{staticClass:"title-desc"},[t.dialogData.type==="user"?e("li",{class:[t.dialogData.online_state===!0?"online":"offline"]},[t._v(" "+t._s(t.$L(t.dialogData.online_state===!0?"\u5728\u7EBF":t.dialogData.online_state))+" ")]):t._e()]),t.tagShow?e("ul",{staticClass:"title-tags scrollbar-hidden"},t._l(t.msgTags,function(s){var a;return e("li",{key:s.type,class:(a={},a[s.type||"msg"]=!0,a.active=t.msgType===s.type,a),on:{click:function(o){return t.onMsgType(s.type)}}},[e("i",{staticClass:"no-dark-content"}),e("span",[t._v(t._s(t.$L(s.label)))])])}),0):t._e()])]),e("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:t.onDialogMenu}},[e("i",{staticClass:"taskfont dialog-menu-icon"},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"searchMsg"}},[e("div",[t._v(t._s(t.$L("\u641C\u7D22\u6D88\u606F")))])]),t.dialogData.type==="user"?[t.isManageBot?e("EDropdownItem",{attrs:{command:"modifyNormal"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u8D44\u6599")))])]):t._e(),e("EDropdownItem",{attrs:{command:"openCreate"}},[e("div",[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4")))])])]:[e("EDropdownItem",{attrs:{command:"groupInfo"}},[e("div",[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),t.dialogData.owner_id!=t.userId?[t.dialogData.group_type==="all"&&t.userIsAdmin?e("EDropdownItem",{attrs:{command:"modifyAdmin"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u8D44\u6599")))])]):t._e(),e("EDropdownItem",{attrs:{command:"exit"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:t.dialogData.group_type==="user"?[e("EDropdownItem",{attrs:{command:"modifyNormal"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u8D44\u6599")))])]),e("EDropdownItem",{attrs:{command:"transfer"}},[e("div",[t._v(t._s(t.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),e("EDropdownItem",{attrs:{command:"disband"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:t._e()]],2)],1),t.searchShow?e("div",{staticClass:"dialog-search"},[e("div",{staticClass:"search-location"},[e("i",{staticClass:"taskfont",on:{click:function(s){return t.onSearchSwitch("prev")}}},[t._v("\uE702")]),e("i",{staticClass:"taskfont",on:{click:function(s){return t.onSearchSwitch("next")}}},[t._v("\uE705")])]),e("div",{staticClass:"search-input"},[e("div",{staticClass:"search-pre"},[t.searchLoad>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Input",{ref:"searchInput",attrs:{placeholder:t.$L("\u641C\u7D22\u6D88\u606F"),clearable:""},on:{"on-keyup":t.onSearchKeyup},model:{value:t.searchKey,callback:function(s){t.searchKey=s},expression:"searchKey"}}),t.searchLoad===0&&t.searchResult.length>0?e("div",{staticClass:"search-total"},[t._v(t._s(t.searchLocation)+"/"+t._s(t.searchResult.length))]):t._e()],1),e("div",{staticClass:"search-cancel",on:{click:function(s){return t.onSearchKeyup(null)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))])]):t._e()],1)]})],2),t.topShow?e("div",{staticClass:"dialog-top-message",on:{click:t.onPosTop}},[e("div",{staticClass:"dialog-top-message-warp"},[t._m(0),e("div",{staticClass:"dialog-top-message-content"},[e("p",{staticClass:"content"},[e("UserAvatar",{attrs:{userid:t.topMsg.userid,showName:"",showIcon:!1}}),t._v(": "),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(t.topMsg)))])],1),e("p",{staticClass:"personnel"},[t._v(" "+t._s(t.$L("\u7F6E\u9876\u4EBA\u5458"))+" "),e("UserAvatar",{attrs:{userid:t.dialogData.top_userid,showName:"",showIcon:!1}})],1)]),e("div",{staticClass:"dialog-top-message-btn"},[t.topPosLoad>0?e("Loading",{attrs:{type:"pure"}}):e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("i",{staticClass:"taskfont",on:{click:function(s){return s.stopPropagation(),t.onCancelTop(t.topMsg)}}},[t._v("\uE6E5")])],1)])]):t._e(),e("div",{ref:"msgs",staticClass:"dialog-msgs"},[t.positionShow&&t.positionMsg?e("div",{staticClass:"dialog-position"},[e("div",{staticClass:"position-label",on:{click:function(s){return t.onPositionMark(t.positionMsg.msg_id)}}},[t.positionLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("i",{staticClass:"taskfont"},[t._v("\uE624")]),t._v(" "+t._s(t.positionMsg.label)+" ")],1)]):t._e(),e("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-virtual",attrs:{"active-prefix":"item","data-key":"id","data-sources":t.allMsgs,"data-component":t.msgItem,"extra-props":{dialogData:t.dialogData,operateVisible:t.operateVisible,operateItem:t.operateItem,isMyDialog:t.isMyDialog,msgId:t.msgId,unreadOne:t.unreadOne,scrollIng:t.scrollIng,readEnabled:t.readEnabled},"estimate-size":t.dialogData.type=="group"?105:77,keeps:t.dialogMsgKeep,disabled:t.scrollDisabled},on:{activity:t.onActivity,scroll:t.onScroll,range:t.onRange,totop:t.onPrevPage,"on-mention":t.onMention,"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser},scopedSlots:t._u([t.isChildComponent?null:{key:"header",fn:function(){return[e("div",{staticClass:"dialog-item head-box"},[t.loadIng>0||t.prevId>0?e("div",{staticClass:"loading",class:{filled:t.allMsgs.length===0}},[t.scrollOffset<100?e("span"):t._e()]):t.allMsgs.length===0?e("div",{staticClass:"describe filled"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]):t._e()])]},proxy:!0}],null,!0)})],1),e("div",{ref:"footer",staticClass:"dialog-footer",on:{click:t.onActive}},[t.scrollTail>500||t.msgNew>0&&t.allMsgs.length>0?e("div",{directives:[{name:"touchclick",rawName:"v-touchclick",value:t.onToBottom,expression:"onToBottom"}],staticClass:"dialog-goto"},[e("Badge",{attrs:{"overflow-count":999,count:t.msgNew}},[e("i",{staticClass:"taskfont"},[t._v("\uE72B")])])],1):t._e(),e("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":t.dialogId,maxSize:t.maxSize},on:{"on-progress":function(s){return t.chatFile("progress",s)},"on-success":function(s){return t.chatFile("success",s)},"on-error":function(s){return t.chatFile("error",s)}}}),t.todoShow?e("div",{staticClass:"chat-bottom-menu"},[e("div",{staticClass:"bottom-menu-label"},[t._v(t._s(t.$L("\u5F85\u529E"))+":")]),e("ul",{staticClass:"scrollbar-hidden"},t._l(t.todoList,function(s){return e("li",{on:{click:function(a){return a.stopPropagation(),t.onViewTodo(s)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(s.msg_data)))])])}),0)]):t.quickShow?e("div",{staticClass:"chat-bottom-menu"},[e("ul",{staticClass:"scrollbar-hidden"},t._l(t.quickMsgs,function(s){return e("li",{on:{click:function(a){return a.stopPropagation(),t.sendQuick(s)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content",style:s.style||null},[t._v(t._s(s.label))])])}),0)]):t._e(),t.isMute?e("div",{staticClass:"chat-mute"},[t._v(" "+t._s(t.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):e("ChatInput",{ref:"input",attrs:{"dialog-id":t.dialogId,"emoji-bottom":t.windowPortrait,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":t.onEventFocus,"on-blur":t.onEventBlur,"on-more":t.onEventMore,"on-file":t.sendFileMsg,"on-send":t.sendMsg,"on-record":t.sendRecord,"on-record-state":t.onRecordState},model:{value:t.msgText,callback:function(s){t.msgText=s},expression:"msgText"}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:t.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.operateItem.created_at?[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action"},[t.msgId===0?e("li",{on:{click:function(s){return t.onOperate("reply")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u56DE\u590D")))])]):t._e(),t.operateItem.userid==t.userId&&t.operateItem.type==="text"?e("li",{on:{click:function(s){return t.onOperate("update")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE779")]),e("span",[t._v(t._s(t.$L("\u7F16\u8F91")))])]):t._e(),t._l(t.operateCopys,function(s){return e("li",{on:{click:function(a){return t.onOperate("copy",s)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("span",[t._v(t._s(t.$L(s.label)))])])}),t.actionPermission(t.operateItem,"forward")?e("li",{on:{click:function(s){return t.onOperate("forward")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE638")]),e("span",[t._v(t._s(t.$L("\u8F6C\u53D1")))])]):t._e(),t.operateItem.userid==t.userId?e("li",{on:{click:function(s){return t.onOperate("withdraw")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE637")]),e("span",[t._v(t._s(t.$L("\u64A4\u56DE")))])]):t._e(),t.operateItem.type==="file"?[e("li",{on:{click:function(s){return t.onOperate("view")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("span",[t._v(t._s(t.$L("\u67E5\u770B")))])]),e("li",{on:{click:function(s){return t.onOperate("down")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7A8")]),e("span",[t._v(t._s(t.$L("\u4E0B\u8F7D")))])])]:t._e(),e("li",{on:{click:function(s){return t.onOperate("tag")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")]),e("span",[t._v(t._s(t.$L(t.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),t.actionPermission(t.operateItem,"newTask")?e("li",{on:{click:function(s){return t.onOperate("newTask")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B8")]),e("span",[t._v(t._s(t.$L("\u65B0\u4EFB\u52A1")))])]):t._e(),e("li",{on:{click:function(s){return t.onOperate("todo")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B7")]),e("span",[t._v(t._s(t.$L(t.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e("li",{on:{click:function(s){return t.onOperate("top")}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.dialogData.top_msg_id==t.operateItem.id?"":"")}}),e("span",[t._v(t._s(t.$L(t.dialogData.top_msg_id==t.operateItem.id?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876")))])]),t.msgType!==""?e("li",{on:{click:function(s){return t.onOperate("pos")}}},[e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("span",[t._v(t._s(t.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):t._e()],2)]),e("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[e("ul",{staticClass:"operate-emoji scrollbar-hidden"},[t._l(t.operateEmojis,function(s,a){return e("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:t._s(s)},on:{click:function(o){return t.onOperate("emoji",s)}}})}),e("li"),e("li",{staticClass:"more-emoji",on:{click:function(s){return t.onOperate("emoji","more")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])])],2)])]:[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action cancel"},[e("li",{on:{click:function(s){return t.onOperate("cancel")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u53D6\u6D88\u53D1\u9001")))])])])])]],2)],1)],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(s){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e(),e("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("\u53D6\u6D88"),"ok-text":t.$L("\u53D1\u9001"),"enter-ok":!0,closable:!1,"mask-closable":!1},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(s){t.pasteShow=s},expression:"pasteShow"}},[e("ul",{staticClass:"dialog-wrapper-paste",class:t.pasteClass},t._l(t.pasteItem,function(s){return e("li",[s.type=="image"?e("img",{attrs:{src:s.result}}):e("div",[t._v(t._s(t.$L("\u6587\u4EF6"))+": "+t._s(s.name)+" ("+t._s(t.$A.bytesToSize(s.size))+")")])])}),0)]),e("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(s){t.createGroupShow=s},expression:"createGroupShow"}},[e("Form",{attrs:{model:t.createGroupData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.createGroupData.avatar,callback:function(s){t.$set(t.createGroupData,"avatar",s)},expression:"createGroupData.avatar"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u7FA4\u6210\u5458")}},[e("UserSelect",{attrs:{uncancelable:t.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",title:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.createGroupData.userids,callback:function(s){t.$set(t.createGroupData,"userids",s)},expression:"createGroupData.userids"}})],1),e("FormItem",{attrs:{prop:"chat_name",label:t.$L("\u7FA4\u540D\u79F0")}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:t.createGroupData.chat_name,callback:function(s){t.$set(t.createGroupData,"chat_name",s)},expression:"createGroupData.chat_name"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.createGroupShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.createGroupLoad>0},on:{click:t.onCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:t.modifyShow,callback:function(s){t.modifyShow=s},expression:"modifyShow"}},[e("Form",{attrs:{model:t.modifyData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.modifyData.system_name?e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u4FEE\u6539\u7CFB\u7EDF\u673A\u5668\u4EBA\uFF1A${t.modifyData.system_name}`)))]):t._e(),e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.modifyData.avatar,callback:function(s){t.$set(t.modifyData,"avatar",s)},expression:"modifyData.avatar"}})],1),typeof t.modifyData.name!="undefined"?e("FormItem",{attrs:{prop:"name",label:t.$L("\u540D\u79F0")}},[e("Input",{attrs:{maxlength:20},model:{value:t.modifyData.name,callback:function(s){t.$set(t.modifyData,"name",s)},expression:"modifyData.name"}})],1):t._e(),t.dialogData.bot==t.userId?[typeof t.modifyData.clear_day!="undefined"?e("FormItem",{attrs:{prop:"clear_day",label:t.$L("\u6D88\u606F\u4FDD\u7559")}},[e("Input",{attrs:{maxlength:3,type:"number"},model:{value:t.modifyData.clear_day,callback:function(s){t.$set(t.modifyData,"clear_day",s)},expression:"modifyData.clear_day"}},[e("div",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1):t._e(),typeof t.modifyData.webhook_url!="undefined"?e("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[e("Input",{attrs:{maxlength:255},model:{value:t.modifyData.webhook_url,callback:function(s){t.$set(t.modifyData,"webhook_url",s)},expression:"modifyData.webhook_url"}})],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.modifyShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.modifyLoad>0},on:{click:t.onModify}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1),e("UserSelect",{ref:"forwardSelect",attrs:{"multiple-max":50,title:t.$L("\u8F6C\u53D1"),"before-submit":t.onForwardBefore,"show-select-all":!1,"show-dialog":"",module:""}}),e("Modal",{attrs:{title:`${t.$L("\u8F6C\u53D1\u7ED9")}:`,"class-name":"common-user-select-modal dialog-forward-message-modal","mask-closable":!1,width:"420"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("div",{staticClass:"dialog-wrapper-forward-footer",class:{selected:!t.forwardSource},on:{click:function(s){t.forwardSource=!t.forwardSource}}},[e("Icon",{staticClass:"user-modal-icon",attrs:{type:t.forwardSource?"ios-radio-button-off":"ios-checkmark-circle"}}),t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u539F\u53D1\u9001\u8005\u4FE1\u606F"))+" ")],1),e("Button",{attrs:{type:"primary",loading:t.forwardLoad>0},on:{click:t.onForwardAffirm}},[t._v(" "+t._s(t.$L("\u786E\u5B9A"))+" "),t.forwardData.length>0?[t._v("("+t._s(t.forwardData.length)+")")]:t._e()],2)]},proxy:!0}],null,!1,3161245327),model:{value:t.forwardhow,callback:function(s){t.forwardhow=s},expression:"forwardhow"}},[e("div",{staticClass:"user-modal-search"},[e("Scrollbar",{staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[e("ul",t._l(t.forwardData,function(s){return e("li",{attrs:{"data-id":s.userid}},[s.type=="group"?e("div",{staticClass:"user-modal-avatar"},[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):s.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t.forwardData.length==1?e("div",{staticClass:"avatar-name"},[e("span",[t._v(t._s(s.name))])]):t._e()],1):e("UserAvatar",{attrs:{userid:s.userid,size:32,"show-name":t.forwardData.length==1}})],1)}),0)])],1),e("div",{staticClass:"twice-affirm-body-extend"},[e("div",{staticClass:"dialog-wrapper-forward-body"},[e("div",{staticClass:"dialog-wrapper inde-list"},[e("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[e("DialogItem",{attrs:{source:t.operateItem,simpleView:""},on:{"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-emoji":t.onEmoji}})],1)],1),e("div",{staticClass:"leave-message"},[e("Input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},placeholder:t.$L("\u7559\u8A00"),clearable:""},model:{value:t.forwardMessage,callback:function(s){t.forwardMessage=s},expression:"forwardMessage"}})],1)])])]),e("Modal",{attrs:{title:t.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:t.todoSettingShow,callback:function(s){t.todoSettingShow=s},expression:"todoSettingShow"}},[e("Form",{ref:"todoSettingForm",attrs:{model:t.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"type",label:t.$L("\u5F53\u524D\u4F1A\u8BDD")}},[e("RadioGroup",{on:{"on-change":t.onTypeChange},model:{value:t.todoSettingData.type,callback:function(s){t.$set(t.todoSettingData,"type",s)},expression:"todoSettingData.type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))]),e("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))]),e("Radio",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:"quick_select"}})],1),e("CheckboxGroup",{on:{"on-change":t.onQuickChange},model:{value:t.todoSettingData.quick_value,callback:function(s){t.$set(t.todoSettingData,"quick_value",s)},expression:"todoSettingData.quick_value"}},t._l(t.todoSettingData.quick_list,function(s){return e("Checkbox",{key:s,attrs:{label:s}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:s,"show-icon":!1,"show-name":!0}}),s==t.userId?e("Tag",[t._v(t._s(t.$L("\u81EA\u5DF1")))]):t._e()],1)])])}),1)],1),t.todoSettingData.type==="user"?e("FormItem",{attrs:{prop:"userids",label:t.$L("\u6307\u5B9A\u6210\u5458")}},[e("UserSelect",{ref:"userSelect",attrs:{"dialog-id":t.dialogId,title:t.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:t.todoSettingData.userids,callback:function(s){t.$set(t.todoSettingData,"userids",s)},expression:"todoSettingData.userids"}})],1):t._e()],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.todoSettingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.todoSettingLoad>0},on:{click:function(s){return t.onTodo("submit")}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.groupInfoShow,callback:function(s){t.groupInfoShow=s},expression:"groupInfoShow"}},[t.groupInfoShow?e("DialogGroupInfo",{attrs:{dialogId:t.dialogId},on:{"on-close":function(s){t.groupInfoShow=!1}}}):t._e()],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:t.groupTransferShow,callback:function(s){t.groupTransferShow=s},expression:"groupTransferShow"}},[e("Form",{attrs:{model:t.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userid",label:t.$L("\u65B0\u7684\u7FA4\u4E3B")}},[e("UserSelect",{attrs:{disabledChoice:t.groupTransferData.disabledChoice,"multiple-max":1,title:t.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:t.groupTransferData.userid,callback:function(s){t.$set(t.groupTransferData,"userid",s)},expression:"groupTransferData.userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.groupTransferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.groupTransferLoad>0},on:{click:function(s){return t.onDialogMenu("transferConfirm")}}},[t._v(t._s(t.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.replyListShow,callback:function(s){t.replyListShow=s},expression:"replyListShow"}},[t.replyListShow?e("DialogWrapper",{staticClass:"inde-list",attrs:{dialogId:t.dialogId,msgId:t.replyListId,isChildComponent:""}},[e("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[t._v(t._s(t.$L("\u56DE\u590D\u6D88\u606F")))])]):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.respondShow,callback:function(s){t.respondShow=s},expression:"respondShow"}},[t.respondShow?e("DialogRespond",{attrs:{"respond-data":t.respondData},on:{"on-close":function(s){t.respondShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.todoViewShow,callback:function(s){t.todoViewShow=s},expression:"todoViewShow"}},[e("div",{staticClass:"dialog-wrapper inde-list"},[e("div",{staticClass:"dialog-nav"},[e("div",{staticClass:"drawer-title"},[t._v(t._s(t.$L("\u5F85\u529E\u6D88\u606F")))])]),e("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[t.todoViewMsg?[e("DialogItem",{attrs:{source:t.todoViewMsg,simpleView:""},on:{"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-emoji":t.onEmoji}}),e("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:t.todoViewPosLoad},on:{click:t.onPosTodo}},[t._v(t._s(t.$L("\u56DE\u5230\u539F\u6587")))])]:e("div",{staticClass:"dialog-float-loading"},[e("Loading")],1)],2),e("div",{staticClass:"todo-button"},[e("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:t.todoViewLoad,long:""},on:{click:t.onDoneTodo}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1)],1)]),e("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.approveDetailsShow,callback:function(s){t.approveDetailsShow=s},expression:"approveDetailsShow"}},[t.approveDetailsShow?e("ApproveDetails",{staticStyle:{height:"100%","border-radius":"10px"},attrs:{data:t.approveDetails}}):t._e()],1),e("DialogGroupWordChain"),e("DialogGroupVote")],1):t._e()},de=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-top-message-font"},[e("i",{staticClass:"taskfont"},[t._v("\uE7E6")])])}];const he={name:"DialogWrapper",components:{UserAvatarTip:K,UserSelect:R,ImgUpload:W,DialogRespond:Rt,DialogItem:k,VirtualList:z,ChatInput:Kt,DialogGroupInfo:Mt,DrawerOverlay:U,DialogUpload:kt,ApproveDetails:Q,DialogGroupWordChain:se,DialogGroupVote:le},directives:{touchclick:O},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},location:{type:String,default:""},isChildComponent:{type:Boolean,default:!1},beforeBack:Function},data(){return{loadIng:0,msgItem:k,msgText:"",msgNew:0,msgType:"",msgActivity:!1,msgPrepared:!1,focusLazy:!1,focusTimer:null,allMsgs:[],tempMsgs:[],tempId:$A.randNum(1e9,9999999999),msgLoadIng:0,msgActiveId:0,pasteShow:!1,pasteFile:[],pasteItem:[],searchShow:!1,searchKey:"",searchLoad:0,searchLocation:1,searchResult:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,modifyShow:!1,modifyData:{},modifyLoad:0,forwardhow:!1,forwardData:[],forwardLoad:0,forwardMessage:"",forwardSource:!0,openId:0,dialogDrag:!1,groupInfoShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},operateClient:{x:0,y:0},operateVisible:!1,operatePreventScroll:0,operateCopys:[],operateStyles:{},operateItem:{},recordState:"",wrapperStart:null,scrollTail:0,scrollOffset:0,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[],quick_value:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,scrollIng:0,scrollGroup:null,approveDetails:{id:0},approveDetailsShow:!1,approvaUserStatus:"",observers:[],msgChangeCache:{},unreadOne:0,topPosLoad:0,positionLoad:0,positionShow:!1,preventMoreLoad:!1,preventToBottom:!1,selectedTextStatus:!1,scrollToBottomRefresh:!1,androidKeyboardVisible:!1}},mounted(){this.subMsgListener(),this.msgSubscribe=v.Store.subscribe("dialogMsgChange",this.onMsgChange),document.addEventListener("selectionchange",this.onSelectionchange)},beforeDestroy(){this.subMsgListener(!0),this.isChildComponent||(this.$store.dispatch("forgetInDialog",this._uid),this.$store.dispatch("closeDialog",this.dialogId)),this.msgSubscribe&&(this.msgSubscribe.unsubscribe(),this.msgSubscribe=null),this.observers.forEach(({observer:i})=>i.disconnect()),this.observers=[],document.removeEventListener("selectionchange",this.onSelectionchange);const t=this.$refs.scroller;t&&t.virtual.destroy()},computed:{...m(["systemConfig","userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTops","dialogMsgTransfer","dialogMsgKeep","dialogIns","cacheDialogs","wsOpenNum","touchBackInProgress","cacheUserBasic","fileLinks","cacheEmojis","readLoadNum","readTimeout","keyboardType","keyboardHeight","safeAreaBottom"]),...F(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){const t=this.cacheDialogs.find(({id:i})=>i==this.dialogId)||{};return this.unreadOne===0&&(this.unreadOne=t.unread_one||0),t},dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,i)=>t.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(t.top_at):t.todo_num>0||i.todo_num>0?i.todo_num-t.todo_num:$A.Date(i.last_at)-$A.Date(t.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(t=>t.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(t=>t.dialog_id==this.dialogId):[]},allMsgList(){const t=[];if(t.push(...this.dialogMsgList.filter(i=>this.msgFilter(i))),this.msgId>0){const i=this.dialogMsgs.find(e=>e.id==this.msgId);i&&t.unshift(i)}if(this.tempMsgList.length>0){const i=t.map(({id:s})=>s),e=this.tempMsgList.filter(s=>!i.includes(s.id)&&this.msgFilter(s));e.length>0&&t.push(...e)}return t.sort((i,e)=>i.id-e.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:t}=this;let i=t.find(({type:s})=>s=="image"),e=t.find(({type:s})=>s!="image");return i&&e?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":i?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags({dialogData:t}){const i=[{type:"",label:"\u6D88\u606F"}];return t.has_tag&&i.push({type:"tag",label:"\u6807\u6CE8"}),t.has_todo&&i.push({type:"todo",label:"\u4E8B\u9879"}),t.has_image&&i.push({type:"image",label:"\u56FE\u7247"}),t.has_file&&i.push({type:"file",label:"\u6587\u4EF6"}),t.has_link&&i.push({type:"link",label:"\u94FE\u63A5"}),t.group_type==="project"&&i.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),t.group_type==="task"&&i.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),t.group_type==="okr"&&i.push({type:"okr",label:"\u6253\u5F00OKR"}),i},topMsg(){return this.dialogData.top_msg_id&&this.dialogMsgTops.find(({id:t})=>t==this.dialogData.top_msg_id)},quickMsgs(){return this.dialogData.quick_msgs||[]},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(t=>!t.done_at&&t.dialog_id==this.dialogId).sort((t,i)=>i.id-t.id):[]},isDefaultSize(){return this.windowScrollY===0&&!this.androidKeyboardVisible},quickShow(){return this.quickMsgs.length>0&&this.isDefaultSize&&this.quoteId===0},todoShow(){return this.todoList.length>0&&this.isDefaultSize&&this.quoteId===0},tagShow(){return this.msgTags.length>1&&this.isDefaultSize&&!this.searchShow},topShow(){return this.topMsg&&this.isDefaultSize&&!this.searchShow&&this.msgType===""},wrapperClass(){return["ready","ing"].includes(this.recordState)?"record-ready":null},navClass(){return{completed:$A.dialogCompleted(this.dialogData),tagged:this.tagShow}},pasteClass(){return this.pasteItem.find(({type:t})=>t!=="image")?["multiple"]:[]},footerPaddingBottom({keyboardType:t,keyboardHeight:i,safeAreaBottom:e,windowScrollY:s,location:a,focusLazy:o}){return s<2&&a&&o&&t==="show"&&i>0&&i<120?i+e+(a==="modal"?15:0):0},msgUnreadOnly(){let t=0;return this.cacheDialogs.some(i=>{t+=$A.getDialogNum(i)}),t<=0?"":(t>999&&(t="999+"),String(t))},isMyDialog(){const{dialogData:t,userId:i}=this;return t.dialog_user&&t.dialog_user.userid==i},isManageBot(){const{dialogData:t,userId:i,userIsAdmin:e}=this;return t.bot?t.bot==i?!0:t.dialog_user&&t.dialog_user.userid==t.bot&&e:!1},isMute(){return this.dialogData.dialog_mute==="close"?!this.userIsAdmin:!1},quoteId(){return this.msgId>0?this.msgId:this.dialogData.extra_quote_id||0},quoteData(){return this.quoteId?this.allMsgs.find(({id:t})=>t===this.quoteId):null},todoViewMsg(){if(this.todoViewMid){const t=this.allMsgs.find(i=>i.id==this.todoViewMid);if(t)return t;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg({msgNew:t,dialogData:i,allMsgs:e}){const{unread:s,unread_one:a,mention:o,mention_ids:r}=i,n=s-t,l=[];return a&&l.push({type:"unread",label:this.$L(`\u672A\u8BFB\u6D88\u606F${n}\u6761`),msg_id:a}),r&&r.length>0&&l.push(...r.map(c=>({type:"mention",label:this.$L("@\u6211\u7684\u6D88\u606F"),msg_id:c}))),n<=0||l.length===0||e.length===0?null:l.find(c=>c.type===(o===0?"unread":"mention"))||l[0]},operateEmojis({cacheEmojis:t}){const i=t.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(e=>{i.includes(e)||i.push(e)}),i},maxSize({systemConfig:t}){return t!=null&&t.file_upload_limit?t.file_upload_limit*1024:1024e3},readEnabled({msgActivity:t,msgPrepared:i}){return t===0&&i},stickToBottom({windowActive:t,scrollTail:i,preventToBottom:e}){return t&&i<=0&&!e}},watch:{$route:{handler(t){const{name:i,params:e}=t||{};i=="manage-messenger"&&e.dialog_id&&e.open&&["word-chain","vote"].includes(e.open)&&this.$nextTick(s=>{this.$store.state[e.open=="word-chain"?"dialogDroupWordChain":"dialogGroupVote"]={type:"create",dialog_id:e.dialog_id},e.open=""})},immediate:!0},dialogId:{handler(t,i){t&&(this.msgNew=0,this.msgType="",this.unreadOne=0,this.scrollTail=0,this.scrollOffset=0,this.searchShow=!1,this.positionShow=!1,this.msgPrepared=!1,this.scrollToBottomRefresh=!1,this.allMsgs=this.allMsgList,this.getMsgs({dialog_id:t,msg_id:this.msgId,msg_type:this.msgType}).then(e=>{this.openId=t,this.msgPrepared=!0,setTimeout(s=>{this.onSearchMsgId(),this.positionShow=this.readTimeout===null},100)}).catch(e=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:t}),this.autoFocus&&this.inputFocus(),this.getUserApproveStatus()),this.$store.dispatch("closeDialog",i),window.localStorage.removeItem("__cache:vote__"),window.localStorage.removeItem("__cache:unfoldWordChain__")},immediate:!0},loadMsg:{handler(t){t?this.loadIng++:setTimeout(i=>{this.loadIng--},300)},immediate:!0},isReady:{handler(t){!t||this.$nextTick(i=>{if(this.$refs.msgs&&!this.observers.find(({key:e})=>e==="scroller")){const e=new ResizeObserver(this.onResizeEvent);e.observe(this.$refs.msgs),this.observers.push({key:"scroller",observer:e})}if(this.$refs.scroller&&(this.scrollGroup=this.$refs.scroller.$el.querySelector('[role="group"]'),this.scrollGroup&&!this.observers.find(({key:e})=>e==="scrollGroup"))){const e=new ResizeObserver(this.onResizeEvent);e.observe(this.scrollGroup),this.observers.push({key:"scrollGroup",observer:e})}})},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(t=>{})},searchKey(t){!t||(this.searchLoad++,setTimeout(i=>{this.searchKey===t&&(this.searchLoad++,this.searchResult=[],this.searchLocation=0,this.$store.dispatch("call",{url:"dialog/msg/search",data:{dialog_id:this.dialogId,key:t}}).then(({data:e})=>{this.searchKey===t&&(this.searchResult=e.data,this.searchLocation=this.searchResult.length)}).finally(e=>{this.searchLoad--})),this.searchLoad--},600))},searchLocation(t){if(t===0)return;const i=this.searchResult[t-1];i&&this.onPositionId(i)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:t,msgFile:i,msgRecord:e,msgText:s,dialogId:a}){t>$A.Time()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(i)&&i.length>0?this.sendFileMsg(i):$A.isJson(e)&&e.duration>0?this.sendRecord(e):s&&this.sendMsg(s)}))},immediate:!0},wsOpenNum(t){if(t<=1)return;const i=this.allMsgs[this.allMsgs.length-1];if($A(this.$refs.scroller.$el).find(`[data-id="${i.id}"]`).length===0){this.scrollToBottomRefresh=!0;return}this.onReGetMsg()},allMsgList(t){if(JSON.stringify(t)==JSON.stringify(this.allMsgs))return;const i=this.allMsgs.length,e=i>0?this.allMsgs[i-1].id:0;if($A.isIos()&&t.length!==i&&this.$refs.scroller){const s=this.$refs.scroller.$el;s.style.visibility="hidden",this.allMsgs=t,this.$nextTick(a=>{s.style.visibility="visible"})}else this.allMsgs=t;this.stickToBottom||(this.msgNew+=t.filter(s=>s.id&&s.id>e&&s.userid!=this.userId&&!s.read_at).length)},"allMsgs.length"(){this.stickToBottom&&this.onToBottom()},windowScrollY(t){$A.isIos()&&!this.$slots.head&&(this.$refs.nav.style.marginTop=`${t}px`)},windowActive(t){if(t&&this.autoFocus){const i=$A.last(this.dialogIns);i&&i.uid===this._uid&&this.inputFocus()}},windowHeight(){this.androidKeyboardVisible=$A.isAndroid()&&$A.eeuiAppKeyboardStatus(),requestAnimationFrame(this.$refs.input.updateTools)},dialogDrag(t){t&&(this.operateVisible=!1)},msgActiveId(t){var i;if(t>0){this.msgActiveId=0;const e=(i=this.$refs.scroller.$el.querySelector(`[data-id="${t}"]`))==null?void 0:i.querySelector(".dialog-head");e&&($A.scrollIntoViewIfNeeded(e),e.classList.add("common-shake"),setTimeout(s=>e.classList.remove("common-shake"),800))}},footerPaddingBottom(t){this.$refs.footer.style.paddingBottom=`${t}px`,requestAnimationFrame(i=>{this.$refs.input.updateTools()})},readLoadNum(){this.positionShow=!0},operateVisible(t){t||document.getSelection().removeAllRanges()}},methods:{subMsgListener(t=!1){!$A.isSubElectron||(t?this.$store.dispatch("websocketMsgListener","DialogWrapper"):this.$store.dispatch("websocketMsgListener",{name:"DialogWrapper",callback:i=>{const{type:e,mode:s,data:a}=i;e==="dialog"&&s==="add"&&this.tempMsgs.push(a)}}))},sendMsg(t,i){let e,s="text",a="no",o=!1;if(typeof t=="string"&&t?e=t:(e=this.msgText,o=!0),i==="md"?(e=this.$refs.input.getText(),s="md"):i==="silence"&&(a="yes"),e==""){this.inputFocus();return}if(s==="text"&&(e=e.replace(/<\/span> <\/p>$/,"

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

${t.label}

`)},onMsgChange(t){const i=this.allMsgs.find(({type:e,id:s})=>e=="text"&&s==t.id);i&&(typeof this.msgChangeCache[t.id]=="undefined"&&(this.msgChangeCache[t.id]=[],this.msgChangeCache[`${t.id}_load`]=!1),t.type==="append"?this.msgChangeCache[t.id].push(...`${t.text}`.split("").map(e=>({type:"append",text:e}))):t.type==="replace"&&(this.msgChangeCache[t.id]=[{type:"replace",text:t.text}]),this.onMsgOutput(t.id,i.msg))},onMsgOutput(t,i){const e=`${t}_load`,s=this.msgChangeCache[t];if(!(!s||s.length===0)&&this.msgChangeCache[e]!==!0){this.msgChangeCache[e]=!0;try{const a=s.shift();if(!a){this.msgChangeCache[e]=!1;return}const{type:o,text:r}=a,{tail:n}=this.scrollInfo();o==="append"?i.text+=r:o==="replace"&&(i.text=r),this.$nextTick(l=>{if(n<=10&&n!=this.scrollInfo().tail&&(this.operatePreventScroll++,this.$refs.scroller.scrollToBottom(),setTimeout(c=>this.operatePreventScroll--,50)),s.length===0){this.msgChangeCache[e]=!1;return}setTimeout(c=>{this.msgChangeCache[e]=!1,this.onMsgOutput(t,i)},5)})}catch{this.msgChangeCache[e]=!1}}},onSelectionchange(){const t=window.getSelection().type;this.selectedTextStatus=t==="Range"},getTempId(){return this.tempId++},getMsgs(t){return new Promise((i,e)=>{setTimeout(s=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",t).then(i).catch(e).finally(s=>{this.msgLoadIng--})})},msgFilter(t){if(this.msgType){if(this.msgType==="tag"){if(!t.tag)return!1}else if(this.msgType==="todo"){if(!t.todo)return!1}else if(this.msgType==="link"){if(!t.link)return!1}else if(this.msgType!==t.mtype)return!1}return!(this.msgId&&t.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(t,i=0,e=0){return new Promise((s,a)=>{if(t===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",e===0)this.$store.dispatch("showSpinner",600);else if(e>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}e++,setTimeout(n=>{this.onPositionId(t,i,e).then(s).catch(a)},Math.min(800,200*e));return}e>0&&this.$store.dispatch("hiddenSpinner");const o=this.allMsgs.findIndex(n=>n.id===t),r=this.prevId>0?0:-1;o>r?setTimeout(n=>{this.onToIndex(o,t),s()},200):(i>0&&this.$store.dispatch("setLoad",{key:`msg-${i}`,delay:600}),this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:t,spinner:2e3,save_before:n=>{this.preventToBottom=!0},save_after:n=>{this.$nextTick(l=>{this.preventToBottom=!1})}}).finally(n=>{const l=this.allMsgs.findIndex(c=>c.id===t);l>-1&&(this.onToIndex(l,t),s()),i>0&&this.$store.dispatch("cancelLoad",`msg-${i}`)}))})},onViewTodo(t){if(this.operateVisible)return;this.todoViewId=t.id,this.todoViewMid=t.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(e=>e.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:e})=>{this.todoViewData=e})},onCloseTodo(){this.todoViewLoad=!1,this.todoViewShow=!1,this.todoViewData={},this.todoViewMid=0,this.todoViewId=0},onPosTodo(){!this.todoViewMid||(this.todoViewPosLoad=!0,this.onPositionId(this.todoViewMid).then(this.onCloseTodo).finally(t=>{this.todoViewPosLoad=!1}))},onDoneTodo(){!this.todoViewId||this.todoViewLoad||(this.todoViewLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/done",data:{id:this.todoViewId}}).then(({data:t})=>{this.$store.dispatch("saveDialogTodo",{id:this.todoViewId,done_at:$A.formatDate("Y-m-d H:i:s")}),this.$store.dispatch("saveDialog",{id:this.dialogId,todo_num:this.todoList.length}),t.add&&this.sendSuccess(t.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.todoViewLoad=!1}))},inputFocus(){this.$nextTick(t=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(t){this.recordState=t},chatPasteDrag(t,i){if(this.dialogDrag=!1,$A.dataHasFolder(i==="drag"?t.dataTransfer:t.clipboardData)){t.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${i==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\u3002`);return}const e=i==="drag"?t.dataTransfer.files:t.clipboardData.files,s=Array.prototype.slice.call(e);s.length>0&&(t.preventDefault(),this.sendFileMsg(s))},chatDragOver(t,i){let e=this.__dialog_drag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialog_drag&&(this.dialogDrag=t)},150);else{if(i.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(i.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(t){if($A.isAndroid()&&$A.eeuiAppKeyboardStatus()&&$A.eeuiAppSetDisabledUserLongClickSelect(500),this.wrapperStart=null,this.selectedTextStatus){this.wrapperStart=window.scrollY;return}if(this.$refs.scroller.$el.contains(t.target))this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:t.touches[0].clientY});else if(this.$refs.input.$refs.editor.contains(t.target)){const i=this.$refs.input.$refs.editor.querySelector(".ql-editor");if(i){const e=i.clientHeight,s=i.scrollTop,a=i.scrollHeight;this.wrapperStart={offset:s,scale:s/(a-e),tail:a-e-s,clientY:t.touches[0].clientY}}}},onTouchMove(t){if(this.footerPaddingBottom>0||this.windowPortrait&&this.windowScrollY>0){if(typeof this.wrapperStart=="number")return;if(this.wrapperStart===null){t.preventDefault();return}this.wrapperStart.clientY>t.touches[0].clientY?this.wrapperStart.tail===0&&t.preventDefault():this.wrapperStart.offset===0&&t.preventDefault()}},onTouchEnd(){typeof this.wrapperStart=="number"&&$A.isIos()&&$A.scrollToView(this.$refs.footer,!1)},pasteSend(){this.__paste_send_index||(this.__paste_send_index=1,setTimeout(()=>{this.__paste_send_index=0},300),this.pasteFile.some(t=>{this.$refs.chatUpload.upload(t)}))},chatFile(t,i){switch(t){case"progress":const e=i.showProgress?Math.max(i.percentage,.01):!1,s=this.tempMsgs.find(({id:o})=>o==i.tempId);if(s){s.msg.percentage=e;return}const a={id:i.tempId,file_uid:i.uid,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"file",userid:this.userId,msg:Object.assign(i.msg||{},{percentage:e})};this.tempMsgs.push(a),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.forgetTempMsg(i.tempId);break;case"success":this.sendSuccess(i.data,i.tempId);break}},sendSuccess(t,i=0,e=!1){if($A.isArray(t)){t.some(s=>{this.sendSuccess(s,i)});return}if(i>0){const s=this.tempMsgs.findIndex(({id:a})=>a==i);s>-1&&this.tempMsgs.splice(s,1,t),setTimeout(a=>{this.forgetTempMsg(i),this.forgetTempMsg(t.id)},1e3)}this.$store.dispatch("saveDialog",{id:this.dialogId,hide:0}),this.$store.dispatch("saveDialogMsg",t),e||(this.$store.dispatch("increaseTaskMsgNum",t),this.$store.dispatch("increaseMsgReplyNum",t),this.$store.dispatch("updateDialogLastMsg",t)),this.cancelQuote(),this.onActive()},forgetTempMsg(t){this.tempMsgs=this.tempMsgs.filter(({id:i})=>i!=t)},setQuote(t,i){var e;(e=this.$refs.input)==null||e.setQuote(t,i)},cancelQuote(){var t;(t=this.$refs.input)==null||t.cancelQuote()},onEventFocus(){this.focusTimer&&clearTimeout(this.focusTimer),this.focusLazy=!0,this.$emit("on-focus")},onEventBlur(){this.focusTimer=setTimeout(t=>this.focusLazy=!1,10),this.$emit("on-blur")},onEventMore(t){switch(t){case"image":case"file":this.$refs.chatUpload.handleClick();break;case"call":this.onCallTel();break;case"anon":this.onAnon();break}},onCallTel(){$A.modalConfirm({content:`\u662F\u5426\u62E8\u6253\u7535\u8BDD\u7ED9 ${this.dialogData.name}\uFF1F`,onOk:()=>{this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:t})=>{t.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:t.tel}),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add),this.onActive())}).catch(({msg:t})=>{$A.modalError(t)})}})},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:t=>t?new Promise((i,e)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:t},method:"post"}).then(({msg:s})=>{i(s)}).catch(({msg:s})=>{e(s)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onResizeEvent(t){t.some(({target:i,contentRect:e})=>{i===this.$refs.msgs?this.onMsgsResize(e):i===this.scrollGroup&&this.onScrollGroupResize(e)})},onMsgsResize({height:t}){if(this.$refs.scroller.$el.style.height=`${t}px`,typeof this.__msgs_height!="undefined"){const i=this.__msgs_height-t;if(i!==0){const{offset:e,tail:s}=this.scrollInfo();s>0&&this.onToOffset(e+i)}}this.__msgs_height=t},onScrollGroupResize(){this.stickToBottom&&this.onToBottom()},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const t=this.$refs.scroller;t&&(t.scrollToBottom(),requestAnimationFrame(i=>t.scrollToBottom()))},onToIndex(t,i){const e=this.$refs.scroller;if(e){e.stopToBottom();const s=e.$el.querySelector(`[data-id="${i}"]`);s!=null&&s.parentNode.parentNode.classList.contains("item-enter")||(e.scrollToIndex(t,-80),requestAnimationFrame(a=>e.scrollToIndex(t,-80)))}requestAnimationFrame(s=>this.msgActiveId=i)},onToOffset(t,i=!1){const e=this.$refs.scroller;if(e){const s=e.getOffset()>t;e.stopToBottom(),e.scrollToOffset(t),setTimeout(a=>{s||i?e.virtual.handleFront():e.virtual.handleBehind()},10)}},scrollInfo(){const t=this.$refs.scroller;return t?t.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)},onReGetMsg(){this.scrollToBottomRefresh=!1,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(t=>{})},onPrevPage(){this.prevId!==0&&this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,prev_id:this.prevId,save_before:t=>this.scrollDisabled=!0,save_after:t=>this.scrollDisabled=!1}).then(({data:t})=>{const i=t.list.map(e=>e.id);this.$nextTick(()=>{const e=this.$refs.scroller,s=i.reduce((a,o)=>({size:(typeof a=="object"?a.size:e.getSize(a))+e.getSize(o)}));this.onToOffset(e.getOffset()+s.size,!0)})}).catch(()=>{})},onDialogMenu(t){var i;switch(t){case"searchMsg":this.searchShow=!0,this.$nextTick(s=>{this.$refs.searchInput.focus()});break;case"openCreate":const e=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&e.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:e,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:(i=this.cacheUserBasic.find(s=>s.userid===this.dialogData.dialog_user.userid))==null?void 0:i.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:s})=>{this.modifyData.clear_day=s.clear_day,this.modifyData.webhook_url=s.webhook_url,this.modifyData.system_name=s.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:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{i(e)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{i(e)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:i})=>{$A.messageSuccess(i),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},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:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveUserBasic",{userid:this.modifyData.userid,nickname:t.name,userimg:t.avatar}),this.$store.dispatch("saveDialog",{id:this.modifyData.dialog_id,name:t.name}),this.modifyShow=!1,this.modifyData={}}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.modifyLoad--})):(this.modifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.modifyData}).then(({data:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveDialog",t),this.modifyShow=!1,this.modifyData={}}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.modifyLoad--}))},onForwardBefore(){return new Promise((t,i)=>{this.forwardData=this.$refs.forwardSelect.formatSelect(this.$refs.forwardSelect.selects),this.forwardData.length===0?$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"):(this.forwardMessage="",this.forwardSource=!0,this.forwardhow=!0),i()})},onForwardAffirm(){const t=this.$refs.forwardSelect.selects;if(t.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458");return}const i=t.filter(s=>$A.leftExists(s,"d:")).map(s=>s.replace("d:","")),e=t.filter(s=>!$A.leftExists(s,"d:"));this.forwardLoad++,this.$store.dispatch("call",{url:"dialog/msg/forward",data:{dialogids:i,userids:e,msg_id:this.operateItem.id,show_source:this.forwardSource?1:0,leave_message:this.forwardMessage}}).then(({data:s,msg:a})=>{this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),$A.messageSuccess(a),this.$refs.forwardSelect.hide(),this.forwardhow=!1}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.forwardLoad--})},onActivity(t){if(this.msgActivity===!1){t&&(this.msgActivity=1);return}t?this.msgActivity++:this.msgActivity--},onScroll(t){this.operatePreventScroll===0&&(this.operateVisible=!1);const{offset:i,tail:e}=this.scrollInfo();this.scrollOffset=i,this.scrollTail=e,e<=10&&(this.msgNew=0,this.scrollToBottomRefresh&&this.onReGetMsg()),this.scrollAction=t.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(s=>this.scrollTmp=this.scrollAction,0),this.scrollIng++,setTimeout(s=>this.scrollIng--,100)},onRange(t){if(this.preventMoreLoad)return;const i=this.scrollDirection==="down"?"next_id":"prev_id";for(let e=t.start;e<=t.end;e++){if(!this.allMsgs[e])continue;const s=this.allMsgs[e][i];if(!s)continue;const a=this.allMsgs[e+(i==="next_id"?1:-1)];a&&a.id!=s&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[i]:s}).finally(o=>{this.preventMoreLoad=!1}))}},onBack(){if(!this.beforeBack)return this.handleBack();const t=this.beforeBack();t&&t.then?t.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:t,params:i}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(i.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(t){switch(t){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=t;break}},onMention(t){const i=this.cacheUserBasic.find(({userid:e})=>e==t.userid);i&&this.$refs.input.addMention({denotationChar:"@",id:i.userid,value:i.nickname})},onLongpress({event:t,el:i,msgData:e}){if(this.operateVisible=this.operateItem.id===e.id,this.operateItem=$A.isJson(e)?e:{},this.operateCopys=[],t.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.thumbRestore(t.target.currentSrc)}):t.target.nodeName==="A"&&(t.target.classList.contains("mention")&&t.target.classList.contains("file")&&this.findOperateFile(this.operateItem.id,t.target.href),this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:t.target.href})),e.type==="text"){t.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.thumbRestore(t.target.currentSrc)});const s=this.getSelectedTextInElement(i);if(s.length>0&&this.operateCopys.push({type:"selected",icon:"",label:"\u590D\u5236\u9009\u62E9",value:s}),e.msg.text.replace(/<[^>]+>/g,"").length>0){let a=this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236";s.length>0&&(a="\u590D\u5236\u5168\u90E8"),this.operateCopys.push({type:"text",icon:"",label:a,value:""})}}this.$nextTick(()=>{const s=i.getBoundingClientRect(),a=this.$refs.scroller.$el.getBoundingClientRect();let o=s.top+this.windowScrollY,r=s.height;s.topa.bottom&&(r-=s.bottom-a.bottom),this.operateStyles={left:`${t.clientX}px`,top:`${o}px`,height:`${r}px`},this.operateClient={x:t.clientX,y:t.clientY},this.operateVisible=!0})},onOperate(t,i=null){this.operateVisible=!1,this.$nextTick(e=>{switch(t){case"cancel":this.onCancelSend();break;case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(i);break;case"forward":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 s=$A.formatMsgBasic(this.operateItem.msg.text);s=s.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),v.Store.set("addTask",{owner:[this.userId],content:s});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":i==="more"?Yt().then(this.onEmoji):this.onEmoji(i);break;case"top":this.onTopOperate();break}})},onCancelSend(){$A.modalConfirm({title:"\u53D6\u6D88\u53D1\u9001",content:"\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u53D1\u9001\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,i)=>{if(this.operateItem.created_at){i("\u6D88\u606F\u5DF2\u53D1\u9001\uFF0C\u4E0D\u53EF\u53D6\u6D88");return}this.operateItem.type==="file"?this.$refs.chatUpload.cancel(this.operateItem.file_uid)?(this.forgetTempMsg(this.operateItem.id),t()):i("\u53D6\u6D88\u53D1\u9001\u5931\u8D25"):this.$store.dispatch("callCancel",this.operateItem.id).then(()=>{this.forgetTempMsg(this.operateItem.id),t()}).catch(()=>{i("\u53D6\u6D88\u53D1\u9001\u5931\u8D25")})})})},onReply(t){this.setQuote(this.operateItem.id,t),this.inputFocus()},onUpdate(){const{type:t}=this.operateItem;if(this.onReply(t==="text"?"update":"reply"),t==="text"){let{text:i,type:e}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),e==="md"?this.$refs.input.setText(i):(i.indexOf("mention")>-1&&(i=i.replace(/]*)>~([^>]*)<\/a>/g,'~$3'),i=i.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),i=i.replace(/]*>/gi,s=>s.replace(/(width|height)="\d+"\s*/ig,"")),i=i.replace(/

<\/p>/g,"


"),this.msgText=$A.formatMsgBasic(i)),this.$nextTick(s=>this.$refs.input.setPasteMode(!0))}},onCopy(t){if(!$A.isJson(t))return;const{type:i,value:e}=t;switch(i){case"image":this.$Electron&&this.getBase64Image(e).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$Electron?this.$Electron.sendMessage("saveImageAt",{params:{},url:e}):this.$store.dispatch("downUrl",{url:e,token:!1});break;case"filepos":this.$store.dispatch("filePos",e);break;case"link":this.copyText(e);break;case"selected":this.copyText(e);break;case"text":const s=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(s.length>0){const a=s[0].innerText.replace(/\n\n/g,` -`).replace(/(^\s*)|(\s*$)/g,"");this.copyText(a)}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((t,i)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{t("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:e})=>{i(e)})})})},onViewReply(t){this.operateVisible||this.onPositionId(t.reply_id,t.msg_id)},onViewText({target:t},i){if(this.operateVisible)return;let e=t;for(;e&&!e.classList.contains("dialog-scroller");){if(e.classList.contains("open-approve-details")){const s=e.getAttribute("data-id");window.innerWidth<426?this.goForward({name:"manage-approve-details",query:{id:e.getAttribute("data-id")}}):(this.approveDetailsShow=!0,this.$nextTick(()=>{this.approveDetails={id:s}}));return}e=e.parentElement}switch(t.nodeName){case"IMG":if(t.classList.contains("browse"))this.onViewPicture(t.currentSrc);else{const a=$A.getTextImagesInfo(i.outerHTML),o=a.findIndex(r=>r.src==t.currentSrc);this.$store.dispatch("previewImage",{index:o,list:a})}break;case"SPAN":t.classList.contains("mention")&&t.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(t.getAttribute("data-id"))),t.classList.contains("mention")&&t.classList.contains("okr")&&this.$store.dispatch("openOkr",$A.runNum(t.getAttribute("data-id")));break;case"LI":const s=t.getAttribute("data-list");if(["checked","unchecked"].includes(s)){let a=i.parentElement;for(;a&&!a.classList.contains("dialog-scroller");){if(a.classList.contains("dialog-view")){const o=a.getAttribute("data-id"),r=[].indexOf.call(i.querySelectorAll(t.tagName),t);s==="checked"?t.setAttribute("data-list","unchecked"):t.setAttribute("data-list","checked"),this.$store.dispatch("setLoad",{key:`msg-${o}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/checked",data:{dialog_id:this.dialogId,msg_id:o,index:r,checked:s==="checked"?0:1}}).then(({data:n})=>{this.$store.dispatch("saveDialogMsg",n)}).catch(({msg:n})=>{$A.modalError(n)}).finally(n=>{this.$store.dispatch("cancelLoad",`msg-${o}`)});break}a=a.parentElement}}break}},onViewFile(t){if(this.operateVisible)return;$A.isJson(t)||(t=this.operateItem);const{msg:i}=t;if(["jpg","jpeg","webp","gif","png"].includes(i.ext)){this.onViewPicture(i.path);return}const e=`/single/file/msg/${t.id}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-msg-${t.id}`,path:e,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${i.name} (${$A.bytesToSize(i.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:i.ext==="drawio"}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:`${i.name} (${$A.bytesToSize(i.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${e}`}}):window.open($A.mainUrl(e.substring(1)))},onViewPicture(t){const i=this.allMsgs.filter(a=>a.type==="file"?["jpg","jpeg","webp","gif","png"].includes(a.msg.ext):a.type==="text"?a.msg.text.match(/]*?>/):!1),e=[];i.some(({type:a,msg:o})=>{a==="file"?e.push({src:o.path,width:o.width,height:o.height}):a==="text"&&e.push(...$A.getTextImagesInfo(o.text))});const s=e.findIndex(({src:a})=>a===t);s>-1?this.$store.dispatch("previewImage",{index:s,list:e}):this.$store.dispatch("previewImage",t)},onDownFile(t){this.operateVisible||($A.isJson(t)||(t=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.msg.name} (${$A.bytesToSize(t.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${t.id}`))}}))},onReplyList(t){this.operateVisible||(this.replyListId=t.msg_id,this.replyListShow=!0)},onError(t){if(t.error!==!0)return;const{type:i,mType:e,content:s,msg:a}=t.errorData,o={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:s,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:r=>{this.forgetTempMsg(t.id)}};if(i==="text")o.okText="\u91CD\u65B0\u53D1\u9001",o.onOk=()=>{this.forgetTempMsg(t.id),this.sendMsg(a,e)};else if(i==="record")o.okText="\u91CD\u65B0\u53D1\u9001",o.onOk=()=>{this.forgetTempMsg(t.id),this.sendRecord(a)};else return;$A.modalConfirm(o)},onEmoji(t){$A.isJson(t)||(t={msg_id:this.operateItem.id,symbol:t});const i=this.cacheEmojis.filter(e=>e!==t.symbol);i.unshift(t.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=i.slice(0,3)),this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:t}).then(({data:e})=>{this.dialogMsgs.findIndex(a=>a.id==e.id)>-1?this.$store.dispatch("saveDialogMsg",e):this.todoViewData.id===e.id&&(this.todoViewData=Object.assign(this.todoViewData,e))}).catch(({msg:e})=>{$A.messageError(e)}).finally(e=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onShowEmojiUser(t){this.operateVisible||(this.respondData=t,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const t={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:t}).then(({data:i})=>{this.tagOrTodoSuccess(i)}).catch(({msg:i})=>{$A.messageError(i)}).finally(i=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onTypeChange(t){t==="user"&&(this.todoSettingData.userids.length===0&&this.todoSettingData.quick_value.length>0&&(this.todoSettingData.userids=this.todoSettingData.quick_value),this.$nextTick(i=>{this.$refs.userSelect.onSelection()})),t!=="quick_select"&&(this.todoSettingData.quick_value=[])},onQuickChange(t){this.todoSettingData.type=t.length===0?"all":"quick_select"},onTodo(t){var i;if(!this.operateVisible)if(t==="submit"){const e=$A.cloneJSON(this.todoSettingData);if(e.type==="quick_select")e.type="user",e.userids=e.quick_value;else if(e.type==="user"&&$A.arrayLength(e.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(e).then(s=>{$A.messageSuccess(s),this.todoSettingShow=!1}).catch(s=>{$A.messageError(s)}).finally(s=>{this.todoSettingLoad--})}else{const e={};e[this.userId]=this.userId;const s=(i=this.dialogData.dialog_user)==null?void 0:i.userid;if(s&&s!=this.userId&&!this.dialogData.bot&&(e[s]=s),this.operateItem.type==="text"){const a=/([^<]+)<\/span>/g,o=this.operateItem.msg.text.match(a);o&&o.forEach(r=>{const n=parseInt(r.replace(a,"$1"));n&&n!=this.userId&&(e[n]=n)})}this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,quick_value:[],quick_list:Object.values(e)},this.operateItem.todo?$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u5F85\u529E\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTodoSubmit(this.todoSettingData)}):this.todoSettingShow=!0}},onTodoSubmit(t){return new Promise((i,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:t}).then(({data:s,msg:a})=>{i(a),this.tagOrTodoSuccess(s),this.onActive()}).catch(({msg:s})=>{e(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},tagOrTodoSuccess(t){this.$store.dispatch("saveDialogMsg",t.update),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add))},onSearchSwitch(t){if(this.searchResult.length!==0){if(this.searchLocation===1&&this.searchResult.length===1){this.onPositionId(this.searchResult[0]);return}t==="prev"?this.searchLocation<=1?this.searchLocation=this.searchResult.length:this.searchLocation--:this.searchLocation>=this.searchResult.length?this.searchLocation=1:this.searchLocation++}},onSearchKeyup(t){(t===null||t.keyCode===27)&&(this.searchShow=!1,this.searchKey="",this.searchResult=[])},onPositionMark(t){this.positionLoad>0||(this.positionLoad++,this.onPositionId(t).finally(i=>{this.positionLoad--}))},actionPermission(t,i){if(i==="forward"){if(["word-chain","vote"].includes(t.type))return!1;if(t.type==="text")return typeof t.msg.approve_type=="undefined"}else if(i==="newTask")return t.type==="text"?typeof t.msg.approve_type=="undefined":!1;return!0},findOperateFile(t,i){const e=this.fileLinks.find(s=>s.link===i);if(e){this.addFileMenu(t,e);return}this.$store.dispatch("searchFiles",{link:i}).then(({data:s})=>{if(s.length===1){const a={link:i,id:s[0].id,pid:s[0].pid};this.fileLinks.push(a),this.addFileMenu(t,a)}}).catch(s=>{})},addFileMenu(t,i){if(this.operateItem.id!=t||this.operateCopys.findIndex(s=>s.type==="filepos")!==-1)return;const e=Math.max(0,this.operateCopys.findIndex(s=>s.type==="link")-1);this.operateCopys.splice(e,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:i.pid,fileId:null,shakeId:i.id}})},getBase64Image(t){return new Promise(i=>{let e=document.createElement("CANVAS"),s=e.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{e.height=a.height,e.width=a.width,s.drawImage(a,0,0);let o="png";$A.rightExists(t,"jpg")||$A.rightExists(t,"jpeg")?o="jpeg":$A.rightExists(t,"webp")?o="webp":$A.rightExists(t,"git")&&(o="git"),i(e.toDataURL(`image/${o}`)),e=null},a.src=t})},getSelectedTextInElement(t){let i="";if(window.getSelection){let e=window.getSelection();if(e.rangeCount>0){const s=e.getRangeAt(0);t.contains(s.commonAncestorContainer)&&(i=s.toString())}}return i},onViewAvatar(t){let i=null;t.target.tagName==="IMG"?i=t.target.src:i=$A(t.target).find("img").attr("src"),i&&this.$store.dispatch("previewImage",i)},onTopOperate(){this.operateVisible||(this.operateItem.top_at?this.onCancelTop(this.operateItem):this.onTopSubmit(this.operateItem))},onTopSubmit(t){return new Promise((i,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/top",data:{msg_id:t.id}}).then(({data:s,msg:a})=>{var o,r,n;if(i(a),this.$store.dispatch("saveDialog",{id:this.dialogId,top_msg_id:((o=s.update)==null?void 0:o.top_msg_id)||0,top_userid:((r=s.update)==null?void 0:r.top_userid)||0}),(n=s.update)!=null&&n.top_msg_id){const l=this.dialogMsgs.findIndex(({id:c})=>c==s.update.top_msg_id);l>-1&&this.$store.dispatch("saveDialogMsgTop",Object.assign({},this.dialogMsgs[l]))}s.add&&(this.$store.dispatch("saveDialogMsg",s.add),this.$store.dispatch("updateDialogLastMsg",s.add),this.onActive())}).catch(({msg:s})=>{e(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},onPosTop(){!this.topMsg||(this.topPosLoad++,this.onPositionId(this.topMsg.id).finally(t=>{this.topPosLoad--}))},onCancelTop(t){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u7F6E\u9876\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTopSubmit(t)})},getUserApproveStatus(){this.approvaUserStatus="",!(this.dialogData.type!=="user"||this.dialogData.bot)&&this.$store.dispatch("call",{url:"approve/user/status",data:{userid:this.dialogData.dialog_user.userid}}).then(({data:t})=>{this.approvaUserStatus=t}).catch(({msg:t})=>{$A.messageError(t)})}}},j={};var ue=u(he,ce,de,!1,pe,null,null,null);function pe(t){for(let i in j)this[i]=j[i]}var Ie=function(){return ue.exports}();export{Kt as C,Ie as D}; +`,this.list=[])},dialogDroupWordChain(t){t.type=="create"&&t.dialog_id&&(this.show=!0,this.createId=this.userId,this.list=[],this.list.push({id:Date.now(),type:"case",userid:this.userId,text:""}),this.list.push({id:Date.now()+1,type:"text",userid:this.userId,text:this.userInfo.nickname})),t.type=="participate"&&t.dialog_id&&t.msgData&&(this.show=!0,this.createId=t.msgData.msg.createid||t.msgData.msg.userid,this.value=t.msgData.msg.text,this.list=this.allList,this.oldData=JSON.stringify(this.list))}},methods:{onAdd(){this.list.push({id:Date.now(),type:"text",userid:this.userId,text:this.userInfo.nickname}),this.scrollTo()},scrollTo(){this.$nextTick(()=>{this.$refs.wordChainListRef.scrollTo(0,99999)})},onSend(){if(!this.isEdit)return;if(!this.value){$A.messageError("\u8BF7\u8F93\u5165\u63A5\u9F99\u4E3B\u9898");return}const t=this.list.map(i=>i.text);if(t.length!=[...new Set(t)].length){$A.modalConfirm({content:"\u91CD\u590D\u5185\u5BB9\u5C06\u4E0D\u518D\u8BA1\u5165\u63A5\u9F99\u7ED3\u679C",cancelText:"\u8FD4\u56DE\u7F16\u8F91",okText:"\u7EE7\u7EED\u53D1\u9001",onOk:()=>{this.send()}});return}this.send()},send(){var i,e;const t=[];this.list.forEach(s=>{(s.text||s.type!="case")&&t.map(a=>a.text).indexOf(s.text)==-1&&t.push(s)}),this.loadIng++,this.$store.dispatch("call",{url:"dialog/msg/wordchain",method:"post",data:{dialog_id:this.dialogDroupWordChain.dialog_id,text:this.value,list:t,uuid:((e=(i=this.dialogDroupWordChain.msgData)==null?void 0:i.msg)==null?void 0:e.uuid)||""}}).then(({data:s})=>{this.show=!1,this.$store.dispatch("saveDialogMsg",s)}).catch(({msg:s})=>{if(s.indexOf("System error")!==-1){$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"});return}$A.modalError(s)}).finally(s=>{this.loadIng--})}}},A={};var te=u(Zt,Jt,Xt,!1,ee,null,null,null);function ee(t){for(let i in A)this[i]=A[i]}var se=function(){return te.exports}(),ie=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("Modal",{attrs:{"class-name":"dialog-droup-word-chain","mask-closable":!1,title:t.dialogGroupVote.type=="create"?t.$L("\u53D1\u8D77\u6295\u7968"):t.$L("\u6295\u7968\u7ED3\u679C"),closable:!t.isFullscreen,fullscreen:t.isFullscreen,"footer-hide":t.isFullscreen},scopedSlots:t._u([{key:"header",fn:function(){return[t.isFullscreen?e("div",{staticClass:"chain-modal-header"},[e("div",{staticClass:"chain-modal-close",on:{click:function(s){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[t._v(" "+t._s(t.dialogGroupVote.type=="create"?t.$L("\u53D1\u8D77\u6295\u7968"):t.$L("\u6295\u7968\u7ED3\u679C"))+" ")]),e("div",{staticClass:"chain-modal-submit",class:{disabled:!t.isEdit},on:{click:t.onSend}},[t.loadIng>0?e("div",{staticClass:"submit-loading"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u53D1\u9001"))+" ")])]):t._e()]},proxy:!0},{key:"close",fn:function(){return[e("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0}]),model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("div",{ref:"wordChainBodyRef",staticClass:"word-chain-body"},[t.dialogGroupVote.type=="create"?e("div",{staticClass:"source"},[t._v(" "+t._s(t.$L("\u6765\u81EA"))+" "),e("span",[t._v(t._s(t.dialog.name))])]):t._e(),e("div",{staticClass:"initiate"},[e("span",[t._v(t._s(t.$L("\u7531")))]),e("UserAvatar",{attrs:{userid:t.createId,size:22,showName:!0,tooltipDisabled:""}}),e("span",[t._v(" "+t._s(t.$L("\u53D1\u8D77")))])],1),e("div",{staticClass:"textarea"},[e("Input",{ref:"wordChainTextareaRef",attrs:{type:"textarea",placeholder:t.$L("\u8BF7\u8F93\u5165\u6295\u7968\u4E3B\u9898"),autosize:{minRows:3,maxRows:5},disabled:t.dialogGroupVote.type!="create"},model:{value:t.value,callback:function(s){t.value=s},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(s,a){return e("li",[e("i",{staticClass:"taskfont",class:{disabled:t.list.length<=2},on:{click:function(o){return t.onDel(a)}}},[t._v("\uE680")]),e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u9009\u9879\u5185\u5BB9")},model:{value:s.text,callback:function(o){t.$set(s,"text",o)},expression:"item.text"}})],1)}),e("li",{staticClass:"add"},[e("i",{staticClass:"taskfont",on:{click:t.onAdd}},[t._v("\uE78C")])])],2),t.dialogGroupVote.type=="create"?e("div",{staticClass:"switch-row"},[e("span",{staticClass:"label"},[t._v(t._s(t.$L("\u5141\u8BB8\u591A\u9009")))]),e("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.multiple,callback:function(s){t.multiple=s},expression:"multiple"}})],1):t._e(),t.dialogGroupVote.type=="create"?e("div",{staticClass:"switch-row"},[e("span",{staticClass:"label"},[t._v(t._s(t.$L("\u533F\u540D\u6295\u7968")))]),e("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.anonymous,callback:function(s){t.anonymous=s},expression:"anonymous"}})],1):t._e()]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0,disabled:!t.isEdit},on:{click:t.onSend}},[t._v(t._s(t.$L("\u53D1\u9001")))])],1)])},ae=[];const oe={name:"DialogGroupVote",data(){return{show:!1,createId:0,value:"",list:[],multiple:0,anonymous:0,oldData:"",loadIng:0}},computed:{...m(["dialogGroupVote","userInfo","dialogMsgs","cacheDialogs"]),isFullscreen({windowWidth:t}){return t<576},allList(){var e;const t=((e=this.dialogGroupVote.msgData)==null?void 0:e.msg)||{};let i=JSON.parse(JSON.stringify(t.list||[]));return this.dialogMsgs.filter(s=>{var a;return s.type=="word-chain"&&((a=s.msg)==null?void 0:a.uuid)==t.uuid}).forEach(s=>{(s.msg.list||[]).forEach(a=>{i.map(o=>o.id).indexOf(a.id)==-1&&i.push(a)})}),i},isEdit(){return this.oldData!=JSON.stringify(this.list)},dialog(){return this.cacheDialogs.find(t=>t.id==this.dialogGroupVote.dialog_id)||{}}},watch:{show(t){t?(this.dialogGroupVote.type=="create"&&this.$nextTick(()=>{this.$refs.wordChainTextareaRef.focus()}),this.scrollTo()):(this.value="",this.list=[])},dialogGroupVote(t){t.type=="create"&&t.dialog_id&&(this.show=!0,this.createId=this.userId,this.list=[{id:Date.now(),text:""},{id:Date.now()+1,text:""}]),t.type=="participate"&&t.dialog_id&&t.msgData&&(this.show=!0,this.createId=t.msgData.msg.userid,this.value=t.msgData.msg.text,this.list=this.allList,this.oldData=JSON.stringify(this.list))}},methods:{onAdd(){this.list.push({id:Date.now(),text:""}),this.scrollTo()},onDel(t){this.list.length>2&&this.list.splice(t,1)},scrollTo(){this.$nextTick(()=>{this.$refs.wordChainListRef.scrollTo(0,99999)})},onSend(){var t,i;if(!!this.isEdit){if(!this.value){$A.messageError("\u8BF7\u8F93\u5165\u6295\u7968\u4E3B\u9898");return}if(this.list.find(e=>!e.text)){$A.messageError("\u8BF7\u8F93\u5165\u9009\u9879\u5185\u5BB9");return}this.loadIng++,this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:this.dialogGroupVote.dialog_id,text:this.value,list:this.list,uuid:((i=(t=this.dialogGroupVote.msgData)==null?void 0:t.msg)==null?void 0:i.uuid)||"",multiple:this.multiple,anonymous:this.anonymous}}).then(({data:e})=>{this.show=!1,this.$store.dispatch("saveDialogMsg",e)}).catch(({msg:e})=>{if(e.indexOf("System error")!==-1){$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"});return}$A.modalError(e)}).finally(e=>{this.loadIng--})}}}},E={};var re=u(oe,ie,ae,!1,ne,null,null,null);function ne(t){for(let i in E)this[i]=E[i]}var le=function(){return re.exports}(),de=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.isReady?e("div",{staticClass:"dialog-wrapper",class:t.wrapperClass,on:{drop:function(s){return s.preventDefault(),t.chatPasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),t.chatDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),t.chatDragOver(!1,s)},touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd}},[e("div",{ref:"nav",staticClass:"dialog-nav"},[t._t("head",function(){return[e("div",{staticClass:"nav-wrapper",class:t.navClass},[e("div",{staticClass:"dialog-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")]),t.msgUnreadOnly?e("div",{staticClass:"back-num"},[t._v(t._s(t.msgUnreadOnly))]):t._e()]),e("div",{staticClass:"dialog-block"},[e("div",{staticClass:"dialog-avatar",on:{click:t.onViewAvatar}},[t.dialogData.type=="group"?[t.dialogData.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:t.dialogData.avatar,size:42}}):t.dialogData.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):t.dialogData.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):t.dialogData.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):t.dialogData.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t.dialogData.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatarTip",{attrs:{online:t.dialogData.online_state,userid:t.dialogData.dialog_user.userid,size:42},on:{"update:online":function(s){return t.$set(t.dialogData,"online_state",s)}}},[t.dialogData.type==="user"&&t.dialogData.online_state!==!0?e("p",{attrs:{slot:"end"},slot:"end"},[t._v(" "+t._s(t.$L(t.dialogData.online_state))+" ")]):t._e()])],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),e("div",{staticClass:"dialog-title"},[e("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),function(s){return s.color!="success"?[e("Tag",{attrs:{color:s.color,fade:!1}},[t._v(t._s(t.$L(s.text)))])]:t._e()}),e("h2",[t._v(t._s(t.dialogData.name))]),t.peopleNum>0?e("em",{on:{click:function(s){return t.onDialogMenu("groupInfo")}}},[t._v("("+t._s(t.peopleNum)+")")]):t._e(),t.dialogData.bot?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u673A\u5668\u4EBA")))]):t._e(),t.dialogData.type==="user"&&t.approvaUserStatus?e("Tag",{staticClass:"after",attrs:{color:"red",fade:!1}},[t._v(t._s(t.$L(t.approvaUserStatus)))]):t._e(),t.dialogData.group_type=="all"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(s){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u5168\u5458")))]):t.dialogData.group_type=="department"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(s){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u90E8\u95E8")))]):t._e(),t.msgLoadIng>0&&t.allMsgs.length>0?e("div",{staticClass:"load"},[e("Loading")],1):t._e()],2),e("ul",{staticClass:"title-desc"},[t.dialogData.type==="user"?e("li",{class:[t.dialogData.online_state===!0?"online":"offline"]},[t._v(" "+t._s(t.$L(t.dialogData.online_state===!0?"\u5728\u7EBF":t.dialogData.online_state))+" ")]):t._e()]),t.tagShow?e("ul",{staticClass:"title-tags scrollbar-hidden"},t._l(t.msgTags,function(s){var a;return e("li",{key:s.type,class:(a={},a[s.type||"msg"]=!0,a.active=t.msgType===s.type,a),on:{click:function(o){return t.onMsgType(s.type)}}},[e("i",{staticClass:"no-dark-content"}),e("span",[t._v(t._s(t.$L(s.label)))])])}),0):t._e()])]),e("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:t.onDialogMenu}},[e("i",{staticClass:"taskfont dialog-menu-icon"},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"searchMsg"}},[e("div",[t._v(t._s(t.$L("\u641C\u7D22\u6D88\u606F")))])]),t.dialogData.type==="user"?[t.isManageBot?e("EDropdownItem",{attrs:{command:"modifyNormal"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u8D44\u6599")))])]):t._e(),e("EDropdownItem",{attrs:{command:"openCreate"}},[e("div",[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4")))])])]:[e("EDropdownItem",{attrs:{command:"groupInfo"}},[e("div",[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),t.dialogData.owner_id!=t.userId?[t.dialogData.group_type==="all"&&t.userIsAdmin?e("EDropdownItem",{attrs:{command:"modifyAdmin"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u8D44\u6599")))])]):t._e(),e("EDropdownItem",{attrs:{command:"exit"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:t.dialogData.group_type==="user"?[e("EDropdownItem",{attrs:{command:"modifyNormal"}},[e("div",[t._v(t._s(t.$L("\u4FEE\u6539\u8D44\u6599")))])]),e("EDropdownItem",{attrs:{command:"transfer"}},[e("div",[t._v(t._s(t.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),e("EDropdownItem",{attrs:{command:"disband"}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:t._e()]],2)],1),t.searchShow?e("div",{staticClass:"dialog-search"},[e("div",{staticClass:"search-location"},[e("i",{staticClass:"taskfont",on:{click:function(s){return t.onSearchSwitch("prev")}}},[t._v("\uE702")]),e("i",{staticClass:"taskfont",on:{click:function(s){return t.onSearchSwitch("next")}}},[t._v("\uE705")])]),e("div",{staticClass:"search-input"},[e("div",{staticClass:"search-pre"},[t.searchLoad>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Input",{ref:"searchInput",attrs:{placeholder:t.$L("\u641C\u7D22\u6D88\u606F"),clearable:""},on:{"on-keyup":t.onSearchKeyup},model:{value:t.searchKey,callback:function(s){t.searchKey=s},expression:"searchKey"}}),t.searchLoad===0&&t.searchResult.length>0?e("div",{staticClass:"search-total"},[t._v(t._s(t.searchLocation)+"/"+t._s(t.searchResult.length))]):t._e()],1),e("div",{staticClass:"search-cancel",on:{click:function(s){return t.onSearchKeyup(null)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))])]):t._e()],1)]})],2),t.topShow?e("div",{staticClass:"dialog-top-message",on:{click:t.onPosTop}},[e("div",{staticClass:"dialog-top-message-warp"},[t._m(0),e("div",{staticClass:"dialog-top-message-content"},[e("p",{staticClass:"content"},[e("UserAvatar",{attrs:{userid:t.topMsg.userid,showName:"",showIcon:!1}}),t._v(": "),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(t.topMsg)))])],1),e("p",{staticClass:"personnel"},[t._v(" "+t._s(t.$L("\u7F6E\u9876\u4EBA\u5458"))+" "),e("UserAvatar",{attrs:{userid:t.dialogData.top_userid,showName:"",showIcon:!1}})],1)]),e("div",{staticClass:"dialog-top-message-btn"},[t.topPosLoad>0?e("Loading",{attrs:{type:"pure"}}):e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("i",{staticClass:"taskfont",on:{click:function(s){return s.stopPropagation(),t.onCancelTop(t.topMsg)}}},[t._v("\uE6E5")])],1)])]):t._e(),e("div",{ref:"msgs",staticClass:"dialog-msgs"},[t.positionShow&&t.positionMsg?e("div",{staticClass:"dialog-position"},[e("div",{staticClass:"position-label",on:{click:function(s){return t.onPositionMark(t.positionMsg.msg_id)}}},[t.positionLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("i",{staticClass:"taskfont"},[t._v("\uE624")]),t._v(" "+t._s(t.positionMsg.label)+" ")],1)]):t._e(),e("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-virtual",attrs:{"active-prefix":"item","data-key":"id","data-sources":t.allMsgs,"data-component":t.msgItem,"extra-props":{dialogData:t.dialogData,operateVisible:t.operateVisible,operateItem:t.operateItem,isMyDialog:t.isMyDialog,msgId:t.msgId,unreadOne:t.unreadOne,scrollIng:t.scrollIng,readEnabled:t.readEnabled},"estimate-size":t.dialogData.type=="group"?105:77,keeps:t.dialogMsgKeep,disabled:t.scrollDisabled},on:{activity:t.onActivity,scroll:t.onScroll,range:t.onRange,totop:t.onPrevPage,"on-mention":t.onMention,"on-longpress":t.onLongpress,"on-view-reply":t.onViewReply,"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-reply-list":t.onReplyList,"on-error":t.onError,"on-emoji":t.onEmoji,"on-show-emoji-user":t.onShowEmojiUser},scopedSlots:t._u([t.isChildComponent?null:{key:"header",fn:function(){return[e("div",{staticClass:"dialog-item head-box"},[t.loadIng>0||t.prevId>0?e("div",{staticClass:"loading",class:{filled:t.allMsgs.length===0}},[t.scrollOffset<100?e("span"):t._e()]):t.allMsgs.length===0?e("div",{staticClass:"describe filled"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]):t._e()])]},proxy:!0}],null,!0)})],1),e("div",{ref:"footer",staticClass:"dialog-footer",on:{click:t.onActive}},[t.scrollTail>500||t.msgNew>0&&t.allMsgs.length>0?e("div",{directives:[{name:"touchclick",rawName:"v-touchclick",value:t.onToBottom,expression:"onToBottom"}],staticClass:"dialog-goto"},[e("Badge",{attrs:{"overflow-count":999,count:t.msgNew}},[e("i",{staticClass:"taskfont"},[t._v("\uE72B")])])],1):t._e(),e("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":t.dialogId,maxSize:t.maxSize},on:{"on-progress":function(s){return t.chatFile("progress",s)},"on-success":function(s){return t.chatFile("success",s)},"on-error":function(s){return t.chatFile("error",s)}}}),t.todoShow?e("div",{staticClass:"chat-bottom-menu"},[e("div",{staticClass:"bottom-menu-label"},[t._v(t._s(t.$L("\u5F85\u529E"))+":")]),e("ul",{staticClass:"scrollbar-hidden"},t._l(t.todoList,function(s){return e("li",{on:{click:function(a){return a.stopPropagation(),t.onViewTodo(s)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(s.msg_data)))])])}),0)]):t.quickShow?e("div",{staticClass:"chat-bottom-menu"},[e("ul",{staticClass:"scrollbar-hidden"},t._l(t.quickMsgs,function(s){return e("li",{on:{click:function(a){return a.stopPropagation(),t.sendQuick(s)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content",style:s.style||null},[t._v(t._s(s.label))])])}),0)]):t._e(),t.isMute?e("div",{staticClass:"chat-mute"},[t._v(" "+t._s(t.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):e("ChatInput",{ref:"input",attrs:{"dialog-id":t.dialogId,"emoji-bottom":t.windowPortrait,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":t.onEventFocus,"on-blur":t.onEventBlur,"on-more":t.onEventMore,"on-file":t.sendFileMsg,"on-send":t.sendMsg,"on-record":t.sendRecord,"on-record-state":t.onRecordState},model:{value:t.msgText,callback:function(s){t.msgText=s},expression:"msgText"}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:t.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.operateItem.created_at?[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action"},[t.msgId===0?e("li",{on:{click:function(s){return t.onOperate("reply")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u56DE\u590D")))])]):t._e(),t.operateItem.userid==t.userId&&t.operateItem.type==="text"?e("li",{on:{click:function(s){return t.onOperate("update")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE779")]),e("span",[t._v(t._s(t.$L("\u7F16\u8F91")))])]):t._e(),t._l(t.operateCopys,function(s){return e("li",{on:{click:function(a){return t.onOperate("copy",s)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("span",[t._v(t._s(t.$L(s.label)))])])}),t.actionPermission(t.operateItem,"forward")?e("li",{on:{click:function(s){return t.onOperate("forward")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE638")]),e("span",[t._v(t._s(t.$L("\u8F6C\u53D1")))])]):t._e(),t.operateItem.userid==t.userId?e("li",{on:{click:function(s){return t.onOperate("withdraw")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE637")]),e("span",[t._v(t._s(t.$L("\u64A4\u56DE")))])]):t._e(),t.operateItem.type==="file"?[e("li",{on:{click:function(s){return t.onOperate("view")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("span",[t._v(t._s(t.$L("\u67E5\u770B")))])]),e("li",{on:{click:function(s){return t.onOperate("down")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7A8")]),e("span",[t._v(t._s(t.$L("\u4E0B\u8F7D")))])])]:t._e(),e("li",{on:{click:function(s){return t.onOperate("tag")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")]),e("span",[t._v(t._s(t.$L(t.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),t.actionPermission(t.operateItem,"newTask")?e("li",{on:{click:function(s){return t.onOperate("newTask")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B8")]),e("span",[t._v(t._s(t.$L("\u65B0\u4EFB\u52A1")))])]):t._e(),e("li",{on:{click:function(s){return t.onOperate("todo")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B7")]),e("span",[t._v(t._s(t.$L(t.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e("li",{on:{click:function(s){return t.onOperate("top")}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.dialogData.top_msg_id==t.operateItem.id?"":"")}}),e("span",[t._v(t._s(t.$L(t.dialogData.top_msg_id==t.operateItem.id?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876")))])]),t.msgType!==""?e("li",{on:{click:function(s){return t.onOperate("pos")}}},[e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("span",[t._v(t._s(t.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):t._e()],2)]),e("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[e("ul",{staticClass:"operate-emoji scrollbar-hidden"},[t._l(t.operateEmojis,function(s,a){return e("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:t._s(s)},on:{click:function(o){return t.onOperate("emoji",s)}}})}),e("li"),e("li",{staticClass:"more-emoji",on:{click:function(s){return t.onOperate("emoji","more")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])])],2)])]:[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action cancel"},[e("li",{on:{click:function(s){return t.onOperate("cancel")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u53D6\u6D88\u53D1\u9001")))])])])])]],2)],1)],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(s){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e(),e("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("\u53D6\u6D88"),"ok-text":t.$L("\u53D1\u9001"),"enter-ok":!0,closable:!1,"mask-closable":!1},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(s){t.pasteShow=s},expression:"pasteShow"}},[e("ul",{staticClass:"dialog-wrapper-paste",class:t.pasteClass},t._l(t.pasteItem,function(s){return e("li",[s.type=="image"?e("img",{attrs:{src:s.result}}):e("div",[t._v(t._s(t.$L("\u6587\u4EF6"))+": "+t._s(s.name)+" ("+t._s(t.$A.bytesToSize(s.size))+")")])])}),0)]),e("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(s){t.createGroupShow=s},expression:"createGroupShow"}},[e("Form",{attrs:{model:t.createGroupData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.createGroupData.avatar,callback:function(s){t.$set(t.createGroupData,"avatar",s)},expression:"createGroupData.avatar"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u7FA4\u6210\u5458")}},[e("UserSelect",{attrs:{uncancelable:t.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",title:t.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:t.createGroupData.userids,callback:function(s){t.$set(t.createGroupData,"userids",s)},expression:"createGroupData.userids"}})],1),e("FormItem",{attrs:{prop:"chat_name",label:t.$L("\u7FA4\u540D\u79F0")}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:t.createGroupData.chat_name,callback:function(s){t.$set(t.createGroupData,"chat_name",s)},expression:"createGroupData.chat_name"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.createGroupShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.createGroupLoad>0},on:{click:t.onCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:t.modifyShow,callback:function(s){t.modifyShow=s},expression:"modifyShow"}},[e("Form",{attrs:{model:t.modifyData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.modifyData.system_name?e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u4FEE\u6539\u7CFB\u7EDF\u673A\u5668\u4EBA\uFF1A${t.modifyData.system_name}`)))]):t._e(),e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.modifyData.avatar,callback:function(s){t.$set(t.modifyData,"avatar",s)},expression:"modifyData.avatar"}})],1),typeof t.modifyData.name!="undefined"?e("FormItem",{attrs:{prop:"name",label:t.$L("\u540D\u79F0")}},[e("Input",{attrs:{maxlength:20},model:{value:t.modifyData.name,callback:function(s){t.$set(t.modifyData,"name",s)},expression:"modifyData.name"}})],1):t._e(),t.dialogData.bot==t.userId?[typeof t.modifyData.clear_day!="undefined"?e("FormItem",{attrs:{prop:"clear_day",label:t.$L("\u6D88\u606F\u4FDD\u7559")}},[e("Input",{attrs:{maxlength:3,type:"number"},model:{value:t.modifyData.clear_day,callback:function(s){t.$set(t.modifyData,"clear_day",s)},expression:"modifyData.clear_day"}},[e("div",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1):t._e(),typeof t.modifyData.webhook_url!="undefined"?e("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[e("Input",{attrs:{maxlength:255},model:{value:t.modifyData.webhook_url,callback:function(s){t.$set(t.modifyData,"webhook_url",s)},expression:"modifyData.webhook_url"}})],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.modifyShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.modifyLoad>0},on:{click:t.onModify}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1),e("UserSelect",{ref:"forwardSelect",attrs:{"multiple-max":50,title:t.$L("\u8F6C\u53D1"),"before-submit":t.onForwardBefore,"show-select-all":!1,"show-dialog":"",module:""}}),e("Modal",{attrs:{title:`${t.$L("\u8F6C\u53D1\u7ED9")}:`,"class-name":"common-user-select-modal dialog-forward-message-modal","mask-closable":!1,width:"420"},scopedSlots:t._u([{key:"footer",fn:function(){return[e("div",{staticClass:"dialog-wrapper-forward-footer",class:{selected:!t.forwardSource},on:{click:function(s){t.forwardSource=!t.forwardSource}}},[e("Icon",{staticClass:"user-modal-icon",attrs:{type:t.forwardSource?"ios-radio-button-off":"ios-checkmark-circle"}}),t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u539F\u53D1\u9001\u8005\u4FE1\u606F"))+" ")],1),e("Button",{attrs:{type:"primary",loading:t.forwardLoad>0},on:{click:t.onForwardAffirm}},[t._v(" "+t._s(t.$L("\u786E\u5B9A"))+" "),t.forwardData.length>0?[t._v("("+t._s(t.forwardData.length)+")")]:t._e()],2)]},proxy:!0}],null,!1,3161245327),model:{value:t.forwardhow,callback:function(s){t.forwardhow=s},expression:"forwardhow"}},[e("div",{staticClass:"user-modal-search"},[e("Scrollbar",{staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[e("ul",t._l(t.forwardData,function(s){return e("li",{attrs:{"data-id":s.userid}},[s.type=="group"?e("div",{staticClass:"user-modal-avatar"},[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):s.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t.forwardData.length==1?e("div",{staticClass:"avatar-name"},[e("span",[t._v(t._s(s.name))])]):t._e()],1):e("UserAvatar",{attrs:{userid:s.userid,size:32,"show-name":t.forwardData.length==1}})],1)}),0)])],1),e("div",{staticClass:"twice-affirm-body-extend"},[e("div",{staticClass:"dialog-wrapper-forward-body"},[e("div",{staticClass:"dialog-wrapper inde-list"},[e("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[e("DialogItem",{attrs:{source:t.operateItem,simpleView:""},on:{"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-emoji":t.onEmoji}})],1)],1),e("div",{staticClass:"leave-message"},[t.forwardDialogId>0?e("ChatInput",{attrs:{"dialog-id":t.forwardDialogId,"emoji-bottom":t.windowPortrait,maxlength:2e5,placeholder:t.$L("\u7559\u8A00"),"disabled-record":"","simple-mode":""},model:{value:t.forwardMessage,callback:function(s){t.forwardMessage=s},expression:"forwardMessage"}}):e("Input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},maxlength:2e5,placeholder:t.$L("\u7559\u8A00"),clearable:""},model:{value:t.forwardMessage,callback:function(s){t.forwardMessage=s},expression:"forwardMessage"}})],1)])])]),e("Modal",{attrs:{title:t.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:t.todoSettingShow,callback:function(s){t.todoSettingShow=s},expression:"todoSettingShow"}},[e("Form",{ref:"todoSettingForm",attrs:{model:t.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"type",label:t.$L("\u5F53\u524D\u4F1A\u8BDD")}},[e("RadioGroup",{on:{"on-change":t.onTypeChange},model:{value:t.todoSettingData.type,callback:function(s){t.$set(t.todoSettingData,"type",s)},expression:"todoSettingData.type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))]),e("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))]),e("Radio",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:"quick_select"}})],1),e("CheckboxGroup",{on:{"on-change":t.onQuickChange},model:{value:t.todoSettingData.quick_value,callback:function(s){t.$set(t.todoSettingData,"quick_value",s)},expression:"todoSettingData.quick_value"}},t._l(t.todoSettingData.quick_list,function(s){return e("Checkbox",{key:s,attrs:{label:s}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:s,"show-icon":!1,"show-name":!0}}),s==t.userId?e("Tag",[t._v(t._s(t.$L("\u81EA\u5DF1")))]):t._e()],1)])])}),1)],1),t.todoSettingData.type==="user"?e("FormItem",{attrs:{prop:"userids",label:t.$L("\u6307\u5B9A\u6210\u5458")}},[e("UserSelect",{ref:"userSelect",attrs:{"dialog-id":t.dialogId,title:t.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:t.todoSettingData.userids,callback:function(s){t.$set(t.todoSettingData,"userids",s)},expression:"todoSettingData.userids"}})],1):t._e()],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.todoSettingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.todoSettingLoad>0},on:{click:function(s){return t.onTodo("submit")}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.groupInfoShow,callback:function(s){t.groupInfoShow=s},expression:"groupInfoShow"}},[t.groupInfoShow?e("DialogGroupInfo",{attrs:{dialogId:t.dialogId},on:{"on-close":function(s){t.groupInfoShow=!1}}}):t._e()],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:t.groupTransferShow,callback:function(s){t.groupTransferShow=s},expression:"groupTransferShow"}},[e("Form",{attrs:{model:t.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userid",label:t.$L("\u65B0\u7684\u7FA4\u4E3B")}},[e("UserSelect",{attrs:{disabledChoice:t.groupTransferData.disabledChoice,"multiple-max":1,title:t.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:t.groupTransferData.userid,callback:function(s){t.$set(t.groupTransferData,"userid",s)},expression:"groupTransferData.userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.groupTransferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.groupTransferLoad>0},on:{click:function(s){return t.onDialogMenu("transferConfirm")}}},[t._v(t._s(t.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.replyListShow,callback:function(s){t.replyListShow=s},expression:"replyListShow"}},[t.replyListShow?e("DialogWrapper",{staticClass:"inde-list",attrs:{dialogId:t.dialogId,msgId:t.replyListId,isChildComponent:""}},[e("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[t._v(t._s(t.$L("\u56DE\u590D\u6D88\u606F")))])]):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.respondShow,callback:function(s){t.respondShow=s},expression:"respondShow"}},[t.respondShow?e("DialogRespond",{attrs:{"respond-data":t.respondData},on:{"on-close":function(s){t.respondShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.todoViewShow,callback:function(s){t.todoViewShow=s},expression:"todoViewShow"}},[e("div",{staticClass:"dialog-wrapper inde-list"},[e("div",{staticClass:"dialog-nav"},[e("div",{staticClass:"drawer-title"},[t._v(t._s(t.$L("\u5F85\u529E\u6D88\u606F")))])]),e("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[t.todoViewMsg?[e("DialogItem",{attrs:{source:t.todoViewMsg,simpleView:""},on:{"on-view-text":t.onViewText,"on-view-file":t.onViewFile,"on-down-file":t.onDownFile,"on-emoji":t.onEmoji}}),e("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:t.todoViewPosLoad},on:{click:t.onPosTodo}},[t._v(t._s(t.$L("\u56DE\u5230\u539F\u6587")))])]:e("div",{staticClass:"dialog-float-loading"},[e("Loading")],1)],2),e("div",{staticClass:"todo-button"},[e("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:t.todoViewLoad,long:""},on:{click:t.onDoneTodo}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1)],1)]),e("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.approveDetailsShow,callback:function(s){t.approveDetailsShow=s},expression:"approveDetailsShow"}},[t.approveDetailsShow?e("ApproveDetails",{staticStyle:{height:"100%","border-radius":"10px"},attrs:{data:t.approveDetails}}):t._e()],1),e("DialogGroupWordChain"),e("DialogGroupVote")],1):t._e()},ce=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"dialog-top-message-font"},[e("i",{staticClass:"taskfont"},[t._v("\uE7E6")])])}];const he={name:"DialogWrapper",components:{UserAvatarTip:K,UserSelect:R,ImgUpload:W,DialogRespond:Rt,DialogItem:k,VirtualList:z,ChatInput:Kt,DialogGroupInfo:Mt,DrawerOverlay:U,DialogUpload:kt,ApproveDetails:Q,DialogGroupWordChain:se,DialogGroupVote:le},directives:{touchclick:O},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},location:{type:String,default:""},isChildComponent:{type:Boolean,default:!1},beforeBack:Function},data(){return{loadIng:0,msgItem:k,msgText:"",msgNew:0,msgType:"",msgActivity:!1,msgPrepared:!1,focusLazy:!1,focusTimer:null,allMsgs:[],tempMsgs:[],tempId:$A.randNum(1e9,9999999999),msgLoadIng:0,msgActiveId:0,pasteShow:!1,pasteFile:[],pasteItem:[],searchShow:!1,searchKey:"",searchLoad:0,searchLocation:1,searchResult:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,modifyShow:!1,modifyData:{},modifyLoad:0,forwardhow:!1,forwardData:[],forwardLoad:0,forwardDialogId:0,forwardMessage:"",forwardSource:!0,openId:0,dialogDrag:!1,groupInfoShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},operateClient:{x:0,y:0},operateVisible:!1,operatePreventScroll:0,operateCopys:[],operateStyles:{},operateItem:{},recordState:"",wrapperStart:null,scrollTail:0,scrollOffset:0,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[],quick_value:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,scrollIng:0,scrollGroup:null,approveDetails:{id:0},approveDetailsShow:!1,approvaUserStatus:"",observers:[],msgChangeCache:{},unreadOne:0,topPosLoad:0,positionLoad:0,positionShow:!1,preventMoreLoad:!1,preventToBottom:!1,selectedTextStatus:!1,scrollToBottomRefresh:!1,androidKeyboardVisible:!1}},mounted(){this.subMsgListener(),this.msgSubscribe=v.Store.subscribe("dialogMsgChange",this.onMsgChange),document.addEventListener("selectionchange",this.onSelectionchange)},beforeDestroy(){this.subMsgListener(!0),this.isChildComponent||(this.$store.dispatch("forgetInDialog",this._uid),this.$store.dispatch("closeDialog",this.dialogId)),this.msgSubscribe&&(this.msgSubscribe.unsubscribe(),this.msgSubscribe=null),this.observers.forEach(({observer:i})=>i.disconnect()),this.observers=[],document.removeEventListener("selectionchange",this.onSelectionchange);const t=this.$refs.scroller;t&&t.virtual.destroy()},computed:{...m(["systemConfig","userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTops","dialogMsgTransfer","dialogMsgKeep","dialogIns","cacheDialogs","wsOpenNum","touchBackInProgress","cacheUserBasic","fileLinks","cacheEmojis","readLoadNum","readTimeout","keyboardType","keyboardHeight","safeAreaBottom"]),...F(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){const t=this.cacheDialogs.find(({id:i})=>i==this.dialogId)||{};return this.unreadOne===0&&(this.unreadOne=t.unread_one||0),t},dialogList(){return this.cacheDialogs.filter(t=>!(t.name===void 0||t.dialog_delete===1)).sort((t,i)=>t.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(t.top_at):t.todo_num>0||i.todo_num>0?i.todo_num-t.todo_num:$A.Date(i.last_at)-$A.Date(t.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(t=>t.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(t=>t.dialog_id==this.dialogId):[]},allMsgList(){const t=[];if(t.push(...this.dialogMsgList.filter(i=>this.msgFilter(i))),this.msgId>0){const i=this.dialogMsgs.find(e=>e.id==this.msgId);i&&t.unshift(i)}if(this.tempMsgList.length>0){const i=t.map(({id:s})=>s),e=this.tempMsgList.filter(s=>!i.includes(s.id)&&this.msgFilter(s));e.length>0&&t.push(...e)}return t.sort((i,e)=>i.id-e.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:t}=this;let i=t.find(({type:s})=>s=="image"),e=t.find(({type:s})=>s!="image");return i&&e?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":i?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags({dialogData:t}){const i=[{type:"",label:"\u6D88\u606F"}];return t.has_tag&&i.push({type:"tag",label:"\u6807\u6CE8"}),t.has_todo&&i.push({type:"todo",label:"\u4E8B\u9879"}),t.has_image&&i.push({type:"image",label:"\u56FE\u7247"}),t.has_file&&i.push({type:"file",label:"\u6587\u4EF6"}),t.has_link&&i.push({type:"link",label:"\u94FE\u63A5"}),t.group_type==="project"&&i.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),t.group_type==="task"&&i.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),t.group_type==="okr"&&i.push({type:"okr",label:"\u6253\u5F00OKR"}),i},topMsg(){return this.dialogData.top_msg_id&&this.dialogMsgTops.find(({id:t})=>t==this.dialogData.top_msg_id)},quickMsgs(){return this.dialogData.quick_msgs||[]},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(t=>!t.done_at&&t.dialog_id==this.dialogId).sort((t,i)=>i.id-t.id):[]},isDefaultSize(){return this.windowScrollY===0&&!this.androidKeyboardVisible},quickShow(){return this.quickMsgs.length>0&&this.isDefaultSize&&this.quoteId===0},todoShow(){return this.todoList.length>0&&this.isDefaultSize&&this.quoteId===0},tagShow(){return this.msgTags.length>1&&this.isDefaultSize&&!this.searchShow},topShow(){return this.topMsg&&this.isDefaultSize&&!this.searchShow&&this.msgType===""},wrapperClass(){return["ready","ing"].includes(this.recordState)?"record-ready":null},navClass(){return{completed:$A.dialogCompleted(this.dialogData),tagged:this.tagShow}},pasteClass(){return this.pasteItem.find(({type:t})=>t!=="image")?["multiple"]:[]},footerPaddingBottom({keyboardType:t,keyboardHeight:i,safeAreaBottom:e,windowScrollY:s,location:a,focusLazy:o}){return s<2&&a&&o&&t==="show"&&i>0&&i<120?i+e+(a==="modal"?15:0):0},msgUnreadOnly(){let t=0;return this.cacheDialogs.some(i=>{t+=$A.getDialogNum(i)}),t<=0?"":(t>999&&(t="999+"),String(t))},isMyDialog(){const{dialogData:t,userId:i}=this;return t.dialog_user&&t.dialog_user.userid==i},isManageBot(){const{dialogData:t,userId:i,userIsAdmin:e}=this;return t.bot?t.bot==i?!0:t.dialog_user&&t.dialog_user.userid==t.bot&&e:!1},isMute(){return this.dialogData.dialog_mute==="close"?!this.userIsAdmin:!1},quoteId(){return this.msgId>0?this.msgId:this.dialogData.extra_quote_id||0},quoteData(){return this.quoteId?this.allMsgs.find(({id:t})=>t===this.quoteId):null},todoViewMsg(){if(this.todoViewMid){const t=this.allMsgs.find(i=>i.id==this.todoViewMid);if(t)return t;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg({msgNew:t,dialogData:i,allMsgs:e}){const{unread:s,unread_one:a,mention:o,mention_ids:r}=i,n=s-t,l=[];return a&&l.push({type:"unread",label:this.$L(`\u672A\u8BFB\u6D88\u606F${n}\u6761`),msg_id:a}),r&&r.length>0&&l.push(...r.map(d=>({type:"mention",label:this.$L("@\u6211\u7684\u6D88\u606F"),msg_id:d}))),n<=0||l.length===0||e.length===0?null:l.find(d=>d.type===(o===0?"unread":"mention"))||l[0]},operateEmojis({cacheEmojis:t}){const i=t.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(e=>{i.includes(e)||i.push(e)}),i},maxSize({systemConfig:t}){return t!=null&&t.file_upload_limit?t.file_upload_limit*1024:1024e3},readEnabled({msgActivity:t,msgPrepared:i}){return t===0&&i},stickToBottom({windowActive:t,scrollTail:i,preventToBottom:e}){return t&&i<=0&&!e}},watch:{$route:{handler(t){const{name:i,params:e}=t||{};i=="manage-messenger"&&e.dialog_id&&e.open&&["word-chain","vote"].includes(e.open)&&this.$nextTick(s=>{this.$store.state[e.open=="word-chain"?"dialogDroupWordChain":"dialogGroupVote"]={type:"create",dialog_id:e.dialog_id},e.open=""})},immediate:!0},dialogId:{handler(t,i){t&&(this.msgNew=0,this.msgType="",this.unreadOne=0,this.scrollTail=0,this.scrollOffset=0,this.searchShow=!1,this.positionShow=!1,this.msgPrepared=!1,this.scrollToBottomRefresh=!1,this.allMsgs=this.allMsgList,this.getMsgs({dialog_id:t,msg_id:this.msgId,msg_type:this.msgType}).then(e=>{this.openId=t,this.msgPrepared=!0,setTimeout(s=>{this.onSearchMsgId(),this.positionShow=this.readTimeout===null},100)}).catch(e=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:t}),this.autoFocus&&this.inputFocus(),this.getUserApproveStatus()),this.$store.dispatch("closeDialog",i),window.localStorage.removeItem("__cache:vote__"),window.localStorage.removeItem("__cache:unfoldWordChain__")},immediate:!0},loadMsg:{handler(t){t?this.loadIng++:setTimeout(i=>{this.loadIng--},300)},immediate:!0},isReady:{handler(t){!t||this.$nextTick(i=>{if(this.$refs.msgs&&!this.observers.find(({key:e})=>e==="scroller")){const e=new ResizeObserver(this.onResizeEvent);e.observe(this.$refs.msgs),this.observers.push({key:"scroller",observer:e})}if(this.$refs.scroller&&(this.scrollGroup=this.$refs.scroller.$el.querySelector('[role="group"]'),this.scrollGroup&&!this.observers.find(({key:e})=>e==="scrollGroup"))){const e=new ResizeObserver(this.onResizeEvent);e.observe(this.scrollGroup),this.observers.push({key:"scrollGroup",observer:e})}})},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(t=>{})},searchKey(t){!t||(this.searchLoad++,setTimeout(i=>{this.searchKey===t&&(this.searchLoad++,this.searchResult=[],this.searchLocation=0,this.$store.dispatch("call",{url:"dialog/msg/search",data:{dialog_id:this.dialogId,key:t}}).then(({data:e})=>{this.searchKey===t&&(this.searchResult=e.data,this.searchLocation=this.searchResult.length)}).finally(e=>{this.searchLoad--})),this.searchLoad--},600))},searchLocation(t){if(t===0)return;const i=this.searchResult[t-1];i&&this.onPositionId(i)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:t,msgFile:i,msgRecord:e,msgText:s,dialogId:a}){t>$A.Time()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(i)&&i.length>0?this.sendFileMsg(i):$A.isJson(e)&&e.duration>0?this.sendRecord(e):s&&this.sendMsg(s)}))},immediate:!0},wsOpenNum(t){if(t<=1)return;const i=this.allMsgs[this.allMsgs.length-1];if($A(this.$refs.scroller.$el).find(`[data-id="${i.id}"]`).length===0){this.scrollToBottomRefresh=!0;return}this.onReGetMsg()},allMsgList(t){if(JSON.stringify(t)==JSON.stringify(this.allMsgs))return;const i=this.allMsgs.length,e=i>0?this.allMsgs[i-1].id:0;if($A.isIos()&&t.length!==i&&this.$refs.scroller){const s=this.$refs.scroller.$el;s.style.visibility="hidden",this.allMsgs=t,this.$nextTick(a=>{s.style.visibility="visible"})}else this.allMsgs=t;this.stickToBottom||(this.msgNew+=t.filter(s=>s.id&&s.id>e&&s.userid!=this.userId&&!s.read_at).length)},"allMsgs.length"(){this.stickToBottom&&this.onToBottom()},windowScrollY(t){$A.isIos()&&!this.$slots.head&&(this.$refs.nav.style.marginTop=`${t}px`)},windowActive(t){if(t&&this.autoFocus){const i=$A.last(this.dialogIns);i&&i.uid===this._uid&&this.inputFocus()}},windowHeight(){this.androidKeyboardVisible=$A.isAndroid()&&$A.eeuiAppKeyboardStatus(),requestAnimationFrame(this.$refs.input.updateTools)},dialogDrag(t){t&&(this.operateVisible=!1)},msgActiveId(t){var i;if(t>0){this.msgActiveId=0;const e=(i=this.$refs.scroller.$el.querySelector(`[data-id="${t}"]`))==null?void 0:i.querySelector(".dialog-head");e&&($A.scrollIntoViewIfNeeded(e),e.classList.add("common-shake"),setTimeout(s=>e.classList.remove("common-shake"),800))}},footerPaddingBottom(t){this.$refs.footer.style.paddingBottom=`${t}px`,requestAnimationFrame(i=>{this.$refs.input.updateTools()})},readLoadNum(){this.positionShow=!0},operateVisible(t){t||document.getSelection().removeAllRanges()}},methods:{subMsgListener(t=!1){!$A.isSubElectron||(t?this.$store.dispatch("websocketMsgListener","DialogWrapper"):this.$store.dispatch("websocketMsgListener",{name:"DialogWrapper",callback:i=>{const{type:e,mode:s,data:a}=i;e==="dialog"&&s==="add"&&this.tempMsgs.push(a)}}))},sendMsg(t,i){let e,s="text",a="no",o=!1;if(typeof t=="string"&&t?e=t:(e=this.msgText,o=!0),i==="md"?(e=this.$refs.input.getText(),s="md"):i==="silence"&&(a="yes"),e==""){this.inputFocus();return}if(s==="text"&&(e=e.replace(/<\/span> <\/p>$/,"

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

${t.label}

`)},onMsgChange(t){const i=this.allMsgs.find(({type:e,id:s})=>e=="text"&&s==t.id);i&&(typeof this.msgChangeCache[t.id]=="undefined"&&(this.msgChangeCache[t.id]=[],this.msgChangeCache[`${t.id}_load`]=!1),t.type==="append"?this.msgChangeCache[t.id].push(...`${t.text}`.split("").map(e=>({type:"append",text:e}))):t.type==="replace"&&(this.msgChangeCache[t.id]=[{type:"replace",text:t.text}]),this.onMsgOutput(t.id,i.msg))},onMsgOutput(t,i){const e=`${t}_load`,s=this.msgChangeCache[t];if(!(!s||s.length===0)&&this.msgChangeCache[e]!==!0){this.msgChangeCache[e]=!0;try{const a=s.shift();if(!a){this.msgChangeCache[e]=!1;return}const{type:o,text:r}=a,{tail:n}=this.scrollInfo();o==="append"?i.text+=r:o==="replace"&&(i.text=r),this.$nextTick(l=>{if(n<=10&&n!=this.scrollInfo().tail&&(this.operatePreventScroll++,this.$refs.scroller.scrollToBottom(),setTimeout(d=>this.operatePreventScroll--,50)),s.length===0){this.msgChangeCache[e]=!1;return}setTimeout(d=>{this.msgChangeCache[e]=!1,this.onMsgOutput(t,i)},5)})}catch{this.msgChangeCache[e]=!1}}},onSelectionchange(){const t=window.getSelection().type;this.selectedTextStatus=t==="Range"},getTempId(){return this.tempId++},getMsgs(t){return new Promise((i,e)=>{setTimeout(s=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",t).then(i).catch(e).finally(s=>{this.msgLoadIng--})})},msgFilter(t){if(this.msgType){if(this.msgType==="tag"){if(!t.tag)return!1}else if(this.msgType==="todo"){if(!t.todo)return!1}else if(this.msgType==="link"){if(!t.link)return!1}else if(this.msgType!==t.mtype)return!1}return!(this.msgId&&t.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(t,i=0,e=0){return new Promise((s,a)=>{if(t===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",e===0)this.$store.dispatch("showSpinner",600);else if(e>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}e++,setTimeout(n=>{this.onPositionId(t,i,e).then(s).catch(a)},Math.min(800,200*e));return}e>0&&this.$store.dispatch("hiddenSpinner");const o=this.allMsgs.findIndex(n=>n.id===t),r=this.prevId>0?0:-1;o>r?setTimeout(n=>{this.onToIndex(o,t),s()},200):(i>0&&this.$store.dispatch("setLoad",{key:`msg-${i}`,delay:600}),this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:t,spinner:2e3,save_before:n=>{this.preventToBottom=!0},save_after:n=>{this.$nextTick(l=>{this.preventToBottom=!1})}}).finally(n=>{const l=this.allMsgs.findIndex(d=>d.id===t);l>-1&&(this.onToIndex(l,t),s()),i>0&&this.$store.dispatch("cancelLoad",`msg-${i}`)}))})},onViewTodo(t){if(this.operateVisible)return;this.todoViewId=t.id,this.todoViewMid=t.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(e=>e.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:e})=>{this.todoViewData=e})},onCloseTodo(){this.todoViewLoad=!1,this.todoViewShow=!1,this.todoViewData={},this.todoViewMid=0,this.todoViewId=0},onPosTodo(){!this.todoViewMid||(this.todoViewPosLoad=!0,this.onPositionId(this.todoViewMid).then(this.onCloseTodo).finally(t=>{this.todoViewPosLoad=!1}))},onDoneTodo(){!this.todoViewId||this.todoViewLoad||(this.todoViewLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/done",data:{id:this.todoViewId}}).then(({data:t})=>{this.$store.dispatch("saveDialogTodo",{id:this.todoViewId,done_at:$A.formatDate("Y-m-d H:i:s")}),this.$store.dispatch("saveDialog",{id:this.dialogId,todo_num:this.todoList.length}),t.add&&this.sendSuccess(t.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.todoViewLoad=!1}))},inputFocus(){this.$nextTick(t=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(t){this.recordState=t},chatPasteDrag(t,i){if(this.dialogDrag=!1,$A.dataHasFolder(i==="drag"?t.dataTransfer:t.clipboardData)){t.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${i==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\u3002`);return}const e=i==="drag"?t.dataTransfer.files:t.clipboardData.files,s=Array.prototype.slice.call(e);s.length>0&&(t.preventDefault(),this.sendFileMsg(s))},chatDragOver(t,i){let e=this.__dialog_drag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialog_drag&&(this.dialogDrag=t)},150);else{if(i.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(i.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(t){if($A.isAndroid()&&$A.eeuiAppKeyboardStatus()&&$A.eeuiAppSetDisabledUserLongClickSelect(500),this.wrapperStart=null,this.selectedTextStatus){this.wrapperStart=window.scrollY;return}if(this.$refs.scroller.$el.contains(t.target))this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:t.touches[0].clientY});else if(this.$refs.input.$refs.editor.contains(t.target)){const i=this.$refs.input.$refs.editor.querySelector(".ql-editor");if(i){const e=i.clientHeight,s=i.scrollTop,a=i.scrollHeight;this.wrapperStart={offset:s,scale:s/(a-e),tail:a-e-s,clientY:t.touches[0].clientY}}}},onTouchMove(t){if(this.footerPaddingBottom>0||this.windowPortrait&&this.windowScrollY>0){if(typeof this.wrapperStart=="number")return;if(this.wrapperStart===null){t.preventDefault();return}this.wrapperStart.clientY>t.touches[0].clientY?this.wrapperStart.tail===0&&t.preventDefault():this.wrapperStart.offset===0&&t.preventDefault()}},onTouchEnd(){typeof this.wrapperStart=="number"&&$A.isIos()&&$A.scrollToView(this.$refs.footer,!1)},pasteSend(){this.__paste_send_index||(this.__paste_send_index=1,setTimeout(()=>{this.__paste_send_index=0},300),this.pasteFile.some(t=>{this.$refs.chatUpload.upload(t)}))},chatFile(t,i){switch(t){case"progress":const e=i.showProgress?Math.max(i.percentage,.01):!1,s=this.tempMsgs.find(({id:o})=>o==i.tempId);if(s){s.msg.percentage=e;return}const a={id:i.tempId,file_uid:i.uid,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"file",userid:this.userId,msg:Object.assign(i.msg||{},{percentage:e})};this.tempMsgs.push(a),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.forgetTempMsg(i.tempId);break;case"success":this.sendSuccess(i.data,i.tempId);break}},sendSuccess(t,i=0,e=!1){if($A.isArray(t)){t.some(s=>{this.sendSuccess(s,i)});return}if(i>0){const s=this.tempMsgs.findIndex(({id:a})=>a==i);s>-1&&this.tempMsgs.splice(s,1,t),setTimeout(a=>{this.forgetTempMsg(i),this.forgetTempMsg(t.id)},1e3)}this.$store.dispatch("saveDialog",{id:this.dialogId,hide:0}),this.$store.dispatch("saveDialogMsg",t),e||(this.$store.dispatch("increaseTaskMsgNum",t),this.$store.dispatch("increaseMsgReplyNum",t),this.$store.dispatch("updateDialogLastMsg",t)),this.cancelQuote(),this.onActive()},forgetTempMsg(t){this.tempMsgs=this.tempMsgs.filter(({id:i})=>i!=t)},setQuote(t,i){var e;(e=this.$refs.input)==null||e.setQuote(t,i)},cancelQuote(){var t;(t=this.$refs.input)==null||t.cancelQuote()},onEventFocus(){this.focusTimer&&clearTimeout(this.focusTimer),this.focusLazy=!0,this.$emit("on-focus")},onEventBlur(){this.focusTimer=setTimeout(t=>this.focusLazy=!1,10),this.$emit("on-blur")},onEventMore(t){switch(t){case"image":case"file":this.$refs.chatUpload.handleClick();break;case"call":this.onCallTel();break;case"anon":this.onAnon();break}},onCallTel(){$A.modalConfirm({content:`\u662F\u5426\u62E8\u6253\u7535\u8BDD\u7ED9 ${this.dialogData.name}\uFF1F`,onOk:()=>{this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:t})=>{t.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:t.tel}),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add),this.onActive())}).catch(({msg:t})=>{$A.modalError(t)})}})},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:t=>t?new Promise((i,e)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:t},method:"post"}).then(({msg:s})=>{i(s)}).catch(({msg:s})=>{e(s)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onResizeEvent(t){t.some(({target:i,contentRect:e})=>{i===this.$refs.msgs?this.onMsgsResize(e):i===this.scrollGroup&&this.onScrollGroupResize(e)})},onMsgsResize({height:t}){if(this.$refs.scroller.$el.style.height=`${t}px`,typeof this.__msgs_height!="undefined"){const i=this.__msgs_height-t;if(i!==0){const{offset:e,tail:s}=this.scrollInfo();s>0&&this.onToOffset(e+i)}}this.__msgs_height=t},onScrollGroupResize(){this.stickToBottom&&this.onToBottom()},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const t=this.$refs.scroller;t&&(t.scrollToBottom(),requestAnimationFrame(i=>t.scrollToBottom()))},onToIndex(t,i){const e=this.$refs.scroller;if(e){e.stopToBottom();const s=e.$el.querySelector(`[data-id="${i}"]`);s!=null&&s.parentNode.parentNode.classList.contains("item-enter")||(e.scrollToIndex(t,-80),requestAnimationFrame(a=>e.scrollToIndex(t,-80)))}requestAnimationFrame(s=>this.msgActiveId=i)},onToOffset(t,i=!1){const e=this.$refs.scroller;if(e){const s=e.getOffset()>t;e.stopToBottom(),e.scrollToOffset(t),setTimeout(a=>{s||i?e.virtual.handleFront():e.virtual.handleBehind()},10)}},scrollInfo(){const t=this.$refs.scroller;return t?t.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)},onReGetMsg(){this.scrollToBottomRefresh=!1,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(t=>{})},onPrevPage(){this.prevId!==0&&this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,prev_id:this.prevId,save_before:t=>this.scrollDisabled=!0,save_after:t=>this.scrollDisabled=!1}).then(({data:t})=>{const i=t.list.map(e=>e.id);this.$nextTick(()=>{const e=this.$refs.scroller,s=i.reduce((a,o)=>({size:(typeof a=="object"?a.size:e.getSize(a))+e.getSize(o)}));this.onToOffset(e.getOffset()+s.size,!0)})}).catch(()=>{})},onDialogMenu(t){var i;switch(t){case"searchMsg":this.searchShow=!0,this.$nextTick(s=>{this.$refs.searchInput.focus()});break;case"openCreate":const e=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&e.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:e,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:(i=this.cacheUserBasic.find(s=>s.userid===this.dialogData.dialog_user.userid))==null?void 0:i.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:s})=>{this.modifyData.clear_day=s.clear_day,this.modifyData.webhook_url=s.webhook_url,this.modifyData.system_name=s.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:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{i(e)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{i(e)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:i})=>{$A.messageSuccess(i),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},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:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveUserBasic",{userid:this.modifyData.userid,nickname:t.name,userimg:t.avatar}),this.$store.dispatch("saveDialog",{id:this.modifyData.dialog_id,name:t.name}),this.modifyShow=!1,this.modifyData={}}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.modifyLoad--})):(this.modifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.modifyData}).then(({data:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveDialog",t),this.modifyShow=!1,this.modifyData={}}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.modifyLoad--}))},onForwardBefore(){return new Promise((t,i)=>{if(this.forwardData=this.$refs.forwardSelect.formatSelect(this.$refs.forwardSelect.selects),this.forwardData.length===0)$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458");else{if(this.forwardDialogId=0,this.forwardData.length===1){const{type:e,userid:s}=this.forwardData[0];e==="group"&&/^d:/.test(s)&&(this.forwardDialogId=parseInt(s.replace(/^d:/,"")))}this.forwardMessage="",this.forwardSource=!0,this.forwardhow=!0}i()})},onForwardAffirm(){const t=this.$refs.forwardSelect.selects;if(t.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458");return}const i=t.filter(s=>$A.leftExists(s,"d:")).map(s=>s.replace("d:","")),e=t.filter(s=>!$A.leftExists(s,"d:"));this.forwardLoad++,this.$store.dispatch("call",{url:"dialog/msg/forward",data:{dialogids:i,userids:e,msg_id:this.operateItem.id,show_source:this.forwardSource?1:0,leave_message:this.forwardMessage}}).then(({data:s,msg:a})=>{this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),$A.messageSuccess(a),this.$refs.forwardSelect.hide(),this.forwardhow=!1}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.forwardLoad--})},onActivity(t){if(this.msgActivity===!1){t&&(this.msgActivity=1);return}t?this.msgActivity++:this.msgActivity--},onScroll(t){this.operatePreventScroll===0&&(this.operateVisible=!1);const{offset:i,tail:e}=this.scrollInfo();this.scrollOffset=i,this.scrollTail=e,e<=10&&(this.msgNew=0,this.scrollToBottomRefresh&&this.onReGetMsg()),this.scrollAction=t.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(s=>this.scrollTmp=this.scrollAction,0),this.scrollIng++,setTimeout(s=>this.scrollIng--,100)},onRange(t){if(this.preventMoreLoad)return;const i=this.scrollDirection==="down"?"next_id":"prev_id";for(let e=t.start;e<=t.end;e++){if(!this.allMsgs[e])continue;const s=this.allMsgs[e][i];if(!s)continue;const a=this.allMsgs[e+(i==="next_id"?1:-1)];a&&a.id!=s&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[i]:s}).finally(o=>{this.preventMoreLoad=!1}))}},onBack(){if(!this.beforeBack)return this.handleBack();const t=this.beforeBack();t&&t.then?t.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:t,params:i}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(i.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(t){switch(t){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=t;break}},onMention(t){const i=this.cacheUserBasic.find(({userid:e})=>e==t.userid);i&&this.$refs.input.addMention({denotationChar:"@",id:i.userid,value:i.nickname})},onLongpress({event:t,el:i,msgData:e}){if(this.operateVisible=this.operateItem.id===e.id,this.operateItem=$A.isJson(e)?e:{},this.operateCopys=[],t.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.thumbRestore(t.target.currentSrc)}):t.target.nodeName==="A"&&(t.target.classList.contains("mention")&&t.target.classList.contains("file")&&this.findOperateFile(this.operateItem.id,t.target.href),this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:t.target.href})),e.type==="text"){t.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.thumbRestore(t.target.currentSrc)});const s=this.getSelectedTextInElement(i);if(s.length>0&&this.operateCopys.push({type:"selected",icon:"",label:"\u590D\u5236\u9009\u62E9",value:s}),e.msg.text.replace(/<[^>]+>/g,"").length>0){let a=this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236";s.length>0&&(a="\u590D\u5236\u5168\u90E8"),this.operateCopys.push({type:"text",icon:"",label:a,value:""})}}this.$nextTick(()=>{const s=i.getBoundingClientRect(),a=this.$refs.scroller.$el.getBoundingClientRect();let o=s.top+this.windowScrollY,r=s.height;s.topa.bottom&&(r-=s.bottom-a.bottom),this.operateStyles={left:`${t.clientX}px`,top:`${o}px`,height:`${r}px`},this.operateClient={x:t.clientX,y:t.clientY},this.operateVisible=!0})},onOperate(t,i=null){this.operateVisible=!1,this.$nextTick(e=>{switch(t){case"cancel":this.onCancelSend();break;case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(i);break;case"forward":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 s=$A.formatMsgBasic(this.operateItem.msg.text);s=s.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),v.Store.set("addTask",{owner:[this.userId],content:s});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":i==="more"?Yt().then(this.onEmoji):this.onEmoji(i);break;case"top":this.onTopOperate();break}})},onCancelSend(){$A.modalConfirm({title:"\u53D6\u6D88\u53D1\u9001",content:"\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u53D1\u9001\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,i)=>{if(this.operateItem.created_at){i("\u6D88\u606F\u5DF2\u53D1\u9001\uFF0C\u4E0D\u53EF\u53D6\u6D88");return}this.operateItem.type==="file"?this.$refs.chatUpload.cancel(this.operateItem.file_uid)?(this.forgetTempMsg(this.operateItem.id),t()):i("\u53D6\u6D88\u53D1\u9001\u5931\u8D25"):this.$store.dispatch("callCancel",this.operateItem.id).then(()=>{this.forgetTempMsg(this.operateItem.id),t()}).catch(()=>{i("\u53D6\u6D88\u53D1\u9001\u5931\u8D25")})})})},onReply(t){this.setQuote(this.operateItem.id,t),this.inputFocus()},onUpdate(){const{type:t}=this.operateItem;if(this.onReply(t==="text"?"update":"reply"),t==="text"){let{text:i,type:e}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),e==="md"?this.$refs.input.setText(i):(i.indexOf("mention")>-1&&(i=i.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),i=i.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),i=i.replace(/]*>/gi,s=>s.replace(/(width|height)="\d+"\s*/ig,"")),i=i.replace(/

<\/p>/g,"


"),this.msgText=$A.formatMsgBasic(i)),this.$nextTick(s=>this.$refs.input.setPasteMode(!0))}},onCopy(t){if(!$A.isJson(t))return;const{type:i,value:e}=t;switch(i){case"image":this.$Electron&&this.getBase64Image(e).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$Electron?this.$Electron.sendMessage("saveImageAt",{params:{},url:e}):this.$store.dispatch("downUrl",{url:e,token:!1});break;case"filepos":this.$store.dispatch("filePos",e);break;case"link":this.copyText(e);break;case"selected":this.copyText(e);break;case"text":const s=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(s.length>0){const a=s[0].innerText.replace(/\n\n/g,` +`).replace(/(^\s*)|(\s*$)/g,"");this.copyText(a)}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((t,i)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{t("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:e})=>{i(e)})})})},onViewReply(t){this.operateVisible||this.onPositionId(t.reply_id,t.msg_id)},onViewText({target:t},i){if(this.operateVisible)return;let e=t;for(;e&&!e.classList.contains("dialog-scroller");){if(e.classList.contains("open-approve-details")){const s=e.getAttribute("data-id");window.innerWidth<426?this.goForward({name:"manage-approve-details",query:{id:e.getAttribute("data-id")}}):(this.approveDetailsShow=!0,this.$nextTick(()=>{this.approveDetails={id:s}}));return}e=e.parentElement}switch(t.nodeName){case"IMG":if(t.classList.contains("browse"))this.onViewPicture(t.currentSrc);else{const a=$A.getTextImagesInfo(i.outerHTML),o=a.findIndex(r=>r.src==t.currentSrc);this.$store.dispatch("previewImage",{index:o,list:a})}break;case"SPAN":t.classList.contains("mention")&&t.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(t.getAttribute("data-id"))),t.classList.contains("mention")&&t.classList.contains("okr")&&this.$store.dispatch("openOkr",$A.runNum(t.getAttribute("data-id")));break;case"LI":const s=t.getAttribute("data-list");if(["checked","unchecked"].includes(s)){let a=i.parentElement;for(;a&&!a.classList.contains("dialog-scroller");){if(a.classList.contains("dialog-view")){const o=a.getAttribute("data-id"),r=[].indexOf.call(i.querySelectorAll(t.tagName),t);s==="checked"?t.setAttribute("data-list","unchecked"):t.setAttribute("data-list","checked"),this.$store.dispatch("setLoad",{key:`msg-${o}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/checked",data:{dialog_id:this.dialogId,msg_id:o,index:r,checked:s==="checked"?0:1}}).then(({data:n})=>{this.$store.dispatch("saveDialogMsg",n)}).catch(({msg:n})=>{$A.modalError(n)}).finally(n=>{this.$store.dispatch("cancelLoad",`msg-${o}`)});break}a=a.parentElement}}break}},onViewFile(t){if(this.operateVisible)return;$A.isJson(t)||(t=this.operateItem);const{msg:i}=t;if(["jpg","jpeg","webp","gif","png"].includes(i.ext)){this.onViewPicture(i.path);return}const e=`/single/file/msg/${t.id}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-msg-${t.id}`,path:e,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${i.name} (${$A.bytesToSize(i.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:i.ext==="drawio"}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:`${i.name} (${$A.bytesToSize(i.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${e}`}}):window.open($A.mainUrl(e.substring(1)))},onViewPicture(t){const i=this.allMsgs.filter(a=>a.type==="file"?["jpg","jpeg","webp","gif","png"].includes(a.msg.ext):a.type==="text"?a.msg.text.match(/]*?>/):!1),e=[];i.some(({type:a,msg:o})=>{a==="file"?e.push({src:o.path,width:o.width,height:o.height}):a==="text"&&e.push(...$A.getTextImagesInfo(o.text))});const s=e.findIndex(({src:a})=>a===t);s>-1?this.$store.dispatch("previewImage",{index:s,list:e}):this.$store.dispatch("previewImage",t)},onDownFile(t){this.operateVisible||($A.isJson(t)||(t=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.msg.name} (${$A.bytesToSize(t.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${t.id}`))}}))},onReplyList(t){this.operateVisible||(this.replyListId=t.msg_id,this.replyListShow=!0)},onError(t){if(t.error!==!0)return;const{type:i,mType:e,content:s,msg:a}=t.errorData,o={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:s,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:r=>{this.forgetTempMsg(t.id)}};if(i==="text")o.okText="\u91CD\u65B0\u53D1\u9001",o.onOk=()=>{this.forgetTempMsg(t.id),this.sendMsg(a,e)};else if(i==="record")o.okText="\u91CD\u65B0\u53D1\u9001",o.onOk=()=>{this.forgetTempMsg(t.id),this.sendRecord(a)};else return;$A.modalConfirm(o)},onEmoji(t){$A.isJson(t)||(t={msg_id:this.operateItem.id,symbol:t});const i=this.cacheEmojis.filter(e=>e!==t.symbol);i.unshift(t.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=i.slice(0,3)),this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:t}).then(({data:e})=>{this.dialogMsgs.findIndex(a=>a.id==e.id)>-1?this.$store.dispatch("saveDialogMsg",e):this.todoViewData.id===e.id&&(this.todoViewData=Object.assign(this.todoViewData,e))}).catch(({msg:e})=>{$A.messageError(e)}).finally(e=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onShowEmojiUser(t){this.operateVisible||(this.respondData=t,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const t={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:t}).then(({data:i})=>{this.tagOrTodoSuccess(i)}).catch(({msg:i})=>{$A.messageError(i)}).finally(i=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onTypeChange(t){t==="user"&&(this.todoSettingData.userids.length===0&&this.todoSettingData.quick_value.length>0&&(this.todoSettingData.userids=this.todoSettingData.quick_value),this.$nextTick(i=>{this.$refs.userSelect.onSelection()})),t!=="quick_select"&&(this.todoSettingData.quick_value=[])},onQuickChange(t){this.todoSettingData.type=t.length===0?"all":"quick_select"},onTodo(t){var i;if(!this.operateVisible)if(t==="submit"){const e=$A.cloneJSON(this.todoSettingData);if(e.type==="quick_select")e.type="user",e.userids=e.quick_value;else if(e.type==="user"&&$A.arrayLength(e.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(e).then(s=>{$A.messageSuccess(s),this.todoSettingShow=!1}).catch(s=>{$A.messageError(s)}).finally(s=>{this.todoSettingLoad--})}else{const e={};e[this.userId]=this.userId;const s=(i=this.dialogData.dialog_user)==null?void 0:i.userid;if(s&&s!=this.userId&&!this.dialogData.bot&&(e[s]=s),this.operateItem.type==="text"){const a=/([^<]+)<\/span>/g,o=this.operateItem.msg.text.match(a);o&&o.forEach(r=>{const n=parseInt(r.replace(a,"$1"));n&&n!=this.userId&&(e[n]=n)})}this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,quick_value:[],quick_list:Object.values(e)},this.operateItem.todo?$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u5F85\u529E\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTodoSubmit(this.todoSettingData)}):this.todoSettingShow=!0}},onTodoSubmit(t){return new Promise((i,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:t}).then(({data:s,msg:a})=>{i(a),this.tagOrTodoSuccess(s),this.onActive()}).catch(({msg:s})=>{e(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},tagOrTodoSuccess(t){this.$store.dispatch("saveDialogMsg",t.update),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add))},onSearchSwitch(t){if(this.searchResult.length!==0){if(this.searchLocation===1&&this.searchResult.length===1){this.onPositionId(this.searchResult[0]);return}t==="prev"?this.searchLocation<=1?this.searchLocation=this.searchResult.length:this.searchLocation--:this.searchLocation>=this.searchResult.length?this.searchLocation=1:this.searchLocation++}},onSearchKeyup(t){(t===null||t.keyCode===27)&&(this.searchShow=!1,this.searchKey="",this.searchResult=[])},onPositionMark(t){this.positionLoad>0||(this.positionLoad++,this.onPositionId(t).finally(i=>{this.positionLoad--}))},actionPermission(t,i){if(i==="forward"){if(["word-chain","vote"].includes(t.type))return!1;if(t.type==="text")return typeof t.msg.approve_type=="undefined"}else if(i==="newTask")return t.type==="text"?typeof t.msg.approve_type=="undefined":!1;return!0},findOperateFile(t,i){const e=this.fileLinks.find(s=>s.link===i);if(e){this.addFileMenu(t,e);return}this.$store.dispatch("searchFiles",{link:i}).then(({data:s})=>{if(s.length===1){const a={link:i,id:s[0].id,pid:s[0].pid};this.fileLinks.push(a),this.addFileMenu(t,a)}}).catch(s=>{})},addFileMenu(t,i){if(this.operateItem.id!=t||this.operateCopys.findIndex(s=>s.type==="filepos")!==-1)return;const e=Math.max(0,this.operateCopys.findIndex(s=>s.type==="link")-1);this.operateCopys.splice(e,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:i.pid,fileId:null,shakeId:i.id}})},getBase64Image(t){return new Promise(i=>{let e=document.createElement("CANVAS"),s=e.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{e.height=a.height,e.width=a.width,s.drawImage(a,0,0);let o="png";$A.rightExists(t,"jpg")||$A.rightExists(t,"jpeg")?o="jpeg":$A.rightExists(t,"webp")?o="webp":$A.rightExists(t,"git")&&(o="git"),i(e.toDataURL(`image/${o}`)),e=null},a.src=t})},getSelectedTextInElement(t){let i="";if(window.getSelection){let e=window.getSelection();if(e.rangeCount>0){const s=e.getRangeAt(0);t.contains(s.commonAncestorContainer)&&(i=s.toString())}}return i},onViewAvatar(t){let i=null;t.target.tagName==="IMG"?i=t.target.src:i=$A(t.target).find("img").attr("src"),i&&this.$store.dispatch("previewImage",i)},onTopOperate(){this.operateVisible||(this.operateItem.top_at?this.onCancelTop(this.operateItem):this.onTopSubmit(this.operateItem))},onTopSubmit(t){return new Promise((i,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/top",data:{msg_id:t.id}}).then(({data:s,msg:a})=>{var o,r,n;if(i(a),this.$store.dispatch("saveDialog",{id:this.dialogId,top_msg_id:((o=s.update)==null?void 0:o.top_msg_id)||0,top_userid:((r=s.update)==null?void 0:r.top_userid)||0}),(n=s.update)!=null&&n.top_msg_id){const l=this.dialogMsgs.findIndex(({id:d})=>d==s.update.top_msg_id);l>-1&&this.$store.dispatch("saveDialogMsgTop",Object.assign({},this.dialogMsgs[l]))}s.add&&(this.$store.dispatch("saveDialogMsg",s.add),this.$store.dispatch("updateDialogLastMsg",s.add),this.onActive())}).catch(({msg:s})=>{e(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},onPosTop(){!this.topMsg||(this.topPosLoad++,this.onPositionId(this.topMsg.id).finally(t=>{this.topPosLoad--}))},onCancelTop(t){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u7F6E\u9876\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTopSubmit(t)})},getUserApproveStatus(){this.approvaUserStatus="",!(this.dialogData.type!=="user"||this.dialogData.bot)&&this.$store.dispatch("call",{url:"approve/user/status",data:{userid:this.dialogData.dialog_user.userid}}).then(({data:t})=>{this.approvaUserStatus=t}).catch(({msg:t})=>{$A.messageError(t)})}}},j={};var ue=u(he,de,ce,!1,pe,null,null,null);function pe(t){for(let i in j)this[i]=j[i]}var Ie=function(){return ue.exports}();export{Kt as C,Ie as D}; diff --git a/public/js/build/Drawio.7ea92229.js b/public/js/build/Drawio.9ac6f0d0.js similarity index 68% rename from public/js/build/Drawio.7ea92229.js rename to public/js/build/Drawio.9ac6f0d0.js index aaf01e5bf..bc0cc4476 100644 --- a/public/js/build/Drawio.7ea92229.js +++ b/public/js/build/Drawio.9ac6f0d0.js @@ -1 +1 @@ -import{m as s}from"./vuex.cc7cb26e.js";import{I as m}from"./IFrame.3b0629c7.js";import{n as l,l as r}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"drawio-content"},[i("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:t.url},on:{"on-message":t.onMessage}}),t.loadIng?i("div",{staticClass:"drawio-loading"},[i("Loading")],1):t._e()],1)},d=[];const u={name:"Drawio",components:{IFrame:m},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 t=r;switch(r){case"zh-CHT":t="zh-tw";break}let e=this.readOnly?1:0,i=this.readOnly?0:1,n=this.themeName==="dark"?"dark":"kennedy",a=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${i}&lightbox=${e}&ui=${n}&lang=${t}&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${a}`):this.url=$A.mainUrl(`drawio/webapp/${a}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(t){this.bakData!=$A.jsonStringify(t)&&(this.bakData=$A.jsonStringify(t),this.updateContent())},deep:!0}},computed:{...s(["themeName"])},methods:{formatZoom(t){return t+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(t){switch(t.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 e={xml:t.xml};this.bakData=$A.jsonStringify(e),this.$emit("input",e);break;case"save":this.$emit("saveData");break}}}},o={};var c=l(u,p,d,!1,h,"39021859",null,null);function h(t){for(let e in o)this[e]=o[e]}var Y=function(){return c.exports}();export{Y as default}; +import{m as s}from"./vuex.cc7cb26e.js";import{I as m}from"./IFrame.c1a86434.js";import{n as l,l as r}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"drawio-content"},[i("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:t.url},on:{"on-message":t.onMessage}}),t.loadIng?i("div",{staticClass:"drawio-loading"},[i("Loading")],1):t._e()],1)},d=[];const u={name:"Drawio",components:{IFrame:m},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 t=r;switch(r){case"zh-CHT":t="zh-tw";break}let e=this.readOnly?1:0,i=this.readOnly?0:1,n=this.themeName==="dark"?"dark":"kennedy",a=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${i}&lightbox=${e}&ui=${n}&lang=${t}&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${a}`):this.url=$A.mainUrl(`drawio/webapp/${a}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(t){this.bakData!=$A.jsonStringify(t)&&(this.bakData=$A.jsonStringify(t),this.updateContent())},deep:!0}},computed:{...s(["themeName"])},methods:{formatZoom(t){return t+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(t){switch(t.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 e={xml:t.xml};this.bakData=$A.jsonStringify(e),this.$emit("input",e);break;case"save":this.$emit("saveData");break}}}},o={};var c=l(u,p,d,!1,h,"39021859",null,null);function h(t){for(let e in o)this[e]=o[e]}var Y=function(){return c.exports}();export{Y as default}; diff --git a/public/js/build/FileContent.c3694775.js b/public/js/build/FileContent.fefeb44a.js similarity index 67% rename from public/js/build/FileContent.c3694775.js rename to public/js/build/FileContent.fefeb44a.js index 7c1a9c99a..6eee11ff0 100644 --- a/public/js/build/FileContent.c3694775.js +++ b/public/js/build/FileContent.fefeb44a.js @@ -1 +1 @@ -import{_ as a}from"./openpgp_hi.15f91b1d.js";import{m as c}from"./vuex.cc7cb26e.js";import{n as r}from"./app.f8a6fa5e.js";import{I as d}from"./IFrame.3b0629c7.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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:e.windowWidth-40>480?480:e.windowWidth-40,"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:n=>{this.onAction(n,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=$A.getFileName(this.file)+` [${s.created_at}]`,i=`/single/file/${this.fileId}?history_id=${s.id}&history_title=${t}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-${this.fileId}-${s.id}`,path:i,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:t,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?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:t,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${i}`}}):window.open($A.mainUrl(i.substring(1)));break}}}},o={};var p=r(f,h,u,!1,m,"1b488c19",null,null);function m(e){for(let s in o)this[s]=o[s]}var v=function(){return p.exports}(),_=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,n){return n<=10?t("li",{key:n},[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&&!e.windowPortrait?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),e.windowPortrait&&e.file.type=="document"?[e.edit?e.edit&&e.equalContent?t("Button",{staticClass:"header-button",attrs:{size:"small"},on:{click:function(i){e.edit=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]):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")))]):t("Button",{staticClass:"header-button",attrs:{size:"small",type:"primary"},on:{click:function(i){e.edit=!0}}},[e._v(e._s(e.$L("\u7F16\u8F91")))])]: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"?[e.edit?t("MDEditor",{attrs:{height:"100%",toolbars:e.toolbars},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):t("MDPreview",{attrs:{initialValue:e.contentDetail.content}})]:t("TEditor",{attrs:{readOnly:!e.edit,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=()=>a(()=>import("./index.d312a146.js"),["js/build/index.d312a146.js","js/build/index.4d847d9e.css","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/ImgUpload.d82fa303.js"]),w=()=>a(()=>import("./preview.ac00254d.js"),["js/build/preview.ac00254d.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),$=()=>a(()=>import("./TEditor.0841978b.js"),["js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/ImgUpload.d82fa303.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>a(()=>import("./AceEditor.9724e814.js"),["js/build/AceEditor.9724e814.js","js/build/vuex.cc7cb26e.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),D=()=>a(()=>import("./OnlyOffice.6bf143a3.js"),["js/build/OnlyOffice.6bf143a3.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),C=()=>a(()=>import("./Drawio.7ea92229.js"),["js/build/Drawio.7ea92229.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),x=()=>a(()=>import("./Minder.fcfad20d.js"),["js/build/Minder.fcfad20d.js","js/build/Minder.1839e1ef.css","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),b={name:"FileContent",components:{IFrame:d,FileHistory:v,AceEditor:g,TEditor:$,MDEditor:k,OnlyOffice:D,Drawio:C,Minder:x,MDPreview:w},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,edit:!1}},mounted(){this.edit=!this.windowPortrait,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.onlinePreviewUrl(e,s)}return""},toolbars(){return this.windowPortrait?{strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!1,ul:!0,ol:!0,code:!0,link:!0,image:!1,uploadImage:!1,table:!0,checked:!1,notChecked:!1,split:!0,preview:!1,fullscreen:!1,theme:!1,exportmd:!1,importmd:!1,save:!1,clear:!1,scrolling:!1,html_to_markdown:!1,custom_image:!1,custom_uploadImage:!1,custom_uploadFile:!1,custom_fullscreen:!1}:{strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!1,uploadImage:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!1,theme:!1,exportmd:!1,importmd:!1,save:!1,clear:!1,scrolling:!0,html_to_markdown:!0,custom_image:!0,custom_uploadImage:!0,custom_uploadFile:!0,custom_fullscreen:!0}}},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.edit=!this.windowPortrait,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))},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,s)=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:t})=>{e(`${t.id}-${$A.Time(t.update_at)}`)}).catch(t=>{s(t)})})}}},l={};var S=r(b,_,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var ue=function(){return S.exports}();export{ue as default}; +import{_ as a}from"./openpgp_hi.15f91b1d.js";import{m as c}from"./vuex.cc7cb26e.js";import{n as r}from"./app.57070a0d.js";import{I as d}from"./IFrame.c1a86434.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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:e.windowWidth-40>480?480:e.windowWidth-40,"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:n=>{this.onAction(n,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=$A.getFileName(this.file)+` [${s.created_at}]`,i=`/single/file/${this.fileId}?history_id=${s.id}&history_title=${t}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-${this.fileId}-${s.id}`,path:i,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:t,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?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:t,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${i}`}}):window.open($A.mainUrl(i.substring(1)));break}}}},o={};var p=r(f,h,u,!1,m,"1b488c19",null,null);function m(e){for(let s in o)this[s]=o[s]}var v=function(){return p.exports}(),_=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,n){return n<=10?t("li",{key:n},[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&&!e.windowPortrait?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),e.windowPortrait&&e.file.type=="document"?[e.edit?e.edit&&e.equalContent?t("Button",{staticClass:"header-button",attrs:{size:"small"},on:{click:function(i){e.edit=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]):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")))]):t("Button",{staticClass:"header-button",attrs:{size:"small",type:"primary"},on:{click:function(i){e.edit=!0}}},[e._v(e._s(e.$L("\u7F16\u8F91")))])]: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"?[e.edit?t("MDEditor",{attrs:{height:"100%",toolbars:e.toolbars},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):t("MDPreview",{attrs:{initialValue:e.contentDetail.content}})]:t("TEditor",{attrs:{readOnly:!e.edit,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=()=>a(()=>import("./index.580630c2.js"),["js/build/index.580630c2.js","js/build/index.4d847d9e.css","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/ImgUpload.b233effb.js"]),w=()=>a(()=>import("./preview.2fd94df0.js"),["js/build/preview.2fd94df0.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),$=()=>a(()=>import("./TEditor.10324bed.js"),["js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/ImgUpload.b233effb.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>a(()=>import("./AceEditor.ee1743e2.js"),["js/build/AceEditor.ee1743e2.js","js/build/vuex.cc7cb26e.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),D=()=>a(()=>import("./OnlyOffice.b4318521.js"),["js/build/OnlyOffice.b4318521.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),C=()=>a(()=>import("./Drawio.9ac6f0d0.js"),["js/build/Drawio.9ac6f0d0.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),x=()=>a(()=>import("./Minder.e832edb9.js"),["js/build/Minder.e832edb9.js","js/build/Minder.1839e1ef.css","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),b={name:"FileContent",components:{IFrame:d,FileHistory:v,AceEditor:g,TEditor:$,MDEditor:k,OnlyOffice:D,Drawio:C,Minder:x,MDPreview:w},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,edit:!1}},mounted(){this.edit=!this.windowPortrait,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.onlinePreviewUrl(e,s)}return""},toolbars(){return this.windowPortrait?{strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!1,ul:!0,ol:!0,code:!0,link:!0,image:!1,uploadImage:!1,table:!0,checked:!1,notChecked:!1,split:!0,preview:!1,fullscreen:!1,theme:!1,exportmd:!1,importmd:!1,save:!1,clear:!1,scrolling:!1,html_to_markdown:!1,custom_image:!1,custom_uploadImage:!1,custom_uploadFile:!1,custom_fullscreen:!1}:{strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!1,uploadImage:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!1,theme:!1,exportmd:!1,importmd:!1,save:!1,clear:!1,scrolling:!0,html_to_markdown:!0,custom_image:!0,custom_uploadImage:!0,custom_uploadFile:!0,custom_fullscreen:!0}}},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.edit=!this.windowPortrait,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))},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,s)=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:t})=>{e(`${t.id}-${$A.Time(t.update_at)}`)}).catch(t=>{s(t)})})}}},l={};var S=r(b,_,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var ue=function(){return S.exports}();export{ue as default}; diff --git a/public/js/build/FilePreview.6f0543c4.js b/public/js/build/FilePreview.6f0543c4.js new file mode 100644 index 000000000..cc86a3552 --- /dev/null +++ b/public/js/build/FilePreview.6f0543c4.js @@ -0,0 +1 @@ +import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as n}from"./IFrame.c1a86434.js";import{n as a}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"file-preview"},[t.isPreview?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl},on:{"on-load":t.onFrameLoad}}):t.contentDetail?[e("div",{directives:[{name:"show",rawName:"v-show",value:t.headerShow&&!["word","excel","ppt"].includes(t.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[e("div",{staticClass:"header-title"},[e("div",{staticClass:"title-name"},[t._v(t._s(t.$A.getFileName(t.file)))]),e("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),e("div",{staticClass:"refresh"},[t.contentLoad?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getContent}})],1)],1)]),e("div",{staticClass:"content-body"},[t.file.type=="document"?[t.contentDetail.type=="md"?e("MDPreview",{attrs:{initialValue:t.contentDetail.content}}):e("TEditor",{attrs:{value:t.contentDetail.content,height:"100%",readOnly:""}})]:t.file.type=="drawio"?e("Drawio",{ref:"myFlow",attrs:{value:t.contentDetail,title:t.file.name,readOnly:""}}):t.file.type=="mind"?e("Minder",{ref:"myMind",attrs:{value:t.contentDetail,readOnly:""}}):["code","txt"].includes(t.file.type)?e("AceEditor",{attrs:{value:t.contentDetail.content,ext:t.file.ext,readOnly:""}}):["word","excel","ppt"].includes(t.file.type)?e("OnlyOffice",{attrs:{value:t.contentDetail,code:t.code,historyId:t.historyId,documentKey:t.documentKey,readOnly:""}}):t._e()],2)]:t._e(),t.contentLoad?e("div",{staticClass:"content-load"},[e("Loading")],1):t._e()],2)},s=[];const d=()=>o(()=>import("./preview.2fd94df0.js"),["js/build/preview.2fd94df0.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),c=()=>o(()=>import("./TEditor.10324bed.js"),["js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/ImgUpload.b233effb.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./AceEditor.ee1743e2.js"),["js/build/AceEditor.ee1743e2.js","js/build/vuex.cc7cb26e.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),m=()=>o(()=>import("./OnlyOffice.b4318521.js"),["js/build/OnlyOffice.b4318521.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Drawio.9ac6f0d0.js"),["js/build/Drawio.9ac6f0d0.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Minder.e832edb9.js"),["js/build/Minder.e832edb9.js","js/build/Minder.1839e1ef.css","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),h={name:"FilePreview",components:{IFrame:n,AceEditor:p,TEditor:c,MDPreview:d,OnlyOffice:m,Drawio:u,Minder:_},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(t){t&&(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:t,key:i}=this.contentDetail;return $A.onlinePreviewUrl(t,i)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(t=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:t})=>{this.contentDetail=t.content}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadContent--})},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.Time(e.update_at)}`)}).catch(e=>{i(e)})})},exportMenu(t){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(t,this.file.name);break}}}},r={};var v=a(h,l,s,!1,f,null,null,null);function f(t){for(let i in r)this[i]=r[i]}var et=function(){return v.exports}();export{et as default}; diff --git a/public/js/build/FilePreview.cf87ec8f.js b/public/js/build/FilePreview.cf87ec8f.js deleted file mode 100644 index adb69a28a..000000000 --- a/public/js/build/FilePreview.cf87ec8f.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as n}from"./IFrame.3b0629c7.js";import{n as a}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"file-preview"},[t.isPreview?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl},on:{"on-load":t.onFrameLoad}}):t.contentDetail?[e("div",{directives:[{name:"show",rawName:"v-show",value:t.headerShow&&!["word","excel","ppt"].includes(t.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[e("div",{staticClass:"header-title"},[e("div",{staticClass:"title-name"},[t._v(t._s(t.$A.getFileName(t.file)))]),e("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),e("div",{staticClass:"refresh"},[t.contentLoad?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getContent}})],1)],1)]),e("div",{staticClass:"content-body"},[t.file.type=="document"?[t.contentDetail.type=="md"?e("MDPreview",{attrs:{initialValue:t.contentDetail.content}}):e("TEditor",{attrs:{value:t.contentDetail.content,height:"100%",readOnly:""}})]:t.file.type=="drawio"?e("Drawio",{ref:"myFlow",attrs:{value:t.contentDetail,title:t.file.name,readOnly:""}}):t.file.type=="mind"?e("Minder",{ref:"myMind",attrs:{value:t.contentDetail,readOnly:""}}):["code","txt"].includes(t.file.type)?e("AceEditor",{attrs:{value:t.contentDetail.content,ext:t.file.ext,readOnly:""}}):["word","excel","ppt"].includes(t.file.type)?e("OnlyOffice",{attrs:{value:t.contentDetail,code:t.code,historyId:t.historyId,documentKey:t.documentKey,readOnly:""}}):t._e()],2)]:t._e(),t.contentLoad?e("div",{staticClass:"content-load"},[e("Loading")],1):t._e()],2)},s=[];const d=()=>o(()=>import("./preview.ac00254d.js"),["js/build/preview.ac00254d.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),c=()=>o(()=>import("./TEditor.0841978b.js"),["js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/ImgUpload.d82fa303.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./AceEditor.9724e814.js"),["js/build/AceEditor.9724e814.js","js/build/vuex.cc7cb26e.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),m=()=>o(()=>import("./OnlyOffice.6bf143a3.js"),["js/build/OnlyOffice.6bf143a3.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Drawio.7ea92229.js"),["js/build/Drawio.7ea92229.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Minder.fcfad20d.js"),["js/build/Minder.fcfad20d.js","js/build/Minder.1839e1ef.css","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),h={name:"FilePreview",components:{IFrame:n,AceEditor:p,TEditor:c,MDPreview:d,OnlyOffice:m,Drawio:u,Minder:_},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(t){t&&(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:t,key:i}=this.contentDetail;return $A.onlinePreviewUrl(t,i)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(t=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:t})=>{this.contentDetail=t.content}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadContent--})},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.Time(e.update_at)}`)}).catch(e=>{i(e)})})},exportMenu(t){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(t,this.file.name);break}}}},r={};var v=a(h,l,s,!1,f,null,null,null);function f(t){for(let i in r)this[i]=r[i]}var et=function(){return v.exports}();export{et as default}; diff --git a/public/js/build/IFrame.3b0629c7.js b/public/js/build/IFrame.c1a86434.js similarity index 94% rename from public/js/build/IFrame.3b0629c7.js rename to public/js/build/IFrame.c1a86434.js index bf6365d64..c78ac95bf 100644 --- a/public/js/build/IFrame.3b0629c7.js +++ b/public/js/build/IFrame.c1a86434.js @@ -1 +1 @@ -import{n}from"./app.f8a6fa5e.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.57070a0d.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.d82fa303.js b/public/js/build/ImgUpload.b233effb.js similarity index 99% rename from public/js/build/ImgUpload.d82fa303.js rename to public/js/build/ImgUpload.b233effb.js index a3eb8be38..ca792dedd 100644 --- a/public/js/build/ImgUpload.d82fa303.js +++ b/public/js/build/ImgUpload.b233effb.js @@ -1 +1 @@ -import{n as o}from"./app.f8a6fa5e.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:{...c(["cacheUserBasic"]),userid(){return this.player.uid?(this.player.uid+"").indexOf("88888")!==-1?(this.getTouristInfo(),0):parseInt((this.player.uid+"").substring(6))||0:0},username(){if(this.userid){const t=this.cacheUserBasic.find(({userid:i})=>i==this.userid);return t?t.nickname:""}return this.tourist.nickname||""},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)})}}},l={};var v=r(p,m,g,!1,k,null,null,null);function k(t){for(let i in l)this[i]=l[i]}var y=function(){return v.exports}(),D=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)},_=[];const w={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)}}},d={};var b=r(w,D,_,!1,$,null,null,null);function $(t){for(let i in d)this[i]=d[i]}var T=function(){return b.exports}(),C=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":""}`,"ignore-remove-last":t.meetingMini,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)},L=[];const U={name:"MeetingManager",components:{UserSelect:f,DragBallComponent:T,MeetingPlayer:y},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:{...c(["meetingWindow"])},mounted(){this.subscribe=u.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.filter(e=>!e.bot).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=>{var a,s,o;if(e.state==="ACTIVE")(a=this.localUser.audioTrack)==null||a.setDevice(e.device.deviceId);else if(e.device.label===((s=this.localUser.audioTrack)==null?void 0:s.getTrackLabel())){const n=await AgoraRTC.getMicrophones();n[0]&&((o=this.localUser.audioTrack)==null||o.setDevice(n[0].deviceId))}},AgoraRTC.onCameraChanged=async e=>{var a,s,o;if(e.state==="ACTIVE")(a=this.localUser.videoTrack)==null||a.setDevice(e.device.deviceId);else if(e.device.label===((s=this.localUser.videoTrack)==null?void 0:s.getTrackLabel())){const n=await AgoraRTC.getCameras();n[0]&&((o=this.localUser.videoTrack)==null||o.setDevice(n[0].deviceId))}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},AgoraRTC.setLogLevel(window.systemInfo.debug==="yes"?0:3),this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const 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({text:t,success:"\u5DF2\u590D\u5236\u4F1A\u8BAE\u9080\u8BF7\u94FE\u63A5",error:"\u590D\u5236\u5931\u8D25"}),this.invitationShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.linkCopyLoad=!1})}}},h={};var S=r(U,C,L,!1,I,null,null,null);function I(t){for(let i in h)this[i]=h[i]}var E=function(){return S.exports}();export{E as M}; +import{l as u}from"./le5le-store.b40f9152.js";import{m as c}from"./vuex.cc7cb26e.js";import{n as r,U as f}from"./app.57070a0d.js";var m=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"meeting-player"},[e("div",{staticClass:"player",style:t.playerStyle,attrs:{id:t.id}}),e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||!t.username}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v(" "+t._s(t.username)+" ")]),e("div",{staticClass:"meeting-avatar"},[t.userid?e("UserAvatar",{attrs:{userid:t.userid,size:36,borderWitdh:2}}):t.tourist.userimg?e("div",{staticClass:"common-avatar avatar-wrapper"},[e("div",{staticClass:"avatar-box online"},[e("em"),e("EAvatar",{attrs:{size:36,src:t.tourist.userimg}})],1)]):t._e()],1)]),e("div",{staticClass:"player-state"},[t.audio?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C7")]),t.video?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C8")])])],1)},g=[];const p={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null,tourist:{uid:"",nickname:"",userimg:""}}},mounted(){this.timer=setInterval(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:{...c(["cacheUserBasic"]),userid(){return this.player.uid?(this.player.uid+"").indexOf("88888")!==-1?(this.getTouristInfo(),0):parseInt((this.player.uid+"").substring(6))||0:0},username(){if(this.userid){const t=this.cacheUserBasic.find(({userid:i})=>i==this.userid);return t?t.nickname:""}return this.tourist.nickname||""},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)})}}},l={};var v=r(p,m,g,!1,k,null,null,null);function k(t){for(let i in l)this[i]=l[i]}var y=function(){return v.exports}(),D=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)},_=[];const w={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)}}},d={};var b=r(w,D,_,!1,$,null,null,null);function $(t){for(let i in d)this[i]=d[i]}var T=function(){return b.exports}(),C=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":""}`,"ignore-remove-last":t.meetingMini,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)},L=[];const U={name:"MeetingManager",components:{UserSelect:f,DragBallComponent:T,MeetingPlayer:y},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:{...c(["meetingWindow"])},mounted(){this.subscribe=u.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.filter(e=>!e.bot).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=>{var a,s,o;if(e.state==="ACTIVE")(a=this.localUser.audioTrack)==null||a.setDevice(e.device.deviceId);else if(e.device.label===((s=this.localUser.audioTrack)==null?void 0:s.getTrackLabel())){const n=await AgoraRTC.getMicrophones();n[0]&&((o=this.localUser.audioTrack)==null||o.setDevice(n[0].deviceId))}},AgoraRTC.onCameraChanged=async e=>{var a,s,o;if(e.state==="ACTIVE")(a=this.localUser.videoTrack)==null||a.setDevice(e.device.deviceId);else if(e.device.label===((s=this.localUser.videoTrack)==null?void 0:s.getTrackLabel())){const n=await AgoraRTC.getCameras();n[0]&&((o=this.localUser.videoTrack)==null||o.setDevice(n[0].deviceId))}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},AgoraRTC.setLogLevel(window.systemInfo.debug==="yes"?0:3),this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const 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({text:t,success:"\u5DF2\u590D\u5236\u4F1A\u8BAE\u9080\u8BF7\u94FE\u63A5",error:"\u590D\u5236\u5931\u8D25"}),this.invitationShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.linkCopyLoad=!1})}}},h={};var S=r(U,C,L,!1,I,null,null,null);function I(t){for(let i in h)this[i]=h[i]}var E=function(){return S.exports}();export{E as M}; diff --git a/public/js/build/MicroApps.dba2f711.js b/public/js/build/MicroApps.aa6194e7.js similarity index 89% rename from public/js/build/MicroApps.dba2f711.js rename to public/js/build/MicroApps.aa6194e7.js index 2a4d61cad..34a19a5b4 100644 --- a/public/js/build/MicroApps.dba2f711.js +++ b/public/js/build/MicroApps.aa6194e7.js @@ -1 +1 @@ -import{V as p}from"./vue.da9c4dc7.js";import{s,U as o,a as r,l as n,n as h}from"./app.f8a6fa5e.js";import{m as l}from"./vuex.cc7cb26e.js";import{u as d,E as u}from"./@micro-zoe.c2e1472d.js";import{D as m}from"./DialogWrapper.5184c28a.js";import{i as c}from"./view-design-hi.afe77d1e.js";var f=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"page-microapp"},[a.showSpin?e("transition",{attrs:{name:"microapp-load"}},[e("div",{staticClass:"microapp-load"},[e("Loading")],1)]):a._e(),a.url&&!a.loading?e("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 w={name:"MicroApps",props:{name:{type:String,default:"micro-app"},url:{type:String,default:""},path:{type:String,default:""},datas:{type:Object,default:()=>{}}},data(){return{showSpin:!1,loading:!1,appData:{}}},mounted(){this.showSpin=!0,this.appData=this.getAppData},watch:{loading(a){a&&(this.showSpin=!0)},path(a){this.appData={path:a}},datas:{handler(a){this.appData=a},deep:!0},$route:{handler(a){(a.name=="manage-apps"||a.name=="single-apps")&&(this.appData={path:a.hash||a.fullPath})},immediate:!0},userToken(a){this.appData=this.getAppData,a?this.loading=!1:(d({destroy:!0}),this.loading=!0)}},computed:{...l(["userInfo","themeName"]),getAppData(){return{type:"init",url:this.url,vues:{Vue:p,store:s,components:{DialogWrapper:m,UserSelect:o,DatePicker:c.exports.DatePicker}},theme:this.themeName,languages:{languageList:r,languageName:n,languageType:n},userInfo:this.userInfo,path:this.path,electron:this.$Electron,openAppChildPage:a=>{this.$store.dispatch("openAppChildPage",a)},openChildWindow:a=>{this.$store.dispatch("openChildWindow",a)},openWebTabWindow:a=>{this.$store.dispatch("openWebTabWindow",a)}}}},methods:{handleCreate(a){window.eventCenterForAppNameVite=new u(a.detail.name),this.appData=this.getAppData,this.showSpin=!window["eventCenterForAppNameViteLoad-"+a.detail.name]},handleBeforeMount(a){window["eventCenterForAppNameViteLoad-"+a.detail.name]=1},handleMount(a){this.datas&&(this.appData=this.datas),this.path&&(this.appData.path=this.path),this.showSpin=!1},handleUnmount(a){window.dispatchEvent(new Event("apps-unmount"))},handleError(a){},handleDataChange(a){}}},i={};var v=h(w,f,g,!1,D,null,null,null);function D(a){for(let t in i)this[t]=i[t]}var y=function(){return v.exports}();export{y as M}; +import{V as p}from"./vue.eaf71fac.js";import{s,U as o,a as r,l as n,n as h}from"./app.57070a0d.js";import{m as l}from"./vuex.cc7cb26e.js";import{u as d,E as u}from"./@micro-zoe.c2e1472d.js";import{D as m}from"./DialogWrapper.4f742dbc.js";import{i as c}from"./view-design-hi.76cbd75d.js";var f=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"page-microapp"},[a.showSpin?e("transition",{attrs:{name:"microapp-load"}},[e("div",{staticClass:"microapp-load"},[e("Loading")],1)]):a._e(),a.url&&!a.loading?e("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 w={name:"MicroApps",props:{name:{type:String,default:"micro-app"},url:{type:String,default:""},path:{type:String,default:""},datas:{type:Object,default:()=>{}}},data(){return{showSpin:!1,loading:!1,appData:{}}},mounted(){this.showSpin=!0,this.appData=this.getAppData},watch:{loading(a){a&&(this.showSpin=!0)},path(a){this.appData={path:a}},datas:{handler(a){this.appData=a},deep:!0},$route:{handler(a){(a.name=="manage-apps"||a.name=="single-apps")&&(this.appData={path:a.hash||a.fullPath})},immediate:!0},userToken(a){this.appData=this.getAppData,a?this.loading=!1:(d({destroy:!0}),this.loading=!0)}},computed:{...l(["userInfo","themeName"]),getAppData(){return{type:"init",url:this.url,vues:{Vue:p,store:s,components:{DialogWrapper:m,UserSelect:o,DatePicker:c.exports.DatePicker}},theme:this.themeName,languages:{languageList:r,languageName:n,languageType:n},userInfo:this.userInfo,path:this.path,electron:this.$Electron,openAppChildPage:a=>{this.$store.dispatch("openAppChildPage",a)},openChildWindow:a=>{this.$store.dispatch("openChildWindow",a)},openWebTabWindow:a=>{this.$store.dispatch("openWebTabWindow",a)}}}},methods:{handleCreate(a){window.eventCenterForAppNameVite=new u(a.detail.name),this.appData=this.getAppData,this.showSpin=!window["eventCenterForAppNameViteLoad-"+a.detail.name]},handleBeforeMount(a){window["eventCenterForAppNameViteLoad-"+a.detail.name]=1},handleMount(a){this.datas&&(this.appData=this.datas),this.path&&(this.appData.path=this.path),this.showSpin=!1},handleUnmount(a){window.dispatchEvent(new Event("apps-unmount"))},handleError(a){},handleDataChange(a){}}},i={};var v=h(w,f,g,!1,D,null,null,null);function D(a){for(let t in i)this[t]=i[t]}var y=function(){return v.exports}();export{y as M}; diff --git a/public/js/build/Minder.fcfad20d.js b/public/js/build/Minder.e832edb9.js similarity index 86% rename from public/js/build/Minder.fcfad20d.js rename to public/js/build/Minder.e832edb9.js index c0329eba2..e73097737 100644 --- a/public/js/build/Minder.fcfad20d.js +++ b/public/js/build/Minder.e832edb9.js @@ -1 +1 @@ -import{I as a}from"./IFrame.3b0629c7.js";import{n as r}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"minder-editor-container"},[e("div",{staticClass:"quickbar"},[e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u7F29\u653E")}},[t._v("\uE7B3")])]),e("div",{staticClass:"minder-editor-slider",attrs:{slot:"content"},slot:"content"},[e("Slider",{attrs:{min:10,max:300},model:{value:t.zoom,callback:function(n){t.zoom=n},expression:"zoom"}})],1)]),t.readOnly!==!0?e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u56FE\u5F62")}},[t._v("\uE621")])]),e("div",{attrs:{slot:"content"},slot:"content"},[e("ul",{staticClass:"minder-editor-quickul mold"},[e("li",{on:{click:function(n){return t.execCommand("template","default")}}},[e("span",{staticClass:"default"})]),e("li",{on:{click:function(n){return t.execCommand("template","structure")}}},[e("span",{staticClass:"structure"})]),e("li",{on:{click:function(n){return t.execCommand("template","filetree")}}},[e("span",{staticClass:"filetree"})]),e("li",{on:{click:function(n){return t.execCommand("template","right")}}},[e("span",{staticClass:"right"})]),e("li",{on:{click:function(n){return t.execCommand("template","fish-bone")}}},[e("span",{staticClass:"fish-bone"})]),e("li",{on:{click:function(n){return t.execCommand("template","tianpan")}}},[e("span",{staticClass:"tianpan"})])])])]):t._e(),t.readOnly!==!0?e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u6837\u5F0F")}},[t._v("\uE678")])]),e("div",{attrs:{slot:"content"},slot:"content"},[e("ul",{staticClass:"minder-editor-quickul"},[e("li",{on:{click:function(n){return t.execCommand("theme","fresh-blue")}}},[t._v(t._s(t.$L("\u5929\u7A7A\u84DD")))]),e("li",{on:{click:function(n){return t.execCommand("theme","wire")}}},[t._v(t._s(t.$L("\u7EBF\u6846")))]),e("li",{on:{click:function(n){return t.execCommand("theme","fish")}}},[t._v(t._s(t.$L("\u9C7C\u9AA8\u56FE")))]),e("li",{on:{click:function(n){return t.execCommand("theme","classic")}}},[t._v(t._s(t.$L("\u8111\u56FE\u7ECF\u5178")))]),e("li",{on:{click:function(n){return t.execCommand("theme","classic-compact")}}},[t._v(t._s(t.$L("\u7D27\u51D1\u7ECF\u5178")))]),e("li",{on:{click:function(n){return t.execCommand("theme","snow")}}},[t._v(t._s(t.$L("\u6E29\u67D4\u51B7\u5149")))]),e("li",{on:{click:function(n){return t.execCommand("theme","snow-compact")}}},[t._v(t._s(t.$L("\u7D27\u51D1\u51B7\u5149")))]),e("li",{on:{click:function(n){return t.execCommand("theme","tianpan")}}},[t._v(t._s(t.$L("\u7ECF\u5178\u5929\u76D8")))]),e("li",{on:{click:function(n){return t.execCommand("theme","tianpan-compact")}}},[t._v(t._s(t.$L("\u7D27\u51D1\u5929\u76D8")))])])])]):t._e(),e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u6298\u53E0")}},[t._v("\uE779")])]),e("div",{attrs:{slot:"content"},slot:"content"},[e("ul",{staticClass:"minder-editor-quickul"},[e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",1)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E00\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",2)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E8C\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",3)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E09\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",4)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u56DB\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",5)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E94\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",99)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5168\u90E8\u8282\u70B9")))])])])]),e("ETooltip",{attrs:{placement:"top",content:t.$L("\u5C45\u4E2D")}},[e("div",{on:{click:function(n){return t.execCommand("goCenter")}}},[e("i",{staticClass:"ft icon"},[t._v("\uE61F")])])]),e("ETooltip",{attrs:{placement:"top",content:t.$L("\u79FB\u52A8")}},[e("div",{on:{click:t.onHand}},[e("i",{staticClass:"ft icon",class:{active:t.isHand}},[t._v("\uE6CF")])])])],1),e("div",{staticClass:"minder-content"},[e("IFrame",{ref:"frame",staticClass:"minder-iframe",attrs:{src:t.url},on:{"on-message":t.onMessage}}),t.loadIng?e("div",{staticClass:"minder-loading"},[e("Loading")],1):t._e()],1)])},c=[];const l={name:"mind-editor",components:{IFrame:a},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(t){if(t.app==="minder")switch(t.action){case"ready":this.loadIng=!1,this.rendData();break;case"content":this.backup=JSON.stringify(t.content),this.$emit("input",t.content);break;case"save":this.$emit("saveData");break}},onHand(){if(this.readOnly){this.execCommand("removeAllSelected");return}this.execCommand("Hand"),this.isHand=!this.isHand},execCommand(t,i){this.$refs.frame.postMessage({app:"minder",action:"command",command:t,value:i}),!(t==="goCenter"||t==="removeAllSelected")&&setTimeout(e=>{this.isHand&&this.$refs.frame.postMessage({app:"minder",action:"commandAlways",command:"Hand",value:i})},300)},exportHandle(t,i){this.$refs.frame.postMessage({app:"minder",action:"export",type:t,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.mainUrl(`minder/index.html?type=manual&readonly=${this.readOnly?"yes":"no"}`)}},watch:{value:{handler:function(t){(typeof t!="object"||t===null)&&(t={root:t,theme:"fresh-blue",template:"default"}),(typeof t.root!="object"||t.root===null||t.root.length==0)&&(t.root={data:{id:$A.randomString(12),text:this.$L("\u9ED8\u8BA4\u8282\u70B9")},children:[]}),typeof t.theme!="string"&&(t.theme="fresh-blue"),typeof t.template!="string"&&(t.template="default"),this.rendData()},deep:!0,immediate:!0},zoom(t){this.execCommand("Zoom",t)}}},o={};var m=r(l,s,c,!1,d,"b9870340",null,null);function d(t){for(let i in o)this[i]=o[i]}var V=function(){return m.exports}();export{V as default}; +import{I as a}from"./IFrame.c1a86434.js";import{n as r}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"minder-editor-container"},[e("div",{staticClass:"quickbar"},[e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u7F29\u653E")}},[t._v("\uE7B3")])]),e("div",{staticClass:"minder-editor-slider",attrs:{slot:"content"},slot:"content"},[e("Slider",{attrs:{min:10,max:300},model:{value:t.zoom,callback:function(n){t.zoom=n},expression:"zoom"}})],1)]),t.readOnly!==!0?e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u56FE\u5F62")}},[t._v("\uE621")])]),e("div",{attrs:{slot:"content"},slot:"content"},[e("ul",{staticClass:"minder-editor-quickul mold"},[e("li",{on:{click:function(n){return t.execCommand("template","default")}}},[e("span",{staticClass:"default"})]),e("li",{on:{click:function(n){return t.execCommand("template","structure")}}},[e("span",{staticClass:"structure"})]),e("li",{on:{click:function(n){return t.execCommand("template","filetree")}}},[e("span",{staticClass:"filetree"})]),e("li",{on:{click:function(n){return t.execCommand("template","right")}}},[e("span",{staticClass:"right"})]),e("li",{on:{click:function(n){return t.execCommand("template","fish-bone")}}},[e("span",{staticClass:"fish-bone"})]),e("li",{on:{click:function(n){return t.execCommand("template","tianpan")}}},[e("span",{staticClass:"tianpan"})])])])]):t._e(),t.readOnly!==!0?e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u6837\u5F0F")}},[t._v("\uE678")])]),e("div",{attrs:{slot:"content"},slot:"content"},[e("ul",{staticClass:"minder-editor-quickul"},[e("li",{on:{click:function(n){return t.execCommand("theme","fresh-blue")}}},[t._v(t._s(t.$L("\u5929\u7A7A\u84DD")))]),e("li",{on:{click:function(n){return t.execCommand("theme","wire")}}},[t._v(t._s(t.$L("\u7EBF\u6846")))]),e("li",{on:{click:function(n){return t.execCommand("theme","fish")}}},[t._v(t._s(t.$L("\u9C7C\u9AA8\u56FE")))]),e("li",{on:{click:function(n){return t.execCommand("theme","classic")}}},[t._v(t._s(t.$L("\u8111\u56FE\u7ECF\u5178")))]),e("li",{on:{click:function(n){return t.execCommand("theme","classic-compact")}}},[t._v(t._s(t.$L("\u7D27\u51D1\u7ECF\u5178")))]),e("li",{on:{click:function(n){return t.execCommand("theme","snow")}}},[t._v(t._s(t.$L("\u6E29\u67D4\u51B7\u5149")))]),e("li",{on:{click:function(n){return t.execCommand("theme","snow-compact")}}},[t._v(t._s(t.$L("\u7D27\u51D1\u51B7\u5149")))]),e("li",{on:{click:function(n){return t.execCommand("theme","tianpan")}}},[t._v(t._s(t.$L("\u7ECF\u5178\u5929\u76D8")))]),e("li",{on:{click:function(n){return t.execCommand("theme","tianpan-compact")}}},[t._v(t._s(t.$L("\u7D27\u51D1\u5929\u76D8")))])])])]):t._e(),e("ETooltip",{attrs:{placement:"top",effect:"light"}},[e("div",[e("i",{staticClass:"ft icon",attrs:{title:t.$L("\u6298\u53E0")}},[t._v("\uE779")])]),e("div",{attrs:{slot:"content"},slot:"content"},[e("ul",{staticClass:"minder-editor-quickul"},[e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",1)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E00\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",2)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E8C\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",3)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E09\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",4)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u56DB\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",5)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5230\u4E94\u7EA7\u8282\u70B9")))]),e("li",{on:{click:function(n){return t.execCommand("ExpandToLevel",99)}}},[t._v(t._s(t.$L("\u5C55\u5F00\u5168\u90E8\u8282\u70B9")))])])])]),e("ETooltip",{attrs:{placement:"top",content:t.$L("\u5C45\u4E2D")}},[e("div",{on:{click:function(n){return t.execCommand("goCenter")}}},[e("i",{staticClass:"ft icon"},[t._v("\uE61F")])])]),e("ETooltip",{attrs:{placement:"top",content:t.$L("\u79FB\u52A8")}},[e("div",{on:{click:t.onHand}},[e("i",{staticClass:"ft icon",class:{active:t.isHand}},[t._v("\uE6CF")])])])],1),e("div",{staticClass:"minder-content"},[e("IFrame",{ref:"frame",staticClass:"minder-iframe",attrs:{src:t.url},on:{"on-message":t.onMessage}}),t.loadIng?e("div",{staticClass:"minder-loading"},[e("Loading")],1):t._e()],1)])},c=[];const l={name:"mind-editor",components:{IFrame:a},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(t){if(t.app==="minder")switch(t.action){case"ready":this.loadIng=!1,this.rendData();break;case"content":this.backup=JSON.stringify(t.content),this.$emit("input",t.content);break;case"save":this.$emit("saveData");break}},onHand(){if(this.readOnly){this.execCommand("removeAllSelected");return}this.execCommand("Hand"),this.isHand=!this.isHand},execCommand(t,i){this.$refs.frame.postMessage({app:"minder",action:"command",command:t,value:i}),!(t==="goCenter"||t==="removeAllSelected")&&setTimeout(e=>{this.isHand&&this.$refs.frame.postMessage({app:"minder",action:"commandAlways",command:"Hand",value:i})},300)},exportHandle(t,i){this.$refs.frame.postMessage({app:"minder",action:"export",type:t,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.mainUrl(`minder/index.html?type=manual&readonly=${this.readOnly?"yes":"no"}`)}},watch:{value:{handler:function(t){(typeof t!="object"||t===null)&&(t={root:t,theme:"fresh-blue",template:"default"}),(typeof t.root!="object"||t.root===null||t.root.length==0)&&(t.root={data:{id:$A.randomString(12),text:this.$L("\u9ED8\u8BA4\u8282\u70B9")},children:[]}),typeof t.theme!="string"&&(t.theme="fresh-blue"),typeof t.template!="string"&&(t.template="default"),this.rendData()},deep:!0,immediate:!0},zoom(t){this.execCommand("Zoom",t)}}},o={};var m=r(l,s,c,!1,d,"b9870340",null,null);function d(t){for(let i in o)this[i]=o[i]}var V=function(){return m.exports}();export{V as default}; diff --git a/public/js/build/OnlyOffice.6bf143a3.js b/public/js/build/OnlyOffice.b4318521.js similarity index 81% rename from public/js/build/OnlyOffice.6bf143a3.js rename to public/js/build/OnlyOffice.b4318521.js index 1df69b189..92ad1e1a3 100644 --- a/public/js/build/OnlyOffice.6bf143a3.js +++ b/public/js/build/OnlyOffice.b4318521.js @@ -1 +1 @@ -import{m as f}from"./vuex.cc7cb26e.js";import{I as c}from"./IFrame.3b0629c7.js";import{n as m,l as a}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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)},p=[];const u={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:{...f(["userInfo","themeName"]),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.mainUrl("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).catch(({msg:s})=>{$A.modalError({content:s})}):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=a;switch(a){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,s=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,l=`${this.fileType}-${e||i}`;this.historyId>0&&(l+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:s,key:l,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeName==="dark"?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&dootask-token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async v=>{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.$store.dispatch("call",{url:"file/office/token",data:{config:r}}).then(({data:o})=>{if(r.token=o.token,this.docEditor=new DocsAPI.DocEditor(this.id,r),this.readOnly){var n=$("iframe[name='frameEditor']")[0];n==null||n.addEventListener("load",function(){n.contentWindow.postMessage("disableDownload","*")})}}).catch(({msg:o})=>{if(o.indexOf("404 not found")!==-1){$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"});return}$A.modalError({content:o})})})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},d={};var _=m(u,h,p,!1,y,"394e9394",null,null);function y(e){for(let t in d)this[t]=d[t]}var oe=function(){return _.exports}();export{oe as default}; +import{m as f}from"./vuex.cc7cb26e.js";import{I as c}from"./IFrame.c1a86434.js";import{n as m,l as a}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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)},p=[];const u={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:{...f(["userInfo","themeName"]),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.mainUrl("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).catch(({msg:s})=>{$A.modalError({content:s})}):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=a;switch(a){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,s=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,l=`${this.fileType}-${e||i}`;this.historyId>0&&(l+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:s,key:l,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeName==="dark"?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&dootask-token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async v=>{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.$store.dispatch("call",{url:"file/office/token",data:{config:r}}).then(({data:o})=>{if(r.token=o.token,this.docEditor=new DocsAPI.DocEditor(this.id,r),this.readOnly){var n=$("iframe[name='frameEditor']")[0];n==null||n.addEventListener("load",function(){n.contentWindow.postMessage("disableDownload","*")})}}).catch(({msg:o})=>{if(o.indexOf("404 not found")!==-1){$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"});return}$A.modalError({content:o})})})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},d={};var _=m(u,h,p,!1,y,"394e9394",null,null);function y(e){for(let t in d)this[t]=d[t]}var oe=function(){return _.exports}();export{oe as default}; diff --git a/public/js/build/ProjectLog.297ef125.js b/public/js/build/ProjectLog.d2e94cb9.js similarity index 98% rename from public/js/build/ProjectLog.297ef125.js rename to public/js/build/ProjectLog.d2e94cb9.js index e48f8533c..a5408c2e2 100644 --- a/public/js/build/ProjectLog.297ef125.js +++ b/public/js/build/ProjectLog.d2e94cb9.js @@ -1 +1 @@ -import{m as p}from"./vuex.cc7cb26e.js";import{n as c}from"./app.f8a6fa5e.js";var m=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)},h=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeName"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeName:a}=this;return a==="dark"?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,m,h,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var b=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,n){return s("TimelineItem",{key:n},[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(o,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(o)}}},[t._v(t._s(o.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(o){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,n=this.lists.find(({key:i})=>i==r);if(n){let i=n.lists.find(({userid:o})=>o==s.userid);i?i.lists.push(s):n.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,n]=s.change;a.push(t("span",": ")),r&&r!=n?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${n||"-"}`))):a.push(t("span",{class:"change-value"},n||"-"))}if($A.isJson(s.link)){let{title:r,url:n}=s.link;a.push(t("span",": ")),a.push(t("a",{attrs:{href:$A.mainUrl(n),target:"_blank"}},this.$L(r)))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],n=[];r.some(i=>{/^\d+$/.test(i)?n.push(t("UserAvatar",{props:{size:18,userid:i}})):n.push(t("span",i))}),n.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},n)]))}}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 I=function(){return L.exports}();export{I as P,b as T}; +import{m as p}from"./vuex.cc7cb26e.js";import{n as c}from"./app.57070a0d.js";var m=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)},h=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeName"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeName:a}=this;return a==="dark"?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,m,h,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var b=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,n){return s("TimelineItem",{key:n},[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(o,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(o)}}},[t._v(t._s(o.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(o){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,n=this.lists.find(({key:i})=>i==r);if(n){let i=n.lists.find(({userid:o})=>o==s.userid);i?i.lists.push(s):n.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,n]=s.change;a.push(t("span",": ")),r&&r!=n?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${n||"-"}`))):a.push(t("span",{class:"change-value"},n||"-"))}if($A.isJson(s.link)){let{title:r,url:n}=s.link;a.push(t("span",": ")),a.push(t("a",{attrs:{href:$A.mainUrl(n),target:"_blank"}},this.$L(r)))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],n=[];r.some(i=>{/^\d+$/.test(i)?n.push(t("UserAvatar",{props:{size:18,userid:i}})):n.push(t("span",i))}),n.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},n)]))}}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 I=function(){return L.exports}();export{I as P,b as T}; diff --git a/public/js/build/ReportDetail.e430db44.js b/public/js/build/ReportDetail.822059d1.js similarity index 97% rename from public/js/build/ReportDetail.e430db44.js rename to public/js/build/ReportDetail.822059d1.js index 6e47cb7f4..a53c838e1 100644 --- a/public/js/build/ReportDetail.e430db44.js +++ b/public/js/build/ReportDetail.822059d1.js @@ -1 +1 @@ -import{m as i}from"./vuex.cc7cb26e.js";import{n as l}from"./app.f8a6fa5e.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 m={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 c=l(m,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var p=function(){return c.exports}();export{p as R}; +import{m as i}from"./vuex.cc7cb26e.js";import{n as l}from"./app.57070a0d.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 m={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 c=l(m,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var p=function(){return c.exports}();export{p as R}; diff --git a/public/js/build/ReportEdit.9f1df008.js b/public/js/build/ReportEdit.e54407e0.js similarity index 83% rename from public/js/build/ReportEdit.9f1df008.js rename to public/js/build/ReportEdit.e54407e0.js index 2bb72d1aa..6fd389878 100644 --- a/public/js/build/ReportEdit.9f1df008.js +++ b/public/js/build/ReportEdit.e54407e0.js @@ -1 +1 @@ -import{_ as s}from"./openpgp_hi.15f91b1d.js";import{n as o,U as l}from"./app.f8a6fa5e.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=()=>s(()=>import("./TEditor.0841978b.js"),["js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/ImgUpload.d82fa303.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.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=o(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{_ as s}from"./openpgp_hi.15f91b1d.js";import{n as o,U as l}from"./app.57070a0d.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=()=>s(()=>import("./TEditor.10324bed.js"),["js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/ImgUpload.b233effb.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.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=o(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.0841978b.js b/public/js/build/TEditor.10324bed.js similarity index 71% rename from public/js/build/TEditor.0841978b.js rename to public/js/build/TEditor.10324bed.js index 41f85a26b..ad78f211d 100644 --- a/public/js/build/TEditor.0841978b.js +++ b/public/js/build/TEditor.10324bed.js @@ -1 +1 @@ -import{t as h}from"./tinymce.286c5863.js";import{I as m}from"./ImgUpload.d82fa303.js";import{m as g}from"./vuex.cc7cb26e.js";import{l as u,n as f}from"./app.f8a6fa5e.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var y=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"teditor-wrapper"},[i("div",{staticClass:"teditor-box",class:[!t.inline&&t.spinShow?"teditor-loadstyle":"teditor-loadedstyle"]},[t.inline?[i("div",{ref:"myTextarea",attrs:{id:t.id},domProps:{innerHTML:t._s(t.spinShow?"":t.content)}}),t.spinShow?i("Icon",{staticClass:"icon-loading icon-inline",attrs:{type:"ios-loading",size:18}}):t._e()]:[i("textarea",{ref:"myTextarea",attrs:{id:t.id}},[t._v(t._s(t.content))]),t.spinShow?i("Spin",{attrs:{fix:""}},[i("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading",size:18}}),i("div",[t._v(t._s(t.$L("\u52A0\u8F7D\u7EC4\u4EF6\u4E2D...")))])],1):t._e()],i("ImgUpload",{ref:"myUpload",staticClass:"upload-control",attrs:{type:"callback",uploadIng:t.uploadIng,num:"50"},on:{"update:uploadIng":function(e){t.uploadIng=e},"update:upload-ing":function(e){t.uploadIng=e},"on-callback":t.editorImage}}),i("Upload",{ref:"fileUpload",staticClass:"upload-control",attrs:{name:"files",action:t.actionUrl,headers:t.headers,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"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}})],2),t.uploadIng>0?i("Spin",{attrs:{fix:""}},[i("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),i("div",[t._v(t._s(t.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):t._e(),i("Modal",{staticClass:"teditor-transfer",attrs:{"footer-hide":"",fullscreen:"",transfer:""},on:{"on-visible-change":t.transferChange},model:{value:t.transfer,callback:function(e){t.transfer=e},expression:"transfer"}},[i("div",{attrs:{slot:"close"},slot:"close"},[i("Button",{attrs:{type:"primary",size:"small"}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1),i("div",{staticClass:"teditor-transfer-body"},[i("textarea",{attrs:{id:"T_"+t.id}},[t._v(t._s(t.content))])]),t.uploadIng>0?i("Spin",{attrs:{fix:""}},[i("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),i("div",[t._v(t._s(t.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):t._e()],1)],1)},v=[];const c="ontouchend"in document,$={name:"TEditor",components:{ImgUpload:m},props:{id:{type:String,default:()=>"tinymce_"+Math.round(Math.random()*1e4)},value:{default:""},height:{default:360},minHeight:{type:Number,default:0},htmlClass:{default:"",type:String},plugins:{type:Array,default:()=>["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample"]},menubar:{type:String,default:()=>c?"edit insert format tools":"file edit view insert format tools table"},toolbar:{type:String,default:()=>c?"uploadImages | bold italic underline | forecolor backcolor | screenload":"undo redo | styleselect | uploadImages | uploadFiles | bold italic underline forecolor backcolor | alignleft aligncenter alignright | bullist numlist outdent indent | link image emoticons media codesample | preview screenload"},options:{type:Object,default:()=>({})},optionFull:{type:Object,default:()=>({})},inline:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},readOnlyFull:{default:null},autoSize:{type:Boolean,default:!1},placeholder:{type:String,default:""},placeholderFull:{type:String,default:""}},data(){return{content:"",editor:null,editorT:null,cTinyMce:null,checkerTimeout:null,isTyping:!1,spinShow:!0,transfer:!1,uploadIng:0,uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"],actionUrl:$A.apiUrl("system/fileupload"),maxSize:10240,operateImg:null,timer:null}},mounted(){this.content=this.value,this.init()},activated(){this.content=this.value,this.init()},deactivated(){this.destroy()},destroyed(){this.destroy()},computed:{...g(["themeName"]),headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}}},watch:{value(t){t==null&&(t=""),this.isTyping||this.setContent(t)},readOnly(t){this.editor!==null&&(t?this.editor.setMode("readonly"):this.editor.setMode("design"))}},methods:{init(){this.timer&&clearTimeout(this.timer),this.$nextTick(()=>{h.init(this.concatAssciativeArrays(this.option(!1),this.options))})},initTransfer(){this.$nextTick(()=>{h.init(this.concatAssciativeArrays(this.option(!0),this.optionFull))})},destroy(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(t=>{this.editor!==null&&(this.editor.destroy(),this.editor=null),this.editorT!==null&&(this.editorT.destroy(),this.editorT=null),this.spinShow=!0,$A(this.$refs.myTextarea).show()},500)},plugin(t){return t?this.plugins.filter(s=>s!="autoresize"):this.plugins},option(t){let s=u;switch(u){case"zh":s="zh_CN";break;case"zh-CHT":s="zh-TW";break;case"fr":s="fr_FR";break;case"ko":s="ko_KR";break}const i={inline:t?!1:this.inline,selector:(t?"#T_":"#")+this.id,base_url:$A.originUrl("js/tinymce"),language:s,plugins:this.plugin(t),menubar:this.menubar,toolbar:this.toolbar,placeholder:t&&this.placeholderFull?this.placeholderFull:this.placeholder,save_onsavecallback:e=>{this.$emit("editorSave",e)},paste_data_images:!0,menu:{view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen screenload | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime | uploadImages | uploadFiles"}},codesample_languages:[{text:"HTML/VUE/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],height:t?"100%":$A.rightExists(this.height,"%")?this.height:$A.runNum(this.height)||360,resize:!t,convert_urls:!1,toolbar_mode:"sliding",content_css:this.themeName==="dark"?"dark":"default",setup:e=>{e.ui.registry.addMenuButton("uploadImages",{text:this.$L("\u56FE\u7247"),tooltip:this.$L("\u4E0A\u4F20/\u6D4F\u89C8 \u56FE\u7247"),fetch:n=>{let o=[{type:"menuitem",text:this.$L("\u4E0A\u4F20\u672C\u5730\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.handleClick()}},{type:"menuitem",text:this.$L("\u6D4F\u89C8\u5DF2\u4E0A\u4F20\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.browsePicture()}}];n(o)}}),e.ui.registry.addNestedMenuItem("uploadImages",{icon:"image",text:this.$L("\u4E0A\u4F20\u56FE\u7247"),getSubmenuItems:()=>[{type:"menuitem",text:this.$L("\u4E0A\u4F20\u672C\u5730\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.handleClick()}},{type:"menuitem",text:this.$L("\u6D4F\u89C8\u5DF2\u4E0A\u4F20\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.browsePicture()}}]}),e.ui.registry.addMenuItem("imagePreview",{icon:"preview",text:this.$L("\u9884\u89C8\u56FE\u7247"),onAction:()=>{this.operateImg=null;const n=e.selection.getNode();n&&n.nodeName==="IMG"&&(this.operateImg=n.getAttribute("src")),this.onImagePreview()},onSetup:n=>{const o=e.selection.getNode();n.setDisabled(!(o&&o.nodeName==="IMG"))}}),e.ui.registry.addButton("uploadFiles",{text:this.$L("\u6587\u4EF6"),tooltip:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),e.ui.registry.addMenuItem("uploadFiles",{text:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),t?(e.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),e.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),e.on("Init",n=>{this.editorT=e,this.editorT.setContent(this.content),(this.readOnlyFull===null?this.readOnly:this.readOnlyFull)?this.editorT.setMode("readonly"):this.editorT.setMode("design")})):(e.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),e.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),e.on("Init",n=>{this.spinShow=!1,this.editor=e,this.editor.setContent(this.content),this.readOnly?this.editor.setMode("readonly"):this.editor.setMode("design"),this.$emit("on-editor-init",this.editor)}),e.on("KeyUp",n=>{this.editor!==null&&this.submitNewContent()}),e.on("KeyDown",n=>{(n.metaKey||n.ctrlKey)&&n.keyCode===83&&(n.preventDefault(),this.$emit("editorSave",n))}),e.on("Change",n=>{this.editor!==null&&(this.getContent()!==this.value&&this.submitNewContent(),this.$emit("editorChange",n))}),e.on("focus",()=>{this.$emit("on-focus")}),e.on("blur",()=>{this.$emit("on-blur")}))}};return this.autoSize&&i.plugins.push("autoresize"),this.minHeight>0&&(i.min_height=this.minHeight),i},onFull(){this.content=this.getContent(),this.transfer=!0,this.initTransfer()},closeFull(){this.content=this.getContent(),this.$emit("input",this.content),this.$emit("on-blur"),this.transfer=!1,this.editorT!=null&&(this.editorT.destroy(),this.editorT=null)},transferChange(t){!t&&this.editorT!=null&&(this.content=this.editorT.getBody().innerHTML,this.$emit("input",this.content),this.editorT.destroy(),this.editorT=null),this.$emit("on-transfer-change",t)},getEditor(){return this.transfer?this.editorT:this.editor},concatAssciativeArrays(t,s){if(s.length===0)return t;if(t.length===0)return s;let i=[];for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);for(let e in s)s.hasOwnProperty(e)&&(i[e]=s[e]);return i},submitNewContent(){this.isTyping=!0,this.checkerTimeout!==null&&clearTimeout(this.checkerTimeout),this.checkerTimeout=setTimeout(()=>{this.isTyping=!1},300),this.$emit("input",this.getContent())},insertContent(t){this.getEditor()!==null?this.getEditor().insertContent(t):this.content+=t},getContent(){return this.getEditor()===null?"":this.getEditor().getBody().innerHTML},setContent(t){this.getEditor()===null?this.content=t:t!=this.getEditor().getBody().innerHTML&&this.getEditor().setContent(t)},focus(){return this.getEditor()===null?"":this.getEditor().focus()},insertImage(t){this.insertContent('')},editorImage(t){for(let s=0;s|\/>)/gi,i=new RegExp(`src=(["'])([^'"]*)\\1`),e=new RegExp('original-width="(\\d+)"'),n=new RegExp('original-height="(\\d+)"'),o=(this.getContent()+"").match(s);if(o)for(let r=0;ri.src===this.operateImg));this.$store.dispatch("previewImage",{index:s,list:t})},handleProgress(t,s){s._uploadIng===void 0&&(s._uploadIng=!0,this.uploadIng++)},handleSuccess(t,s){this.uploadIng--,t.ret===1?this.insertContent(`
${t.data.name} (${$A.bytesToSize(t.data.size*1024)})`):$A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+s.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+t.msg)})},handleError(){this.uploadIng--},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\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(","))})},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(){return!0}}},p={};var b=f($,y,v,!1,x,null,null,null);function x(t){for(let s in p)this[s]=p[s]}var rt=function(){return b.exports}();export{rt as default}; +import{t as h}from"./tinymce.e0553569.js";import{I as m}from"./ImgUpload.b233effb.js";import{m as g}from"./vuex.cc7cb26e.js";import{l as u,n as f}from"./app.57070a0d.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var y=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"teditor-wrapper"},[i("div",{staticClass:"teditor-box",class:[!t.inline&&t.spinShow?"teditor-loadstyle":"teditor-loadedstyle"]},[t.inline?[i("div",{ref:"myTextarea",attrs:{id:t.id},domProps:{innerHTML:t._s(t.spinShow?"":t.content)}}),t.spinShow?i("Icon",{staticClass:"icon-loading icon-inline",attrs:{type:"ios-loading",size:18}}):t._e()]:[i("textarea",{ref:"myTextarea",attrs:{id:t.id}},[t._v(t._s(t.content))]),t.spinShow?i("Spin",{attrs:{fix:""}},[i("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading",size:18}}),i("div",[t._v(t._s(t.$L("\u52A0\u8F7D\u7EC4\u4EF6\u4E2D...")))])],1):t._e()],i("ImgUpload",{ref:"myUpload",staticClass:"upload-control",attrs:{type:"callback",uploadIng:t.uploadIng,num:"50"},on:{"update:uploadIng":function(e){t.uploadIng=e},"update:upload-ing":function(e){t.uploadIng=e},"on-callback":t.editorImage}}),i("Upload",{ref:"fileUpload",staticClass:"upload-control",attrs:{name:"files",action:t.actionUrl,headers:t.headers,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"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}})],2),t.uploadIng>0?i("Spin",{attrs:{fix:""}},[i("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),i("div",[t._v(t._s(t.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):t._e(),i("Modal",{staticClass:"teditor-transfer",attrs:{"footer-hide":"",fullscreen:"",transfer:""},on:{"on-visible-change":t.transferChange},model:{value:t.transfer,callback:function(e){t.transfer=e},expression:"transfer"}},[i("div",{attrs:{slot:"close"},slot:"close"},[i("Button",{attrs:{type:"primary",size:"small"}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1),i("div",{staticClass:"teditor-transfer-body"},[i("textarea",{attrs:{id:"T_"+t.id}},[t._v(t._s(t.content))])]),t.uploadIng>0?i("Spin",{attrs:{fix:""}},[i("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),i("div",[t._v(t._s(t.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):t._e()],1)],1)},v=[];const c="ontouchend"in document,$={name:"TEditor",components:{ImgUpload:m},props:{id:{type:String,default:()=>"tinymce_"+Math.round(Math.random()*1e4)},value:{default:""},height:{default:360},minHeight:{type:Number,default:0},htmlClass:{default:"",type:String},plugins:{type:Array,default:()=>["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample"]},menubar:{type:String,default:()=>c?"edit insert format tools":"file edit view insert format tools table"},toolbar:{type:String,default:()=>c?"uploadImages | bold italic underline | forecolor backcolor | screenload":"undo redo | styleselect | uploadImages | uploadFiles | bold italic underline forecolor backcolor | alignleft aligncenter alignright | bullist numlist outdent indent | link image emoticons media codesample | preview screenload"},options:{type:Object,default:()=>({})},optionFull:{type:Object,default:()=>({})},inline:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},readOnlyFull:{default:null},autoSize:{type:Boolean,default:!1},placeholder:{type:String,default:""},placeholderFull:{type:String,default:""}},data(){return{content:"",editor:null,editorT:null,cTinyMce:null,checkerTimeout:null,isTyping:!1,spinShow:!0,transfer:!1,uploadIng:0,uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"],actionUrl:$A.apiUrl("system/fileupload"),maxSize:10240,operateImg:null,timer:null}},mounted(){this.content=this.value,this.init()},activated(){this.content=this.value,this.init()},deactivated(){this.destroy()},destroyed(){this.destroy()},computed:{...g(["themeName"]),headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}}},watch:{value(t){t==null&&(t=""),this.isTyping||this.setContent(t)},readOnly(t){this.editor!==null&&(t?this.editor.setMode("readonly"):this.editor.setMode("design"))}},methods:{init(){this.timer&&clearTimeout(this.timer),this.$nextTick(()=>{h.init(this.concatAssciativeArrays(this.option(!1),this.options))})},initTransfer(){this.$nextTick(()=>{h.init(this.concatAssciativeArrays(this.option(!0),this.optionFull))})},destroy(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(t=>{this.editor!==null&&(this.editor.destroy(),this.editor=null),this.editorT!==null&&(this.editorT.destroy(),this.editorT=null),this.spinShow=!0,$A(this.$refs.myTextarea).show()},500)},plugin(t){return t?this.plugins.filter(s=>s!="autoresize"):this.plugins},option(t){let s=u;switch(u){case"zh":s="zh_CN";break;case"zh-CHT":s="zh-TW";break;case"fr":s="fr_FR";break;case"ko":s="ko_KR";break}const i={inline:t?!1:this.inline,selector:(t?"#T_":"#")+this.id,base_url:$A.originUrl("js/tinymce"),language:s,plugins:this.plugin(t),menubar:this.menubar,toolbar:this.toolbar,placeholder:t&&this.placeholderFull?this.placeholderFull:this.placeholder,save_onsavecallback:e=>{this.$emit("editorSave",e)},paste_data_images:!0,menu:{view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen screenload | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime | uploadImages | uploadFiles"}},codesample_languages:[{text:"HTML/VUE/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],height:t?"100%":$A.rightExists(this.height,"%")?this.height:$A.runNum(this.height)||360,resize:!t,convert_urls:!1,toolbar_mode:"sliding",content_css:this.themeName==="dark"?"dark":"default",setup:e=>{e.ui.registry.addMenuButton("uploadImages",{text:this.$L("\u56FE\u7247"),tooltip:this.$L("\u4E0A\u4F20/\u6D4F\u89C8 \u56FE\u7247"),fetch:n=>{let o=[{type:"menuitem",text:this.$L("\u4E0A\u4F20\u672C\u5730\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.handleClick()}},{type:"menuitem",text:this.$L("\u6D4F\u89C8\u5DF2\u4E0A\u4F20\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.browsePicture()}}];n(o)}}),e.ui.registry.addNestedMenuItem("uploadImages",{icon:"image",text:this.$L("\u4E0A\u4F20\u56FE\u7247"),getSubmenuItems:()=>[{type:"menuitem",text:this.$L("\u4E0A\u4F20\u672C\u5730\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.handleClick()}},{type:"menuitem",text:this.$L("\u6D4F\u89C8\u5DF2\u4E0A\u4F20\u56FE\u7247"),onAction:()=>{this.$refs.myUpload.browsePicture()}}]}),e.ui.registry.addMenuItem("imagePreview",{icon:"preview",text:this.$L("\u9884\u89C8\u56FE\u7247"),onAction:()=>{this.operateImg=null;const n=e.selection.getNode();n&&n.nodeName==="IMG"&&(this.operateImg=n.getAttribute("src")),this.onImagePreview()},onSetup:n=>{const o=e.selection.getNode();n.setDisabled(!(o&&o.nodeName==="IMG"))}}),e.ui.registry.addButton("uploadFiles",{text:this.$L("\u6587\u4EF6"),tooltip:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),e.ui.registry.addMenuItem("uploadFiles",{text:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),t?(e.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),e.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),e.on("Init",n=>{this.editorT=e,this.editorT.setContent(this.content),(this.readOnlyFull===null?this.readOnly:this.readOnlyFull)?this.editorT.setMode("readonly"):this.editorT.setMode("design")})):(e.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),e.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),e.on("Init",n=>{this.spinShow=!1,this.editor=e,this.editor.setContent(this.content),this.readOnly?this.editor.setMode("readonly"):this.editor.setMode("design"),this.$emit("on-editor-init",this.editor)}),e.on("KeyUp",n=>{this.editor!==null&&this.submitNewContent()}),e.on("KeyDown",n=>{(n.metaKey||n.ctrlKey)&&n.keyCode===83&&(n.preventDefault(),this.$emit("editorSave",n))}),e.on("Change",n=>{this.editor!==null&&(this.getContent()!==this.value&&this.submitNewContent(),this.$emit("editorChange",n))}),e.on("focus",()=>{this.$emit("on-focus")}),e.on("blur",()=>{this.$emit("on-blur")}))}};return this.autoSize&&i.plugins.push("autoresize"),this.minHeight>0&&(i.min_height=this.minHeight),i},onFull(){this.content=this.getContent(),this.transfer=!0,this.initTransfer()},closeFull(){this.content=this.getContent(),this.$emit("input",this.content),this.$emit("on-blur"),this.transfer=!1,this.editorT!=null&&(this.editorT.destroy(),this.editorT=null)},transferChange(t){!t&&this.editorT!=null&&(this.content=this.editorT.getContent(),this.$emit("input",this.content),this.editorT.destroy(),this.editorT=null),this.$emit("on-transfer-change",t)},getEditor(){return this.transfer?this.editorT:this.editor},concatAssciativeArrays(t,s){if(s.length===0)return t;if(t.length===0)return s;let i=[];for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);for(let e in s)s.hasOwnProperty(e)&&(i[e]=s[e]);return i},submitNewContent(){this.isTyping=!0,this.checkerTimeout!==null&&clearTimeout(this.checkerTimeout),this.checkerTimeout=setTimeout(()=>{this.isTyping=!1},300),this.$emit("input",this.getContent())},insertContent(t){this.getEditor()!==null?this.getEditor().insertContent(t):this.content+=t},getContent(){return this.getEditor()===null?"":this.getEditor().getContent()},setContent(t){this.getEditor()===null?this.content=t:t!=this.getEditor().getContent()&&this.getEditor().setContent(t)},focus(){return this.getEditor()===null?"":this.getEditor().focus()},insertImage(t){this.insertContent('')},editorImage(t){for(let s=0;s|\/>)/gi,i=new RegExp(`src=(["'])([^'"]*)\\1`),e=new RegExp('original-width="(\\d+)"'),n=new RegExp('original-height="(\\d+)"'),o=(this.getContent()+"").match(s);if(o)for(let r=0;ri.src===this.operateImg));this.$store.dispatch("previewImage",{index:s,list:t})},handleProgress(t,s){s._uploadIng===void 0&&(s._uploadIng=!0,this.uploadIng++)},handleSuccess(t,s){this.uploadIng--,t.ret===1?this.insertContent(`${t.data.name} (${$A.bytesToSize(t.data.size*1024)})`):$A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+s.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+t.msg)})},handleError(){this.uploadIng--},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\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(","))})},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(){return!0}}},p={};var b=f($,y,v,!1,x,null,null,null);function x(t){for(let s in p)this[s]=p[s]}var rt=function(){return b.exports}();export{rt as default}; diff --git a/public/js/build/TaskDetail.2665236e.js b/public/js/build/TaskDetail.1b7e7bb8.js similarity index 99% rename from public/js/build/TaskDetail.2665236e.js rename to public/js/build/TaskDetail.1b7e7bb8.js index f711846ab..f97b47ccf 100644 --- a/public/js/build/TaskDetail.2665236e.js +++ b/public/js/build/TaskDetail.1b7e7bb8.js @@ -1 +1 @@ -import{m as f}from"./vuex.cc7cb26e.js";import{P as k,T as _}from"./ProjectLog.297ef125.js";import{n as l,U as g,T as v}from"./app.f8a6fa5e.js";import{C as b,D as w}from"./DialogWrapper.5184c28a.js";import{l as D}from"./le5le-store.bd86c9e9.js";import y from"./TEditor.0841978b.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(i){t.show=i},expression:"show"}},[e("List",{attrs:{split:!1,size:"small"}},t._l(t.tipsTask,function(i,a){return e("ListItem",{key:a},[e("div",{staticClass:"list-content"},[e("UserAvatar",{attrs:{userid:a,size:28,"show-icon":!0,"show-name":!0}}),t._l(i,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(i){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)},T=[];const L={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),i="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")):(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")),i},isExistTask({userids:t,timerange:s,taskid:e}){return this.isExist=!1,new Promise(async i=>{this.$store.dispatch("call",{url:"project/task/easylists",data:{userid:t,timerange:s,taskid:e},method:"get"}).then(({data:a})=>{if(a.data.length>0){this.show=!0;let o={};t.map(n=>{a.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}i(this.isExist)})})}}},c={};var x=l(L,C,T,!1,A,null,null,null);function A(t){for(let s in c)this[s]=c[s]}var I=function(){return x.exports}(),S=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(i){t.content=i},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(i){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(i){return t.onEditing.apply(null,arguments)}}},[t._v(t._s(t.$L("\u7F16\u8F91\u63CF\u8FF0")))]),e("DropdownItem",{nativeOn:{click:function(i){return t.onHistory.apply(null,arguments)}}},[t._v(t._s(t.$L("\u5386\u53F2\u8BB0\u5F55")))]),t.operateLink?e("DropdownItem",{nativeOn:{click:function(i){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(i){return t.onImagePreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u67E5\u770B\u56FE\u7247")))]):t._e()],1)],1)],1)],1)},F=[];const E={name:"TEditorTask",components:{TEditor:y},props:{value:{default:""},placeholder:{default:""},placeholderFull:{default:""}},data(){return{content:this.value,plugins:["advlist autolink lists checklist 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:"checklist | bold italic underline forecolor backcolor | link | uploadImages imagePreview | history 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,ol[class],ul[class],li[class]",extended_valid_elements:"a[href|title|target=_blank]",toolbar:!1},optionFull:{menubar:"file edit view",removed_menuitems:"preview,print",contextmenu:"checklist | bold italic underline forecolor backcolor | link | uploadImages imagePreview | 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,ol[class],ul[class],li[class]",extended_valid_elements:"a[href|title|target=_blank]",toolbar:"uploadImages | checklist | bold italic underline | forecolor backcolor",mobile:{menubar:"file edit view"}},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()},updateContent(t){this.content=t},onEditing(){this.$refs.desc.onFull()},onHistory(){this.$emit("on-history")},onBlur(){this.$emit("on-blur")},onEditorInit(t){this.updateTouchContent(),this.updateHistoryContent(t),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",i=>{i.preventDefault(),i.stopPropagation(),this.onClickWrap(i)}))}),t<300&&this.updateTouchLink(t+100))},t)},updateHistoryContent(t){t.ui.registry.addMenuItem("history",{icon:"insert-time",text:this.$L("\u5386\u53F2\u8BB0\u5F55"),onAction:()=>{this.onHistory()}})},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 M=l(E,S,F,!1,O,"4075cd0c",null,null);function O(t){for(let s in h)this[s]=h[s]}var P=function(){return M.exports}(),H=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}})},j=[];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 R=l(z,H,j,!1,U,null,null,null);function U(t){for(let s in u)this[s]=u[s]}var N=function(){return R.exports}(),B=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-content-history"},[e("Table",{attrs:{"max-height":t.windowHeight-180,columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),"highlight-row":"",stripe:""}}),t.total>t.pageSize?e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:!0},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}}):t._e()],1)},V=[];const W={name:"TaskContentHistory",props:{taskId:{type:Number,default:0},taskName:{type:String,default:""}},data(){return{loadIng:0,columns:[{title:this.$L("\u65E5\u671F"),key:"created_at",width:168},{title:this.$L("\u63CF\u8FF0"),key:"desc",ellipsis:!0,minWidth:150,render:(t,{row:s})=>t("span",s.desc||"-")},{title:this.$L("\u521B\u5EFA\u4EBA"),width:120,render:(t,{row:s})=>s.userid?t("UserAvatar",{props:{showName:!0,size:22,userid:s.userid}}):t("div","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,{index:s,row:e,column:i})=>s===0&&this.page===1?t("div","-"):t("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"}]},on:{action:a=>{this.onAction(a,e)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{taskId:{handler(t){t&&this.setPage(1)},immediate:!0}},methods:{getLists(){this.taskId!==0&&(this.loadIng++,this.$store.dispatch("call",{url:"project/task/content_history",data:{task_id:this.taskId,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},onAction(t,s){switch(t){case"preview":const e=(this.taskName||`ID: ${this.taskId}`)+` [${s.created_at}]`,i=`/single/task/content/${this.taskId}?history_id=${s.id}&history_title=${e}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`task-content-${this.taskId}-${s.id}`,path:i,force:!1,config:{title:e,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:e,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${i}`}}):window.open($A.mainUrl(i.substring(1)));break}}}},m={};var Y=l(W,B,V,!1,K,"43d23896",null,null);function K(t){for(let s in m)this[s]=m[s]}var q=function(){return Y.exports}(),J=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(i){return i.stopPropagation(),t.openMenu(i,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(i){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(i){t.$set(t.taskDetail,"name",i)},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(i){t.timeValue=i},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(i){t.$set(t.ownerData,"owner_userid",i)},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(i){return i.stopPropagation(),t.openMenu(i,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(i){return i.stopPropagation(),t.openMenu(i,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(i){t.receiveShow=i},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(i){t.timeValue=i},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(i){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",{ref:"scroller",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(i){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(i){t.$set(t.taskDetail,"name",i)},expression:"taskDetail.name"}})],1),e("TEditorTask",{ref:"desc",staticClass:"desc",attrs:{value:t.taskContent,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},on:{"on-history":t.onHistory,"on-blur":function(i){return t.updateBlur("content")}}}),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(i){i.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(i){return t.updateData("priority",i)}}},[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(i,a){return e("EDropdownItem",{key:a,attrs:{command:i}},[e("i",{staticClass:"taskfont",style:{color:i.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==i.name?"":"")}}),t._v(" "+t._s(i.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(i){t.$set(t.ownerData,"owner_userid",i)},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(i){t.$set(t.assistData,"assist_userid",i)},expression:"assistData.assist_userid"}})],1):t._e(),t.taskDetail.visibility>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("span",{staticClass:"visibility-text color",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])])]),e("div",{staticClass:"item-content user"},[t.taskDetail.visibility==1||t.taskDetail.visibility==2?e("span",{ref:"visibilityText",staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.taskDetail.visibility==1?t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1"):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(i){t.$set(t.taskDetail,"visibility_appointor",i)},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.taskDetail.end_at?e("span",{staticClass:"visibility-text color",on:{click:t.showAtDropdown}},[t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))]):e("span",{staticClass:"visibility-text color",on:{click:function(i){t.timeOpen=!0}}},[t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))])]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{disabled:"",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(i){t.timeValue=i},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[t.taskDetail.end_at?e("div",{staticClass:"time",on:{click:t.showAtDropdown}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]):e("div",{staticClass:"time",on:{click:function(i){t.timeOpen=!0}}},[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(i){return t.updateData("loop",i)}}},[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(i){return e("EDropdownItem",{key:i.key,attrs:{command:i.key}},[t._v(" "+t._s(t.$L(i.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(i){return e("li",[i.id?e("img",{staticClass:"file-ext",attrs:{src:i.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(i.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(i.size)))]),e("div",{staticClass:"file-menu",class:{show:i._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(a){return t.viewFile(i)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(a){return t.downFile(i)}}}),e("EPopover",{staticClass:"file-delete",model:{value:i._show_menu,callback:function(a){t.$set(i,"_show_menu",a)},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(a){i._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(a){return t.deleteFile(i)}}},[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(i){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(i,a){return e("TaskDetail",{key:a,ref:`subTask_${i.id}`,refInFor:!0,attrs:{"task-id":i.id,"open-task":i,"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(i){t.addsubName=i},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(i,a){return e("EDropdownItem",{key:a,attrs:{command:i.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),t._v(t._s(t.$L(i.name))+" ")])])}),1)],1)],1):t._e(),e("EDropdown",{ref:"eDropdownRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.visibility==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.visibility==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.visibility==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),e("EDropdown",{ref:"eDeadlineRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropDeadline}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u5EF6\u671F"))+" ")])]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t._v(" "+t._s(t.$L("\u4FEE\u6539\u65F6\u95F4"))+" ")])])],1)],1)],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(i){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(i){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(i){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(i){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(i){return i.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(i){return i.preventDefault(),t.taskPasteDrag(i,"drag")},dragover:function(i){return i.preventDefault(),t.taskDragOver(!0,i)},dragleave:function(i){return i.preventDefault(),t.taskDragOver(!1,i)}}},[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(i){t.msgText=i},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(i){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onAdd:function(i){return t.updateData("times",t.updateParams)}}}),e("Modal",{attrs:{title:t.$L("\u4EFB\u52A1\u5EF6\u671F"),"mask-closable":!1,styles:{width:"90%",maxWidth:"450px"}},model:{value:t.delayTaskShow,callback:function(i){t.delayTaskShow=i},expression:"delayTaskShow"}},[e("Form",{ref:"formDelayTaskRef",attrs:{model:t.delayTaskForm,rules:t.delayTaskRule,"label-position":"left","label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5EF6\u671F\u65F6\u957F"),prop:"time"}},[e("Input",{attrs:{type:"number",placeholder:t.$L("\u8BF7\u8F93\u5165\u65F6\u957F")},scopedSlots:t._u([{key:"append",fn:function(){return[t._v(" "+t._s(t.$L("\u5C0F\u65F6"))+" ")]},proxy:!0}]),model:{value:t.delayTaskForm.time,callback:function(i){t.$set(t.delayTaskForm,"time",i)},expression:"delayTaskForm.time"}})],1),e("FormItem",{attrs:{label:t.$L("\u5EF6\u671F\u5907\u6CE8"),prop:"remark"}},[e("Input",{attrs:{type:"textarea",placeholder:t.$L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8")},model:{value:t.delayTaskForm.remark,callback:function(i){t.$set(t.delayTaskForm,"remark",i)},expression:"delayTaskForm.remark"}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:function(i){t.delayTaskShow=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]),e("Button",{attrs:{type:"primary",loading:t.delayTaskLoading},on:{click:t.onDelay}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4EFB\u52A1\u63CF\u8FF0\u5386\u53F2\u8BB0\u5F55"),"mask-closable":!1,styles:{width:"90%",maxWidth:"700px"}},model:{value:t.historyShow,callback:function(i){t.historyShow=i},expression:"historyShow"}},[t.historyShow?e("TaskContentHistory",{attrs:{"task-id":t.taskDetail.id,"task-name":t.taskDetail.name}}):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:function(i){t.historyShow=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1):t._e()},G=[];const X={name:"TaskDetail",components:{TaskContentHistory:q,TEditorTask:P,UserSelect:g,TaskExistTips:I,ChatInput:b,TaskMenu:v,ProjectLog:k,DialogWrapper:w,TaskUpload:N,TaskPriority:_},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:{},delayTaskShow:!1,delayTaskLoading:!1,delayTaskForm:{time:"24",remark:""},delayTaskRule:{time:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65F6\u957F"),trigger:"blur"}],remark:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u5907\u6CE8"),trigger:"blur"}]},historyShow:!1}},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=D.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 i=e>900?200:70;return{minHeight:e-i-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:s,hasOpenDialog:e}=this,i=Math.min(1100,s);if(t&&e){const a=i>900?200:70;return{maxHeight:i-a-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),i="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")):(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")),i},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.visibility<=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,i)=>{i>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.filter(s=>s).length)>0&&(this.taskDetail.visibility=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},onHistory(){this.historyShow=!0},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 a=this.$refs.desc.getContent();if(a==this.taskContent.replace(/\s+original-(width|height)="[^"]*"/g,""))return;this.windowTouch?$A.modalConfirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u662F\u5426\u4FDD\u5B58\u7F16\u8F91\u5185\u5BB9\uFF1F",onOk:()=>{this.updateData("contentSave",{content:a})},onCancel:()=>{this.$refs.desc.updateContent(this.taskContent)}}):this.updateData("contentSave",{content:a});return;case"contentSave":this.$set(this.taskDetail,"content",s.content),t="content",e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:s.content})};break}let i={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(a=>{let o=this.taskDetail[a],n=this.openTask[a];$A.jsonStringify(o)!=$A.jsonStringify(n)&&(i[a]=o)}),!(Object.keys(i).length<=1)&&this.$store.dispatch("taskUpdate",i).then(({msg:a})=>{$A.messageSuccess(a),typeof e=="function"&&e()}).catch(({msg:a})=>{$A.modalError(a)})},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,i)=>{this.$store.dispatch("taskUpdate",s).then(({msg:a})=>{$A.messageSuccess(a),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),e()}).catch(({msg:a})=>{$A.modalError(a),this.ownerLoad--,this.receiveShow=!1,i()})})},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:i})=>{$A.messageSuccess(i),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),t()}).catch(({msg:i})=>{$A.modalError(i),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(null)});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 i={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(a=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=i})})}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.$store.dispatch("openChildWindow",{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(a=>["jpg","jpeg","webp","gif","png"].includes(a.ext)),i=e.findIndex(a=>a.id===t.id);i>-1?this.$store.dispatch("previewImage",{index:i,list:e.map(a=>({src:a.path,width:a.width,height:a.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.$store.dispatch("openChildWindow",{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?this.$store.dispatch("openAppChildPage",{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.mainUrl(s.substring(1)))},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(t){var a;let s=null;if(t===null?s=(a=this.$refs.visibilityText)==null?void 0:a.getBoundingClientRect():s=t.target.getBoundingClientRect(),s===null)return;const e=this.$refs.scroller.$el.getBoundingClientRect(),i=this.$refs.eDropdownRef.$el;i.style.top=s.top-e.top+"px",i.style.left=s.left-e.left+"px",i.style.width=s.width+"px",i.style.height=s.height+"px",this.$refs.eDropdownRef.visible&&this.$refs.eDropdownRef.hide(),setTimeout(()=>{this.$refs.eDropdownRef.show()},0)},showAtDropdown({target:t}){this.timeOpen=!1;const s=t.getBoundingClientRect(),e=this.$refs.scroller.$el.getBoundingClientRect(),i=this.$refs.eDeadlineRef.$el;i.style.top=s.top-e.top+"px",i.style.left=s.left-e.left+"px",i.style.width=s.width+"px",i.style.height=s.height+"px",this.$refs.eDeadlineRef.visible&&this.$refs.eDeadlineRef.hide(),setTimeout(()=>{this.$refs.eDeadlineRef.show()},0)},visibleUserSelectShowChange(t){if(!t&&this.taskDetail.visibility_appointor.filter(s=>s).length==0){let s=this.taskDetail.old_visibility;this.taskDetail.visibility=s>2?1:s||1,this.taskDetail.visibility<3&&this.updateVisible()}},dropVisible(t){switch(t){case 1:case 2:this.taskDetail.visibility=t,this.updateVisible();break;case 3:this.taskDetail.old_visibility=this.taskDetail.visibility,this.taskDetail.visibility=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},dropDeadline(t){switch(t){case 1:this.delayTaskShow=!0;break;case 2:this.openTime();break}},onDelay(){this.$refs.formDelayTaskRef.validate(t=>{if(!!t){this.delayTaskLoading=!0;var s=new Date(this.taskDetail.end_at);s.setHours(s.getHours()+Number(this.delayTaskForm.time)),this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,times:[this.taskDetail.start_at,$A.formatDate("Y-m-d H:i:s",s),this.delayTaskForm.remark]}).then(({msg:e})=>{$A.messageSuccess(e),this.delayTaskLoading=!1,this.delayTaskShow=!1,this.delayTaskForm.time="24",this.delayTaskForm.remark="",this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e),this.delayTaskLoading=!1})}})},updateVisible(){this.updateData(["visibility","visibility_appointor"])}}},p={};var Z=l(X,J,G,!1,Q,null,null,null);function Q(t){for(let s in p)this[s]=p[s]}var nt=function(){return Z.exports}();export{P as T,I as a,nt as b}; +import{m as f}from"./vuex.cc7cb26e.js";import{P as k,T as _}from"./ProjectLog.d2e94cb9.js";import{n as l,U as g,T as v}from"./app.57070a0d.js";import{C as b,D as w}from"./DialogWrapper.4f742dbc.js";import{l as D}from"./le5le-store.b40f9152.js";import y from"./TEditor.10324bed.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(i){t.show=i},expression:"show"}},[e("List",{attrs:{split:!1,size:"small"}},t._l(t.tipsTask,function(i,a){return e("ListItem",{key:a},[e("div",{staticClass:"list-content"},[e("UserAvatar",{attrs:{userid:a,size:28,"show-icon":!0,"show-name":!0}}),t._l(i,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(i){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)},T=[];const L={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),i="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")):(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")),i},isExistTask({userids:t,timerange:s,taskid:e}){return this.isExist=!1,new Promise(async i=>{this.$store.dispatch("call",{url:"project/task/easylists",data:{userid:t,timerange:s,taskid:e},method:"get"}).then(({data:a})=>{if(a.data.length>0){this.show=!0;let o={};t.map(n=>{a.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}i(this.isExist)})})}}},c={};var x=l(L,C,T,!1,A,null,null,null);function A(t){for(let s in c)this[s]=c[s]}var I=function(){return x.exports}(),S=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(i){t.content=i},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(i){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(i){return t.onEditing.apply(null,arguments)}}},[t._v(t._s(t.$L("\u7F16\u8F91\u63CF\u8FF0")))]),e("DropdownItem",{nativeOn:{click:function(i){return t.onHistory.apply(null,arguments)}}},[t._v(t._s(t.$L("\u5386\u53F2\u8BB0\u5F55")))]),t.operateLink?e("DropdownItem",{nativeOn:{click:function(i){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(i){return t.onImagePreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u67E5\u770B\u56FE\u7247")))]):t._e()],1)],1)],1)],1)},F=[];const E={name:"TEditorTask",components:{TEditor:y},props:{value:{default:""},placeholder:{default:""},placeholderFull:{default:""}},data(){return{content:this.value,plugins:["advlist autolink lists checklist 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:"checklist | bold italic underline forecolor backcolor | link | uploadImages imagePreview | history 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,ol[class],ul[class],li[class]",extended_valid_elements:"a[href|title|target=_blank]",toolbar:!1},optionFull:{menubar:"file edit view",removed_menuitems:"preview,print",contextmenu:"checklist | bold italic underline forecolor backcolor | link | uploadImages imagePreview | 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,ol[class],ul[class],li[class]",extended_valid_elements:"a[href|title|target=_blank]",toolbar:"uploadImages | checklist | bold italic underline | forecolor backcolor",mobile:{menubar:"file edit view"}},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()},updateContent(t){this.content=t},onEditing(){this.$refs.desc.onFull()},onHistory(){this.$emit("on-history")},onBlur(){this.$emit("on-blur")},onEditorInit(t){this.updateTouchContent(),this.updateHistoryContent(t),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",i=>{i.preventDefault(),i.stopPropagation(),this.onClickWrap(i)}))}),t<300&&this.updateTouchLink(t+100))},t)},updateHistoryContent(t){t.ui.registry.addMenuItem("history",{icon:"insert-time",text:this.$L("\u5386\u53F2\u8BB0\u5F55"),onAction:()=>{this.onHistory()}})},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 M=l(E,S,F,!1,O,"4075cd0c",null,null);function O(t){for(let s in h)this[s]=h[s]}var P=function(){return M.exports}(),H=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}})},j=[];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 R=l(z,H,j,!1,U,null,null,null);function U(t){for(let s in u)this[s]=u[s]}var N=function(){return R.exports}(),B=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-content-history"},[e("Table",{attrs:{"max-height":t.windowHeight-180,columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),"highlight-row":"",stripe:""}}),t.total>t.pageSize?e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:!0},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}}):t._e()],1)},V=[];const W={name:"TaskContentHistory",props:{taskId:{type:Number,default:0},taskName:{type:String,default:""}},data(){return{loadIng:0,columns:[{title:this.$L("\u65E5\u671F"),key:"created_at",width:168},{title:this.$L("\u63CF\u8FF0"),key:"desc",ellipsis:!0,minWidth:150,render:(t,{row:s})=>t("span",s.desc||"-")},{title:this.$L("\u521B\u5EFA\u4EBA"),width:120,render:(t,{row:s})=>s.userid?t("UserAvatar",{props:{showName:!0,size:22,userid:s.userid}}):t("div","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,{index:s,row:e,column:i})=>s===0&&this.page===1?t("div","-"):t("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"}]},on:{action:a=>{this.onAction(a,e)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{taskId:{handler(t){t&&this.setPage(1)},immediate:!0}},methods:{getLists(){this.taskId!==0&&(this.loadIng++,this.$store.dispatch("call",{url:"project/task/content_history",data:{task_id:this.taskId,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},onAction(t,s){switch(t){case"preview":const e=(this.taskName||`ID: ${this.taskId}`)+` [${s.created_at}]`,i=`/single/task/content/${this.taskId}?history_id=${s.id}&history_title=${e}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`task-content-${this.taskId}-${s.id}`,path:i,force:!1,config:{title:e,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:e,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${i}`}}):window.open($A.mainUrl(i.substring(1)));break}}}},m={};var Y=l(W,B,V,!1,K,"43d23896",null,null);function K(t){for(let s in m)this[s]=m[s]}var q=function(){return Y.exports}(),J=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(i){return i.stopPropagation(),t.openMenu(i,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(i){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(i){t.$set(t.taskDetail,"name",i)},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(i){t.timeValue=i},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(i){t.$set(t.ownerData,"owner_userid",i)},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(i){return i.stopPropagation(),t.openMenu(i,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(i){return i.stopPropagation(),t.openMenu(i,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(i){t.receiveShow=i},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(i){t.timeValue=i},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(i){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",{ref:"scroller",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(i){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(i){t.$set(t.taskDetail,"name",i)},expression:"taskDetail.name"}})],1),e("TEditorTask",{ref:"desc",staticClass:"desc",attrs:{value:t.taskContent,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},on:{"on-history":t.onHistory,"on-blur":function(i){return t.updateBlur("content")}}}),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(i){i.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(i){return t.updateData("priority",i)}}},[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(i,a){return e("EDropdownItem",{key:a,attrs:{command:i}},[e("i",{staticClass:"taskfont",style:{color:i.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==i.name?"":"")}}),t._v(" "+t._s(i.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(i){t.$set(t.ownerData,"owner_userid",i)},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(i){t.$set(t.assistData,"assist_userid",i)},expression:"assistData.assist_userid"}})],1):t._e(),t.taskDetail.visibility>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("span",{staticClass:"visibility-text color",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])])]),e("div",{staticClass:"item-content user"},[t.taskDetail.visibility==1||t.taskDetail.visibility==2?e("span",{ref:"visibilityText",staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.taskDetail.visibility==1?t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1"):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(i){t.$set(t.taskDetail,"visibility_appointor",i)},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.taskDetail.end_at?e("span",{staticClass:"visibility-text color",on:{click:t.showAtDropdown}},[t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))]):e("span",{staticClass:"visibility-text color",on:{click:function(i){t.timeOpen=!0}}},[t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4")))])]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{disabled:"",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(i){t.timeValue=i},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[t.taskDetail.end_at?e("div",{staticClass:"time",on:{click:t.showAtDropdown}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]):e("div",{staticClass:"time",on:{click:function(i){t.timeOpen=!0}}},[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(i){return t.updateData("loop",i)}}},[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(i){return e("EDropdownItem",{key:i.key,attrs:{command:i.key}},[t._v(" "+t._s(t.$L(i.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(i){return e("li",[i.id?e("img",{staticClass:"file-ext",attrs:{src:i.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(i.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(i.size)))]),e("div",{staticClass:"file-menu",class:{show:i._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(a){return t.viewFile(i)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(a){return t.downFile(i)}}}),e("EPopover",{staticClass:"file-delete",model:{value:i._show_menu,callback:function(a){t.$set(i,"_show_menu",a)},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(a){i._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(a){return t.deleteFile(i)}}},[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(i){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(i,a){return e("TaskDetail",{key:a,ref:`subTask_${i.id}`,refInFor:!0,attrs:{"task-id":i.id,"open-task":i,"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(i){t.addsubName=i},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(i,a){return e("EDropdownItem",{key:a,attrs:{command:i.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),t._v(t._s(t.$L(i.name))+" ")])])}),1)],1)],1):t._e(),e("EDropdown",{ref:"eDropdownRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.visibility==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.visibility==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.visibility==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),e("EDropdown",{ref:"eDeadlineRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropDeadline}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u5EF6\u671F"))+" ")])]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t._v(" "+t._s(t.$L("\u4FEE\u6539\u65F6\u95F4"))+" ")])])],1)],1)],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(i){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(i){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(i){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(i){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(i){return i.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(i){return i.preventDefault(),t.taskPasteDrag(i,"drag")},dragover:function(i){return i.preventDefault(),t.taskDragOver(!0,i)},dragleave:function(i){return i.preventDefault(),t.taskDragOver(!1,i)}}},[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(i){t.msgText=i},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(i){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onAdd:function(i){return t.updateData("times",t.updateParams)}}}),e("Modal",{attrs:{title:t.$L("\u4EFB\u52A1\u5EF6\u671F"),"mask-closable":!1,styles:{width:"90%",maxWidth:"450px"}},model:{value:t.delayTaskShow,callback:function(i){t.delayTaskShow=i},expression:"delayTaskShow"}},[e("Form",{ref:"formDelayTaskRef",attrs:{model:t.delayTaskForm,rules:t.delayTaskRule,"label-position":"left","label-width":"auto"},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5EF6\u671F\u65F6\u957F"),prop:"time"}},[e("Input",{attrs:{type:"number",placeholder:t.$L("\u8BF7\u8F93\u5165\u65F6\u957F")},scopedSlots:t._u([{key:"append",fn:function(){return[t._v(" "+t._s(t.$L("\u5C0F\u65F6"))+" ")]},proxy:!0}]),model:{value:t.delayTaskForm.time,callback:function(i){t.$set(t.delayTaskForm,"time",i)},expression:"delayTaskForm.time"}})],1),e("FormItem",{attrs:{label:t.$L("\u5EF6\u671F\u5907\u6CE8"),prop:"remark"}},[e("Input",{attrs:{type:"textarea",placeholder:t.$L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8")},model:{value:t.delayTaskForm.remark,callback:function(i){t.$set(t.delayTaskForm,"remark",i)},expression:"delayTaskForm.remark"}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:function(i){t.delayTaskShow=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]),e("Button",{attrs:{type:"primary",loading:t.delayTaskLoading},on:{click:t.onDelay}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4EFB\u52A1\u63CF\u8FF0\u5386\u53F2\u8BB0\u5F55"),"mask-closable":!1,styles:{width:"90%",maxWidth:"700px"}},model:{value:t.historyShow,callback:function(i){t.historyShow=i},expression:"historyShow"}},[t.historyShow?e("TaskContentHistory",{attrs:{"task-id":t.taskDetail.id,"task-name":t.taskDetail.name}}):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:function(i){t.historyShow=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1):t._e()},G=[];const X={name:"TaskDetail",components:{TaskContentHistory:q,TEditorTask:P,UserSelect:g,TaskExistTips:I,ChatInput:b,TaskMenu:v,ProjectLog:k,DialogWrapper:w,TaskUpload:N,TaskPriority:_},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:{},delayTaskShow:!1,delayTaskLoading:!1,delayTaskForm:{time:"24",remark:""},delayTaskRule:{time:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65F6\u957F"),trigger:"blur"}],remark:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u5907\u6CE8"),trigger:"blur"}]},historyShow:!1}},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=D.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 i=e>900?200:70;return{minHeight:e-i-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:s,hasOpenDialog:e}=this,i=Math.min(1100,s);if(t&&e){const a=i>900?200:70;return{maxHeight:i-a-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),i="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")):(i=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),i=i.replace(/( 00:00| 23:59)/g,"")),i},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.visibility<=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,i)=>{i>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.filter(s=>s).length)>0&&(this.taskDetail.visibility=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},onHistory(){this.historyShow=!0},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 a=this.$refs.desc.getContent();if(a==this.taskContent.replace(/\s+original-(width|height)="[^"]*"/g,""))return;this.windowTouch?$A.modalConfirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u662F\u5426\u4FDD\u5B58\u7F16\u8F91\u5185\u5BB9\uFF1F",onOk:()=>{this.updateData("contentSave",{content:a})},onCancel:()=>{this.$refs.desc.updateContent(this.taskContent)}}):this.updateData("contentSave",{content:a});return;case"contentSave":this.$set(this.taskDetail,"content",s.content),t="content",e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:s.content})};break}let i={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(a=>{let o=this.taskDetail[a],n=this.openTask[a];$A.jsonStringify(o)!=$A.jsonStringify(n)&&(i[a]=o)}),!(Object.keys(i).length<=1)&&this.$store.dispatch("taskUpdate",i).then(({msg:a})=>{$A.messageSuccess(a),typeof e=="function"&&e()}).catch(({msg:a})=>{$A.modalError(a)})},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,i)=>{this.$store.dispatch("taskUpdate",s).then(({msg:a})=>{$A.messageSuccess(a),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),e()}).catch(({msg:a})=>{$A.modalError(a),this.ownerLoad--,this.receiveShow=!1,i()})})},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:i})=>{$A.messageSuccess(i),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),t()}).catch(({msg:i})=>{$A.modalError(i),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(null)});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 i={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(a=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=i})})}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.$store.dispatch("openChildWindow",{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(a=>["jpg","jpeg","webp","gif","png"].includes(a.ext)),i=e.findIndex(a=>a.id===t.id);i>-1?this.$store.dispatch("previewImage",{index:i,list:e.map(a=>({src:a.path,width:a.width,height:a.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.$store.dispatch("openChildWindow",{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?this.$store.dispatch("openAppChildPage",{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.mainUrl(s.substring(1)))},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(t){var a;let s=null;if(t===null?s=(a=this.$refs.visibilityText)==null?void 0:a.getBoundingClientRect():s=t.target.getBoundingClientRect(),s===null)return;const e=this.$refs.scroller.$el.getBoundingClientRect(),i=this.$refs.eDropdownRef.$el;i.style.top=s.top-e.top+"px",i.style.left=s.left-e.left+"px",i.style.width=s.width+"px",i.style.height=s.height+"px",this.$refs.eDropdownRef.visible&&this.$refs.eDropdownRef.hide(),setTimeout(()=>{this.$refs.eDropdownRef.show()},0)},showAtDropdown({target:t}){this.timeOpen=!1;const s=t.getBoundingClientRect(),e=this.$refs.scroller.$el.getBoundingClientRect(),i=this.$refs.eDeadlineRef.$el;i.style.top=s.top-e.top+"px",i.style.left=s.left-e.left+"px",i.style.width=s.width+"px",i.style.height=s.height+"px",this.$refs.eDeadlineRef.visible&&this.$refs.eDeadlineRef.hide(),setTimeout(()=>{this.$refs.eDeadlineRef.show()},0)},visibleUserSelectShowChange(t){if(!t&&this.taskDetail.visibility_appointor.filter(s=>s).length==0){let s=this.taskDetail.old_visibility;this.taskDetail.visibility=s>2?1:s||1,this.taskDetail.visibility<3&&this.updateVisible()}},dropVisible(t){switch(t){case 1:case 2:this.taskDetail.visibility=t,this.updateVisible();break;case 3:this.taskDetail.old_visibility=this.taskDetail.visibility,this.taskDetail.visibility=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},dropDeadline(t){switch(t){case 1:this.delayTaskShow=!0;break;case 2:this.openTime();break}},onDelay(){this.$refs.formDelayTaskRef.validate(t=>{if(!!t){this.delayTaskLoading=!0;var s=new Date(this.taskDetail.end_at);s.setHours(s.getHours()+Number(this.delayTaskForm.time)),this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,times:[this.taskDetail.start_at,$A.formatDate("Y-m-d H:i:s",s),this.delayTaskForm.remark]}).then(({msg:e})=>{$A.messageSuccess(e),this.delayTaskLoading=!1,this.delayTaskShow=!1,this.delayTaskForm.time="24",this.delayTaskForm.remark="",this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e),this.delayTaskLoading=!1})}})},updateVisible(){this.updateData(["visibility","visibility_appointor"])}}},p={};var Z=l(X,J,G,!1,Q,null,null,null);function Q(t){for(let s in p)this[s]=p[s]}var nt=function(){return Z.exports}();export{P as T,I as a,nt as b}; diff --git a/public/js/build/app.f8a6fa5e.js b/public/js/build/app.57070a0d.js similarity index 80% rename from public/js/build/app.f8a6fa5e.js rename to public/js/build/app.57070a0d.js index 0c12a4a36..34ddc0849 100644 --- a/public/js/build/app.f8a6fa5e.js +++ b/public/js/build/app.57070a0d.js @@ -1,4 +1,4 @@ -import{m as yt}from"./@micro-zoe.c2e1472d.js";import{v as vt}from"./jquery.7b5830c7.js";import{v as At}from"./localforage.dae0aa5a.js";import{m as lt}from"./markdown-it.34483999.js";import{H as me}from"./highlight.js.24fdca15.js";import{m as bt}from"./markdown-it-link-attributes.e1d5d151.js";import{m as $t}from"./@traptitech.4f5fb92a.js";import{V as S}from"./vue.da9c4dc7.js";import{m as Y,a as ct,V as Ee}from"./vuex.cc7cb26e.js";import{a as _e}from"./axios.6ec123f8.js";import{l as V}from"./le5le-store.bd86c9e9.js";import{_ as k,c as kt,V as St,d as Et,n as Tt,l as It,W as Ct,p as Dt,r as xt}from"./openpgp_hi.15f91b1d.js";import{V as pe}from"./vue-router.2d566cd7.js";import{V as Mt}from"./vue-clipboard2.facc05aa.js";import{V as F}from"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import{D as Lt}from"./vuedraggable.aaa0fd6a.js";import{V as Ot}from"./vue-resize-observer.2ab4768b.js";import{e as se}from"./element-sea.74fd8f4e.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./katex.8068bc0b.js";import"./clipboard.907979fd.js";import"./sortablejs.4880fe6b.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";function Pt(){let e={},i={loader(t,n){return t}};e["micro-app"]=[i],e["okr-details"]=[i],yt.start({plugins:{modules:e}})}var Rt={languageList:{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,i){let t=1;for(;e.indexOf("(*)")!==-1;)typeof i[t]=="object"?e=e.replace("(*)",""):e=e.replace("(*)",i[t]),t++;return e},replaceEscape(e){return!e||e==""?"":e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)")},getLanguage(){let e=window.localStorage.getItem("__system:languageName__");if(typeof e=="string"&&typeof this.languageList[e]!="undefined")return e;e="en";let i=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(i){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.languageList[i]!="undefined"&&(e=i);break}return this.saveLanguage(e),e},saveLanguage(e){window.localStorage.setItem("__system:languageName__",e)}};const ae=Rt,Nt=ae.languageList,Q=ae.getLanguage(),te={};typeof window.LANGUAGE_DATA=="undefined"&&(window.LANGUAGE_DATA={});function Er(e){if(!$A.isArray(e))return;const i=Object.assign(Object.keys(Nt));e.some(t=>{let n=-1;t.key&&i.some(s=>{const r=t[s]||t.general||null;r&&typeof window.LANGUAGE_DATA[s]!="undefined"&&(n=window.LANGUAGE_DATA[s].push(r)-1)}),n>-1&&(window.LANGUAGE_DATA.key[t.key]=n)})}function Bt(e,i=!1){e!==void 0&&(i?(ae.saveLanguage(e),$A.reloadUrl()):$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:()=>Bt(e,!0)}))}function Te(e){var t;if(typeof arguments[1]!="undefined")return Te(ae.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[Q]=="undefined")return e;const i=window.LANGUAGE_DATA.key[e]||-1;if(i>-1)return window.LANGUAGE_DATA[Q][i]||e;if(typeof te[e]=="undefined"){te[e]=!1;for(let n in window.LANGUAGE_DATA.key)if(n.indexOf("(*)")>-1){const s=new RegExp("^"+ae.replaceEscape(n)+"$","g");if(s.test(e)){let r=0;const a=window.LANGUAGE_DATA.key[n],o=(t=window.LANGUAGE_DATA[Q][a]||n)==null?void 0:t.replace(/\(\*\)/g,function(){return"$"+ ++r});te[e]={rege:s,value:o};break}}}return te[e]?e.replace(te[e].rege,te[e].value):(window.systemInfo.debug==="yes"&&setTimeout(n=>{try{let s="__language:Undefined__",r=JSON.parse(window.localStorage.getItem(s)||"[]");$A.isArray(r)||(r=[]);let a=null;r.find(l=>(a=new RegExp("^"+l.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(a)))||(r.push(e),window.localStorage.setItem(s,JSON.stringify(r)))}catch{}},10),e)}const Z=At;(function(e,i,t){e.systemInfo=e.systemInfo||{},e.modalTransferIndex=1e3,Z.config({name:"DooTask",storeName:"common"}),i.extend({isArray(n){return typeof n=="object"&&Object.prototype.toString.call(n).toLowerCase()=="[object array]"&&typeof n.length=="number"},isJson(n){return typeof n=="object"&&Object.prototype.toString.call(n).toLowerCase()=="[object object]"&&typeof n.length=="undefined"},inArray(n,s,r=!1){return this.isArray(s)?r?!!s.find(a=>a&&a.indexOf("*")&&new RegExp("^"+a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(n)?!0:a==n):s.includes(n):!1},randNum(n,s){let r=s-n,a=Math.random();return n+Math.round(a*r)},last(n){let s=!1;return typeof n=="object"&&n.length>0&&(s=n[n.length-1]),s},strExists(n,s,r=!1){return n+="",s+="",r!==!0&&(n=n.toLowerCase(),s=s.toLowerCase()),n.indexOf(s)!==-1},leftExists(n,s,r=!1){return n+="",s+="",r!==!0&&(n=n.toLowerCase(),s=s.toLowerCase()),n.substring(0,s.length)===s},leftDelete(n,s,r=!1){return n+="",s+="",this.leftExists(n,s,r)&&(n=n.substring(s.length)),n||""},rightExists(n,s,r=!1){return n+="",s+="",r!==!0&&(n=n.toLowerCase(),s=s.toLowerCase()),n.substring(n.length-s.length)===s},rightDelete(n,s,r=!1){return n+="",s+="",this.rightExists(n,s,r)&&(n=n.substring(0,n.length-s.length)),n||""},getMiddle(n,s=null,r=null){return n=n.toString(),this.isHave(s)&&this.strExists(n,s)&&(n=n.substring(n.indexOf(s)+s.length)),this.isHave(r)&&this.strExists(n,r)&&(n=n.substring(0,n.indexOf(r))),n},subString(n,s,r){return n+="",this.isHave(r)||(r=n.length),n.substring(s,r)},randomString(n){n=n||32;let s="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",r=s.length,a="";for(let o=0;o=s)return n;let a="",o="";for(let l=0;l86400){let a=Math.floor(r/86400),o=Math.ceil((r-a*86400)/3600);return o>0?a+"\u5929"+o+"\u5C0F\u65F6":a+"\u5929"}else return r>3600?Math.ceil(r/3600)+"\u5C0F\u65F6":r>60?Math.ceil(r/60)+"\u5206\u949F":r>10?r+"\u79D2":"\u521A\u521A"},isMobile(n){return/^1([3456789])\d{9}$/.test(n)},isEmail(n){return/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*\.)+[a-zA-Z]*)$/i.test(n)},getDistance(n,s,r,a){let o=3.14159265359,l=6.28318530712,c=.01745329252,u=63706935e-1,f,d,h,p,w,g,M,b;return f=n*c,d=s*c,h=r*c,p=a*c,M=f-h,M>o?M=l-M:M<-o&&(M=l+M),w=u*Math.cos(d)*M,g=u*(d-p),b=Math.sqrt(w*w+g*g).toFixed(0),b},setTile(n){document.title=n;let s=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(s)){let r=document.createElement("iframe");r.style.display="none",r.setAttribute("src","/favicon.ico");let a=function(){setTimeout(function(){r.removeEventListener("load",a),document.body.removeChild(r)},0)};r.addEventListener("load",a),document.body.appendChild(r)}},cloneJSON(n){return typeof n!="object"||n===null?n:$A.jsonParse($A.jsonStringify(n))},jsonParse(n,s=t){if(n===null)return s||{};if(typeof n=="object")return n;try{return JSON.parse(n.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch{return s||{}}},jsonStringify(n,s=t){if(typeof n!="object")return n;try{return JSON.stringify(n)}catch{return s||""}},resize(n,s){let r=$A(n);if(r.length===0)return;let a=parseInt(r.outerHeight()),o=parseInt(r.outerWidth()),l=setInterval(()=>{r.length===0&&clearInterval(l);let c=parseInt(r.outerHeight()),u=parseInt(r.outerWidth());(a!==c||o!==u)&&(a=c,o=u,$A.openLog&&console.log(o,a),typeof s=="function"&&s())},250)},screenOrientation(){return $A(e).width()-$A(e).height()>50?"landscape":"portrait"},isIos(){let n=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return n&&/iphone|ipad|ipod|ios/.test(n)},isAndroid(){let n=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return n&&n.indexOf("android")>0},isWeixin(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/MicroMessenger/i)+""=="micromessenger"},isChrome(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/Chrome/i)+""=="chrome"},isDesktop(){return!(typeof e!="undefined"&&e.navigator.userAgent).match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},getObject(n,s){let r=n;return this.count(n)===0||this.count(s)===0?"":(s.replace(/,/g,"|").replace(/\./g,"|").split("|").some(o=>{r=typeof r[o]=="undefined"?"":r[o]}),r)},count(n){try{if(typeof n=="undefined")return 0;if(typeof n=="number"&&(n+=""),typeof n.length=="number")return n.length;{let s=0,r;for(r in n)s++;return s}}catch{return 0}},stringLength(n){return typeof n=="number"||typeof n=="string"?(n+"").length:0},arrayLength(n){if(n)try{return n.length}catch{return 0}return 0},objImplode(n){if(n===null)return"";let s="";return $A.each(n,(r,a)=>{a!==null&&(typeof a=="object"&&this.count(a)>0?s+=this.objImplode(a):s+=String(a))}),s.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter(n){let s=this.urlParameterAll();return typeof n=="undefined"?s:s[n]},urlParameterAll(){let n=e.location.search||e.location.hash||"",s=[];this.strExists(n,"?")&&(s=this.getMiddle(n,"?").split("&"));let r={};for(let a=0;a{n=$A.removeURLParameter(n,a)}),n;let r=n.split("?");if(r.length>=2){let a=encodeURIComponent(s)+"=",o=r[1].split(/[&;]/g);for(let l=o.length;l-- >0;)o[l].lastIndexOf(a,0)!==-1&&o.splice(l,1);return r[0]+(o.length>0?"?"+o.join("&"):"")}return n},urlAddParams(n,s){if($A.isJson(s)){n&&(n=this.removeURLParameter(n,Object.keys(s))),n+="",n+=n.indexOf("?")===-1?"?":"";for(let r in s)!s.hasOwnProperty(r)||(n+="&"+r+"="+s[r])}return this.rightDelete(n.replace("?&","?"),"?")},reloadUrl(){if($A.isEEUiApp&&$A.isAndroid()){let n=e.location.href,s="_=",r=new RegExp(s+"\\d+"),a=this.Time();if(n.indexOf(s)>-1)n=n.replace(r,s+a);else if(n.indexOf("?")>-1){let o=n.split("?");o[1]?n=o[0]+"?"+s+a+"&"+o[1]:n=o[0]+"?"+s+a}else n.indexOf("#")>-1?n=n.split("#")[0]+"?"+s+a+location.hash:n=n+"?"+s+a;$A.eeuiAppSetUrl(n)}else e.location.reload()},stringConnect(...n){let s=null,r="";return n.forEach(a=>{s===null?s=a:a&&(a&&r&&(r+=s),r+=a)}),r},objEquals(n,s){let r=n instanceof Object,a=s instanceof Object;if(!r||!a)return n===s;if(Object.keys(n).length!==Object.keys(s).length)return!1;for(let o in n)if(n.hasOwnProperty(o)){let l=n[o]instanceof Object,c=s[o]instanceof Object;if(l&&c){if(!this.objEquals(n[o],s[o]))return!1}else if(n[o]!=s[o])return!1}return!0},insert2Input(n,s){if(n===null||typeof n!="object")return;typeof n.length=="number"&&n.length>0&&(n=n[0]);let r=typeof n.$el=="object"?$A(n.$el):$A(n);if(r.length===0)return;let a=r[0];if(a.tagName!="INPUT"&&a.tagName!="TEXTAREA"&&(r.find("input").length===0?r=r.find("textarea"):r=r.find("input")),r.length===0||(a=r[0],a.tagName!="INPUT"&&a.tagName!="TEXTAREA"))return;let o=r.val(),{selectionStart:l,selectionEnd:c}=a;r.val(`${o.substring(0,l)}${s}${o.substring(c,o.length)}`),a.dispatchEvent(new Event("input")),setTimeout(()=>{if(a.setSelectionRange){let u=o.substring(0,l).length+s.length;a.focus(),a.setSelectionRange(u,u)}},10)},iOSKeyboardFixer(){!this.isIos()||(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},loadScript(n){return new Promise(async(s,r)=>{if(n=$A.originUrl(n),this.rightExists(n,".css"))return s(this.loadCss(n));let a=0;for(;this.__loadScript[n]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),a++,a>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadScript[n]==="loaded")return s(!1);this.__loadScript[n]="loading";const o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=()=>{(o.readyState==="loaded"||o.readyState==="complete")&&(o.onreadystatechange=null,this.__loadScript[n]="loaded",s(!0))}:(o.onload=()=>{this.__loadScript[n]="loaded",s(!0)},o.onerror=l=>{this.__loadScript[n]="error",r(l)}),this.rightExists(n,".js")?o.src=n+"?hash="+e.systemInfo.version:o.src=n,document.body.appendChild(o)})},loadScriptS(n){return new Promise(s=>{let r=0;const a=()=>{++r{if(n=$A.originUrl(n),this.rightExists(n,".js"))return s(this.loadScript(n));let a=0;for(;this.__loadCss[n]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),a++,a>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadCss[n]==="loaded")return s(!1);this.__loadCss[n]="loading";const o=document.createElement("link");o.readyState?o.onreadystatechange=()=>{(o.readyState=="loaded"||o.readyState=="complete")&&(o.onreadystatechange=null,this.__loadCss[n]="loaded",s(!0))}:(o.onload=()=>{this.__loadCss[n]="loaded",s(!0)},o.onerror=l=>{this.__loadCss[n]="error",r(l)}),o.rel="stylesheet",this.rightExists(n,".css")?o.href=n+"?hash="+e.systemInfo.version:o.href=n,document.getElementsByTagName("head").item(0).appendChild(o)})},loadCssS(n){return new Promise(s=>{let r=0;const a=()=>{++r{n=$A.originUrl(n);let o=0;for(;this.__loadIframe[n]==="loading";)if(await new Promise(c=>setTimeout(c,1e3)),o++,o>30)return a("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadIframe[n]==="loaded")return r(!1);this.__loadIframe[n]="loading";const l=document.createElement("iframe");l.style.display="none",l.src=n,l.onload=()=>{this.__loadIframe[n]="loaded",r(!0),s>0&&setTimeout(()=>{document.body.removeChild(l),delete this.__loadIframe[n]},s)},l.onerror=c=>{this.__loadIframe[n]="error",a(c)},document.body.appendChild(l)})},loadIframes(n){return new Promise(s=>{let r=0;const a=()=>{++r{n[a]=$A.date2string(r,s)}));return n},bytesToSize(n){if(n===0)return"0 B";let s=1024,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(n)/Math.log(s));return typeof r[a]=="undefined"?"0 B":$A.runNum(n/Math.pow(s,a),2)+" "+r[a]},html2Escape(n){return!n||n==""?"":n.replace(/[<>&"]/g,function(s){return{"<":"<",">":">","&":"&",'"':"""}[s]})},getDomain(n){let s=/http(s)?:\/\/([^\/]+)/i,r=(n+"").match(s);return r!=null&&r.length>0?r[2]:""},scrollToView(n,s){if(!!n){if(typeof s=="undefined"||s===!0?s={block:"start",inline:"nearest"}:s===!1&&(s={block:"end",inline:"nearest"}),typeof s.scrollMode!="undefined"&&typeof e.scrollIntoView=="function"){e.scrollIntoView(n,s);return}try{n.scrollIntoView(s)}catch{typeof e.scrollIntoView=="function"&&e.scrollIntoView(n,s)}}},scrollIntoViewIfNeeded(n){!n||(typeof n.scrollIntoViewIfNeeded=="function"?n.scrollIntoViewIfNeeded():$A.scrollToView(n,{block:"nearest",inline:"nearest"}))},scaleToScale(n,s,r,a){let o,l;return n>0&&s>0?(n/s>=r/a?n>r?(o=r,l=s*r/n):(o=n,l=s):s>a?(l=a,o=n*a/s):(o=n,l=s),{width:parseInt(o),height:parseInt(l)}):{width:n,height:s}},scrollPreventThrough(n){if(!n||n.getAttribute("data-prevent-through")==="yes")return;n.setAttribute("data-prevent-through","yes");let s=null;n.addEventListener("touchstart",function(r){s=Math.floor(r.targetTouches[0].clientY)}),n.addEventListener("touchmove",function(r){let a=Math.floor(r.targetTouches[0].clientY),o=n.scrollTop,l=n.scrollHeight,c=n.clientHeight;(o<=0&&a-s>0||o>=l-c&&a-s<0)&&r.preventDefault()},!1)},getAttr(n,s,r=""){return n?n.getAttribute(s):r},onBlur(n=null,s=!1){setTimeout(r=>{if($A.eeuiAppKeyboardHide(),typeof n=="boolean"&&(s=n,n=null),n)n.blur();else if(document.activeElement)if(s===!0&&document.activeElement.tagName==="BODY"){let a=document.getElementById("toLoseFocusInput");a||(a=document.createElement("input"),a.id="toLoseFocusInput",a.type="text",a.style.position="fixed",a.style.top="0px",a.style.left="0px",a.style.zIndex="-1",a.style.opacity="0",a.addEventListener("focus",o=>{document.activeElement.blur()}),document.body.appendChild(a)),setTimeout(o=>{a.focus()},1)}else document.activeElement.blur()},1)},sortObject(n,s=[]){return Object.keys(n).sort().reduce(function(r,a){return s.includes(a)||(r[a]=n[a]),r},{})}}),i.extend({__IDBTimer:{},async IDBTest(){try{$A.isIos()&&await Z.setItem("__test__",$A.Time()),$A.openLog&&console.log("IDBTest OK")}catch(n){$A.openLog?(console.error("IDBTest Error: ",n),$A.modalWarning({content:n.message,onOk:()=>{$A.reloadUrl()}})):$A.reloadUrl()}},IDBSave(n,s,r=100){typeof this.__IDBTimer[n]!="undefined"&&(clearTimeout(this.__IDBTimer[n]),delete this.__IDBTimer[n]),this.__IDBTimer[n]=setTimeout(async a=>{await Z.setItem(n,s)},r)},IDBDel(n){Z.removeItem(n).then(s=>{})},IDBSet(n,s){return Z.setItem(n,s)},IDBRemove(n){return Z.removeItem(n)},IDBClear(){return Z.clear()},IDBValue(n){return Z.getItem(n)},async IDBString(n,s=""){const r=await this.IDBValue(n);return typeof r=="string"||typeof r=="number"?r:s},async IDBInt(n,s=0){const r=await this.IDBValue(n);return typeof r=="number"?r:s},async IDBBoolean(n,s=!1){const r=await this.IDBValue(n);return typeof r=="boolean"?r:s},async IDBArray(n,s=[]){const r=await this.IDBValue(n);return this.isArray(r)?r:s},async IDBJson(n,s={}){const r=await this.IDBValue(n);return this.isJson(r)?r:s}}),i.extend({setStorage(n,s){return this.__operationStorage(n,s)},getStorageValue(n){return this.__operationStorage(n)},getStorageString(n,s=""){let r=this.__operationStorage(n);return typeof r=="string"||typeof r=="number"?r:s},getStorageInt(n,s=0){let r=this.__operationStorage(n);return typeof r=="number"?r:s},getStorageBoolean(n,s=!1){let r=this.__operationStorage(n);return typeof r=="boolean"?r:s},getStorageArray(n,s=[]){let r=this.__operationStorage(n);return this.isArray(r)?r:s},getStorageJson(n,s={}){let r=this.__operationStorage(n);return this.isJson(r)?r:s},__operationStorage(n,s){if(!n)return;let r="__state__";if(n.substring(0,5)==="cache"&&(r="__state:"+n+"__"),typeof s=="undefined")return this.__loadFromlLocal(n,"",r);this.__savaToLocal(n,s,r)},__savaToLocal(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.localStorage[r];a?a=JSON.parse(a):a={},a[n]=s,e.localStorage[r]=JSON.stringify(a)}catch{}},__loadFromlLocal(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.localStorage[r];return!a||(a=JSON.parse(a),!a||typeof a[n]=="undefined")?s:a[n]}catch{return s}}}),i.extend({setSessionStorage(n,s){return this.__operationSessionStorage(n,s)},getSessionStorageValue(n){return this.__operationSessionStorage(n)},getSessionStorageString(n,s=""){let r=this.__operationSessionStorage(n);return typeof r=="string"||typeof r=="number"?r:s},getSessionStorageInt(n,s=0){let r=this.__operationSessionStorage(n);return typeof r=="number"?r:s},__operationSessionStorage(n,s){if(!n)return;let r="__state__";if(n.substring(0,5)==="cache"&&(r="__state:"+n+"__"),typeof s=="undefined")return this.__loadFromlSession(n,"",r);this.__savaToSession(n,s,r)},__savaToSession(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.sessionStorage.getItem(r);a?a=JSON.parse(a):a={},a[n]=s,e.sessionStorage.setItem(r,JSON.stringify(a))}catch{}},__loadFromlSession(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.sessionStorage.getItem(r);return!a||(a=JSON.parse(a),!a||typeof a[n]=="undefined")?s:a[n]}catch{return s}}}),i.extend({serializeObject(n,s){if(typeof n=="string")return n;let r=[],a="&";s=s||[];let o;function l(u){if(s.length>0){let f="";for(let d=0;d0&&r.push(f.join(a))}else n[u]===null?r.push(l(u)+"="):typeof n[u]=="object"?(o=s.slice(),o.push(u),f=i.serializeObject(n[u],o),f!==""&&r.push(f)):typeof n[u]!="undefined"&&n[u]!==""?r.push(l(u)+"="+c(n[u])):n[u]===""&&r.push(l(u))}return r.join(a)},globalAjaxOptions:{},ajaxSetup(n){n.type&&(n.method=n.type),i.each(n,function(s,r){i.globalAjaxOptions[s]=r})},_jsonpRequests:0,ihttp(n){let s={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},r=["beforeSend","error","complete","success","statusCode"];n.type&&(n.method=n.type),i.each(i.globalAjaxOptions,function(d,h){r.indexOf(d)<0&&(s[d]=h)});function a(d,h,p){let w=arguments;d&&i(document).trigger(d,h),p&&(p in i.globalAjaxOptions&&i.globalAjaxOptions[p](w[3],w[4],w[5],w[6]),n[p]&&n[p](w[3],w[4],w[5],w[6]))}i.each(s,function(d,h){d in n||(n[d]=h)}),n.url||(n.url=e.location.toString());let o=n.url.indexOf("?")>=0?"&":"?",l=n.method.toUpperCase();if((l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&n.data){let d;typeof n.data=="string"?n.data.indexOf("?")>=0?d=n.data.split("?")[1]:d=n.data:d=i.serializeObject(n.data),d.length&&(n.url+=o+d,o==="?"&&(o="&"))}if(n.dataType==="json"&&n.url.indexOf("callback=")>=0){let d="__jsonp_"+Date.now()+i._jsonpRequests++,h,p=n.url.split("callback="),w=p[0]+"callback="+d;if(p[1].indexOf("&")>=0){let M=p[1].split("&").filter(function(b){return b.indexOf("=")>0}).join("&");M.length>0&&(w+="&"+M)}let g=document.createElement("script");g.type="text/javascript",g.onerror=function(){clearTimeout(h),a(t,t,"error",null,"scripterror"),a("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},g.src=w,e[d]=function(M){clearTimeout(h),a(t,t,"success",M),g.parentNode.removeChild(g),g=null,delete e[d]},document.querySelector("head").appendChild(g),n.timeout>0&&(h=setTimeout(function(){g.parentNode.removeChild(g),g=null,a(t,t,"error",null,"timeout")},n.timeout));return}(l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&n.cache===!1&&(n.url+=o+"_nocache="+Date.now());let c=new XMLHttpRequest;c.requestUrl=n.url,c.requestParameters=n,c.open(l,n.url,n.async,n.user,n.password);let u=null;if((l==="POST"||l==="PUT"||l==="PATCH")&&n.data)if(n.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(n.data.constructor)>=0)u=n.data;else{let h="---------------------------"+Date.now().toString(16);n.contentType==="multipart/form-data"?c.setRequestHeader("Content-Type","multipart/form-data; boundary="+h):c.setRequestHeader("Content-Type",n.contentType),u="";let p=i.serializeObject(n.data);if(n.contentType==="multipart/form-data"){h="---------------------------"+Date.now().toString(16),p=p.split("&");let w=[];for(let g=0;g{let n=-1;t.key&&i.some(s=>{const r=t[s]||t.general||null;r&&typeof window.LANGUAGE_DATA[s]!="undefined"&&(n=window.LANGUAGE_DATA[s].push(r)-1)}),n>-1&&(window.LANGUAGE_DATA.key[t.key]=n)})}function Bt(e,i=!1){e!==void 0&&(i?(ae.saveLanguage(e),$A.reloadUrl()):$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:()=>Bt(e,!0)}))}function Te(e){var t;if(typeof arguments[1]!="undefined")return Te(ae.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[Q]=="undefined")return e;const i=window.LANGUAGE_DATA.key[e]||-1;if(i>-1)return window.LANGUAGE_DATA[Q][i]||e;if(typeof te[e]=="undefined"){te[e]=!1;for(let n in window.LANGUAGE_DATA.key)if(n.indexOf("(*)")>-1){const s=new RegExp("^"+ae.replaceEscape(n)+"$","g");if(s.test(e)){let r=0;const a=window.LANGUAGE_DATA.key[n],o=(t=window.LANGUAGE_DATA[Q][a]||n)==null?void 0:t.replace(/\(\*\)/g,function(){return"$"+ ++r});te[e]={rege:s,value:o};break}}}return te[e]?e.replace(te[e].rege,te[e].value):(window.systemInfo.debug==="yes"&&setTimeout(n=>{try{let s="__language:Undefined__",r=JSON.parse(window.localStorage.getItem(s)||"[]");$A.isArray(r)||(r=[]);let a=null;r.find(l=>(a=new RegExp("^"+l.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(a)))||(r.push(e),window.localStorage.setItem(s,JSON.stringify(r)))}catch{}},10),e)}const Z=At;(function(e,i,t){e.systemInfo=e.systemInfo||{},e.modalTransferIndex=1e3,Z.config({name:"DooTask",storeName:"common"}),i.extend({isArray(n){return typeof n=="object"&&Object.prototype.toString.call(n).toLowerCase()=="[object array]"&&typeof n.length=="number"},isJson(n){return typeof n=="object"&&Object.prototype.toString.call(n).toLowerCase()=="[object object]"&&typeof n.length=="undefined"},inArray(n,s,r=!1){return this.isArray(s)?r?!!s.find(a=>a&&a.indexOf("*")&&new RegExp("^"+a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(n)?!0:a==n):s.includes(n):!1},randNum(n,s){let r=s-n,a=Math.random();return n+Math.round(a*r)},last(n){let s=!1;return typeof n=="object"&&n.length>0&&(s=n[n.length-1]),s},strExists(n,s,r=!1){return n+="",s+="",r!==!0&&(n=n.toLowerCase(),s=s.toLowerCase()),n.indexOf(s)!==-1},leftExists(n,s,r=!1){return n+="",s+="",r!==!0&&(n=n.toLowerCase(),s=s.toLowerCase()),n.substring(0,s.length)===s},leftDelete(n,s,r=!1){return n+="",s+="",this.leftExists(n,s,r)&&(n=n.substring(s.length)),n||""},rightExists(n,s,r=!1){return n+="",s+="",r!==!0&&(n=n.toLowerCase(),s=s.toLowerCase()),n.substring(n.length-s.length)===s},rightDelete(n,s,r=!1){return n+="",s+="",this.rightExists(n,s,r)&&(n=n.substring(0,n.length-s.length)),n||""},getMiddle(n,s=null,r=null){return n=n.toString(),this.isHave(s)&&this.strExists(n,s)&&(n=n.substring(n.indexOf(s)+s.length)),this.isHave(r)&&this.strExists(n,r)&&(n=n.substring(0,n.indexOf(r))),n},subString(n,s,r){return n+="",this.isHave(r)||(r=n.length),n.substring(s,r)},randomString(n){n=n||32;let s="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",r=s.length,a="";for(let o=0;o=s)return n;let a="",o="";for(let l=0;l86400){let a=Math.floor(r/86400),o=Math.ceil((r-a*86400)/3600);return o>0?a+"\u5929"+o+"\u5C0F\u65F6":a+"\u5929"}else return r>3600?Math.ceil(r/3600)+"\u5C0F\u65F6":r>60?Math.ceil(r/60)+"\u5206\u949F":r>10?r+"\u79D2":"\u521A\u521A"},isMobile(n){return/^1([3456789])\d{9}$/.test(n)},isEmail(n){return/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*\.)+[a-zA-Z]*)$/i.test(n)},getDistance(n,s,r,a){let o=3.14159265359,l=6.28318530712,c=.01745329252,u=63706935e-1,f,d,h,p,w,g,M,b;return f=n*c,d=s*c,h=r*c,p=a*c,M=f-h,M>o?M=l-M:M<-o&&(M=l+M),w=u*Math.cos(d)*M,g=u*(d-p),b=Math.sqrt(w*w+g*g).toFixed(0),b},setTile(n){document.title=n;let s=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(s)){let r=document.createElement("iframe");r.style.display="none",r.setAttribute("src","/favicon.ico");let a=function(){setTimeout(function(){r.removeEventListener("load",a),document.body.removeChild(r)},0)};r.addEventListener("load",a),document.body.appendChild(r)}},cloneJSON(n){return typeof n!="object"||n===null?n:$A.jsonParse($A.jsonStringify(n))},jsonParse(n,s=t){if(n===null)return s||{};if(typeof n=="object")return n;try{return JSON.parse(n.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch{return s||{}}},jsonStringify(n,s=t){if(typeof n!="object")return n;try{return JSON.stringify(n)}catch{return s||""}},resize(n,s){let r=$A(n);if(r.length===0)return;let a=parseInt(r.outerHeight()),o=parseInt(r.outerWidth()),l=setInterval(()=>{r.length===0&&clearInterval(l);let c=parseInt(r.outerHeight()),u=parseInt(r.outerWidth());(a!==c||o!==u)&&(a=c,o=u,$A.openLog&&console.log(o,a),typeof s=="function"&&s())},250)},screenOrientation(){return $A(e).width()-$A(e).height()>50?"landscape":"portrait"},isIos(){let n=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return n&&/iphone|ipad|ipod|ios/.test(n)},isAndroid(){let n=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return n&&n.indexOf("android")>0},isWeixin(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/MicroMessenger/i)+""=="micromessenger"},isChrome(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/Chrome/i)+""=="chrome"},isDesktop(){return!(typeof e!="undefined"&&e.navigator.userAgent).match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},getObject(n,s){let r=n;return this.count(n)===0||this.count(s)===0?"":(s.replace(/,/g,"|").replace(/\./g,"|").split("|").some(o=>{r=typeof r[o]=="undefined"?"":r[o]}),r)},count(n){try{if(typeof n=="undefined")return 0;if(typeof n=="number"&&(n+=""),typeof n.length=="number")return n.length;{let s=0,r;for(r in n)s++;return s}}catch{return 0}},stringLength(n){return typeof n=="number"||typeof n=="string"?(n+"").length:0},arrayLength(n){if(n)try{return n.length}catch{return 0}return 0},objImplode(n){if(n===null)return"";let s="";return $A.each(n,(r,a)=>{a!==null&&(typeof a=="object"&&this.count(a)>0?s+=this.objImplode(a):s+=String(a))}),s.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter(n){let s=this.urlParameterAll();return typeof n=="undefined"?s:s[n]},urlParameterAll(){let n=e.location.search||e.location.hash||"",s=[];this.strExists(n,"?")&&(s=this.getMiddle(n,"?").split("&"));let r={};for(let a=0;a{n=$A.removeURLParameter(n,a)}),n;let r=n.split("?");if(r.length>=2){let a=encodeURIComponent(s)+"=",o=r[1].split(/[&;]/g);for(let l=o.length;l-- >0;)o[l].lastIndexOf(a,0)!==-1&&o.splice(l,1);return r[0]+(o.length>0?"?"+o.join("&"):"")}return n},urlAddParams(n,s){if($A.isJson(s)){n&&(n=this.removeURLParameter(n,Object.keys(s))),n+="",n+=n.indexOf("?")===-1?"?":"";for(let r in s)!s.hasOwnProperty(r)||(n+="&"+r+"="+s[r])}return this.rightDelete(n.replace("?&","?"),"?")},reloadUrl(){if($A.isEEUiApp&&$A.isAndroid()){let n=e.location.href,s="_=",r=new RegExp(s+"\\d+"),a=this.Time();if(n.indexOf(s)>-1)n=n.replace(r,s+a);else if(n.indexOf("?")>-1){let o=n.split("?");o[1]?n=o[0]+"?"+s+a+"&"+o[1]:n=o[0]+"?"+s+a}else n.indexOf("#")>-1?n=n.split("#")[0]+"?"+s+a+location.hash:n=n+"?"+s+a;$A.eeuiAppSetUrl(n)}else e.location.reload()},stringConnect(...n){let s=null,r="";return n.forEach(a=>{s===null?s=a:a&&(a&&r&&(r+=s),r+=a)}),r},objEquals(n,s){let r=n instanceof Object,a=s instanceof Object;if(!r||!a)return n===s;if(Object.keys(n).length!==Object.keys(s).length)return!1;for(let o in n)if(n.hasOwnProperty(o)){let l=n[o]instanceof Object,c=s[o]instanceof Object;if(l&&c){if(!this.objEquals(n[o],s[o]))return!1}else if(n[o]!=s[o])return!1}return!0},insert2Input(n,s){if(n===null||typeof n!="object")return;typeof n.length=="number"&&n.length>0&&(n=n[0]);let r=typeof n.$el=="object"?$A(n.$el):$A(n);if(r.length===0)return;let a=r[0];if(a.tagName!="INPUT"&&a.tagName!="TEXTAREA"&&(r.find("input").length===0?r=r.find("textarea"):r=r.find("input")),r.length===0||(a=r[0],a.tagName!="INPUT"&&a.tagName!="TEXTAREA"))return;let o=r.val(),{selectionStart:l,selectionEnd:c}=a;r.val(`${o.substring(0,l)}${s}${o.substring(c,o.length)}`),a.dispatchEvent(new Event("input")),setTimeout(()=>{if(a.setSelectionRange){let u=o.substring(0,l).length+s.length;a.focus(),a.setSelectionRange(u,u)}},10)},iOSKeyboardFixer(){!this.isIos()||(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},loadScript(n){return new Promise(async(s,r)=>{if(n=$A.originUrl(n),this.rightExists(n,".css"))return s(this.loadCss(n));let a=0;for(;this.__loadScript[n]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),a++,a>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadScript[n]==="loaded")return s(!1);this.__loadScript[n]="loading";const o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=()=>{(o.readyState==="loaded"||o.readyState==="complete")&&(o.onreadystatechange=null,this.__loadScript[n]="loaded",s(!0))}:(o.onload=()=>{this.__loadScript[n]="loaded",s(!0)},o.onerror=l=>{this.__loadScript[n]="error",r(l)}),this.rightExists(n,".js")?o.src=n+"?hash="+e.systemInfo.version:o.src=n,document.body.appendChild(o)})},loadScriptS(n){return new Promise(s=>{let r=0;const a=()=>{++r{if(n=$A.originUrl(n),this.rightExists(n,".js"))return s(this.loadScript(n));let a=0;for(;this.__loadCss[n]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),a++,a>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadCss[n]==="loaded")return s(!1);this.__loadCss[n]="loading";const o=document.createElement("link");o.readyState?o.onreadystatechange=()=>{(o.readyState=="loaded"||o.readyState=="complete")&&(o.onreadystatechange=null,this.__loadCss[n]="loaded",s(!0))}:(o.onload=()=>{this.__loadCss[n]="loaded",s(!0)},o.onerror=l=>{this.__loadCss[n]="error",r(l)}),o.rel="stylesheet",this.rightExists(n,".css")?o.href=n+"?hash="+e.systemInfo.version:o.href=n,document.getElementsByTagName("head").item(0).appendChild(o)})},loadCssS(n){return new Promise(s=>{let r=0;const a=()=>{++r{n=$A.originUrl(n);let o=0;for(;this.__loadIframe[n]==="loading";)if(await new Promise(c=>setTimeout(c,1e3)),o++,o>30)return a("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadIframe[n]==="loaded")return r(!1);this.__loadIframe[n]="loading";const l=document.createElement("iframe");l.style.display="none",l.src=n,l.onload=()=>{this.__loadIframe[n]="loaded",r(!0),s>0&&setTimeout(()=>{document.body.removeChild(l),delete this.__loadIframe[n]},s)},l.onerror=c=>{this.__loadIframe[n]="error",a(c)},document.body.appendChild(l)})},loadIframes(n){return new Promise(s=>{let r=0;const a=()=>{++r{n[a]=$A.date2string(r,s)}));return n},bytesToSize(n){if(n===0)return"0 B";let s=1024,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(n)/Math.log(s));return typeof r[a]=="undefined"?"0 B":$A.runNum(n/Math.pow(s,a),2)+" "+r[a]},html2Escape(n){return!n||n==""?"":n.replace(/[<>&"]/g,function(s){return{"<":"<",">":">","&":"&",'"':"""}[s]})},getDomain(n){let s=/http(s)?:\/\/([^\/]+)/i,r=(n+"").match(s);return r!=null&&r.length>0?r[2]:""},scrollToView(n,s){if(!!n){if(typeof s=="undefined"||s===!0?s={block:"start",inline:"nearest"}:s===!1&&(s={block:"end",inline:"nearest"}),typeof s.scrollMode!="undefined"&&typeof e.scrollIntoView=="function"){e.scrollIntoView(n,s);return}try{n.scrollIntoView(s)}catch{typeof e.scrollIntoView=="function"&&e.scrollIntoView(n,s)}}},scrollIntoViewIfNeeded(n){!n||(typeof n.scrollIntoViewIfNeeded=="function"?n.scrollIntoViewIfNeeded():$A.scrollToView(n,{block:"nearest",inline:"nearest"}))},scaleToScale(n,s,r,a){let o,l;return n>0&&s>0?(n/s>=r/a?n>r?(o=r,l=s*r/n):(o=n,l=s):s>a?(l=a,o=n*a/s):(o=n,l=s),{width:parseInt(o),height:parseInt(l)}):{width:n,height:s}},scrollPreventThrough(n){if(!n||n.getAttribute("data-prevent-through")==="yes")return;n.setAttribute("data-prevent-through","yes");let s=null;n.addEventListener("touchstart",function(r){s=Math.floor(r.targetTouches[0].clientY)}),n.addEventListener("touchmove",function(r){let a=Math.floor(r.targetTouches[0].clientY),o=n.scrollTop,l=n.scrollHeight,c=n.clientHeight;(o<=0&&a-s>0||o>=l-c&&a-s<0)&&r.preventDefault()},!1)},getAttr(n,s,r=""){return n?n.getAttribute(s):r},onBlur(n=null,s=!1){setTimeout(r=>{if($A.eeuiAppKeyboardHide(),typeof n=="boolean"&&(s=n,n=null),n)n.blur();else if(document.activeElement)if(s===!0&&document.activeElement.tagName==="BODY"){let a=document.getElementById("toLoseFocusInput");a||(a=document.createElement("input"),a.id="toLoseFocusInput",a.type="text",a.style.position="fixed",a.style.top="0px",a.style.left="0px",a.style.zIndex="-1",a.style.opacity="0",a.addEventListener("focus",o=>{document.activeElement.blur()}),document.body.appendChild(a)),setTimeout(o=>{a.focus()},1)}else document.activeElement.blur()},1)},sortObject(n,s=[]){return Object.keys(n).sort().reduce(function(r,a){return s.includes(a)||(r[a]=n[a]),r},{})}}),i.extend({__IDBTimer:{},async IDBTest(){try{$A.isIos()&&await Z.setItem("__test__",$A.Time()),$A.openLog&&console.log("IDBTest OK")}catch(n){$A.openLog?(console.error("IDBTest Error: ",n),$A.modalWarning({content:n.message,onOk:()=>{$A.reloadUrl()}})):$A.reloadUrl()}},IDBSave(n,s,r=100){typeof this.__IDBTimer[n]!="undefined"&&(clearTimeout(this.__IDBTimer[n]),delete this.__IDBTimer[n]),this.__IDBTimer[n]=setTimeout(async a=>{await Z.setItem(n,s)},r)},IDBDel(n){Z.removeItem(n).then(s=>{})},IDBSet(n,s){return Z.setItem(n,s)},IDBRemove(n){return Z.removeItem(n)},IDBClear(){return Z.clear()},IDBValue(n){return Z.getItem(n)},async IDBString(n,s=""){const r=await this.IDBValue(n);return typeof r=="string"||typeof r=="number"?r:s},async IDBInt(n,s=0){const r=await this.IDBValue(n);return typeof r=="number"?r:s},async IDBBoolean(n,s=!1){const r=await this.IDBValue(n);return typeof r=="boolean"?r:s},async IDBArray(n,s=[]){const r=await this.IDBValue(n);return this.isArray(r)?r:s},async IDBJson(n,s={}){const r=await this.IDBValue(n);return this.isJson(r)?r:s}}),i.extend({setStorage(n,s){return this.__operationStorage(n,s)},getStorageValue(n){return this.__operationStorage(n)},getStorageString(n,s=""){let r=this.__operationStorage(n);return typeof r=="string"||typeof r=="number"?r:s},getStorageInt(n,s=0){let r=this.__operationStorage(n);return typeof r=="number"?r:s},getStorageBoolean(n,s=!1){let r=this.__operationStorage(n);return typeof r=="boolean"?r:s},getStorageArray(n,s=[]){let r=this.__operationStorage(n);return this.isArray(r)?r:s},getStorageJson(n,s={}){let r=this.__operationStorage(n);return this.isJson(r)?r:s},__operationStorage(n,s){if(!n)return;let r="__state__";if(n.substring(0,5)==="cache"&&(r="__state:"+n+"__"),typeof s=="undefined")return this.__loadFromlLocal(n,"",r);this.__savaToLocal(n,s,r)},__savaToLocal(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.localStorage[r];a?a=JSON.parse(a):a={},a[n]=s,e.localStorage[r]=JSON.stringify(a)}catch{}},__loadFromlLocal(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.localStorage[r];return!a||(a=JSON.parse(a),!a||typeof a[n]=="undefined")?s:a[n]}catch{return s}}}),i.extend({setSessionStorage(n,s){return this.__operationSessionStorage(n,s)},getSessionStorageValue(n){return this.__operationSessionStorage(n)},getSessionStorageString(n,s=""){let r=this.__operationSessionStorage(n);return typeof r=="string"||typeof r=="number"?r:s},getSessionStorageInt(n,s=0){let r=this.__operationSessionStorage(n);return typeof r=="number"?r:s},__operationSessionStorage(n,s){if(!n)return;let r="__state__";if(n.substring(0,5)==="cache"&&(r="__state:"+n+"__"),typeof s=="undefined")return this.__loadFromlSession(n,"",r);this.__savaToSession(n,s,r)},__savaToSession(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.sessionStorage.getItem(r);a?a=JSON.parse(a):a={},a[n]=s,e.sessionStorage.setItem(r,JSON.stringify(a))}catch{}},__loadFromlSession(n,s,r){try{typeof r=="undefined"&&(r="__seller__");let a=e.sessionStorage.getItem(r);return!a||(a=JSON.parse(a),!a||typeof a[n]=="undefined")?s:a[n]}catch{return s}}}),i.extend({serializeObject(n,s){if(typeof n=="string")return n;let r=[],a="&";s=s||[];let o;function l(u){if(s.length>0){let f="";for(let d=0;d0&&r.push(f.join(a))}else n[u]===null?r.push(l(u)+"="):typeof n[u]=="object"?(o=s.slice(),o.push(u),f=i.serializeObject(n[u],o),f!==""&&r.push(f)):typeof n[u]!="undefined"&&n[u]!==""?r.push(l(u)+"="+c(n[u])):n[u]===""&&r.push(l(u))}return r.join(a)},globalAjaxOptions:{},ajaxSetup(n){n.type&&(n.method=n.type),i.each(n,function(s,r){i.globalAjaxOptions[s]=r})},_jsonpRequests:0,ihttp(n){let s={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},r=["beforeSend","error","complete","success","statusCode"];n.type&&(n.method=n.type),i.each(i.globalAjaxOptions,function(d,h){r.indexOf(d)<0&&(s[d]=h)});function a(d,h,p){let w=arguments;d&&i(document).trigger(d,h),p&&(p in i.globalAjaxOptions&&i.globalAjaxOptions[p](w[3],w[4],w[5],w[6]),n[p]&&n[p](w[3],w[4],w[5],w[6]))}i.each(s,function(d,h){d in n||(n[d]=h)}),n.url||(n.url=e.location.toString());let o=n.url.indexOf("?")>=0?"&":"?",l=n.method.toUpperCase();if((l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&n.data){let d;typeof n.data=="string"?n.data.indexOf("?")>=0?d=n.data.split("?")[1]:d=n.data:d=i.serializeObject(n.data),d.length&&(n.url+=o+d,o==="?"&&(o="&"))}if(n.dataType==="json"&&n.url.indexOf("callback=")>=0){let d="__jsonp_"+Date.now()+i._jsonpRequests++,h,p=n.url.split("callback="),w=p[0]+"callback="+d;if(p[1].indexOf("&")>=0){let M=p[1].split("&").filter(function(b){return b.indexOf("=")>0}).join("&");M.length>0&&(w+="&"+M)}let g=document.createElement("script");g.type="text/javascript",g.onerror=function(){clearTimeout(h),a(t,t,"error",null,"scripterror"),a("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},g.src=w,e[d]=function(M){clearTimeout(h),a(t,t,"success",M),g.parentNode.removeChild(g),g=null,delete e[d]},document.querySelector("head").appendChild(g),n.timeout>0&&(h=setTimeout(function(){g.parentNode.removeChild(g),g=null,a(t,t,"error",null,"timeout")},n.timeout));return}(l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&n.cache===!1&&(n.url+=o+"_nocache="+Date.now());let c=new XMLHttpRequest;c.requestUrl=n.url,c.requestParameters=n,c.open(l,n.url,n.async,n.user,n.password);let u=null;if((l==="POST"||l==="PUT"||l==="PATCH")&&n.data)if(n.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(n.data.constructor)>=0)u=n.data;else{let h="---------------------------"+Date.now().toString(16);n.contentType==="multipart/form-data"?c.setRequestHeader("Content-Type","multipart/form-data; boundary="+h):c.setRequestHeader("Content-Type",n.contentType),u="";let p=i.serializeObject(n.data);if(n.contentType==="multipart/form-data"){h="---------------------------"+Date.now().toString(16),p=p.split("&");let w=[];for(let g=0;g':"<"+t+">";return n+e+" `};x.prototype.strong=function(e){return""+e+""};x.prototype.em=function(e){return""+e+""};x.prototype.codespan=function(e){return""+e+""};x.prototype.br=function(){return this.options.xhtml?"
":"
"};x.prototype.del=function(e){return""+e+""};x.prototype.link=function(e,i,t){if(e=mt(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var n='",n};x.prototype.image=function(e,i,t){if(e=mt(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var n=''+t+'":">",n};x.prototype.text=function(e){return e};function K(){}K.prototype.strong=K.prototype.em=K.prototype.codespan=K.prototype.del=K.prototype.text=function(e){return e};K.prototype.link=K.prototype.image=function(e,i,t){return""+t};K.prototype.br=function(){return""};function j(e){this.tokens=[],this.token=null,this.options=e||C.defaults,this.options.renderer=this.options.renderer||new x,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new xe}j.parse=function(e,i){var t=new j(i);return t.parse(e)};j.prototype.parse=function(e){this.inline=new B(e.links,this.options),this.inlineText=new B(e.links,z({},this.options,{renderer:new K})),this.tokens=e.reverse();for(var i="";this.next();)i+=this.tok();return i};j.prototype.next=function(){return this.token=this.tokens.pop(),this.token};j.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};j.prototype.parseText=function(){for(var e=this.token.text;this.peek().type==="text";)e+=` `+this.next().text;return this.inline.output(e)};j.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,gt(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var e="",i="",t,n,s,r;for(s="",t=0;t?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(i)){var t=i;do this.seen[t]++,i=t+"-"+this.seen[t];while(this.seen.hasOwnProperty(i))}return this.seen[i]=0,i};function T(e,i){if(i){if(T.escapeTest.test(e))return e.replace(T.escapeReplace,function(t){return T.replacements[t]})}else if(T.escapeTestNoEncode.test(e))return e.replace(T.escapeReplaceNoEncode,function(t){return T.replacements[t]});return e}T.escapeTest=/[&<>"']/;T.escapeReplace=/[&<>"']/g;T.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"};T.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;T.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function gt(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(i,t){return t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function P(e,i){return e=e.source||e,i=i||"",{replace:function(t,n){return n=n.source||n,n=n.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,i)}}}function mt(e,i,t){if(e){try{var n=decodeURIComponent(gt(t)).replace(/[^\w:]/g,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}i&&!wn.test(t)&&(t=_n(i,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function _n(e,i){return ue[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?ue[" "+e]=e+"/":ue[" "+e]=_t(e,"/",!0)),e=ue[" "+e],i.slice(0,2)==="//"?e.replace(/:[\s\S]*/,":")+i:i.charAt(0)==="/"?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+i:e+i}var ue={},wn=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ee(){}ee.exec=ee;function z(e){for(var i=1,t,n;i=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),n=t.split(/ \|/),s=0;if(n.length>i)n.splice(i);else for(;n.lengthAn error occurred:

"+T(l.message+"",!0)+"
";throw l}}C.options=C.setOptions=function(e){return z(C.defaults,e),C};C.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new x,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};C.defaults=C.getDefaults();C.Parser=j;C.parser=j.parse;C.Renderer=x;C.TextRenderer=K;C.Lexer=J;C.lexer=J.lex;C.InlineLexer=B;C.inlineLexer=B.output;C.Slugger=xe;C.parse=C;m.initHighlightingOnLoad();const vn=new C.Renderer;var An=C.setOptions({renderer:vn,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,highlight:function(e){return m.highlightAuto(e).value}}),bn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{ref:"preview",staticClass:"markdown-preview-warp"},[t("div",{class:`markdown-preview ${"markdown-theme-"+e.theme}`,domProps:{innerHTML:e._s(e.html)}}),t("div",{class:["preview-img",e.previewImgModal?"active":""]},[t("span",{staticClass:"close icon-close iconfont",on:{click:function(n){e.previewImgModal=!1}}}),t("img",{class:[e.previewImgMode],attrs:{src:e.previewImgSrc,alt:""}})])])},$n=[];const kn={name:"markdown-preview",props:{initialValue:{type:String,default:""},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"\u590D\u5236\u4EE3\u7801"}},data(){return{html:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:""}},mounted(){this.translateMarkdown()},methods:{tocLevel(e,i){let t=9999;return i.forEach(({level:n})=>{t=Math.min(t,n)}),t===9999?e:e-(t-1)},translateMarkdown(){let e=An(this.initialValue,{sanitize:!1,...this.markedOptions}).replace(/href="/gi,'target="_blank" href="');if(this.copyCode&&(e=e.replace(/
/g,'
'+this.copyBtnText+"
").replace(/<\/pre>/g,"
")),/\[\[TOC\]\]/.test(e)){let i="";ke.tocItems.forEach(t=>{i+=`
  • ${t.text}
  • `}),e=e.replace(/\[\[TOC\]\]/g,`
      ${i}
    `)}this.html=e,this.addCopyListener(),this.addImageClickListener()},addCopyListener(){setTimeout(()=>{const e=document.querySelectorAll(".code-block .copy-code");this.btns=e;for(let i=0,t=e.length;i{const n=e[i].parentNode.querySelectorAll("pre")[0].innerText,s=document.createElement("input");s.setAttribute("value",n),document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s),this.$emit("on-copy",n)}},600)},addImageClickListener(){const{imgs:e=[]}=this;if(e.length>0)for(let i=0,t=e.length;i{if(!!this.$refs.preview){this.imgs=this.$refs.preview.querySelectorAll("img");for(let i=0,t=this.imgs.length;i{const n=this.imgs[i].getAttribute("src");this.previewImage(n)}}},600)},previewImage(e){const i=new Image;i.src=e,i.onload=()=>{const t=i.naturalWidth;i.naturalHeight/t>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=e,this.previewImgModal=!0}}},watch:{initialValue(){this.translateMarkdown()}}},We={};var Sn=O(kn,bn,$n,!1,En,"7c98e74e",null,null);function En(e){for(let i in We)this[i]=We[i]}var Tn=function(){return Sn.exports}(),In=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-right-bottom"},[e.showSSO?t("div",{staticClass:"common-right-bottom-link",on:{click:e.useSSOLogin}},[t("Icon",{attrs:{type:"ios-globe-outline"}}),e._v(" "+e._s(e.$L("\u4F7F\u7528 SSO \u767B\u5F55"))+" ")],1):e._e(),e.showDown?[e.downloadUrl?t("a",{staticClass:"common-right-bottom-link",attrs:{href:e.downloadUrl,target:"_blank"}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u5BA2\u6237\u7AEF\u4E0B\u8F7D"))+" ")],1):e.updateVersion&&e.updateBottomShow&&e.$Electron?t("div",{staticClass:"common-right-bottom-link",on:{click:function(n){e.updateShow=!0}}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u66F4\u65B0\u5BA2\u6237\u7AEF"))+" ")],1):e._e()]:e._e(),e.showPrivacy?t("a",{staticClass:"common-right-bottom-link",attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v(" \u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B ")]):e._e(),t("Modal",{attrs:{closable:!1,"mask-closable":!1,"class-name":"common-right-bottom-notification"},model:{value:e.updateShow,callback:function(n){e.updateShow=n},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("MarkdownPreview",{attrs:{initialValue:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(n){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),t("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],2)},Cn=[];const Dn={name:"RightBottom",components:{MarkdownPreview:Tn},data(){return{loadIng:0,subscribe:null,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted(){this.prefetchResources(),this.checkVersion(),this.$Electron&&(this.subscribe=V.Store.subscribe("updateNotification",e=>{this.updateShow=!0}),this.$Electron.registerMsgListener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=!$A.strExists(this.updateNote,`[${this.updateVersion}-Silence]`)}))},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{showSSO(){return this.$isSoftware&&["login"].includes(this.$route.name)},showDown(){return!this.$isEEUiApp&&!this.windowTouch&&["login","index","manage-dashboard"].includes(this.$route.name)},showPrivacy(){return $A.isDooServer()&&this.$isEEUiApp&&["login"].includes(this.$route.name)}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},prefetchResources(){this.isNotServer()||this.$Electron&&$A.$isSubElectron||_e.get($A.apiUrl("system/prefetch")).then(({status:e,data:i})=>{e===200&&i.forEach(t=>{const n=document.createElement("link");n.rel="prefetch",n.href=t,n.onload=()=>{document.head.removeChild(n)},n.onerror=()=>{document.head.removeChild(n)},document.head.appendChild(n)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(_e.get($A.apiUrl("system/version")).then(({status:e,data:i})=>{e===200&&(this.apiVersion=i.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:`\u670D\u52A1\u5668\uFF08${$A.getDomain($A.mainUrl())}\uFF09\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002`}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(i.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.downloadUrl=`${e.url}/latest`;break;case"github":(async i=>{let t="cacheAppdown::"+this.apiVersion,n=await $A.IDBJson(t),s=600;if(n.time&&n.time+s>Math.round(new Date().getTime()/1e3)){this.downloadUrl=n.data.html_url;return}this.loadIng>0||(this.loadIng++,_e.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:r,data:a})=>{this.loadIng--,r===200&&$A.isArray(a)&&(n.time=Math.round(new Date().getTime()/1e3),n.data=a.find(({tag_name:o})=>this.compareVersion(this.tagVersion(o),this.apiVersion)===0)||{},$A.IDBSave(t,n),this.downloadUrl=n.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){V.Store.set("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,i){let t=0,n=0;if(e===i)return 0;const s=(r,a)=>{let o=a;for(;r[o]!=="."&&ol?1:-1;t=r+1,n=a+1}for(;t0)return 1;t=r+1}for(;n0)return-1;n=r+1}return 0}}},Ge={};var xn=O(Dn,In,Cn,!1,Mn,null,null,null);function Mn(e){for(let i in Ge)this[i]=Ge[i]}var Ln=function(){return xn.exports}(),On=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[e.list.length>0?[e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e._e(),e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(n){e.show=!1}}}):e._e()]:e._e()],2)},Pn=[];const Rn=()=>k(()=>import("./view.d6249067.js"),["js/build/view.d6249067.js","js/build/view.5e67e6f1.css","js/build/element-sea.74fd8f4e.js","js/build/vue.da9c4dc7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js"]),Nn=()=>k(()=>import("./swipe.9a811620.js"),["js/build/swipe.9a811620.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.dc41054b.js","js/build/photoswipe.0fb72215.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Bn={name:"PreviewImage",components:{PreviewImageSwipe:Nn,PreviewImageView:Rn},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},je={};var Un=O(Bn,On,Pn,!1,Fn,null,null,null);function Fn(e){for(let i in je)this[i]=je[i]}var Wn=function(){return Un.exports}(),Gn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}})},jn=[];const zn={name:"PreviewImageState",components:{PreviewImage:Wn},computed:{...Y(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUiApp){let i=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),t=e.map(s=>$A.isJson(s)?$A.thumbRestore(s.src):$A.thumbRestore(s)),n=50;if(t.length>n){const s=[];let r=0;for(;s.length=0&&s.unshift(t[a]),oa===t[i]),t=s}$A.eeuiAppSendMessage({action:"picturePreview",position:i,paths:t})}else this.show=!0}}},ze={};var Hn=O(zn,Gn,jn,!1,Kn,null,null,null);function Kn(e){for(let i in ze)this[i]=ze[i]}var Vn=function(){return Hn.exports}(),Jn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?t("Alert",{attrs:{type:"error","show-icon":"",closable:""}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[t("Modal",{attrs:{width:416,closable:!1,"footer-hide":!0,"class-name":"common-network-exception-modal"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))])]),t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"primary"},on:{click:function(n){e.show=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])]:e._e()],2)},Yn=[];const Zn={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1}},beforeDestroy(){this.show=!1},computed:{...Y(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(e){this.show=e,e&&this.checkNetwork()},immediate:!0}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},checkNetwork(){this.__timer&&clearTimeout(this.__timer),this.__timer=setTimeout(()=>{!this.ajaxNetworkException||this.isNotServer()||this.$store.dispatch("call",{url:"system/setting"}).finally(()=>{this.checkNetwork()})},3e3)}}},He={};var Xn=O(Zn,Jn,Yn,!1,qn,null,null,null);function qn(e){for(let i in He)this[i]=He[i]}var Qn=function(){return Xn.exports}(),ei=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.show?t("div",{staticClass:"common-guide"},[t("img",{attrs:{src:e.src,width:"100%"}}),t("div",[t("Button",{attrs:{type:"default",size:"large"},on:{click:function(n){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},ti=[];const ni={name:"GuidePage",data(){return{show:!1,src:""}},mounted(){this.src=$.apiUrl("../images/guide.png")},watch:{$route:{handler(e){this.show=!1,navigator.userAgent.indexOf("MicroMessenger")!==-1&&e.name=="manage-project-invite"&&(this.show=!0)},immediate:!0}}},Ke={};var ii=O(ni,ei,ti,!1,si,null,null,null);function si(e){for(let i in Ke)this[i]=Ke[i]}var ri=function(){return ii.exports}(),ai=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"task-menu-icon",on:{click:e.handleClick}},[e.loadIng?t("div",{staticClass:"loading"},[t("Loading")],1):[e.task.complete_at?t("Icon",{staticClass:"completed",attrs:{type:e.completedIcon}}):t("Icon",{staticClass:"uncomplete",attrs:{type:e.icon}})]],2)},oi=[];const li={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},operationShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"},projectId:{type:Number,default:0}},computed:{...Y(["loads","taskFlows"]),...ct(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(e){this.$store.state.taskOperation={event:e,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,operationShow:this.operationShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,projectId:this.projectId,onUpdate:i=>{this.$emit("on-update",i)}}},updateTask(e){if(this.loadIng)return;Object.keys(e).forEach(t=>this.$set(this.task,t,e[t]));const i=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",i).then(({data:t,msg:n})=>{$A.messageSuccess(n),this.$store.dispatch("saveTaskBrowse",i.task_id),this.$emit("on-update",t)}).catch(({msg:t})=>{$A.modalError(t),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{})})}}},Ve={};var ci=O(li,ai,oi,!1,ui,null,null,null);function ui(e){for(let i in Ve)this[i]=Ve[i]}var di=function(){return ci.exports}(),fi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(n){return n?t("li",{on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:n,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],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(n){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.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(n){e.showModal=n},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(n){return t("li",{attrs:{"data-id":n.userid},on:{click:function(s){return s.stopPropagation(),e.onRemoveItem(n.userid)}}},[n.type=="group"?[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:32}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:n.userid}})],2)}),0)]):e._e(),t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-pre"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1),t("Input",{attrs:{placeholder:e.localPlaceholder,clearable:""},model:{value:e.searchKey,callback:function(n){e.searchKey=n},expression:"searchKey"}})],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(n){return t("li",{key:n.key,class:{active:e.switchActive===n.key},on:{click:function(s){e.switchActive=n.key}}},[e._v(e._s(e.$L(n.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(n){return t("li",{class:e.selectClass(n.userid_list),on:{click:function(s){return e.onSelectProject(n.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(n.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(n.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(n.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(n){return t("li",{class:{selected:e.selects.includes(n.userid),disabled:e.isUncancelable(n.userid)||e.isDisabled(n.userid)},on:{click:function(s){return e.onSelectItem(n)}}},[e.selects.includes(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),n.type=="group"?t("div",{staticClass:"user-modal-avatar"},[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:40}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(n.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:n.userid,size:40,"show-name":""}})],1)})],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)},hi=[];const pi={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},disabled:{type:Boolean,default:!1},onlyGroup:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",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(i=>$A.runNum(i)).filter(i=>i>0))),this.values=e},immediate:!0},isWhole:{handler(e){e||this.onlyGroup?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?this.searchBefore():this.searchKey="",this.$emit("on-show-change",e)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()}},computed:{...Y(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:i,dialogId:t,onlyGroup:n}){return e===0&&i===0&&t===0&&!n},lists({switchActive:e,searchKey:i,recents:t,contacts:n,projects:s}){switch(e){case"recent":return i?t.filter(r=>`${r.name}`.indexOf(i)>-1):t;case"contact":return n;case"project":return s}return[]},isSelectAll({lists:e,selects:i}){return e.length>0&&e.filter(t=>i.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(i=>$A.leftExists(i,"d:")?this.recents.find(t=>t.userid===i):{type:"user",userid:i})},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const i=e.filter(t=>this.selects.includes(t)).length;if(i===e.length)return"ios-checkmark-circle";if(i>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=>this.onlyGroup&&e.type!="group"||e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,i)=>e.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(e.top_at):e.todo_num>0||i.todo_num>0?i.todo_num-e.todo_num:$A.Date(i.last_at)-$A.Date(e.last_at)).map(({id:e,name:i,type:t,group_type:n,avatar:s,dialog_user:r})=>({name:i,type:t,group_type:n,avatar:s,userid:t==="user"?r.userid:`d:${e}`}))},searchContact(){let e=this.searchKey;const i=this.searchCache.find(t=>t.type==="contact"&&t.key==e);i&&(this.contacts=i.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(r=>Object.assign(r,{type:"user"})),this.contacts=t;const n=this.searchCache.findIndex(r=>r.key==e),s={type:"contact",key:e,data:t,time:$A.Time()};n>-1?this.searchCache.splice(n,1,s):this.searchCache.push(s)}).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 i=this.searchCache.find(t=>t.type==="project"&&t.key==e);i&&(this.projects=i.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(r=>Object.assign(r,{type:"project"})),this.projects=t;const n=this.searchCache.findIndex(r=>r.key==e),s={type:"project",key:e,data:t,time:$A.Time()};n>-1?this.searchCache.splice(n,1,s):this.searchCache.push(s)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},onSelection(){this.disabled||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(i=>i!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){if(this.multipleMax>1){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects=[]}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`))})}},onSelectProject(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const i=e.filter(n=>!this.isUncancelable(n));i.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(n=>!i.includes(n));break;default:const t=e.filter(n=>!this.isDisabled(n));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(n=>!this.selects.includes(n))),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(i=>i!=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("on-submit",this.values),!this.beforeSubmit){this.hide();return}const i=this.beforeSubmit();i&&i.then?(this.submittIng++,i.then(()=>{this.hide()}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.hide()},show(){this.onSelection()},hide(){this.showModal=!1}}},Je={};var gi=O(pi,fi,hi,!1,mi,null,null,null);function mi(e){for(let i in Je)this[i]=Je[i]}var _i=function(){return gi.exports}(),wi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"task-move"},[t("Cascader",{attrs:{data:e.cascaderData,clearable:!1,placeholder:e.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":e.cascaderLoadData,filterable:""},on:{"on-visible-change":function(n){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(n){e.cascader=n},expression:"cascader"}}),t("div",{staticClass:"task-move-content"},[t("div",{staticClass:"task-move-content-old"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.$L("\u79FB\u52A8\u524D")))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),e.task.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.task.flow_item_status},[e._v(e._s(e.task.flow_item_name))])]):e._e()]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.ownerUserids,callback:function(n){e.ownerUserids=n},expression:"ownerUserids"}})],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.assistUserids,callback:function(n){e.assistUserids=n},expression:"assistUserids"}})],1)]),t("div",{staticClass:"task-move-content-new"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.$L("\u79FB\u52A8\u540E")))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("TaskMenu",{ref:`taskMenu_${e.task.id}`,attrs:{task:e.tasks,"project-id":e.cascader[0],"color-show":!1,"operation-show":!1,"load-status":e.task.loading===!0},on:{"on-update":e.onStatusUpdate}}),e.updateData.flow.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.updateData.flow.flow_item_status,on:{click:function(n){return n.stopPropagation(),e.openMenu(n,e.tasks)}}},[e._v(e._s(e.updateData.flow.flow_item_name))])]):e._e()],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"add-icon":!1},model:{value:e.updateData.owner_userids,callback:function(n){e.$set(e.updateData,"owner_userids",n)},expression:"updateData.owner_userids"}})],1)]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"add-icon":!1},model:{value:e.updateData.assist_userids,callback:function(n){e.$set(e.updateData,"assist_userids",n)},expression:"updateData.assist_userids"}})],1)])])]),t("div",{staticClass:"ivu-modal-footer"},[t("div",{staticClass:"adaption"},[t("Button",{attrs:{type:"default"},on:{click:e.close}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onConfirm}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])],1)},yi=[];const vi={name:"TaskMove",components:{TaskMenu:di,UserSelect:_i},props:{value:{type:Boolean,default:!1},task:{type:Object,default:!1}},data(){return{tasks:{},cascader:[],cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],loadIng:0,flowItemId:0,ownerUserids:[],assistUserids:[],updateData:{flow:{},owner_userids:[],assist_userids:[]}}},async mounted(){this.initData()},computed:{...Y(["cacheProjects","cacheColumns"])},watch:{cascader(e){var t,n;this.tasks.flow_item_id=this.flowItemId,e[0]!=this.task.project_id?(this.updateData.flow.flow_item_id=0,this.updateData.flow.flow_item_name="",this.updateData.flow.flow_item_status=""):(this.updateData.flow.flow_item_id=this.flowItemId,this.updateData.flow.flow_item_name=this.task.flow_item_name,this.updateData.flow.flow_item_status=this.task.flow_item_status);const i=((n=(t=this.cacheProjects.find(s=>s.id==e[0]))==null?void 0:t.project_user)==null?void 0:n.map(s=>s.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(s=>s.owner&&i.indexOf(s.userid)!==-1).sort((s,r)=>s.id-r.id).map(s=>s.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(s=>!s.owner&&i.indexOf(s.userid)!==-1).sort((s,r)=>s.id-r.id).map(s=>s.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(i=>i.owner).sort((i,t)=>i.id-t.id).map(i=>i.userid),this.assistUserids=(this.task.task_user||[]).filter(i=>!i.owner).sort((i,t)=>i.id-t.id).map(i=>i.userid),this.tasks=JSON.parse(JSON.stringify(this.task));const e=$A.cloneJSON(this.cacheProjects).sort((i,t)=>i.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(i.top_at):t.id-i.id);this.cascaderData=e.map(i=>{const t=this.cacheColumns.filter(({project_id:s})=>s==i.id).map(s=>({value:s.id,label:s.name})),n={value:i.id,label:i.name,children:t};return t.length==0&&(n.loading=!1),n})},cascaderLoadData(e,i){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(n=>({value:n.id,label:n.name})),e.loading=!1,i()}).catch(()=>{e.loading=!1,i()})},async onConfirm(){if(this.task.project_id==this.cascader[0]&&this.task.column_id==this.cascader[1]){$A.messageError("\u672A\u53D8\u66F4\u79FB\u52A8\u9879");return}if(!this.updateData.flow.flow_item_id){$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001");return}this.loadIng++,this.$store.dispatch("call",{url:"project/task/move",data:{task_id:this.task.id,project_id:this.cascader[0],column_id:this.cascader[1],flow_item_id:this.updateData.flow.flow_item_id,owner:this.updateData.owner_userids,assist:this.updateData.assist_userids}}).then(({data:e,msg:i})=>{this.loadIng--,e.column_name="",e.project_name="",this.$store.dispatch("saveTask",e),$A.messageSuccess(i),this.close()}).catch(({msg:e})=>{this.loadIng--,$A.modalError(e)})},close(){this.$emit("input",!this.value)},openMenu(e,i){const t=this.$refs[`taskMenu_${i.id}`];t&&t.handleClick(e)},onStatusUpdate(e){this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},Ye={};var Ai=O(vi,wi,yi,!1,bi,null,null,null);function bi(e){for(let i in Ye)this[i]=Ye[i]}var $i=function(){return Ai.exports}(),ki=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("EDropdown",{ref:"dropdown",staticClass:"task-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:"bottom"},on:{command:e.dropTask,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"task-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"task-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"task-operation-more-warp",class:e.size},[t("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(n){return t("EDropdownItem",{key:n.id,attrs:{command:`turn::${n.id}`}},[t("div",{staticClass:"item flow"},[n.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?t("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):t("Icon",{attrs:{type:"md-radio-button-off"}}),t("div",{staticClass:"flow-name",class:n.status},[e._v(e._s(n.name))])],1)])}):[e.task.complete_at?t("EDropdownItem",{attrs:{command:"uncomplete"}},[t("div",{staticClass:"item red"},[t("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):t("EDropdownItem",{attrs:{command:"complete"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:t("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[t("div",{staticClass:"load-flow-warp"},[t("Loading")],1)]),e.task.parent_id===0?[e.operationShow?[t("EDropdownItem",{attrs:{divided:e.turns.length>0,command:"archived"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"move"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE7FC")]),e._v(e._s(e.$L("\u79FB\u52A8"))+" ")])]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e(),e.colorShow?e._l(e.taskColorList,function(n,s){return t("EDropdownItem",{key:"c_"+s,attrs:{divided:s==0,command:n}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:n.primary||"#ddd"},domProps:{innerHTML:e._s(n.color==(e.task.color||"")?"":"")}}),e._v(e._s(e.$L(n.name))+" ")])])}):e._e()]:e.operationShow?t("EDropdownItem",{attrs:{command:"remove",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]):e._e()],2)])])],1),t("Modal",{attrs:{title:e.$L("\u79FB\u52A8\u4EFB\u52A1"),"mask-closable":!1,styles:{width:"90%",maxWidth:"540px"},"footer-hide":""},model:{value:e.moveTaskShow,callback:function(n){e.moveTaskShow=n},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(n){e.moveTaskShow=n},expression:"moveTaskShow"}})],1)],1)},Si=[];const Ei={name:"TaskOperation",components:{TaskMove:$i},data(){return{task:{},loadStatus:!1,colorShow:!0,operationShow:!0,updateBefore:!1,disabled:!1,size:"small",projectId:0,onUpdate:null,element:null,target:null,styles:{},moveTaskShow:!1}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...Y(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...ct(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){return this.taskFlows.find(({task_id:e})=>e==this.task.id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:i})=>i==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:i})=>e.turns.includes(i)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const i=e.event.target.getBoundingClientRect();this.styles={left:`${i.left}px`,top:`${i.top}px`,width:`${i.width}px`,height:`${i.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.operationShow=typeof e.operationShow=="undefined"?!0:e.operationShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.projectId=typeof e.projectId=="undefined"?0:e.projectId,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",{task_id:this.task.id,project_id:this.projectId}).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const i=this.task,t=n=>{n?this.$store.dispatch("saveTaskCompleteTemp",i.id):this.$store.dispatch("forgetTaskCompleteTemp",i.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let n=$A.leftDelete(e,"turn::");if(n==this.task.flow_item_id)return;let s=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},r=this.taskFlowItems.find(({id:l})=>l==n)||{},a=s.status!=="end"&&r.status==="end",o=s.status==="end"&&r.status!=="end";this.updateBefore&&(a?t(!0):o&&t(!1)),this.updateTask({flow_item_id:n,flow_item_status:r.status,flow_item_name:r.name}).then(()=>{a?t(!0):o&&t(!1)}).catch(()=>{a?t(!1):o&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.formatDate("Y-m-d H:i:s")}).then(()=>{t(!0)}).catch(()=>{t(!1)});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&t(!1),this.updateTask({complete_at:!1}).then(()=>{t(!1)}).catch(()=>{t(!0)});break;case"archived":case"remove":this.archivedOrRemoveTask(e);break;case"move":this.moveTaskShow=!0;break}},updateTask(e){return new Promise((i,t)=>{if(this.loadIng){t();return}const n=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(n),t();return}Object.keys(e).forEach(s=>this.$set(this.task,s,e[s])),this.$store.dispatch("taskUpdate",n).then(({data:s,msg:r})=>{$A.messageSuccess(r),i(),this.$store.dispatch("saveTaskBrowse",n.task_id),typeof this.onUpdate=="function"&&this.onUpdate(s)}).catch(({msg:s})=>{$A.modalError(s),this.$store.dispatch("getTaskOne",n.task_id).catch(()=>{}),t()})})},archivedOrRemoveTask(e){let i="removeTask",t="\u5220\u9664",n={task_id:this.task.id},s=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(i="archivedTask",t="\u5F52\u6863",this.task.archived_at&&(t="\u8FD8\u539F\u5F52\u6863",n={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+s,content:"\u4F60\u786E\u5B9A\u8981"+t+s+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((r,a)=>{this.$store.dispatch(i,n).then(({msg:o})=>{r(o),this.$store.dispatch("saveTaskBrowse",n.task_id)}).catch(({msg:o})=>{a(o)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let i=this.getScrollParent(this.element);if((i===window.document.body||i===window.document.documentElement)&&(i=window),this.target){if(this.target===i)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=i,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const i=e.target.getBoundingClientRect(),t=this.element.getBoundingClientRect();if(t.topi.top+i.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const i=e.parentNode;return i?i===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-y"))!==-1?i:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,i){return window.getComputedStyle(e,null)[i]}}},Ze={};var Ti=O(Ei,ki,Si,!1,Ii,null,null,null);function Ii(e){for(let i in Ze)this[i]=Ze[i]}var Ci=function(){return Ti.exports}(),Di=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{attrs:{id:"app"}},[t("keep-alive",[t("router-view",{staticClass:"child-view"})],1),t("TaskOperation"),t("FloatSpinner"),t("RightBottom"),t("PreviewImageState"),e.windowLandscape?t("NetworkException"):e._e(),t("GuidePage")],1)},xi=[];const Mi={components:{TaskOperation:Ci,NetworkException:Qn,PreviewImageState:Vn,RightBottom:Ln,FloatSpinner:Ht,GuidePage:ri},data(){return{routePath:null,searchInter:null}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),window.addEventListener("message",this.windowHandleMessage),this.searchInter=setInterval(this.searchEnter,1e3),$A.loadVConsole()},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),window.removeEventListener("message",this.windowHandleMessage),this.searchInter&&clearInterval(this.searchInter)},computed:{...Y(["ws","themeConf","windowOrientation"])},watch:{$route:{handler(e){this.routePath=e.path},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.userId>0&&this.$isEEUiApp&&($A.eeuiAppSendMessage({action:"initApp",apiUrl:$A.apiUrl(""),userid:this.userId,token:this.userToken,userAgent:window.navigator.userAgent}),setTimeout(e=>{$A.eeuiAppSendMessage({action:"setUmengAlias",url:$A.apiUrl("users/umeng/alias")})},6e3))},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},windowActive(e){e?(this.autoTheme(),this.__windowTimer&&clearTimeout(this.__windowTimer),this.__windowTimer=setTimeout(i=>{this.$store.dispatch("call",{url:"users/socket/status"}).then(t=>{this.$store.dispatch("websocketSend",{type:"handshake"}).catch(n=>{this.$store.dispatch("websocketConnection")})}).catch(t=>{this.$store.dispatch("websocketConnection")})},600)):this.$store.dispatch("audioStop",!0)}},methods:{searchEnter(){let e=$A(".sreachBox");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let i=e.find("button[type='button']"),t=null;i.length!==0&&(i.each((n,s)=>{$A(s).text().indexOf("\u641C\u7D22")&&(t=$A(s))}),t!==null&&e.find("input.ivu-input").keydown(function(n){n.keyCode==13&&(t.hasClass("ivu-btn-loading")||t.click())}))},autoTheme(){this.themeConf==="auto"&&this.$store.dispatch("synchTheme")},windowSizeListener(){const e=$A(window).width(),i=$A(window).height(),t=$A.screenOrientation();this.$store.state.windowTouch="ontouchend"in document,this.$store.state.windowWidth=e,this.$store.state.windowHeight=i,this.$store.state.windowOrientation=t,this.$store.state.windowLandscape=t==="landscape",this.$store.state.windowPortrait=t==="portrait",this.$store.state.formLabelPosition=e>576?"right":"top",this.$store.state.formLabelWidth=e>576?"auto":"",$A.eeuiAppSendMessage({action:"windowSize",width:e,height:i})},windowScrollListener(){this.$store.state.windowScrollY=window.scrollY},windowHandleMessage({data:e}){e=$A.jsonParse(e),e.action==="eeuiAppSendMessage"&&($A.isArray(e.data)?e.data:[e.data]).forEach(t=>{$A.eeuiAppSendMessage(t)})},isUseDefaultBrowser(e){if(/web\.zoom\.us/i.test(e)||/meeting\.tencent\.com/i.test(e)||/meet\.google\.com/i.test(e))return!0;if($A.getDomain(e)==$A.getDomain($A.mainUrl()))try{if(/^\/uploads\//i.test(new URL(e).pathname))return!0}catch{}return!1},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$Modal.removeLast())return!0},window.__onBeforeOpenWindow=({url:e})=>this.isUseDefaultBrowser(e)?!1:(this.$store.dispatch("openWebTabWindow",e),!0),this.$Electron.registerMsgListener("dispatch",e=>{if(!$A.isJson(e))return;let{action:i,data:t}=e;this.$store.dispatch(i,t)}),this.$Electron.registerMsgListener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.registerMsgListener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),$A.bindScreenshotKey(this.$store.state.cacheKeyboard),this.$Electron.sendMessage("setMenuLanguage",{openInBrowser:this.$L("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00"),saveImageAs:this.$L("\u56FE\u7247\u5B58\u50A8\u4E3A..."),copyImage:this.$L("\u590D\u5236\u56FE\u7247"),copyEmailAddress:this.$L("\u590D\u5236\u7535\u5B50\u90AE\u4EF6\u5730\u5740"),copyLinkAddress:this.$L("\u590D\u5236\u94FE\u63A5\u5730\u5740"),copyImageAddress:this.$L("\u590D\u5236\u56FE\u7247\u5730\u5740"),failedToSaveImage:this.$L("\u56FE\u7247\u4FDD\u5B58\u5931\u8D25"),theImageFailedToSave:this.$L("\u56FE\u7247\u65E0\u6CD5\u4FDD\u5B58")}))},eeuiEvents(){!this.$isEEUiApp||(window.__onAppActive=()=>{this.autoTheme(),$A.IDBTest()},window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0?this.$store.dispatch("getBasicData",600):this.autoTheme()},window.__onCreateTarget=e=>{if(this.isUseDefaultBrowser(e)){$A.eeuiAppOpenWeb(e);return}this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e,browser:!0,showProgress:!0}})},window.__onMeetingEvent=({act:e,uuid:i,meetingid:t})=>{switch(e){case"getInfo":const n=(i+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:n?"users/meeting/tourist":"users/basic",data:{userid:n?i:(i+"").substring(6),tourist_id:i}}).then(({data:s})=>{var r,a;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:i,avatar:n?s==null?void 0:s.userimg:(r=s[0])==null?void 0:r.userimg,username:n?s==null?void 0:s.nickname:(a=s[0])==null?void 0:a.nickname}})}).catch(({msg:s})=>{$A.modalError(s)});break;case"success":this.$store.dispatch("closeMeetingWindow","add");break;case"invent":this.$store.dispatch("showMeetingWindow",{type:"invitation",meetingid:t});break;case"endMeeting":break;case"error":this.$store.dispatch("closeMeetingWindow","error");break}},window.__onKeyboardStatus=e=>{const i=$A.jsonParse(decodeURIComponent(e));this.$store.state.keyboardType=i.keyboardType,this.$store.state.keyboardHeight=i.keyboardHeight,this.$store.state.safeAreaBottom=i.safeAreaBottom},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1},window.__handleLink=e=>{this.goForward({path:(e||"").indexOf("/")!==0?"/"+e:e})},$A.eeuiAppSendMessage({action:"windowSize",width:this.windowWidth,height:this.windowHeight}),$A.eeuiAppSetHapticBackEnabled(!1),$A.eeuiAppSetVariate("languageWebBrowser",this.$L("\u6D4F\u89C8\u5668\u6253\u5F00")),$A.eeuiAppSetVariate("languageWebRefresh",this.$L("\u5237\u65B0")))},otherEvents(){if(!this.$isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,i=e.replace(/hidden/i,"visibilitychange");document.addEventListener(i,()=>{this.$store.state.windowActive=!document[e]})}}}},Xe={};var Li=O(Mi,Di,xi,!1,Oi,"1a09ece0",null,null);function Oi(e){for(let i in Xe)this[i]=Xe[i]}var Pi=function(){return Li.exports}(),Ri=[{name:"index",path:"/",component:()=>k(()=>import("./index.4a24dc10.js"),["js/build/index.4a24dc10.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>k(()=>import("./pro.5e4dad3d.js"),["js/build/pro.5e4dad3d.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>k(()=>import("./meeting.e0cf6482.js"),["js/build/meeting.e0cf6482.js","js/build/MeetingManager.9bc138b1.js","js/build/le5le-store.bd86c9e9.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>k(()=>import("./manage.02d05877.js"),["js/build/manage.02d05877.js","js/build/manage.5dc9aad0.css","js/build/vuex.cc7cb26e.js","js/build/CheckinExport.b0d38216.js","js/build/ApproveExport.d0d486d1.css","js/build/tip.059db614.js","js/build/ReportEdit.9f1df008.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.e430db44.js","js/build/index.04b74879.js","js/build/le5le-store.bd86c9e9.js","js/build/TaskDetail.2665236e.js","js/build/TaskDetail.12a04d96.css","js/build/ProjectLog.297ef125.js","js/build/DialogWrapper.5184c28a.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.a45c8e94.js","js/build/quill-delta.a505f2bf.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.4c06f0f7.js","js/build/lodash.isequal.d456a716.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f26fa3cb.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.23b1f28e.js","js/build/vue.da9c4dc7.js","js/build/ImgUpload.d82fa303.js","js/build/view-design-hi.afe77d1e.js","js/build/details.ef31cd47.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js","js/build/MeetingManager.9bc138b1.js","js/build/ApproveExport.747b2304.js","js/build/notification-koro1.99b93615.js","js/build/MicroApps.dba2f711.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>k(()=>import("./dashboard.c8b2c3c1.js"),["js/build/dashboard.c8b2c3c1.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>k(()=>import("./calendar.93d27477.js"),["js/build/calendar.93d27477.js","js/build/vuex.cc7cb26e.js","js/build/tui-date-picker.f80618c0.js","js/build/tui-date-picker.9bc23968.css","js/build/tui-time-picker.65ec3a74.js","js/build/tui-time-picker.54a418b9.css","js/build/tui-calendar-hi.ed27d4e0.js","js/build/tui-calendar-hi.3658e7fa.css","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/tui-code-snippet.1ad59ecb.js","js/build/moment.620e955d.js","js/build/le5le-store.bd86c9e9.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>k(()=>import("./messenger.2e32994c.js"),["js/build/messenger.2e32994c.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.5184c28a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.bd86c9e9.js","js/build/longpress.5305f240.js","js/build/index.04b74879.js","js/build/quill-hi.a45c8e94.js","js/build/quill-delta.a505f2bf.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.4c06f0f7.js","js/build/lodash.isequal.d456a716.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f26fa3cb.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.23b1f28e.js","js/build/vue.da9c4dc7.js","js/build/ImgUpload.d82fa303.js","js/build/view-design-hi.afe77d1e.js","js/build/details.ef31cd47.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.059db614.js"])},{name:"manage-approve",path:"approve",component:()=>k(()=>import("./index.2c3843c6.js"),["js/build/index.2c3843c6.js","js/build/index.bfb171e3.css","js/build/details.ef31cd47.js","js/build/ImgUpload.d82fa303.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/index.04b74879.js","js/build/ApproveExport.747b2304.js","js/build/ApproveExport.d0d486d1.css"])},{name:"manage-approve-details",path:"approve/details",component:()=>k(()=>import("./details.ef31cd47.js"),["js/build/details.ef31cd47.js","js/build/ImgUpload.d82fa303.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-apps",path:"apps/*",component:()=>k(()=>import("./apps.67109f3f.js"),["js/build/apps.67109f3f.js","js/build/MicroApps.dba2f711.js","js/build/vue.da9c4dc7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.5184c28a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.bd86c9e9.js","js/build/longpress.5305f240.js","js/build/index.04b74879.js","js/build/quill-hi.a45c8e94.js","js/build/quill-delta.a505f2bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.4c06f0f7.js","js/build/lodash.isequal.d456a716.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f26fa3cb.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.23b1f28e.js","js/build/ImgUpload.d82fa303.js","js/build/view-design-hi.afe77d1e.js","js/build/details.ef31cd47.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.059db614.js"])},{name:"manage-setting",path:"setting",component:()=>k(()=>import("./index.b5f44692.js"),["js/build/index.b5f44692.js","js/build/index.274f71f0.css","js/build/vuex.cc7cb26e.js","js/build/le5le-store.bd86c9e9.js","js/build/axios.6ec123f8.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>k(()=>import("./personal.77b22863.js"),["js/build/personal.77b22863.js","js/build/ImgUpload.d82fa303.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>k(()=>import("./checkin.343cc0f9.js"),["js/build/checkin.343cc0f9.js","js/build/checkin.01811e2e.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>k(()=>import("./language.024a0634.js"),["js/build/language.024a0634.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>k(()=>import("./theme.d9a92b2d.js"),["js/build/theme.d9a92b2d.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>k(()=>import("./keyboard.24c9ac7d.js"),["js/build/keyboard.24c9ac7d.js","js/build/keyboard.b6840672.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>k(()=>import("./license.4f8d16fd.js"),["js/build/license.4f8d16fd.js","js/build/license.c7d9ffba.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>k(()=>import("./password.82eec530.js"),["js/build/password.82eec530.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>k(()=>import("./email.1ede360c.js"),["js/build/email.1ede360c.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>k(()=>import("./system.26880585.js"),["js/build/system.26880585.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>k(()=>import("./delete.f317d0cc.js"),["js/build/delete.f317d0cc.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite",component:()=>k(()=>import("./projectInvite.6f7f7a52.js"),["js/build/projectInvite.6f7f7a52.js","js/build/projectInvite.d01e3a2d.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>k(()=>import("./project.b20993c4.js"),["js/build/project.b20993c4.js","js/build/vuex.cc7cb26e.js","js/build/vuedraggable.aaa0fd6a.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/sortablejs.4880fe6b.js","js/build/ProjectLog.297ef125.js","js/build/le5le-store.bd86c9e9.js","js/build/index.04b74879.js","js/build/tip.059db614.js","js/build/DialogWrapper.5184c28a.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.a45c8e94.js","js/build/quill-delta.a505f2bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.4c06f0f7.js","js/build/lodash.isequal.d456a716.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f26fa3cb.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.23b1f28e.js","js/build/vue.da9c4dc7.js","js/build/ImgUpload.d82fa303.js","js/build/view-design-hi.afe77d1e.js","js/build/details.ef31cd47.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/default-passive-events.a3d698c9.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>k(()=>import("./file.04024a5d.js"),["js/build/file.04024a5d.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.90965718.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/index.04b74879.js","js/build/longpress.5305f240.js","js/build/tip.059db614.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>k(()=>import("./application.b8116394.js"),["js/build/application.b8116394.js","js/build/vuex.cc7cb26e.js","js/build/index.04b74879.js","js/build/CheckinExport.b0d38216.js","js/build/ApproveExport.d0d486d1.css","js/build/tip.059db614.js","js/build/ReportEdit.9f1df008.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.e430db44.js","js/build/checkin.343cc0f9.js","js/build/checkin.01811e2e.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>k(()=>import("./fileMsg.2bee63d2.js"),["js/build/fileMsg.2bee63d2.js","js/build/fileMsg.1a0b76dd.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>k(()=>import("./fileTask.9dfe020e.js"),["js/build/fileTask.9dfe020e.js","js/build/fileTask.93338ba0.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.3b0629c7.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>k(()=>import("./file.48be823a.js"),["js/build/file.48be823a.js","js/build/file.1759f11c.css","js/build/FileContent.c3694775.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.cf87ec8f.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>k(()=>import("./taskContent.eff4c18a.js"),["js/build/taskContent.eff4c18a.js","js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/ImgUpload.d82fa303.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>k(()=>import("./task.337ddce0.js"),["js/build/task.337ddce0.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.2665236e.js","js/build/TaskDetail.12a04d96.css","js/build/vuex.cc7cb26e.js","js/build/ProjectLog.297ef125.js","js/build/DialogWrapper.5184c28a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.bd86c9e9.js","js/build/longpress.5305f240.js","js/build/index.04b74879.js","js/build/quill-hi.a45c8e94.js","js/build/quill-delta.a505f2bf.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.4c06f0f7.js","js/build/lodash.isequal.d456a716.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f26fa3cb.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.23b1f28e.js","js/build/vue.da9c4dc7.js","js/build/ImgUpload.d82fa303.js","js/build/view-design-hi.afe77d1e.js","js/build/details.ef31cd47.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.059db614.js","js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js"])},{name:"single-apps",path:"/single/apps/*",component:()=>k(()=>import("./apps.9b84818a.js"),["js/build/apps.9b84818a.js","js/build/MicroApps.dba2f711.js","js/build/vue.da9c4dc7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.5184c28a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.bd86c9e9.js","js/build/longpress.5305f240.js","js/build/index.04b74879.js","js/build/quill-hi.a45c8e94.js","js/build/quill-delta.a505f2bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.4c06f0f7.js","js/build/lodash.isequal.d456a716.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f26fa3cb.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.23b1f28e.js","js/build/ImgUpload.d82fa303.js","js/build/view-design-hi.afe77d1e.js","js/build/details.ef31cd47.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.059db614.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>k(()=>import("./validEmail.7090a5ef.js"),["js/build/validEmail.7090a5ef.js","js/build/validEmail.6e361ca9.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>k(()=>import("./reportEdit.4f4f4580.js"),["js/build/reportEdit.4f4f4580.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.9f1df008.js","js/build/openpgp_hi.15f91b1d.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>k(()=>import("./reportDetail.92f46031.js"),["js/build/reportDetail.92f46031.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.e430db44.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>k(()=>import("./token.353827e6.js"),["js/build/token.353827e6.js","js/build/token.7afc4e00.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>k(()=>import("./login.2f8a1aa0.js"),["js/build/login.2f8a1aa0.js","js/build/vuex.cc7cb26e.js","js/build/le5le-store.bd86c9e9.js","js/build/@chenfengyuan.dfd1ecb7.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>k(()=>import("./404.999ac81a.js"),["js/build/404.999ac81a.js","js/build/404.d686a01f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const ve=$A(window).width(),Ni=$A(window).height(),Ae=$A.screenOrientation();var Bi={clientId:"",cacheVersion:"v7",windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:ve,windowHeight:Ni,windowOrientation:Ae,windowLandscape:Ae==="landscape",windowPortrait:Ae==="portrait",formLabelPosition:ve>576?"right":"top",formLabelWidth:ve>576?"auto":"",keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,audioPlaying:null,routeHistorys:[],routeHistoryLast:{},callAt:[],loads:[],loadDashboardTasks:!1,loadUserBasic:!1,loadProjects:0,loadDialogs:0,loadDialogAuto:!1,loadDialogLatestId:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserActive:{},cacheUserWait:[],cacheUserBasic:[],cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheTaskBrowse:[],cacheEmojis:[],cacheServerUrl:"",cacheKeyboard:{},ajaxWsReady:!1,ajaxWsListener:[],ajaxNetworkException:!1,ws:null,wsMsg:{},wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,wsListener:{},userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userAvatar:{},dialogId:0,dialogMsgId:0,dialogMsgKeep:25,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogMsgTops:[],dialogHistory:[],dialogDraftTimer:{},dialogMsgTransfer:{time:0},dialogSseList:[],dialogDroupWordChain:{},dialogGroupVote:{},messengerSearchKey:{dialog:"",contacts:""},readLoadNum:0,readTimeout:null,readWaitData:{},fileLists:[],fileLinks:[],filePackLists:[],projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskArchiveView:0,taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u7070\u8272",color:"#999999"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u6A58\u8272",color:"#faaa6c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u7EA2\u8272",color:"#ff7070"}],taskColorList:[{name:"\u9ED8\u8BA4",color:"",primary:""},{name:"\u9EC4\u8272",color:"#fffae6",primary:"#f2d86d"},{name:"\u84DD\u8272",color:"#e5f5ff",primary:"#51abea"},{name:"\u7EFF\u8272",color:"#ecffe5",primary:"#73b45c"},{name:"\u7C89\u8272",color:"#ffeaee",primary:"#ff819c"},{name:"\u7D2B\u8272",color:"#f6ecff",primary:"#b583e3"},{name:"\u7070\u8272",color:"#f3f3f3",primary:"#999999"}],themeConf:window.localStorage.getItem("__system:themeConf__"),themeName:null,themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],clientNewVersion:null,previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,apiKeyData:{},localKeyPair:{},localKeyLock:!1,systemConfig:{},approveUnreadNumber:0,meetingWindow:{show:!1,type:"",meetingid:0},okrWindow:{type:"open",model:"details",id:0,show:!1}},Ui={isLoad(e){return function(i){const t=e.loads.find(n=>n.key===i);return!!(t&&t.num>0)}},projectData(e){if(e.projectId>0){let i=e.cacheProjects.find(({id:t})=>t==e.projectId);if(i){let t=e.cacheProjectParameter.find(({project_id:n})=>n==e.projectId);return t||(t=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(t)),t.menuType===void 0&&(t.menuType="column"),i.cacheParameter=t,i}}return{cacheParameter:{}}},taskData(e){let i=e.taskId;if(i==0&&(i=$A.runNum(window.__taskId)),i>0){window.__taskId=i;const t=e.cacheTasks.find(({id:n})=>n==i);if(t)return t}return{}},transforTasks(e){return function(i){return i.filter(({parent_id:t})=>!(t>0&&i.find(({id:n})=>n==t))).map(t=>{if(t.parent_id>0){const n=e.cacheTasks.find(({id:s})=>s==t.parent_id);return n?Object.assign({},n,{id:t.id,parent_id:t.parent_id,name:t.name,start_at:t.start_at,end_at:t.end_at,complete_at:t.complete_at,_time:t._time,flow_item_id:t.flow_item_id,flow_item_name:t.flow_item_name,flow_item_status:t.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},t,{sub_top:!0,sub_my:[]})}else return Object.assign({},t,{sub_top:!1,sub_my:i.filter(({parent_id:n})=>n==t.id)})})}},dashboardTask(e){const i=$A.Date($A.formatDate("Y-m-d 00:00:00")),t=$A.Date($A.formatDate("Y-m-d 23:59:59")),n=$A.Date($A.formatDate("Y-m-d H:i:s")),s=(u,f=!0)=>u.archived_at||u.complete_at&&f===!0?!1:u.owner==1;let r=e.cacheTasks.filter(u=>s(u)),a=0;if(e.taskCompleteTemps.length>0){let u=e.cacheTasks.filter(f=>e.taskCompleteTemps.includes(f.id)&&s(f,!1));u.length>0&&(a=u.length,r=$A.cloneJSON(r),r.push(...u))}const o=r.filter(u=>{const f=$A.Date(u.end_at);return i<=f&&f<=t}),l=r.filter(u=>u.end_at&&$A.Date(u.end_at)<=n),c={today:o,today_count:o.length,overdue:l,overdue_count:l.length,all:r,all_count:r.length};return a>0&&(c.today_count-=o.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.overdue_count-=l.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.all_count-=a),c},assistTask(e){const i=(n,s=!0)=>n.archived_at||n.complete_at&&s===!0?!1:n.assist&&n.owner===0;let t=e.cacheTasks.filter(n=>i(n));if(e.taskCompleteTemps.length>0){let n=e.cacheTasks.filter(s=>e.taskCompleteTemps.includes(s.id)&&i(s,!1));n.length>0&&(t=$A.cloneJSON(t),t.push(...n))}return t}};function Fi(e,i,t){$A.isJson(i)||(i={});const n=e+"::"+encodeURIComponent(new URLSearchParams($.sortObject(i,["page","pagesize","timerange"])).toString()),s=t.callAt.find(r=>r.key===n)||{};return typeof s.key=="undefined"&&(s.key=n,s.updated=0,s.deleted=0,t.callAt.push(s),$A.IDBSet("callAt",t.callAt).then(r=>{})),this.get=()=>(i.timerange=i.timerange||`${s.updated||0},${s.deleted||0}`,i),this.save=({total:r,current_page:a,deleted_id:o})=>new Promise(l=>{if(a===1){let c=!1;const u=$A.Time();r>0&&(s.updated=u,c=!0),$A.isArray(o)&&o.length>0?(s.deleted=u,c=!0):o=[],c?$A.IDBSet("callAt",t.callAt).then(f=>l(o)):l(o)}}),this}function be(e,i,t){return new Fi(e,i,t)}function Wi(e,i=!0){return e&&(i?e=String(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\n/g,"$"):e=String(e).replace(/\-/g,"+").replace(/\_/g,"/").replace(/\$/g,` +Please report this to https://github.com/markedjs/marked.`,(i||C.defaults).silent)return"

    An error occurred:

    "+T(l.message+"",!0)+"
    ";throw l}}C.options=C.setOptions=function(e){return z(C.defaults,e),C};C.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new x,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};C.defaults=C.getDefaults();C.Parser=j;C.parser=j.parse;C.Renderer=x;C.TextRenderer=K;C.Lexer=J;C.lexer=J.lex;C.InlineLexer=B;C.inlineLexer=B.output;C.Slugger=xe;C.parse=C;m.initHighlightingOnLoad();const vn=new C.Renderer;var An=C.setOptions({renderer:vn,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,highlight:function(e){return m.highlightAuto(e).value}}),bn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{ref:"preview",staticClass:"markdown-preview-warp"},[t("div",{class:`markdown-preview ${"markdown-theme-"+e.theme}`,domProps:{innerHTML:e._s(e.html)}}),t("div",{class:["preview-img",e.previewImgModal?"active":""]},[t("span",{staticClass:"close icon-close iconfont",on:{click:function(n){e.previewImgModal=!1}}}),t("img",{class:[e.previewImgMode],attrs:{src:e.previewImgSrc,alt:""}})])])},$n=[];const kn={name:"markdown-preview",props:{initialValue:{type:String,default:""},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"\u590D\u5236\u4EE3\u7801"}},data(){return{html:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:""}},mounted(){this.translateMarkdown()},methods:{tocLevel(e,i){let t=9999;return i.forEach(({level:n})=>{t=Math.min(t,n)}),t===9999?e:e-(t-1)},translateMarkdown(){let e=An(this.initialValue,{sanitize:!1,...this.markedOptions}).replace(/href="/gi,'target="_blank" href="');if(this.copyCode&&(e=e.replace(/
    /g,'
    '+this.copyBtnText+"
    ").replace(/<\/pre>/g,"
    ")),/\[\[TOC\]\]/.test(e)){let i="";ke.tocItems.forEach(t=>{i+=`
  • ${t.text}
  • `}),e=e.replace(/\[\[TOC\]\]/g,`
      ${i}
    `)}this.html=e,this.addCopyListener(),this.addImageClickListener()},addCopyListener(){setTimeout(()=>{const e=document.querySelectorAll(".code-block .copy-code");this.btns=e;for(let i=0,t=e.length;i{const n=e[i].parentNode.querySelectorAll("pre")[0].innerText,s=document.createElement("input");s.setAttribute("value",n),document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s),this.$emit("on-copy",n)}},600)},addImageClickListener(){const{imgs:e=[]}=this;if(e.length>0)for(let i=0,t=e.length;i{if(!!this.$refs.preview){this.imgs=this.$refs.preview.querySelectorAll("img");for(let i=0,t=this.imgs.length;i{const n=this.imgs[i].getAttribute("src");this.previewImage(n)}}},600)},previewImage(e){const i=new Image;i.src=e,i.onload=()=>{const t=i.naturalWidth;i.naturalHeight/t>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=e,this.previewImgModal=!0}}},watch:{initialValue(){this.translateMarkdown()}}},We={};var Sn=O(kn,bn,$n,!1,En,"7c98e74e",null,null);function En(e){for(let i in We)this[i]=We[i]}var Tn=function(){return Sn.exports}(),In=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-right-bottom"},[e.showSSO?t("div",{staticClass:"common-right-bottom-link",on:{click:e.useSSOLogin}},[t("Icon",{attrs:{type:"ios-globe-outline"}}),e._v(" "+e._s(e.$L("\u4F7F\u7528 SSO \u767B\u5F55"))+" ")],1):e._e(),e.showDown?[e.downloadUrl?t("a",{staticClass:"common-right-bottom-link",attrs:{href:e.downloadUrl,target:"_blank"}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u5BA2\u6237\u7AEF\u4E0B\u8F7D"))+" ")],1):e.updateVersion&&e.updateBottomShow&&e.$Electron?t("div",{staticClass:"common-right-bottom-link",on:{click:function(n){e.updateShow=!0}}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u66F4\u65B0\u5BA2\u6237\u7AEF"))+" ")],1):e._e()]:e._e(),e.showPrivacy?t("a",{staticClass:"common-right-bottom-link",attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v(" \u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B ")]):e._e(),t("Modal",{attrs:{closable:!1,"mask-closable":!1,"class-name":"common-right-bottom-notification"},model:{value:e.updateShow,callback:function(n){e.updateShow=n},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("MarkdownPreview",{attrs:{initialValue:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(n){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),t("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],2)},Cn=[];const Dn={name:"RightBottom",components:{MarkdownPreview:Tn},data(){return{loadIng:0,subscribe:null,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted(){this.prefetchResources(),this.checkVersion(),this.$Electron&&(this.subscribe=V.Store.subscribe("updateNotification",e=>{this.updateShow=!0}),this.$Electron.registerMsgListener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=!$A.strExists(this.updateNote,`[${this.updateVersion}-Silence]`)}))},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{showSSO(){return this.$isSoftware&&["login"].includes(this.$route.name)},showDown(){return!this.$isEEUiApp&&!this.windowTouch&&["login","index","manage-dashboard"].includes(this.$route.name)},showPrivacy(){return $A.isDooServer()&&this.$isEEUiApp&&["login"].includes(this.$route.name)}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},prefetchResources(){this.isNotServer()||this.$Electron&&$A.$isSubElectron||_e.get($A.apiUrl("system/prefetch")).then(({status:e,data:i})=>{e===200&&i.forEach(t=>{const n=document.createElement("link");n.rel="prefetch",n.href=t,n.onload=()=>{document.head.removeChild(n)},n.onerror=()=>{document.head.removeChild(n)},document.head.appendChild(n)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(_e.get($A.apiUrl("system/version")).then(({status:e,data:i})=>{e===200&&(this.apiVersion=i.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:`\u670D\u52A1\u5668\uFF08${$A.getDomain($A.mainUrl())}\uFF09\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002`}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(i.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.downloadUrl=`${e.url}/latest`;break;case"github":(async i=>{let t="cacheAppdown::"+this.apiVersion,n=await $A.IDBJson(t),s=600;if(n.time&&n.time+s>Math.round(new Date().getTime()/1e3)){this.downloadUrl=n.data.html_url;return}this.loadIng>0||(this.loadIng++,_e.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:r,data:a})=>{this.loadIng--,r===200&&$A.isArray(a)&&(n.time=Math.round(new Date().getTime()/1e3),n.data=a.find(({tag_name:o})=>this.compareVersion(this.tagVersion(o),this.apiVersion)===0)||{},$A.IDBSave(t,n),this.downloadUrl=n.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){V.Store.set("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,i){let t=0,n=0;if(e===i)return 0;const s=(r,a)=>{let o=a;for(;r[o]!=="."&&ol?1:-1;t=r+1,n=a+1}for(;t0)return 1;t=r+1}for(;n0)return-1;n=r+1}return 0}}},Ge={};var xn=O(Dn,In,Cn,!1,Mn,null,null,null);function Mn(e){for(let i in Ge)this[i]=Ge[i]}var Ln=function(){return xn.exports}(),On=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[e.list.length>0?[e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e._e(),e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(n){e.show=!1}}}):e._e()]:e._e()],2)},Pn=[];const Rn=()=>k(()=>import("./view.f528c89e.js"),["js/build/view.f528c89e.js","js/build/view.5e67e6f1.css","js/build/element-sea.b954f5d6.js","js/build/vue.eaf71fac.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js"]),Nn=()=>k(()=>import("./swipe.fbccdf8b.js"),["js/build/swipe.fbccdf8b.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.dc41054b.js","js/build/photoswipe.0fb72215.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Bn={name:"PreviewImage",components:{PreviewImageSwipe:Nn,PreviewImageView:Rn},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},je={};var Un=O(Bn,On,Pn,!1,Fn,null,null,null);function Fn(e){for(let i in je)this[i]=je[i]}var Wn=function(){return Un.exports}(),Gn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}})},jn=[];const zn={name:"PreviewImageState",components:{PreviewImage:Wn},computed:{...Y(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUiApp){let i=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),t=e.map(s=>$A.isJson(s)?$A.thumbRestore(s.src):$A.thumbRestore(s)),n=50;if(t.length>n){const s=[];let r=0;for(;s.length=0&&s.unshift(t[a]),oa===t[i]),t=s}$A.eeuiAppSendMessage({action:"picturePreview",position:i,paths:t})}else this.show=!0}}},ze={};var Hn=O(zn,Gn,jn,!1,Kn,null,null,null);function Kn(e){for(let i in ze)this[i]=ze[i]}var Vn=function(){return Hn.exports}(),Jn=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?t("Alert",{attrs:{type:"error","show-icon":"",closable:""}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[t("Modal",{attrs:{width:416,closable:!1,"footer-hide":!0,"class-name":"common-network-exception-modal"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))])]),t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"primary"},on:{click:function(n){e.show=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])]:e._e()],2)},Yn=[];const Zn={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1}},beforeDestroy(){this.show=!1},computed:{...Y(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(e){this.show=e,e&&this.checkNetwork()},immediate:!0}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},checkNetwork(){this.__timer&&clearTimeout(this.__timer),this.__timer=setTimeout(()=>{!this.ajaxNetworkException||this.isNotServer()||this.$store.dispatch("call",{url:"system/setting"}).finally(()=>{this.checkNetwork()})},3e3)}}},He={};var Xn=O(Zn,Jn,Yn,!1,qn,null,null,null);function qn(e){for(let i in He)this[i]=He[i]}var Qn=function(){return Xn.exports}(),ei=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.show?t("div",{staticClass:"common-guide"},[t("img",{attrs:{src:e.src,width:"100%"}}),t("div",[t("Button",{attrs:{type:"default",size:"large"},on:{click:function(n){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},ti=[];const ni={name:"GuidePage",data(){return{show:!1,src:""}},mounted(){this.src=$.apiUrl("../images/guide.png")},watch:{$route:{handler(e){this.show=!1,navigator.userAgent.indexOf("MicroMessenger")!==-1&&e.name=="manage-project-invite"&&(this.show=!0)},immediate:!0}}},Ke={};var ii=O(ni,ei,ti,!1,si,null,null,null);function si(e){for(let i in Ke)this[i]=Ke[i]}var ri=function(){return ii.exports}(),ai=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"task-menu-icon",on:{click:e.handleClick}},[e.loadIng?t("div",{staticClass:"loading"},[t("Loading")],1):[e.task.complete_at?t("Icon",{staticClass:"completed",attrs:{type:e.completedIcon}}):t("Icon",{staticClass:"uncomplete",attrs:{type:e.icon}})]],2)},oi=[];const li={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},operationShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"},projectId:{type:Number,default:0}},computed:{...Y(["loads","taskFlows"]),...ct(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(e){this.$store.state.taskOperation={event:e,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,operationShow:this.operationShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,projectId:this.projectId,onUpdate:i=>{this.$emit("on-update",i)}}},updateTask(e){if(this.loadIng)return;Object.keys(e).forEach(t=>this.$set(this.task,t,e[t]));const i=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",i).then(({data:t,msg:n})=>{$A.messageSuccess(n),this.$store.dispatch("saveTaskBrowse",i.task_id),this.$emit("on-update",t)}).catch(({msg:t})=>{$A.modalError(t),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{})})}}},Ve={};var ci=O(li,ai,oi,!1,ui,null,null,null);function ui(e){for(let i in Ve)this[i]=Ve[i]}var di=function(){return ci.exports}(),fi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(n){return n?t("li",{on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:n,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],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(n){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.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(n){e.showModal=n},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(n){return t("li",{attrs:{"data-id":n.userid},on:{click:function(s){return s.stopPropagation(),e.onRemoveItem(n.userid)}}},[n.type=="group"?[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:32}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:n.userid}})],2)}),0)]):e._e(),t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-pre"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1),t("Input",{attrs:{placeholder:e.localPlaceholder,clearable:""},model:{value:e.searchKey,callback:function(n){e.searchKey=n},expression:"searchKey"}})],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(n){return t("li",{key:n.key,class:{active:e.switchActive===n.key},on:{click:function(s){e.switchActive=n.key}}},[e._v(e._s(e.$L(n.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(n){return t("li",{class:e.selectClass(n.userid_list),on:{click:function(s){return e.onSelectProject(n.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(n.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(n.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(n.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(n){return t("li",{class:{selected:e.selects.includes(n.userid),disabled:e.isUncancelable(n.userid)||e.isDisabled(n.userid)},on:{click:function(s){return e.onSelectItem(n)}}},[e.selects.includes(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),n.type=="group"?t("div",{staticClass:"user-modal-avatar"},[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:40}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(n.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:n.userid,size:40,"show-name":""}})],1)})],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)},hi=[];const pi={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},disabled:{type:Boolean,default:!1},onlyGroup:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",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(i=>$A.runNum(i)).filter(i=>i>0))),this.values=e},immediate:!0},isWhole:{handler(e){e||this.onlyGroup?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?this.searchBefore():this.searchKey="",this.$emit("on-show-change",e)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()}},computed:{...Y(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:i,dialogId:t,onlyGroup:n}){return e===0&&i===0&&t===0&&!n},lists({switchActive:e,searchKey:i,recents:t,contacts:n,projects:s}){switch(e){case"recent":return i?t.filter(r=>`${r.name}`.indexOf(i)>-1):t;case"contact":return n;case"project":return s}return[]},isSelectAll({lists:e,selects:i}){return e.length>0&&e.filter(t=>i.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(i=>$A.leftExists(i,"d:")?this.recents.find(t=>t.userid===i):{type:"user",userid:i})},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const i=e.filter(t=>this.selects.includes(t)).length;if(i===e.length)return"ios-checkmark-circle";if(i>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=>this.onlyGroup&&e.type!="group"||e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,i)=>e.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(e.top_at):e.todo_num>0||i.todo_num>0?i.todo_num-e.todo_num:$A.Date(i.last_at)-$A.Date(e.last_at)).map(({id:e,name:i,type:t,group_type:n,avatar:s,dialog_user:r})=>({name:i,type:t,group_type:n,avatar:s,userid:t==="user"?r.userid:`d:${e}`}))},searchContact(){let e=this.searchKey;const i=this.searchCache.find(t=>t.type==="contact"&&t.key==e);i&&(this.contacts=i.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(r=>Object.assign(r,{type:"user"})),this.contacts=t;const n=this.searchCache.findIndex(r=>r.key==e),s={type:"contact",key:e,data:t,time:$A.Time()};n>-1?this.searchCache.splice(n,1,s):this.searchCache.push(s)}).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 i=this.searchCache.find(t=>t.type==="project"&&t.key==e);i&&(this.projects=i.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(r=>Object.assign(r,{type:"project"})),this.projects=t;const n=this.searchCache.findIndex(r=>r.key==e),s={type:"project",key:e,data:t,time:$A.Time()};n>-1?this.searchCache.splice(n,1,s):this.searchCache.push(s)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},onSelection(){this.disabled||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(i=>i!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){if(this.multipleMax>1){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects=[]}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`))})}},onSelectProject(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const i=e.filter(n=>!this.isUncancelable(n));i.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(n=>!i.includes(n));break;default:const t=e.filter(n=>!this.isDisabled(n));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(n=>!this.selects.includes(n))),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(i=>i!=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("on-submit",this.values),!this.beforeSubmit){this.hide();return}const i=this.beforeSubmit();i&&i.then?(this.submittIng++,i.then(()=>{this.hide()}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.hide()},show(){this.onSelection()},hide(){this.showModal=!1}}},Je={};var gi=O(pi,fi,hi,!1,mi,null,null,null);function mi(e){for(let i in Je)this[i]=Je[i]}var _i=function(){return gi.exports}(),wi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"task-move"},[t("Cascader",{attrs:{data:e.cascaderData,clearable:!1,placeholder:e.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":e.cascaderLoadData,filterable:""},on:{"on-visible-change":function(n){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(n){e.cascader=n},expression:"cascader"}}),t("div",{staticClass:"task-move-content"},[t("div",{staticClass:"task-move-content-old"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.$L("\u79FB\u52A8\u524D")))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),e.task.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.task.flow_item_status},[e._v(e._s(e.task.flow_item_name))])]):e._e()]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.ownerUserids,callback:function(n){e.ownerUserids=n},expression:"ownerUserids"}})],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.assistUserids,callback:function(n){e.assistUserids=n},expression:"assistUserids"}})],1)]),t("div",{staticClass:"task-move-content-new"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.$L("\u79FB\u52A8\u540E")))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("TaskMenu",{ref:`taskMenu_${e.task.id}`,attrs:{task:e.tasks,"project-id":e.cascader[0],"color-show":!1,"operation-show":!1,"load-status":e.task.loading===!0},on:{"on-update":e.onStatusUpdate}}),e.updateData.flow.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.updateData.flow.flow_item_status,on:{click:function(n){return n.stopPropagation(),e.openMenu(n,e.tasks)}}},[e._v(e._s(e.updateData.flow.flow_item_name))])]):e._e()],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"add-icon":!1},model:{value:e.updateData.owner_userids,callback:function(n){e.$set(e.updateData,"owner_userids",n)},expression:"updateData.owner_userids"}})],1)]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"add-icon":!1},model:{value:e.updateData.assist_userids,callback:function(n){e.$set(e.updateData,"assist_userids",n)},expression:"updateData.assist_userids"}})],1)])])]),t("div",{staticClass:"ivu-modal-footer"},[t("div",{staticClass:"adaption"},[t("Button",{attrs:{type:"default"},on:{click:e.close}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onConfirm}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])],1)},yi=[];const vi={name:"TaskMove",components:{TaskMenu:di,UserSelect:_i},props:{value:{type:Boolean,default:!1},task:{type:Object,default:!1}},data(){return{tasks:{},cascader:[],cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],loadIng:0,flowItemId:0,ownerUserids:[],assistUserids:[],updateData:{flow:{},owner_userids:[],assist_userids:[]}}},async mounted(){this.initData()},computed:{...Y(["cacheProjects","cacheColumns"])},watch:{cascader(e){var t,n;this.tasks.flow_item_id=this.flowItemId,e[0]!=this.task.project_id?(this.updateData.flow.flow_item_id=0,this.updateData.flow.flow_item_name="",this.updateData.flow.flow_item_status=""):(this.updateData.flow.flow_item_id=this.flowItemId,this.updateData.flow.flow_item_name=this.task.flow_item_name,this.updateData.flow.flow_item_status=this.task.flow_item_status);const i=((n=(t=this.cacheProjects.find(s=>s.id==e[0]))==null?void 0:t.project_user)==null?void 0:n.map(s=>s.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(s=>s.owner&&i.indexOf(s.userid)!==-1).sort((s,r)=>s.id-r.id).map(s=>s.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(s=>!s.owner&&i.indexOf(s.userid)!==-1).sort((s,r)=>s.id-r.id).map(s=>s.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(i=>i.owner).sort((i,t)=>i.id-t.id).map(i=>i.userid),this.assistUserids=(this.task.task_user||[]).filter(i=>!i.owner).sort((i,t)=>i.id-t.id).map(i=>i.userid),this.tasks=JSON.parse(JSON.stringify(this.task));const e=$A.cloneJSON(this.cacheProjects).sort((i,t)=>i.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(i.top_at):t.id-i.id);this.cascaderData=e.map(i=>{const t=this.cacheColumns.filter(({project_id:s})=>s==i.id).map(s=>({value:s.id,label:s.name})),n={value:i.id,label:i.name,children:t};return t.length==0&&(n.loading=!1),n})},cascaderLoadData(e,i){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(n=>({value:n.id,label:n.name})),e.loading=!1,i()}).catch(()=>{e.loading=!1,i()})},async onConfirm(){if(this.task.project_id==this.cascader[0]&&this.task.column_id==this.cascader[1]){$A.messageError("\u672A\u53D8\u66F4\u79FB\u52A8\u9879");return}if(!this.updateData.flow.flow_item_id){$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001");return}this.loadIng++,this.$store.dispatch("call",{url:"project/task/move",data:{task_id:this.task.id,project_id:this.cascader[0],column_id:this.cascader[1],flow_item_id:this.updateData.flow.flow_item_id,owner:this.updateData.owner_userids,assist:this.updateData.assist_userids}}).then(({data:e,msg:i})=>{this.loadIng--,e.column_name="",e.project_name="",this.$store.dispatch("saveTask",e),$A.messageSuccess(i),this.close()}).catch(({msg:e})=>{this.loadIng--,$A.modalError(e)})},close(){this.$emit("input",!this.value)},openMenu(e,i){const t=this.$refs[`taskMenu_${i.id}`];t&&t.handleClick(e)},onStatusUpdate(e){this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},Ye={};var Ai=O(vi,wi,yi,!1,bi,null,null,null);function bi(e){for(let i in Ye)this[i]=Ye[i]}var $i=function(){return Ai.exports}(),ki=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("EDropdown",{ref:"dropdown",staticClass:"task-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:"bottom"},on:{command:e.dropTask,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"task-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"task-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"task-operation-more-warp",class:e.size},[t("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(n){return t("EDropdownItem",{key:n.id,attrs:{command:`turn::${n.id}`}},[t("div",{staticClass:"item flow"},[n.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?t("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):t("Icon",{attrs:{type:"md-radio-button-off"}}),t("div",{staticClass:"flow-name",class:n.status},[e._v(e._s(n.name))])],1)])}):[e.task.complete_at?t("EDropdownItem",{attrs:{command:"uncomplete"}},[t("div",{staticClass:"item red"},[t("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):t("EDropdownItem",{attrs:{command:"complete"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:t("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[t("div",{staticClass:"load-flow-warp"},[t("Loading")],1)]),e.task.parent_id===0?[e.operationShow?[t("EDropdownItem",{attrs:{divided:e.turns.length>0,command:"archived"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"move"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE7FC")]),e._v(e._s(e.$L("\u79FB\u52A8"))+" ")])]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e(),e.colorShow?e._l(e.taskColorList,function(n,s){return t("EDropdownItem",{key:"c_"+s,attrs:{divided:s==0,command:n}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:n.primary||"#ddd"},domProps:{innerHTML:e._s(n.color==(e.task.color||"")?"":"")}}),e._v(e._s(e.$L(n.name))+" ")])])}):e._e()]:e.operationShow?t("EDropdownItem",{attrs:{command:"remove",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]):e._e()],2)])])],1),t("Modal",{attrs:{title:e.$L("\u79FB\u52A8\u4EFB\u52A1"),"mask-closable":!1,styles:{width:"90%",maxWidth:"540px"},"footer-hide":""},model:{value:e.moveTaskShow,callback:function(n){e.moveTaskShow=n},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(n){e.moveTaskShow=n},expression:"moveTaskShow"}})],1)],1)},Si=[];const Ei={name:"TaskOperation",components:{TaskMove:$i},data(){return{task:{},loadStatus:!1,colorShow:!0,operationShow:!0,updateBefore:!1,disabled:!1,size:"small",projectId:0,onUpdate:null,element:null,target:null,styles:{},moveTaskShow:!1}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...Y(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...ct(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){return this.taskFlows.find(({task_id:e})=>e==this.task.id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:i})=>i==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:i})=>e.turns.includes(i)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const i=e.event.target.getBoundingClientRect();this.styles={left:`${i.left}px`,top:`${i.top}px`,width:`${i.width}px`,height:`${i.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.operationShow=typeof e.operationShow=="undefined"?!0:e.operationShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.projectId=typeof e.projectId=="undefined"?0:e.projectId,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",{task_id:this.task.id,project_id:this.projectId}).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const i=this.task,t=n=>{n?this.$store.dispatch("saveTaskCompleteTemp",i.id):this.$store.dispatch("forgetTaskCompleteTemp",i.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let n=$A.leftDelete(e,"turn::");if(n==this.task.flow_item_id)return;let s=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},r=this.taskFlowItems.find(({id:l})=>l==n)||{},a=s.status!=="end"&&r.status==="end",o=s.status==="end"&&r.status!=="end";this.updateBefore&&(a?t(!0):o&&t(!1)),this.updateTask({flow_item_id:n,flow_item_status:r.status,flow_item_name:r.name}).then(()=>{a?t(!0):o&&t(!1)}).catch(()=>{a?t(!1):o&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.formatDate("Y-m-d H:i:s")}).then(()=>{t(!0)}).catch(()=>{t(!1)});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&t(!1),this.updateTask({complete_at:!1}).then(()=>{t(!1)}).catch(()=>{t(!0)});break;case"archived":case"remove":this.archivedOrRemoveTask(e);break;case"move":this.moveTaskShow=!0;break}},updateTask(e){return new Promise((i,t)=>{if(this.loadIng){t();return}const n=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(n),t();return}Object.keys(e).forEach(s=>this.$set(this.task,s,e[s])),this.$store.dispatch("taskUpdate",n).then(({data:s,msg:r})=>{$A.messageSuccess(r),i(),this.$store.dispatch("saveTaskBrowse",n.task_id),typeof this.onUpdate=="function"&&this.onUpdate(s)}).catch(({msg:s})=>{$A.modalError(s),this.$store.dispatch("getTaskOne",n.task_id).catch(()=>{}),t()})})},archivedOrRemoveTask(e){let i="removeTask",t="\u5220\u9664",n={task_id:this.task.id},s=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(i="archivedTask",t="\u5F52\u6863",this.task.archived_at&&(t="\u8FD8\u539F\u5F52\u6863",n={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+s,content:"\u4F60\u786E\u5B9A\u8981"+t+s+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((r,a)=>{this.$store.dispatch(i,n).then(({msg:o})=>{r(o),this.$store.dispatch("saveTaskBrowse",n.task_id)}).catch(({msg:o})=>{a(o)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let i=this.getScrollParent(this.element);if((i===window.document.body||i===window.document.documentElement)&&(i=window),this.target){if(this.target===i)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=i,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const i=e.target.getBoundingClientRect(),t=this.element.getBoundingClientRect();if(t.topi.top+i.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const i=e.parentNode;return i?i===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(i,"overflow-y"))!==-1?i:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,i){return window.getComputedStyle(e,null)[i]}}},Ze={};var Ti=O(Ei,ki,Si,!1,Ii,null,null,null);function Ii(e){for(let i in Ze)this[i]=Ze[i]}var Ci=function(){return Ti.exports}(),Di=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{attrs:{id:"app"}},[t("keep-alive",[t("router-view",{staticClass:"child-view"})],1),t("TaskOperation"),t("FloatSpinner"),t("RightBottom"),t("PreviewImageState"),e.windowLandscape?t("NetworkException"):e._e(),t("GuidePage")],1)},xi=[];const Mi={components:{TaskOperation:Ci,NetworkException:Qn,PreviewImageState:Vn,RightBottom:Ln,FloatSpinner:Ht,GuidePage:ri},data(){return{routePath:null,searchInter:null}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),window.addEventListener("message",this.windowHandleMessage),this.searchInter=setInterval(this.searchEnter,1e3),$A.loadVConsole()},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),window.removeEventListener("message",this.windowHandleMessage),this.searchInter&&clearInterval(this.searchInter)},computed:{...Y(["ws","themeConf","windowOrientation"])},watch:{$route:{handler(e){this.routePath=e.path},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.userId>0&&this.$isEEUiApp&&($A.eeuiAppSendMessage({action:"initApp",apiUrl:$A.apiUrl(""),userid:this.userId,token:this.userToken,userAgent:window.navigator.userAgent}),setTimeout(e=>{$A.eeuiAppSendMessage({action:"setUmengAlias",url:$A.apiUrl("users/umeng/alias")})},6e3))},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},windowActive(e){e?(this.autoTheme(),this.__windowTimer&&clearTimeout(this.__windowTimer),this.__windowTimer=setTimeout(i=>{this.$store.dispatch("call",{url:"users/socket/status"}).then(t=>{this.$store.dispatch("websocketSend",{type:"handshake"}).catch(n=>{this.$store.dispatch("websocketConnection")})}).catch(t=>{this.$store.dispatch("websocketConnection")})},600)):this.$store.dispatch("audioStop",!0)}},methods:{searchEnter(){let e=$A(".sreachBox");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let i=e.find("button[type='button']"),t=null;i.length!==0&&(i.each((n,s)=>{$A(s).text().indexOf("\u641C\u7D22")&&(t=$A(s))}),t!==null&&e.find("input.ivu-input").keydown(function(n){n.keyCode==13&&(t.hasClass("ivu-btn-loading")||t.click())}))},autoTheme(){this.themeConf==="auto"&&this.$store.dispatch("synchTheme")},windowSizeListener(){const e=$A(window).width(),i=$A(window).height(),t=$A.screenOrientation();this.$store.state.windowTouch="ontouchend"in document,this.$store.state.windowWidth=e,this.$store.state.windowHeight=i,this.$store.state.windowOrientation=t,this.$store.state.windowLandscape=t==="landscape",this.$store.state.windowPortrait=t==="portrait",this.$store.state.formLabelPosition=e>576?"right":"top",this.$store.state.formLabelWidth=e>576?"auto":"",$A.eeuiAppSendMessage({action:"windowSize",width:e,height:i})},windowScrollListener(){this.$store.state.windowScrollY=window.scrollY},windowHandleMessage({data:e}){e=$A.jsonParse(e),e.action==="eeuiAppSendMessage"&&($A.isArray(e.data)?e.data:[e.data]).forEach(t=>{$A.eeuiAppSendMessage(t)})},isUseDefaultBrowser(e){if(/web\.zoom\.us/i.test(e)||/meeting\.tencent\.com/i.test(e)||/meet\.google\.com/i.test(e))return!0;if($A.getDomain(e)==$A.getDomain($A.mainUrl()))try{if(/^\/uploads\//i.test(new URL(e).pathname))return!0}catch{}return!1},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$Modal.removeLast())return!0},window.__onBeforeOpenWindow=({url:e})=>this.isUseDefaultBrowser(e)?!1:(this.$store.dispatch("openWebTabWindow",e),!0),this.$Electron.registerMsgListener("dispatch",e=>{if(!$A.isJson(e))return;let{action:i,data:t}=e;this.$store.dispatch(i,t)}),this.$Electron.registerMsgListener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.registerMsgListener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),$A.bindScreenshotKey(this.$store.state.cacheKeyboard),this.$Electron.sendMessage("setMenuLanguage",{openInBrowser:this.$L("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00"),saveImageAs:this.$L("\u56FE\u7247\u5B58\u50A8\u4E3A..."),copyImage:this.$L("\u590D\u5236\u56FE\u7247"),copyEmailAddress:this.$L("\u590D\u5236\u7535\u5B50\u90AE\u4EF6\u5730\u5740"),copyLinkAddress:this.$L("\u590D\u5236\u94FE\u63A5\u5730\u5740"),copyImageAddress:this.$L("\u590D\u5236\u56FE\u7247\u5730\u5740"),failedToSaveImage:this.$L("\u56FE\u7247\u4FDD\u5B58\u5931\u8D25"),theImageFailedToSave:this.$L("\u56FE\u7247\u65E0\u6CD5\u4FDD\u5B58")}))},eeuiEvents(){!this.$isEEUiApp||(window.__onAppActive=()=>{this.autoTheme(),$A.IDBTest()},window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0?this.$store.dispatch("getBasicData",600):this.autoTheme()},window.__onCreateTarget=e=>{if(this.isUseDefaultBrowser(e)){$A.eeuiAppOpenWeb(e);return}this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e,browser:!0,showProgress:!0}})},window.__onMeetingEvent=({act:e,uuid:i,meetingid:t})=>{switch(e){case"getInfo":const n=(i+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:n?"users/meeting/tourist":"users/basic",data:{userid:n?i:(i+"").substring(6),tourist_id:i}}).then(({data:s})=>{var r,a;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:i,avatar:n?s==null?void 0:s.userimg:(r=s[0])==null?void 0:r.userimg,username:n?s==null?void 0:s.nickname:(a=s[0])==null?void 0:a.nickname}})}).catch(({msg:s})=>{$A.modalError(s)});break;case"success":this.$store.dispatch("closeMeetingWindow","add");break;case"invent":this.$store.dispatch("showMeetingWindow",{type:"invitation",meetingid:t});break;case"endMeeting":break;case"error":this.$store.dispatch("closeMeetingWindow","error");break}},window.__onKeyboardStatus=e=>{const i=$A.jsonParse(decodeURIComponent(e));this.$store.state.keyboardType=i.keyboardType,this.$store.state.keyboardHeight=i.keyboardHeight,this.$store.state.safeAreaBottom=i.safeAreaBottom},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1},window.__handleLink=e=>{this.goForward({path:(e||"").indexOf("/")!==0?"/"+e:e})},$A.eeuiAppSendMessage({action:"windowSize",width:this.windowWidth,height:this.windowHeight}),$A.eeuiAppSetHapticBackEnabled(!1),$A.eeuiAppSetVariate("languageWebBrowser",this.$L("\u6D4F\u89C8\u5668\u6253\u5F00")),$A.eeuiAppSetVariate("languageWebRefresh",this.$L("\u5237\u65B0")))},otherEvents(){if(!this.$isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,i=e.replace(/hidden/i,"visibilitychange");document.addEventListener(i,()=>{this.$store.state.windowActive=!document[e]})}}}},Xe={};var Li=O(Mi,Di,xi,!1,Oi,"1a09ece0",null,null);function Oi(e){for(let i in Xe)this[i]=Xe[i]}var Pi=function(){return Li.exports}(),Ri=[{name:"index",path:"/",component:()=>k(()=>import("./index.26e84caa.js"),["js/build/index.26e84caa.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>k(()=>import("./pro.3ef8a217.js"),["js/build/pro.3ef8a217.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>k(()=>import("./meeting.f26583ce.js"),["js/build/meeting.f26583ce.js","js/build/MeetingManager.f1d05517.js","js/build/le5le-store.b40f9152.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>k(()=>import("./manage.2f051742.js"),["js/build/manage.2f051742.js","js/build/manage.5dc9aad0.css","js/build/vuex.cc7cb26e.js","js/build/CheckinExport.601957c7.js","js/build/CheckinExport.68b4950e.css","js/build/tip.e9c85d1f.js","js/build/ReportEdit.e54407e0.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.822059d1.js","js/build/index.92bfd6b8.js","js/build/le5le-store.b40f9152.js","js/build/TaskDetail.1b7e7bb8.js","js/build/TaskDetail.12a04d96.css","js/build/ProjectLog.d2e94cb9.js","js/build/DialogWrapper.4f742dbc.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.c85eceed.js","js/build/quill-delta.72524c38.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.91f4d524.js","js/build/lodash.isequal.0dd437dc.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.beaa1617.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.f3f58d09.js","js/build/vue.eaf71fac.js","js/build/ImgUpload.b233effb.js","js/build/view-design-hi.76cbd75d.js","js/build/details.663d818a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js","js/build/MeetingManager.f1d05517.js","js/build/ApproveExport.b1600867.js","js/build/notification-koro1.99b93615.js","js/build/MicroApps.aa6194e7.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>k(()=>import("./dashboard.3cd7bbf3.js"),["js/build/dashboard.3cd7bbf3.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>k(()=>import("./calendar.e47babb8.js"),["js/build/calendar.e47babb8.js","js/build/vuex.cc7cb26e.js","js/build/tui-date-picker.87c69814.js","js/build/tui-date-picker.9bc23968.css","js/build/tui-time-picker.edd3de9f.js","js/build/tui-time-picker.54a418b9.css","js/build/tui-calendar-hi.ae5960be.js","js/build/tui-calendar-hi.3658e7fa.css","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/tui-code-snippet.449e7a67.js","js/build/moment.620e955d.js","js/build/le5le-store.b40f9152.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>k(()=>import("./messenger.04c1715a.js"),["js/build/messenger.04c1715a.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.4f742dbc.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.92bfd6b8.js","js/build/quill-hi.c85eceed.js","js/build/quill-delta.72524c38.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.91f4d524.js","js/build/lodash.isequal.0dd437dc.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.beaa1617.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.f3f58d09.js","js/build/vue.eaf71fac.js","js/build/ImgUpload.b233effb.js","js/build/view-design-hi.76cbd75d.js","js/build/details.663d818a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.e9c85d1f.js"])},{name:"manage-approve",path:"approve",component:()=>k(()=>import("./index.43c0c37f.js"),["js/build/index.43c0c37f.js","js/build/index.bfb171e3.css","js/build/details.663d818a.js","js/build/ImgUpload.b233effb.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/index.92bfd6b8.js","js/build/ApproveExport.b1600867.js","js/build/CheckinExport.68b4950e.css"])},{name:"manage-approve-details",path:"approve/details",component:()=>k(()=>import("./details.663d818a.js"),["js/build/details.663d818a.js","js/build/ImgUpload.b233effb.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-apps",path:"apps/*",component:()=>k(()=>import("./apps.e7732887.js"),["js/build/apps.e7732887.js","js/build/MicroApps.aa6194e7.js","js/build/vue.eaf71fac.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.4f742dbc.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.92bfd6b8.js","js/build/quill-hi.c85eceed.js","js/build/quill-delta.72524c38.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.91f4d524.js","js/build/lodash.isequal.0dd437dc.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.beaa1617.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.f3f58d09.js","js/build/ImgUpload.b233effb.js","js/build/view-design-hi.76cbd75d.js","js/build/details.663d818a.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.e9c85d1f.js"])},{name:"manage-setting",path:"setting",component:()=>k(()=>import("./index.e3114e7c.js"),["js/build/index.e3114e7c.js","js/build/index.274f71f0.css","js/build/vuex.cc7cb26e.js","js/build/le5le-store.b40f9152.js","js/build/axios.6ec123f8.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>k(()=>import("./personal.f1b6bad4.js"),["js/build/personal.f1b6bad4.js","js/build/ImgUpload.b233effb.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>k(()=>import("./checkin.e5796891.js"),["js/build/checkin.e5796891.js","js/build/checkin.01811e2e.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>k(()=>import("./language.828bac9b.js"),["js/build/language.828bac9b.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>k(()=>import("./theme.ce4f7a83.js"),["js/build/theme.ce4f7a83.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>k(()=>import("./keyboard.38e82f76.js"),["js/build/keyboard.38e82f76.js","js/build/keyboard.b6840672.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>k(()=>import("./license.8f9514f2.js"),["js/build/license.8f9514f2.js","js/build/license.c7d9ffba.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>k(()=>import("./password.b22d7fc3.js"),["js/build/password.b22d7fc3.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>k(()=>import("./email.533d264e.js"),["js/build/email.533d264e.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>k(()=>import("./system.ee7d6f03.js"),["js/build/system.ee7d6f03.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>k(()=>import("./delete.258f9007.js"),["js/build/delete.258f9007.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite",component:()=>k(()=>import("./projectInvite.1a76d49e.js"),["js/build/projectInvite.1a76d49e.js","js/build/projectInvite.d01e3a2d.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>k(()=>import("./project.7145e58b.js"),["js/build/project.7145e58b.js","js/build/vuex.cc7cb26e.js","js/build/vuedraggable.c8fae132.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/sortablejs.8b819437.js","js/build/ProjectLog.d2e94cb9.js","js/build/le5le-store.b40f9152.js","js/build/index.92bfd6b8.js","js/build/tip.e9c85d1f.js","js/build/DialogWrapper.4f742dbc.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.c85eceed.js","js/build/quill-delta.72524c38.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.91f4d524.js","js/build/lodash.isequal.0dd437dc.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.beaa1617.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.f3f58d09.js","js/build/vue.eaf71fac.js","js/build/ImgUpload.b233effb.js","js/build/view-design-hi.76cbd75d.js","js/build/details.663d818a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/default-passive-events.a3d698c9.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>k(()=>import("./file.f8d9732d.js"),["js/build/file.f8d9732d.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.9e3f755f.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/index.92bfd6b8.js","js/build/longpress.5305f240.js","js/build/tip.e9c85d1f.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>k(()=>import("./application.a386c7fb.js"),["js/build/application.a386c7fb.js","js/build/vuex.cc7cb26e.js","js/build/index.92bfd6b8.js","js/build/CheckinExport.601957c7.js","js/build/CheckinExport.68b4950e.css","js/build/tip.e9c85d1f.js","js/build/ReportEdit.e54407e0.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.822059d1.js","js/build/checkin.e5796891.js","js/build/checkin.01811e2e.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>k(()=>import("./fileMsg.f3988070.js"),["js/build/fileMsg.f3988070.js","js/build/fileMsg.1a0b76dd.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>k(()=>import("./fileTask.4bc5cd8d.js"),["js/build/fileTask.4bc5cd8d.js","js/build/fileTask.93338ba0.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.c1a86434.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>k(()=>import("./file.474bab15.js"),["js/build/file.474bab15.js","js/build/file.1759f11c.css","js/build/FileContent.fefeb44a.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.6f0543c4.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>k(()=>import("./taskContent.f83848a2.js"),["js/build/taskContent.f83848a2.js","js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/ImgUpload.b233effb.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>k(()=>import("./task.b2ee03b1.js"),["js/build/task.b2ee03b1.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.1b7e7bb8.js","js/build/TaskDetail.12a04d96.css","js/build/vuex.cc7cb26e.js","js/build/ProjectLog.d2e94cb9.js","js/build/DialogWrapper.4f742dbc.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.92bfd6b8.js","js/build/quill-hi.c85eceed.js","js/build/quill-delta.72524c38.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.91f4d524.js","js/build/lodash.isequal.0dd437dc.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.beaa1617.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.f3f58d09.js","js/build/vue.eaf71fac.js","js/build/ImgUpload.b233effb.js","js/build/view-design-hi.76cbd75d.js","js/build/details.663d818a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.e9c85d1f.js","js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js"])},{name:"single-apps",path:"/single/apps/*",component:()=>k(()=>import("./apps.5d5342c9.js"),["js/build/apps.5d5342c9.js","js/build/MicroApps.aa6194e7.js","js/build/vue.eaf71fac.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.4f742dbc.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.92bfd6b8.js","js/build/quill-hi.c85eceed.js","js/build/quill-delta.72524c38.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.91f4d524.js","js/build/lodash.isequal.0dd437dc.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.beaa1617.js","js/build/vue-jsonp.be27271b.js","js/build/vue-virtual-scroll-list-hi.f3f58d09.js","js/build/ImgUpload.b233effb.js","js/build/view-design-hi.76cbd75d.js","js/build/details.663d818a.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/tip.e9c85d1f.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>k(()=>import("./validEmail.d3e74390.js"),["js/build/validEmail.d3e74390.js","js/build/validEmail.6e361ca9.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>k(()=>import("./reportEdit.63f4e221.js"),["js/build/reportEdit.63f4e221.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.e54407e0.js","js/build/openpgp_hi.15f91b1d.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>k(()=>import("./reportDetail.64d7223c.js"),["js/build/reportDetail.64d7223c.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.822059d1.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>k(()=>import("./token.79deb86b.js"),["js/build/token.79deb86b.js","js/build/token.7afc4e00.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>k(()=>import("./login.6c6c873f.js"),["js/build/login.6c6c873f.js","js/build/vuex.cc7cb26e.js","js/build/le5le-store.b40f9152.js","js/build/@chenfengyuan.dfd1ecb7.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>k(()=>import("./404.8b9ce07a.js"),["js/build/404.8b9ce07a.js","js/build/404.d686a01f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const ve=$A(window).width(),Ni=$A(window).height(),Ae=$A.screenOrientation();var Bi={clientId:"",cacheVersion:"v7",windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:ve,windowHeight:Ni,windowOrientation:Ae,windowLandscape:Ae==="landscape",windowPortrait:Ae==="portrait",formLabelPosition:ve>576?"right":"top",formLabelWidth:ve>576?"auto":"",keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,audioPlaying:null,routeHistorys:[],routeHistoryLast:{},callAt:[],loads:[],loadDashboardTasks:!1,loadUserBasic:!1,loadProjects:0,loadDialogs:0,loadDialogAuto:!1,loadDialogLatestId:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserActive:{},cacheUserWait:[],cacheUserBasic:[],cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheTaskBrowse:[],cacheEmojis:[],cacheServerUrl:"",cacheKeyboard:{},ajaxWsReady:!1,ajaxWsListener:[],ajaxNetworkException:!1,ws:null,wsMsg:{},wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,wsListener:{},userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userAvatar:{},dialogId:0,dialogMsgId:0,dialogMsgKeep:25,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogMsgTops:[],dialogHistory:[],dialogDraftTimer:{},dialogMsgTransfer:{time:0},dialogSseList:[],dialogDroupWordChain:{},dialogGroupVote:{},messengerSearchKey:{dialog:"",contacts:""},readLoadNum:0,readTimeout:null,readWaitData:{},fileLists:[],fileLinks:[],filePackLists:[],projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskArchiveView:0,taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u7070\u8272",color:"#999999"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u6A58\u8272",color:"#faaa6c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u7EA2\u8272",color:"#ff7070"}],taskColorList:[{name:"\u9ED8\u8BA4",color:"",primary:""},{name:"\u9EC4\u8272",color:"#fffae6",primary:"#f2d86d"},{name:"\u84DD\u8272",color:"#e5f5ff",primary:"#51abea"},{name:"\u7EFF\u8272",color:"#ecffe5",primary:"#73b45c"},{name:"\u7C89\u8272",color:"#ffeaee",primary:"#ff819c"},{name:"\u7D2B\u8272",color:"#f6ecff",primary:"#b583e3"},{name:"\u7070\u8272",color:"#f3f3f3",primary:"#999999"}],themeConf:window.localStorage.getItem("__system:themeConf__"),themeName:null,themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],clientNewVersion:null,previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,apiKeyData:{},localKeyPair:{},localKeyLock:!1,systemConfig:{},approveUnreadNumber:0,meetingWindow:{show:!1,type:"",meetingid:0},okrWindow:{type:"open",model:"details",id:0,show:!1}},Ui={isLoad(e){return function(i){const t=e.loads.find(n=>n.key===i);return!!(t&&t.num>0)}},projectData(e){if(e.projectId>0){let i=e.cacheProjects.find(({id:t})=>t==e.projectId);if(i){let t=e.cacheProjectParameter.find(({project_id:n})=>n==e.projectId);return t||(t=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(t)),t.menuType===void 0&&(t.menuType="column"),i.cacheParameter=t,i}}return{cacheParameter:{}}},taskData(e){let i=e.taskId;if(i==0&&(i=$A.runNum(window.__taskId)),i>0){window.__taskId=i;const t=e.cacheTasks.find(({id:n})=>n==i);if(t)return t}return{}},transforTasks(e){return function(i){return i.filter(({parent_id:t})=>!(t>0&&i.find(({id:n})=>n==t))).map(t=>{if(t.parent_id>0){const n=e.cacheTasks.find(({id:s})=>s==t.parent_id);return n?Object.assign({},n,{id:t.id,parent_id:t.parent_id,name:t.name,start_at:t.start_at,end_at:t.end_at,complete_at:t.complete_at,_time:t._time,flow_item_id:t.flow_item_id,flow_item_name:t.flow_item_name,flow_item_status:t.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},t,{sub_top:!0,sub_my:[]})}else return Object.assign({},t,{sub_top:!1,sub_my:i.filter(({parent_id:n})=>n==t.id)})})}},dashboardTask(e){const i=$A.Date($A.formatDate("Y-m-d 00:00:00")),t=$A.Date($A.formatDate("Y-m-d 23:59:59")),n=$A.Date($A.formatDate("Y-m-d H:i:s")),s=(u,f=!0)=>u.archived_at||u.complete_at&&f===!0?!1:u.owner==1;let r=e.cacheTasks.filter(u=>s(u)),a=0;if(e.taskCompleteTemps.length>0){let u=e.cacheTasks.filter(f=>e.taskCompleteTemps.includes(f.id)&&s(f,!1));u.length>0&&(a=u.length,r=$A.cloneJSON(r),r.push(...u))}const o=r.filter(u=>{const f=$A.Date(u.end_at);return i<=f&&f<=t}),l=r.filter(u=>u.end_at&&$A.Date(u.end_at)<=n),c={today:o,today_count:o.length,overdue:l,overdue_count:l.length,all:r,all_count:r.length};return a>0&&(c.today_count-=o.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.overdue_count-=l.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.all_count-=a),c},assistTask(e){const i=(n,s=!0)=>n.archived_at||n.complete_at&&s===!0?!1:n.assist&&n.owner===0;let t=e.cacheTasks.filter(n=>i(n));if(e.taskCompleteTemps.length>0){let n=e.cacheTasks.filter(s=>e.taskCompleteTemps.includes(s.id)&&i(s,!1));n.length>0&&(t=$A.cloneJSON(t),t.push(...n))}return t}};function Fi(e,i,t){$A.isJson(i)||(i={});const n=e+"::"+encodeURIComponent(new URLSearchParams($.sortObject(i,["page","pagesize","timerange"])).toString()),s=t.callAt.find(r=>r.key===n)||{};return typeof s.key=="undefined"&&(s.key=n,s.updated=0,s.deleted=0,t.callAt.push(s),$A.IDBSet("callAt",t.callAt).then(r=>{})),this.get=()=>(i.timerange=i.timerange||`${s.updated||0},${s.deleted||0}`,i),this.save=({total:r,current_page:a,deleted_id:o})=>new Promise(l=>{if(a===1){let c=!1;const u=$A.Time();r>0&&(s.updated=u,c=!0),$A.isArray(o)&&o.length>0?(s.deleted=u,c=!0):o=[],c?$A.IDBSet("callAt",t.callAt).then(f=>l(o)):l(o)}}),this}function be(e,i,t){return new Fi(e,i,t)}function Wi(e,i=!0){return e&&(i?e=String(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\n/g,"$"):e=String(e).replace(/\-/g,"+").replace(/\_/g,"/").replace(/\$/g,` `)),e}const Gi={retry:5,interval:3*1e3};class ji{constructor(i,t=Gi){this.url=i,this.es=null,this.options=t,this.retry=t.retry,this.timer=null}_onOpen(){window.systemInfo.debug==="yes"&&console.log("SSE open: "+this.url)}_onMessage(i,t){return n=>{this.retry=this.options.retry,typeof t=="function"&&t(i,n)}}_onError(i,t){return()=>{window.systemInfo.debug==="yes"&&console.log("SSE retry: "+this.url),this.es&&(this._removeAllEvent(i,t),this.unsunscribe()),this.retry>0&&(this.retry--,this.timer=setTimeout(()=>{this.subscribe(i,t)},this.options.interval))}}_removeAllEvent(i,t){i=$A.isArray(i)?i:[i],this.es.removeEventListener("open",this._onOpen),i.some(n=>{this.es.removeEventListener(n,this._onMessage(n,t))}),this.es.removeEventListener("error",this._onError(i,t))}subscribe(i,t){i=$A.isArray(i)?i:[i],this.es=new EventSource(this.url),this.es.addEventListener("open",this._onOpen),i.some(n=>{this.es.addEventListener(n,this._onMessage(n,t))}),this.es.addEventListener("error",this._onError(i,t))}unsunscribe(){this.es&&(this.es.close(),this.es=null),this.timer&&clearTimeout(this.timer),window.systemInfo.debug==="yes"&&console.log("SSE cancel: "+this.url)}}var zi={init({state:e,dispatch:i}){return new Promise(async t=>{let n=null;const s=await $A.IDBString("clearCache");s&&(s==="handle"&&(n="handleClearCache"),await $A.IDBRemove("clearCache"),await $A.IDBRemove("cacheVersion")),await $A.IDBString("cacheVersion")!==e.cacheVersion?await i("handleClearCache"):await i("handleReadCache"),await i("synchTheme"),await i("handleKeyboard"),e.clientId||(e.clientId=$A.randomString(6),await $A.IDBSet("clientId",e.clientId)),i("call",{url:"users/key/client",data:{client_id:e.clientId},encrypt:!1}).then(({data:a})=>{e.apiKeyData=a}),i("systemSetting"),await $A.loadScriptS(["language/web/key.js",`language/web/${Q}.js`]),t(n)})},call({state:e,dispatch:i},t){var r;$A.isJson(t)||(t={url:t});const n={"Content-Type":"application/json",language:Q,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if(!e.userToken&&((r=e.meetingWindow)==null?void 0:r.meetingSharekey)&&(n.sharekey=e.meetingWindow.meetingSharekey),$A.isJson(t.header)?t.header=Object.assign(n,t.header):t.header=n,e.systemConfig.e2e_message==="open"&&t.encrypt===void 0&&$A.inArray(t.url,["users/login","users/editpass","users/operation","users/delete/account","system/license","users/bot/*","dialog/msg/*"],!0)&&(t.encrypt=!0),t.encrypt){const a=window.navigator.userAgent;(window.systemInfo.debug==="yes"||/Windows NT 5.1|Windows XP/.test(a)||a.indexOf("Windows NT 6.0")!==-1||a.indexOf("Windows NT 6.1")!==-1||a.indexOf("Windows NT 6.2")!==-1)&&(t.encrypt=!1)}t.url=$A.apiUrl(t.url),t.data=$A.date2string(t.data);const s=$A.cloneJSON(t);return new Promise(async(a,o)=>{if(/^https*:\/\/public\//.test(t.url)){o({ret:-1,data:{},msg:"No server address"});return}const l=[];if(t.encrypt===!0&&(t.data&&e.apiKeyData.type==="pgp"&&(l.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),t.method="post",t.data={encrypted:await i("pgpEncryptApi",t.data)}),l.push("client_type=pgp;client_key="+(await i("pgpGetLocalKey")).publicKeyB64)),l.length>0&&(t.header.encrypt=l.join(";")),t.method==="post"&&(t.data=JSON.stringify(t.data)),t.spinner===!0||typeof t.spinner=="number"&&t.spinner>0){const{before:c,complete:u}=t;t.before=()=>{i("showSpinner",typeof t.spinner=="number"?t.spinner:0),typeof c=="function"&&c()},t.complete=()=>{i("hiddenSpinner"),typeof u=="function"&&u()}}if(t.success=async(c,u,f)=>{if(e.ajaxNetworkException=!1,!$A.isJson(c)){console.log(c,u,f),o({ret:-1,data:{},msg:"Return error"});return}t.encrypt===!0&&c.encrypted&&(c=await i("pgpDecryptApi",c.encrypted));const{ret:d,data:h,msg:p}=c;if(d===-1&&(e.userId=0,t.skipAuthError!==!0)){$A.modalError({content:p,onOk:()=>{i("logout")}}),o(c);return}if(d===-2&&t.checkNick!==!1){i("userEditInput","nickname").then(()=>{i("call",s).then(a).catch(o)}).catch(w=>{o({ret:-1,data:h,msg:w||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0\uFF01")})});return}if(d===-3&&t.checkTel!==!1){i("userEditInput","tel").then(()=>{i("call",s).then(a).catch(o)}).catch(w=>{o({ret:-1,data:h,msg:w||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD\uFF01")})});return}d===1?a({data:h,msg:p}):(o({ret:d,data:h,msg:p||"Unknown error"}),d===-4001?i("forgetProject",h.project_id):d===-4002?i("forgetTask",h.task_id):d===-4003&&i("forgetDialog",h.dialog_id))},t.error=(c,u)=>{const f=window.navigator.onLine===!1||u===0&&c.readyState===4;if(f&&s.method!=="post"&&s.__networkFailureRetry!==!0){setTimeout(d=>{s.__networkFailureRetry=!0,i("call",s).then(a).catch(o)},1e3);return}t.checkNetwork!==!1&&(e.ajaxNetworkException=f),o(f?{ret:-1001,data:{},msg:"Network exception"}:{ret:-1,data:{},msg:"System error"}),console.error(c,u)},t.websocket===!0){const c=$A.randomString(16),u=setTimeout(()=>{const f=e.ajaxWsListener.find(d=>d.apiWebsocket==c);f&&(f.complete(),f.error("timeout"),f.after()),e.ajaxWsListener=e.ajaxWsListener.filter(d=>d.apiWebsocket!=c)},t.timeout||3e4);e.ajaxWsListener.push({apiWebsocket:c,complete:typeof t.complete=="function"?t.complete:()=>{},success:typeof t.success=="function"?t.success:()=>{},error:typeof t.error=="function"?t.error:()=>{},after:typeof t.after=="function"?t.after:()=>{}}),t.complete=()=>{},t.success=()=>{},t.error=()=>{},t.after=()=>{},t.header["Api-Websocket"]=c,e.ajaxWsReady===!1&&(e.ajaxWsReady=!0,i("websocketMsgListener",{name:"apiWebsocket",callback:f=>{switch(f.type){case"apiWebsocket":clearTimeout(u);const d=f.apiWebsocket,h=f.apiSuccess,p=f.data,w=e.ajaxWsListener.find(g=>g.apiWebsocket==d);w&&(w.complete(),h?w.success(p):w.error(p),w.after()),e.ajaxWsListener=e.ajaxWsListener.filter(g=>g.apiWebsocket!=d);break}}}))}$A.ajaxc(t)})},callCancel({state:e},i){return new Promise((t,n)=>{$A.ajaxcCancel(i)?t():n()})},systemSetting({dispatch:e,state:i}){return new Promise((t,n)=>{switch(i.systemConfig.__state){case"success":t(i.systemConfig);break;case"loading":setTimeout(s=>{e("systemSetting").then(t).catch(n)},100);break;default:i.systemConfig.__state="loading",e("call",{url:"system/setting"}).then(({data:s})=>{i.systemConfig=Object.assign(s,{__state:"success"}),t(i.systemConfig)}).catch(s=>{i.systemConfig.__state="error",n()});break}})},needHome({dispatch:e,state:i}){return new Promise((t,n)=>{if($A.isSoftware){n();return}e("systemSetting").then(s=>{s.start_home==="open"?t():n()}).catch(n)})},downUrl({state:e},i){if(!i)return;let t=i,n=!0;if($A.isJson(i)&&(t=i.url,n=!!i.token),n){let s={token:e.userToken};$A.isJson(i)&&(t=i.url,s=i.params||{}),t=$A.urlAddParams(t,s)}$A.Electron?$A.Electron.request({action:"openExternal",url:t},()=>{},()=>{}):$A.isEEUiApp?$A.eeuiAppOpenWeb(t):window.open(t)},filePos({state:e,dispatch:i},t){if($A.isSubElectron){$A.execMainDispatch("filePos",t),$A.Electron.sendMessage("mainWindowActive");return}i("openTask",0),e.windowPortrait&&i("openDialog",0),$A.goForward({name:"manage-file",params:t})},toggleProjectParameter({state:e},i){$A.execMainDispatch("toggleProjectParameter",i);let t=i,n=null,s=e.projectId;if($A.isJson(i)&&(t=i.key,n=i.value,s=i.project_id),s){let r=e.cacheProjectParameter.findIndex(o=>o.project_id==s);r===-1&&(e.cacheProjectParameter.push($A.projectParameterTemplate(s)),r=e.cacheProjectParameter.findIndex(o=>o.project_id==s));const a=e.cacheProjectParameter[r];$A.isJson(t)||(t={[t]:n||!a[t]}),e.cacheProjectParameter.splice(r,1,Object.assign(a,t)),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)}},setTheme({state:e,dispatch:i},t){return new Promise(function(n){if(t===void 0){n(!1);return}if(!$A.dark.utils.supportMode()){$A.isEEUiApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),n(!1);return}i("synchTheme",t),n(!0)})},synchTheme({state:e,dispatch:i},t=void 0){switch(typeof t=="undefined"?t=e.themeConf:e.themeConf=t,t){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:e.themeConf="auto",$A.dark.autoDarkMode();break}e.themeName=$A.dark.isDarkEnabled()?"dark":"light",window.localStorage.setItem("__system:themeConf__",e.themeConf),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"updateTheme",themeName:e.themeName})},getBasicData({state:e,dispatch:i},t){if(typeof t=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),t>-1&&(window.__getBasicDataTimer=setTimeout(r=>i("getBasicData",null),t));return}const n=e.userId+$A.Time();if(window.__getBasicDataKey===n)return;window.__getBasicDataKey=n,i("getProjects").catch(()=>{}),i("getDialogAuto").catch(()=>{}),i("getDialogTodo",0).catch(()=>{}),i("getReportUnread",1e3),i("getApproveUnread",1e3),i("getTaskForDashboard"),i("dialogMsgRead");const s=Object.values(e.userAvatar).map(({userid:r})=>r);[...new Set(s)].some(r=>i("getUserBasic",{userid:r}))},getReportUnread({state:e,dispatch:i},t){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{e.userId===0?e.reportUnreadNumber=0:i("call",{url:"report/unread"}).then(({data:n})=>{e.reportUnreadNumber=n.total||0}).catch(n=>{})},typeof t=="number"?t:1e3)},getApproveUnread({state:e,dispatch:i},t){window.__getApproveUnread&&clearTimeout(window.__getApproveUnread),window.__getApproveUnread=setTimeout(()=>{e.userId===0?e.approveUnreadNumber=0:i("call",{url:"approve/process/doto"}).then(({data:n})=>{e.approveUnreadNumber=n.total||0}).catch(({msg:n})=>{n.indexOf("404 not found")!==-1&&$A.modalInfo({title:"\u7248\u672C\u8FC7\u4F4E",content:"\u670D\u52A1\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7\u670D\u52A1\u5668\u3002"})})},typeof t=="number"?t:1e3)},getUserInfo({dispatch:e}){return new Promise(function(i,t){e("call",{url:"users/info"}).then(n=>{e("saveUserInfo",n.data),i(n)}).catch(n=>{console.warn(n),t(n)})})},saveUserInfoBase({state:e,dispatch:i},t){return new Promise(async n=>{const s=$A.cloneJSON(t);s.userid=$A.runNum(s.userid),s.token=s.userid>0?s.token||e.userToken:"",e.userInfo=s,e.userId=s.userid,e.userToken=s.token,e.userIsAdmin=$A.inArray("admin",s.identity),await $A.IDBSet("userInfo",e.userInfo),$A.eeuiAppSendMessage({action:"userChatList",token:e.userToken,url:$A.mainUrl("api/users/share/list")+`?token=${e.userToken}`}),$A.eeuiAppSendMessage({action:"userUploadUrl",token:e.userToken,dirUrl:$A.mainUrl("api/file/content/upload")+`?token=${e.userToken}`,chatUrl:$A.mainUrl("api/dialog/msg/sendfiles")+`?token=${e.userToken}`}),n()})},saveUserInfo({state:e,dispatch:i},t){return new Promise(async n=>{await i("saveUserInfoBase",t),i("getBasicData",null),e.userId>0&&(e.cacheUserBasic=e.cacheUserBasic.filter(({userid:s})=>s!==e.userId),i("saveUserBasic",e.userInfo)),n()})},getUserBasic({state:e,dispatch:i},t){if(e.loadUserBasic===!0){t&&e.cacheUserWait.push(t);return}let n=$A.Time(),s=$A.cloneJSON(e.cacheUserWait);t&&t.userid&&s.push(t),e.cacheUserWait=[];let r=[],a=0;s.some(o=>{let l=e.cacheUserBasic.find(({userid:c})=>c==o.userid);if(l&&n-l._time<=30)return setTimeout(()=>{e.cacheUserActive=Object.assign(l,{__:Math.random()}),V.Store.set("userActive",{type:"cache",data:l})},a+=5),!1;r.push(o)}),r.length!==0&&(r.length>30&&(e.cacheUserWait=r.slice(30),r=r.slice(0,30)),e.loadUserBasic=!0,i("call",{url:"users/basic",data:{userid:[...new Set(r.map(({userid:o})=>o))]},skipAuthError:!0}).then(o=>{n=$A.Time(),r.forEach(l=>{let c=o.data.find(({userid:u})=>u==l.userid)||Object.assign(l,{email:""});c._time=n,i("saveUserBasic",c)}),e.loadUserBasic=!1,i("getUserBasic")}).catch(o=>{console.warn(o),e.loadUserBasic=!1,i("getUserBasic")}))},saveUserBasic({state:e},i){$A.execMainDispatch("saveUserBasic",i);const t=e.cacheUserBasic.findIndex(({userid:n})=>n==i.userid);t>-1?(i=Object.assign({},e.cacheUserBasic[t],i),e.cacheUserBasic.splice(t,1,i)):e.cacheUserBasic.push(i),e.cacheUserActive=Object.assign(i,{__:Math.random()}),V.Store.set("userActive",{type:"cache",data:i}),$A.IDBSave("cacheUserBasic",e.cacheUserBasic)},userEditInput({dispatch:e},i){return new Promise(function(t,n){let s="";if(i==="nickname")s="\u6635\u79F0";else if(i==="tel")s="\u8054\u7CFB\u7535\u8BDD";else{n("\u53C2\u6570\u9519\u8BEF");return}setTimeout(r=>{$A.modalInput({title:`\u8BBE\u7F6E${s}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${s}`,okText:"\u4FDD\u5B58",onOk:a=>a?new Promise((o,l)=>{e("call",{url:"users/editdata",data:{[i]:a},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(c=>{o(),t()})}).catch(({msg:c})=>{l(c)})}):`\u8BF7\u8F93\u5165${s}`,onCancel:a=>n})},100)})},logout({state:e,dispatch:i},t=!0){i("handleClearCache",{}).then(()=>{let n=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);t===!1&&(n=null),$A.goForward({name:"login",query:n?{from:n}:{}},!0)})},handleKeyboard({state:e},i){return new Promise(t=>{window.localStorage.getItem("__system:keyboardConf__")||(window.localStorage.setItem("__system:keyboardConf__",window.localStorage.getItem("__keyboard:data__")),window.localStorage.removeItem("__keyboard:data__"));const n=$A.isJson(i)?i:$A.jsonParse(window.localStorage.getItem("__system:keyboardConf__"))||{};n.screenshot_key=(n.screenshot_key||"").trim().toLowerCase(),n.send_button_app=n.send_button_app||"button",n.send_button_desktop=n.send_button_desktop||"enter",window.localStorage.setItem("__system:keyboardConf__",$A.jsonStringify(n)),e.cacheKeyboard=n,t(n)})},handleClearCache({state:e,dispatch:i},t){return new Promise(async n=>{const s=window.localStorage.getItem("__system:themeConf__"),r=window.localStorage.getItem("__system:languageName__"),a=window.localStorage.getItem("__system:keyboardConf__");window.localStorage.clear(),window.localStorage.setItem("__system:themeConf__",s),window.localStorage.setItem("__system:languageName__",r),window.localStorage.setItem("__system:keyboardConf__",a);const o=await $A.IDBString("clientId"),l=await $A.IDBString("cacheServerUrl"),c=await $A.IDBArray("cacheProjectParameter"),u=await $A.IDBString("cacheLoginEmail"),f=await $A.IDBJson("cacheFileSort"),d=await $A.IDBArray("cacheTaskBrowse"),h=await $A.IDBArray("cacheEmojis"),p=await $A.IDBJson("userInfo");await $A.IDBClear(),await $A.IDBSet("clientId",o),await $A.IDBSet("cacheServerUrl",l),await $A.IDBSet("cacheProjectParameter",c),await $A.IDBSet("cacheLoginEmail",u),await $A.IDBSet("cacheFileSort",f),await $A.IDBSet("cacheTaskBrowse",d),await $A.IDBSet("cacheEmojis",h),await $A.IDBSet("cacheVersion",e.cacheVersion),await i("saveUserInfoBase",$A.isJson(t)?t:p),await i("handleReadCache"),n()})},handleReadCache({state:e}){return new Promise(async i=>{e.clientId=await $A.IDBString("clientId"),e.cacheServerUrl=await $A.IDBString("cacheServerUrl"),e.cacheUserBasic=await $A.IDBArray("cacheUserBasic"),e.cacheDialogs=(await $A.IDBArray("cacheDialogs")).map(s=>Object.assign(s,{loading:!1,extra_draft_has:s.extra_draft_content?1:0})),e.cacheProjects=await $A.IDBArray("cacheProjects"),e.cacheColumns=await $A.IDBArray("cacheColumns"),e.cacheTasks=await $A.IDBArray("cacheTasks"),e.cacheProjectParameter=await $A.IDBArray("cacheProjectParameter"),e.cacheTaskBrowse=await $A.IDBArray("cacheTaskBrowse"),e.dialogMsgs=await $A.IDBArray("dialogMsgs"),e.fileLists=await $A.IDBArray("fileLists"),e.userInfo=await $A.IDBJson("userInfo"),e.callAt=await $A.IDBArray("callAt"),e.cacheEmojis=await $A.IDBArray("cacheEmojis"),e.userInfo.userid&&(e.userId=e.userInfo.userid=$A.runNum(e.userInfo.userid),e.userToken=e.userInfo.token,e.userIsAdmin=$A.inArray("admin",e.userInfo.identity));const t=$A.runNum(window.localStorage.getItem("__system:userId__")),n=window.localStorage.getItem("__system:userToken__")||"";e.userId===0&&t&&n&&(e.userId=t,e.userToken=n),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),i()})},userUrl({state:e},i){return new Promise(t=>{const n=$A.urlAddParams(i,{language:Q,theme:e.themeConf,userid:e.userId,token:e.userToken});t(n)})},openAppChildPage({dispatch:e},i){e("userUrl",i.params.url).then(t=>{i.params.url=t,$A.eeuiAppOpenPage(i)})},openChildWindow({dispatch:e},i){e("userUrl",i.path).then(t=>{$A.Electron.sendMessage("openChildWindow",Object.assign(i,{path:t}))})},openWebTabWindow({dispatch:e},i){if($A.getDomain(i)!=$A.getDomain($A.mainUrl())){$A.Electron.sendMessage("openWebTabWindow",{url:i});return}e("userUrl",i).then(t=>{$A.Electron.sendMessage("openWebTabWindow",{url:t})})},saveFile({state:e,dispatch:i},t){if($A.execMainDispatch("saveFile",t),$A.isArray(t))t.forEach(n=>{i("saveFile",n)});else if($A.isJson(t)){let n={_load:!1,_edit:!1};const s=e.fileLists.findIndex(({id:r})=>r==t.id);s>-1?e.fileLists.splice(s,1,Object.assign(n,e.fileLists[s],t)):e.fileLists.push(Object.assign(n,t)),$A.IDBSave("fileLists",e.fileLists,600)}},forgetFile({state:e,dispatch:i},t){$A.execMainDispatch("forgetFile",t),($A.isArray(t)?t:[t]).some(s=>{e.fileLists=e.fileLists.filter(r=>r.id!=s),e.fileLists.some(r=>{r.pid==s&&i("forgetFile",r.id)}),$A.IDBSave("fileLists",e.fileLists,600)})},packProgress({state:e,dispatch:i},t){$A.execMainDispatch("packProgress",t);const n=e.filePackLists.findIndex(({name:s})=>s==t.name);n>-1?e.filePackLists[n].progress=t.progress:(e.filePackLists.push(t),$A.IDBSave("filePackLists",e.filePackLists,600))},getFiles({state:e,dispatch:i},t){return new Promise(function(n,s){i("call",{url:"file/lists",data:{pid:t}}).then(r=>{const a=r.data.map(({id:o})=>o);e.fileLists=e.fileLists.filter(o=>o.pid!=t||a.includes(o.id)),$A.IDBSave("fileLists",e.fileLists,600),i("saveFile",r.data),n(r)}).catch(r=>{console.warn(r),s(r)})})},searchFiles({state:e,dispatch:i},t){return $A.isJson(t)||(t={key:t}),new Promise(function(n,s){i("call",{url:"file/search",data:t}).then(r=>{i("saveFile",r.data),n(r)}).catch(r=>{console.warn(r),s(r)})})},saveProject({state:e,dispatch:i},t){if($A.execMainDispatch("saveProject",t),$A.isArray(t))t.forEach(n=>{i("saveProject",n)});else if($A.isJson(t)){typeof t.project_column!="undefined"&&(i("saveColumn",t.project_column),delete t.project_column);const n=e.cacheProjects.findIndex(({id:s})=>s==t.id);n>-1?e.cacheProjects.splice(n,1,Object.assign({},e.cacheProjects[n],t)):(typeof t.project_user=="undefined"&&(t.project_user=[]),e.cacheProjects.push(t),e.projectTotal++),e.cacheDialogs.some(s=>{if(s.type=="group"&&s.group_type=="project"&&s.group_info.id==t.id){t.name!==void 0&&(s.name=t.name);for(let r in s.group_info)!s.group_info.hasOwnProperty(r)||t[r]===void 0||(s.group_info[r]=t[r])}}),$A.IDBSave("cacheProjects",e.cacheProjects)}},forgetProject({state:e,dispatch:i},t){$A.execMainDispatch("forgetProject",t);const n=$A.isArray(t)?t:[t];if(n.some(s=>{const r=e.cacheProjects.findIndex(a=>a.id==s);r>-1&&(i("forgetTask",e.cacheTasks.filter(a=>a.project_id==t).map(a=>a.id)),i("forgetColumn",e.cacheColumns.filter(a=>a.project_id==t).map(a=>a.id)),e.cacheProjects.splice(r,1),e.projectTotal=Math.max(0,e.projectTotal-1))}),n.includes(e.projectId)){const s=$A.cloneJSON(e.cacheProjects).sort((r,a)=>r.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(r.top_at):a.id-r.id).find(({id:r})=>r&&r!=t);s?$A.goForward({name:"manage-project",params:{projectId:s.id}}):$A.goForward({name:"manage-dashboard"})}$A.IDBSave("cacheProjects",e.cacheProjects)},getProjects({state:e,dispatch:i,getters:t},n){return new Promise(function(s,r){if(e.userId===0){e.cacheProjects=[],r({msg:"Parameter error"});return}const a=be("projects",n,e);setTimeout(()=>{e.loadProjects++},2e3),i("call",{url:"project/lists",data:a.get()}).then(({data:o})=>{i("saveProject",o.data),a.save(o).then(l=>i("forgetProject",l)),e.projectTotal=o.total_all,s(o)}).catch(o=>{console.warn(o),r(o)}).finally(o=>{e.loadProjects--})})},getProjectOne({state:e,dispatch:i},t){return new Promise(function(n,s){if($A.runNum(t)===0){s({msg:"Parameter error"});return}e.projectLoad++,i("call",{url:"project/one",data:{project_id:t}}).then(r=>{setTimeout(()=>{e.projectLoad--},10),i("saveProject",r.data),n(r)}).catch(r=>{console.warn(r),e.projectLoad--,s(r)})})},archivedProject({state:e,dispatch:i},t){return new Promise(function(n,s){if($A.runNum(t)===0){s({msg:"Parameter error"});return}i("call",{url:"project/archived",data:{project_id:t}}).then(r=>{i("forgetProject",t),n(r)}).catch(r=>{console.warn(r),i("getProjectOne",t).catch(()=>{}),s(r)})})},removeProject({state:e,dispatch:i},t){return new Promise(function(n,s){if($A.runNum(t)===0){s({msg:"Parameter error"});return}i("call",{url:"project/remove",data:{project_id:t}}).then(r=>{i("forgetProject",t),n(r)}).catch(r=>{console.warn(r),i("getProjectOne",t).catch(()=>{}),s(r)})})},exitProject({state:e,dispatch:i},t){return new Promise(function(n,s){if($A.runNum(t)===0){s({msg:"Parameter error"});return}i("call",{url:"project/exit",data:{project_id:t}}).then(r=>{i("forgetProject",t),n(r)}).catch(r=>{console.warn(r),i("getProjectOne",t).catch(()=>{}),s(r)})})},saveColumn({state:e,dispatch:i},t){if($A.execMainDispatch("saveColumn",t),$A.isArray(t))t.forEach(n=>{i("saveColumn",n)});else if($A.isJson(t)){const n=e.cacheColumns.findIndex(({id:s})=>s==t.id);n>-1?e.cacheColumns.splice(n,1,Object.assign({},e.cacheColumns[n],t)):e.cacheColumns.push(t),$A.IDBSave("cacheColumns",e.cacheColumns)}},forgetColumn({state:e,dispatch:i},t){$A.execMainDispatch("forgetColumn",t);const n=$A.isArray(t)?t:[t],s=[];n.some(r=>{const a=e.cacheColumns.findIndex(o=>o.id==r);a>-1&&(i("forgetTask",e.cacheTasks.filter(o=>o.column_id==t).map(o=>o.id)),s.push(e.cacheColumns[a].project_id),e.cacheColumns.splice(a,1))}),Array.from(new Set(s)).some(r=>i("getProjectOne",r).catch(()=>{})),$A.IDBSave("cacheColumns",e.cacheColumns)},getColumns({state:e,dispatch:i},t){return new Promise(function(n,s){if(e.userId===0){e.cacheColumns=[],s({msg:"Parameter error"});return}e.projectLoad++,i("call",{url:"project/column/lists",data:{project_id:t}}).then(({data:r})=>{e.projectLoad--;const a=r.data.map(({id:o})=>o);if(e.cacheColumns=e.cacheColumns.filter(o=>o.project_id!=t||a.includes(o.id)),i("saveColumn",r.data),n(r.data),e.cacheColumns.filter(o=>o.project_id==t).length===1){const o=e.cacheProjectParameter.find(l=>l.project_id==t)||{};(typeof o.menuInit=="undefined"||o.menuInit===!1)&&i("toggleProjectParameter",{project_id:t,key:{menuInit:!0,menuType:"table"}})}}).catch(r=>{console.warn(r),e.projectLoad--,s(r)})})},removeColumn({state:e,dispatch:i},t){return new Promise(function(n,s){if($A.runNum(t)===0){s({msg:"Parameter error"});return}i("call",{url:"project/column/remove",data:{column_id:t}}).then(r=>{i("forgetColumn",t),n(r)}).catch(r=>{console.warn(r),s(r)})})},saveTask({state:e,dispatch:i},t){if($A.execMainDispatch("saveTask",t),$A.isArray(t))t.forEach(n=>{i("saveTask",n)});else if($A.isJson(t)){t._time=$A.Time(),t.flow_item_name&&t.flow_item_name.indexOf("|")!==-1&&([t.flow_item_status,t.flow_item_name]=t.flow_item_name.split("|")),typeof t.archived_at!="undefined"&&e.cacheTasks.filter(r=>r.parent_id==t.id).some(r=>{i("saveTask",Object.assign(r,{archived_at:t.archived_at,archived_userid:t.archived_userid}))});let n={};typeof t.update_marking!="undefined"&&(n=$A.isJson(t.update_marking)?t.update_marking:{},delete t.update_marking);const s=e.cacheTasks.findIndex(({id:r})=>r==t.id);s>-1?e.cacheTasks.splice(s,1,Object.assign({},e.cacheTasks[s],t)):e.cacheTasks.push(t),(n.is_update_maintask===!0||t.parent_id>0&&e.cacheTasks.findIndex(({id:r})=>r==t.parent_id)===-1)&&i("getTaskOne",t.parent_id).catch(()=>{}),n.is_update_project===!0&&i("getProjectOne",t.project_id).catch(()=>{}),n.is_update_content===!0&&i("getTaskContent",t.id),n.is_update_subtask===!0&&i("getTaskForParent",t.id).catch(()=>{}),e.cacheDialogs.some(r=>{if(r.name===void 0||r.dialog_delete===1)return!1;if(r.type=="group"&&r.group_type=="task"&&r.group_info.id==t.id){t.name!==void 0&&(r.name=t.name);for(let a in r.group_info)!r.group_info.hasOwnProperty(a)||t[a]===void 0||(r.group_info[a]=t[a])}}),$A.IDBSave("cacheTasks",e.cacheTasks)}},forgetTask({state:e,dispatch:i},t){$A.execMainDispatch("forgetTask",t);const n=($A.isArray(t)?t:[t]).filter(a=>a!=e.taskArchiveView),s=[],r=[];n.some(a=>{const o=e.cacheTasks.findIndex(l=>l.id==a);o>-1&&(e.cacheTasks[o].parent_id&&s.push(e.cacheTasks[o].parent_id),r.push(e.cacheTasks[o].project_id),e.cacheTasks.splice(o,1)),e.cacheTasks.filter(l=>l.parent_id==a).some(l=>{let c=e.cacheTasks.findIndex(u=>u.id==l.id);c>-1&&(r.push(l.project_id),e.cacheTasks.splice(c,1))})}),Array.from(new Set(s)).some(a=>i("getTaskOne",a).catch(()=>{})),Array.from(new Set(r)).some(a=>i("getProjectOne",a).catch(()=>{})),n.includes(e.taskId)&&(e.taskId=0),$A.IDBSave("cacheTasks",e.cacheTasks)},increaseTaskMsgNum({state:e},i){if($A.execMainDispatch("increaseTaskMsgNum",i),!$A.execMainCacheJudge(`increaseTaskMsgNum:${i.id}`)&&i.dialog_id){const t=e.cacheTasks.find(({dialog_id:n})=>n===i.dialog_id);t&&t.msg_num++}},increaseMsgReplyNum({state:e,dispatch:i},t){if($A.execMainDispatch("increaseMsgReplyNum",t),!$A.execMainCacheJudge(`increaseMsgReplyNum:${t.id}`)&&t.reply_id>0){const n=e.dialogMsgs.find(({id:s})=>s==t.reply_id);n&&n.reply_num++}},decrementMsgReplyNum({state:e,dispatch:i},t){if($A.execMainDispatch("decrementMsgReplyNum",t),!$A.execMainCacheJudge(`decrementMsgReplyNum:${t.id}`)&&t.reply_id>0){const n=e.dialogMsgs.find(({id:s})=>s==t.reply_id);n&&n.reply_num--}},getTasks({state:e,dispatch:i},t){t===null&&(t={});const n=be("tasks",t,e);return new Promise(function(s,r){if(e.userId===0){e.cacheTasks=[],r({msg:"Parameter error"});return}t.project_id&&e.projectLoad++,i("call",{url:"project/task/lists",data:n.get()}).then(({data:a})=>{t.project_id&&e.projectLoad--,i("saveTask",a.data),n.save(a).then(o=>i("forgetTask",o)),a.next_page_url?(t.page=a.current_page+1,a.current_page%30===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+a.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{i("getTasks",t).then(s).catch(r)},onCancel:()=>{s()}}):i("getTasks",t).then(s).catch(r)):s()}).catch(a=>{console.warn(a),r(a),t.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:i},t){return new Promise(function(n,s){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){s({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[t.task_id])){e.taskOneLoad[t.task_id].push({resolve:n,reject:s});return}e.taskOneLoad[t.task_id]=[],i("call",{url:"project/task/one",data:t}).then(r=>{i("saveTask",r.data),n(r),e.taskOneLoad[t.task_id].some(a=>{a.resolve(r)})}).catch(r=>{console.warn(r),s(r),e.taskOneLoad[t.task_id].some(a=>{a.reject(r)})}).finally(r=>{delete e.taskOneLoad[t.task_id]})})},getTaskForDashboard({state:e,dispatch:i,getters:t},n){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof n=="number"){n>-1&&(window.__getTaskForDashboard=setTimeout(s=>i("getTaskForDashboard",null),n));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,i("getTasks",null).finally(s=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:i},t){return new Promise(function(n,s){i("getTasks",{project_id:t}).then(n).catch(s)})},getTaskForParent({state:e,dispatch:i},t){return new Promise(function(n,s){i("getTasks",{parent_id:t}).then(n).catch(s)})},removeTask({state:e,dispatch:i},t){return new Promise(function(n,s){if($A.runNum(t.task_id)===0){s({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/remove",data:t}).then(r=>{e.taskArchiveView=0,i("forgetTask",t.task_id),n(r)}).catch(r=>{console.warn(r),i("getTaskOne",t.task_id).catch(()=>{}),s(r)}).finally(r=>{i("cancelLoad",`task-${t.task_id}`)})})},archivedTask({state:e,dispatch:i},t){return new Promise(function(n,s){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){s({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/archived",data:t}).then(r=>{i("saveTask",r.data),n(r)}).catch(r=>{console.warn(r),i("getTaskOne",t.task_id).catch(()=>{}),s(r)}).finally(r=>{i("cancelLoad",`task-${t.task_id}`)})})},getTaskContent({state:e,dispatch:i},t){$A.runNum(t)!==0&&i("call",{url:"project/task/content",data:{task_id:t}}).then(n=>{i("saveTaskContent",n.data)}).catch(n=>{console.warn(n)})},saveTaskContent({state:e,dispatch:i},t){if($A.execMainDispatch("saveTaskContent",t),$A.isArray(t))t.forEach(n=>{i("saveTaskContent",n)});else if($A.isJson(t)){const n=e.taskContents.findIndex(({task_id:s})=>s==t.task_id);n>-1?e.taskContents.splice(n,1,Object.assign({},e.taskContents[n],t)):e.taskContents.push(t)}},getTaskFiles({state:e,dispatch:i},t){$A.runNum(t)!==0&&i("call",{url:"project/task/files",data:{task_id:t}}).then(n=>{n.data.forEach(s=>{const r=e.taskFiles.findIndex(({id:a})=>a==s.id);r>-1?e.taskFiles.splice(r,1,s):e.taskFiles.push(s)}),i("saveTask",{id:t,file_num:n.data.length})}).catch(n=>{console.warn(n)})},forgetTaskFile({state:e,dispatch:i},t){($A.isArray(t)?t:[t]).some(s=>{const r=e.taskFiles.findIndex(a=>a.id==s);r>-1&&e.taskFiles.splice(r,1)})},openTask({state:e,dispatch:i},t){let n=t;if($A.isJson(t)&&(t.parent_id>0?n=t.parent_id:n=t.id),$A.isSubElectron){n>0?$A.Electron.sendMessage("updateChildWindow",{name:`task-${n}`,path:`/single/task/${n}`}):$A.Electron.sendMessage("windowClose");return}e.taskArchiveView=n,e.taskId=n,n>0?i("getTaskOne",{task_id:n,archived:"all"}).then(()=>{i("getTaskContent",n),i("getTaskFiles",n),i("getTaskForParent",n).catch(()=>{}),i("saveTaskBrowse",n)}).catch(({msg:s})=>{$A.modalWarning({content:s,onOk:()=>{e.taskId=0}})}):e.taskOperation={}},taskAdd({state:e,dispatch:i},t){return new Promise(function(n,s){const r=$A.cloneJSON($A.date2string(t));$A.isArray(r.column_id)&&(r.column_id=r.column_id.find(a=>a)),i("call",{url:"project/task/add",data:r,method:"post"}).then(a=>{a.data.is_visible===1&&i("addTaskSuccess",a.data),n(a)}).catch(a=>{console.warn(a),s(a)})})},taskAddSub({dispatch:e},i){return new Promise(function(t,n){e("call",{url:"project/task/addsub",data:i}).then(s=>{e("addTaskSuccess",s.data),t(s)}).catch(s=>{console.warn(s),n(s)})})},addTaskSuccess({dispatch:e},i){typeof i.new_column!="undefined"&&(e("saveColumn",i.new_column),delete i.new_column),e("saveTask",i),e("getProjectOne",i.project_id).catch(()=>{})},taskUpdate({state:e,dispatch:i},t){return new Promise(function(n,s){i("taskBeforeUpdate",t).then(({post:r})=>{i("setLoad",{key:`task-${r.task_id}`,delay:300}),i("call",{url:"project/task/update",data:r,method:"post"}).then(a=>{i("saveTask",a.data),n(a)}).catch(a=>{console.warn(a),i("getTaskOne",r.task_id).catch(()=>{}),s(a)}).finally(a=>{i("cancelLoad",`task-${r.task_id}`)})}).catch(s)})},taskBeforeUpdate({state:e,dispatch:i},t){return new Promise(function(n,s){let r=$A.cloneJSON($A.date2string(t)),a="\u6E29\u99A8\u63D0\u793A",o=null;if(typeof r.times!="undefined"){t.times[0]===!1&&(o="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const l=e.cacheTasks.find(({id:c})=>c==r.task_id);a=l.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",l&&(l.parent_id>0?r.times[0]&&e.cacheTasks.some(c=>{if(c.id!=l.parent_id)return!1;if(!c.end_at)return o="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let u=$A.Date(r.times[0],!0),f=$A.Date(r.times[1],!0),d=$A.Date(c.start_at,!0),h=$A.Date(c.end_at,!0);if(uh)return o="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(c=>{if(c.parent_id!=l.id||!c.end_at)return!1;let u=$A.Date(r.times[0],!0),f=$A.Date(r.times[1],!0),d=$A.Date(l.start_at,!0),h=$A.Date(l.end_at,!0),p=$A.Date(c.start_at,!0),w=$A.Date(c.end_at,!0);if(d==p&&h==w)return!1;if(!r.times[0])return o=`\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(u>p)return o=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(f{n({confirm:!0,post:r})},onCancel:()=>{s({msg:!1})}})})},getTaskFlow({state:e,dispatch:i},{task_id:t,project_id:n}){return new Promise(function(s,r){i("call",{url:"project/task/flow",data:{task_id:t,project_id:n||0}}).then(a=>{let o=e.cacheTasks.find(({id:u})=>u==t),{data:l}=a;l.turns.some(u=>{const f=e.taskFlowItems.findIndex(({id:d})=>d==u.id);f>-1?e.taskFlowItems.splice(f,1,u):e.taskFlowItems.push(u),o&&o.flow_item_id==u.id&&o.flow_item_name!=u.name&&e.cacheTasks.filter(({flow_item_id:d})=>d==u.id).some(d=>{i("saveTask",{id:d.id,flow_item_name:`${u.status}|${u.name}`})})}),delete l.turns;const c=e.taskFlows.findIndex(({task_id:u})=>u==l.task_id);c>-1?e.taskFlows.splice(c,1,l):e.taskFlows.push(l),s(a)}).catch(a=>{console.warn(a),r(a)})})},getTaskPriority({state:e,dispatch:i}){return new Promise(function(t,n){i("call",{url:"system/priority"}).then(s=>{e.taskPriority=s.data,t(s)}).catch(s=>{console.warn(s),n(s)})})},getColumnTemplate({state:e,dispatch:i}){return new Promise(function(t,n){i("call",{url:"system/column/template"}).then(s=>{e.columnTemplate=s.data,t(s)}).catch(s=>{console.warn(s),n(s)})})},saveTaskCompleteTemp({state:e},i){/^\d+$/.test(i)&&!e.taskCompleteTemps.includes(i)&&e.taskCompleteTemps.push(i)},forgetTaskCompleteTemp({state:e},i){i===!0?e.taskCompleteTemps=[]:/^\d+$/.test(i)&&(e.taskCompleteTemps=e.taskCompleteTemps.filter(t=>t!=i))},saveTaskBrowse({state:e},i){const t=e.cacheTaskBrowse.findIndex(({id:n})=>n==i);t>-1&&e.cacheTaskBrowse.splice(t,1),e.cacheTaskBrowse.unshift({id:i,userid:e.userId}),e.cacheTaskBrowse.length>200&&e.cacheTaskBrowse.splice(200),$A.IDBSave("cacheTaskBrowse",e.cacheTaskBrowse)},taskDefaultTime({state:e,dispatch:i},t){return new Promise(async n=>{$A.isArray(t)&&(t[0]=await i("taskDefaultStartTime",t[0]),t[1]=await i("taskDefaultEndTime",t[1])),n(t)})},taskDefaultStartTime({state:e},i){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(i)&&(i=i.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[0])),t(i)})},taskDefaultEndTime({state:e},i){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(i)&&(i=i.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[1])),t(i)})},saveDialog({state:e,dispatch:i},t){var n;if($A.execMainDispatch("saveDialog",t),$A.isArray(t))t.forEach(s=>{i("saveDialog",s)});else if($A.isJson(t)){t.id=parseInt(t.id);const s=e.cacheDialogs.findIndex(({id:r})=>r==t.id);if(s>-1){const r=e.cacheDialogs[s],a=t.user_ms,o=r.user_ms||0;al.id==t.unread_one))!=null&&n.read_at&&delete t.unread_one,t.mention_ids&&(t.mention_ids=t.mention_ids.filter(l=>{var c;return!((c=e.dialogMsgs.find(u=>u.id==l))!=null&&c.read_at)})),e.cacheDialogs.splice(s,1,Object.assign({},r,t))}else e.cacheDialogs.push(t);$A.IDBSave("cacheDialogs",e.cacheDialogs)}},updateDialogLastMsg({state:e,dispatch:i},t){if($A.execMainDispatch("updateDialogLastMsg",t),$A.isArray(t))t.forEach(n=>{i("updateDialogLastMsg",n)});else if($A.isJson(t))if(e.cacheDialogs.findIndex(({id:s})=>s==t.dialog_id)>-1){const s={id:t.dialog_id,last_msg:t,last_at:$A.formatDate("Y-m-d H:i:s")};t.mtype=="tag"&&(s.has_tag=!0),t.mtype=="todo"&&(s.has_todo=!0),t.mtype=="image"&&(s.has_image=!0),t.mtype=="file"&&(s.has_file=!0),t.link&&(s.has_link=!0),i("saveDialog",s)}else i("getDialogOne",t.dialog_id).catch(()=>{})},getDialogAuto({state:e,dispatch:i}){return new Promise(function(t,n){if(e.loadDialogAuto){n({msg:"Loading"});return}setTimeout(s=>{e.loadDialogs++},2e3),e.loadDialogAuto=!0,i("getDialogs").then(t).catch(n).finally(s=>{e.loadDialogs--,e.loadDialogAuto=!1})})},getDialogs({state:e,dispatch:i,getters:t},n){return new Promise(function(s,r){if(e.userId===0){e.cacheDialogs=[],r({msg:"Parameter error"});return}$A.isJson(n)||(n={}),typeof n.page=="undefined"&&(n.page=1),typeof n.pagesize=="undefined"&&(n.pagesize=20);const a=be("dialogs",n,e);i("call",{url:"dialog/lists",data:a.get()}).then(({data:o})=>{i("saveDialog",o.data),a.save(o).then(l=>i("forgetDialog",l)),o.current_page===1&&i("getDialogLatestMsgs",o.data.map(({id:l})=>l)),o.next_page_url&&o.current_page<5?(n.page++,i("getDialogs",n).then(s).catch(r)):(s(),i("getDialogBeyonds"))}).catch(o=>{console.warn(o),r(o)})})},async getDialogBeyonds({state:e,dispatch:i}){const t=await $A.IDBString("dialogBeyond"),n=$A.formatDate("Y-m-d H");if(t==n)return;await $A.IDBSet("dialogBeyond",n);const s=o=>e.cacheDialogs.filter(o).sort((l,c)=>$A.Date(l.last_at)-$A.Date(c.last_at)).find(({id:l})=>l>0),r=s(({unread:o,last_at:l})=>o>0&&l),a=s(({todo_num:o,last_at:l})=>o>0&&l);i("call",{url:"dialog/beyond",data:{unread_at:r?r.last_at:$A.Time(),todo_at:a?a.last_at:$A.Time()}}).then(({data:o})=>{i("saveDialog",o)})},getDialogOne({state:e,dispatch:i},t){return new Promise(function(n,s){if($A.runNum(t)===0){s({msg:"Parameter error"});return}i("call",{url:"dialog/one",data:{dialog_id:t}}).then(r=>{i("saveDialog",r.data),n(r)}).catch(r=>{console.warn(r),s(r)})})},getDialogTodo({state:e,dispatch:i},t){i("call",{url:"dialog/todo",data:{dialog_id:t}}).then(({data:n})=>{$A.arrayLength(n)>0?(t>0&&(i("saveDialog",{id:t,todo_num:$A.arrayLength(n)}),e.dialogTodos=e.dialogTodos.filter(s=>s.dialog_id!=t)),i("saveDialogTodo",n)):t>0&&i("saveDialog",{id:t,todo_num:0})}).catch(console.warn)},getDialogMsgTop({state:e,dispatch:i},t){i("call",{url:"dialog/msg/topinfo",data:{dialog_id:t}}).then(({data:n})=>{$A.isJson(n)&&i("saveDialogMsgTop",n)}).catch(console.warn)},openDialog({state:e,dispatch:i},t){return new Promise(n=>{let s,r;$A.isJson(t)&&(s=t.search_msg_id,r=t.dialog_msg_id,t=t.dialog_id),requestAnimationFrame(a=>{e.dialogSearchMsgId=/^\d+$/.test(s)?s:0,e.dialogMsgId=/^\d+$/.test(r)?r:0,e.dialogId=/^\d+$/.test(t)?t:0,n()})})},openDialogUserid({state:e,dispatch:i},t){return new Promise(function(n,s){const r=e.cacheDialogs.find(a=>a.type!=="user"||!a.dialog_user?!1:a.dialog_user.userid===t);if(r){i("openDialog",r.id),n(r);return}i("showSpinner",600),i("call",{url:"dialog/open/user",data:{userid:t}}).then(({data:a})=>{i("saveDialog",a),i("openDialog",a.id),n(a)}).catch(a=>{console.warn(a),s(a)}).finally(a=>{i("hiddenSpinner")})})},forgetDialog({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialog",t);const n=$A.isArray(t)?t:[t];n.some(s=>{const r=e.cacheDialogs.findIndex(a=>a.id==s);r>-1&&(i("forgetDialogMsg",e.dialogMsgs.filter(a=>a.dialog_id==t).map(a=>a.id)),e.cacheDialogs.splice(r,1))}),n.includes(e.dialogId)&&(e.dialogId=0),$A.IDBSave("cacheDialogs",e.cacheDialogs)},saveInDialog({state:e,dispatch:i},t){$A.execMainDispatch("saveInDialog",t);const n=e.dialogIns.findIndex(a=>a.uid==t.uid);n>-1?e.dialogIns.splice(n,1,Object.assign({},e.dialogIns[n],t)):e.dialogIns.push(t);const s=5e3,r=500;if(e.dialogHistory=e.dialogHistory.filter(a=>a!=t.dialog_id),e.dialogHistory.push(t.dialog_id),e.dialogMsgs.length>s&&e.dialogHistory.length>r){const a=e.dialogHistory.slice().reverse(),o=[],l=[];a.forEach(c=>{o.lengthu.dialog_id==c)>-1?o.push(c):l.push(c)}),l.length>0&&(e.dialogMsgs=e.dialogMsgs.filter(c=>!l.includes(c.dialog_id)),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)),e.dialogHistory=o}},forgetInDialog({state:e,dispatch:i},t){$A.execMainDispatch("forgetInDialog",t);const n=e.dialogIns.findIndex(s=>s.uid==t);n>-1&&e.dialogIns.splice(n,1)},closeDialog({state:e,dispatch:i},t){if(!/^\d+$/.test(t))return;$A.execMainDispatch("closeDialog",t);const n=e.cacheDialogs.find(r=>r.id==t);n&&(n.extra_draft_has=n.extra_draft_content?1:0);const s=e.dialogMsgs.filter(r=>r.dialog_id==t);if(s.length>e.dialogMsgKeep){const r=s.sort((a,o)=>o.id-a.id).splice(e.dialogMsgKeep).map(a=>a.id);e.dialogMsgs=e.dialogMsgs.filter(a=>!r.includes(a.id)),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}},saveDialogTodo({state:e,dispatch:i},t){if($A.execMainDispatch("saveDialogTodo",t),$A.isArray(t))t.forEach(n=>{i("saveDialogTodo",n)});else if($A.isJson(t)){const n=e.dialogTodos.findIndex(s=>s.id==t.id);n>-1?e.dialogTodos.splice(n,1,Object.assign({},e.dialogTodos[n],t)):e.dialogTodos.push(t)}},forgetDialogTodoForMsgId({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogTodoForMsgId",t);const n=e.dialogTodos.findIndex(s=>s.msg_id==t);n>-1&&e.dialogTodos.splice(n,1)},saveDialogMsgTop({state:e,dispatch:i},t){if($A.execMainDispatch("saveDialogMsgTop",t),$A.isArray(t))t.forEach(n=>{i("saveDialogMsgTop",n)});else if($A.isJson(t)){e.dialogMsgTops=e.dialogMsgTops.filter(s=>s.dialog_id!=t.dialog_id);const n=e.dialogMsgTops.findIndex(s=>s.id==t.id);n>-1?e.dialogMsgTops.splice(n,1,Object.assign({},e.dialogMsgTops[n],t)):e.dialogMsgTops.push(t)}},forgetDialogMsgTopForMsgId({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogMsgTopForMsgId",t);const n=e.dialogMsgTops.findIndex(s=>s.msg_id==t);n>-1&&e.dialogMsgTops.splice(n,1)},saveDialogDraft({state:e,dispatch:i},t){e.dialogDraftTimer[t.id]&&clearInterval(e.dialogDraftTimer[t.id]),e.dialogDraftTimer[t.id]=setTimeout(n=>{e.dialogId!=t.id&&(t.extra_draft_has=t.extra_draft_content?1:0),i("saveDialog",t)},t.extra_draft_content?600:0)},saveDialogMsg({state:e,dispatch:i},t){if($A.execMainDispatch("saveDialogMsg",t),$A.isArray(t))t.forEach(n=>{i("saveDialogMsg",n)});else if($A.isJson(t)){const n=e.dialogMsgs.findIndex(({id:r})=>r==t.id);if(n>-1){const r=e.dialogMsgs[n];r.read_at&&delete t.read_at,t=Object.assign({},r,t),e.dialogMsgs.splice(n,1,t)}else e.dialogMsgs.push(t);$A.IDBSave("dialogMsgs",e.dialogMsgs,600);const s=e.cacheDialogs.find(({id:r})=>r==t.dialog_id);if(s){let r=!1;!t.read_at&&t.userid!=e.userId&&!e.dialogIns.find(({dialog_id:a})=>a==s.id)&&(s.unread_one?s.unread_one=Math.min(s.unread_one,t.id):s.unread_one=t.id,r=!0),s.last_msg&&s.last_msg.id==t.id&&(s.last_msg=Object.assign({},s.last_msg,t),r=!0),r&&i("saveDialog",s)}}},forgetDialogMsg({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogMsg",t),($A.isArray(t)?t:[t]).some(s=>{const r=e.dialogMsgs.findIndex(a=>a.id==s);if(r>-1){const a=e.dialogMsgs[r];i("decrementMsgReplyNum",a),i("audioStop",$A.getObject(a,"msg.path")),e.dialogMsgs.splice(r,1),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}}),i("forgetDialogTodoForMsgId",t),i("forgetDialogMsgTopForMsgId",t)},getDialogMsgs({state:e,dispatch:i,getters:t},n){return new Promise((s,r)=>{let a=f=>{},o=f=>{},l=!1,c=!1;typeof n.save_before!="undefined"&&(a=typeof n.save_before=="function"?n.save_before:f=>{},delete n.save_before),typeof n.save_after!="undefined"&&(o=typeof n.save_after=="function"?n.save_after:f=>{},delete n.save_after),typeof n.clear_before!="undefined"&&(l=typeof n.clear_before=="boolean"?n.clear_before:!1,delete n.clear_before),typeof n.spinner!="undefined"&&(c=n.spinner,delete n.spinner);const u=`msg::${n.dialog_id}-${n.msg_id}-${n.msg_type||""}`;if(t.isLoad(u)){r({msg:"Loading"});return}i("setLoad",u),l&&(e.dialogMsgs=e.dialogMsgs.filter(({dialog_id:f})=>f!==n.dialog_id),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)),n.pagesize=25,i("call",{url:"dialog/msg/list",data:n,spinner:c,complete:f=>i("cancelLoad",u)}).then(f=>{a();const d=f.data;if($A.isJson(d.dialog)){const h=d.list.map(({id:p})=>p);e.dialogMsgs=e.dialogMsgs.filter(p=>p.dialog_id!=n.dialog_id||h.includes(p.id)||$A.Time(p.created_at)>=d.time),$A.IDBSave("dialogMsgs",e.dialogMsgs,600),i("saveDialog",d.dialog)}$A.isArray(d.todo)&&(e.dialogTodos=e.dialogTodos.filter(h=>h.dialog_id!=n.dialog_id),i("saveDialogTodo",d.todo)),$A.isJson(d.top)&&i("saveDialogMsgTop",d.top),i("saveDialogMsg",d.list),s(f),o()}).catch(f=>{console.warn(f),r(f)}).finally(f=>{if(n.prev_id){const d=e.dialogMsgs.find(({prev_id:h})=>h==n.prev_id);d&&(d.prev_id=0)}if(n.next_id){const d=e.dialogMsgs.find(({next_id:h})=>h==n.next_id);d&&(d.next_id=0)}})})},getDialogLatestMsgs({state:e,dispatch:i},t=[]){return new Promise(function(n,s){if(e.userId===0){s({msg:"Parameter error"});return}if(!$A.isArray(t)){s({msg:"Parameter is not array"});return}if(t.length===0){n();return}const r=t.slice(5),a=t.slice(0,5);i("call",{method:"post",url:"dialog/msg/latest",data:{dialogs:a.map(o=>{var l;return{id:o,latest_id:((l=e.dialogMsgs.sort((c,u)=>u.id-c.id).find(({dialog_id:c})=>c==o))==null?void 0:l.id)||0}}),take:e.dialogMsgKeep}}).then(({data:o})=>{i("saveDialogMsg",o.data),r.length>0?i("getDialogLatestMsgs",r).then(n).catch(s):n()}).catch(o=>{s(o)})})},dialogMsgRead({state:e,dispatch:i},t){if($A.isJson(t)){if(t.userid==e.userId||t.read_at)return;t.read_at=$A.formatDate(),e.readWaitData[t.id]=e.readWaitData[t.id]||0;const n=e.cacheDialogs.find(({id:s})=>s==t.dialog_id);if(n){let s=!1;if(t.id==n.unread_one&&(n.unread_one=0,s=!0),$A.isArray(n.mention_ids)){const r=n.mention_ids.findIndex(a=>a==t.id);r>-1&&(n.mention_ids.splice(r,1),s=!0)}s&&(i("saveDialog",n),e.readWaitData[t.id]=t.dialog_id)}}clearTimeout(e.readTimeout),e.readTimeout=setTimeout(n=>{if(e.readTimeout=null,e.userId===0||Object.values(e.readWaitData).length===0)return;const s=$A.cloneJSON(e.readWaitData);e.readWaitData={},i("call",{method:"post",url:"dialog/msg/read",data:{id:s}}).then(({data:r})=>{for(const a in s)s.hasOwnProperty(a)&&/^\d+$/.test(s[a])&&e.dialogMsgs.some(o=>{o.dialog_id==s[a]&&o.id>=a&&(o.read_at=$A.formatDate())});i("saveDialog",r)}).catch(r=>{e.readWaitData=s}).finally(r=>{e.readLoadNum++})},50)},dialogMsgMark({state:e,dispatch:i},t){return new Promise((n,s)=>{i("call",{url:"dialog/msg/mark",data:t}).then(r=>{typeof t.after_msg_id!="undefined"&&e.dialogMsgs.some(a=>{a.dialog_id==t.dialog_id&&a.id>=t.after_msg_id&&(a.read_at=$A.formatDate())}),i("saveDialog",r.data),n(r)}).catch(r=>{s(r)})})},streamDialogMsg({state:e,dispatch:i},t){if(/^https*:\/\//i.test(t)||(t=$A.mainUrl(t.substring(1))),e.dialogSseList.find(s=>s.streamUrl==t))return;const n=new ji(t);n.subscribe(["append","replace","done"],(s,r)=>{switch(s){case"append":V.Store.set("dialogMsgChange",{id:r.lastEventId,type:"append",text:r.data});break;case"replace":V.Store.set("dialogMsgChange",{id:r.lastEventId,type:"replace",text:r.data});break;case"done":const a=e.dialogSseList.findIndex(o=>n===o.sse);a>-1&&e.dialogSseList.splice(a,1),n.unsunscribe();break}}),e.dialogSseList.push({sse:n,streamUrl:t,time:$A.Time()}),e.dialogSseList.length>10&&e.dialogSseList.shift().sse.close()},setLoad({state:e,dispatch:i},t){if($A.isJson(t)){setTimeout(s=>{i("setLoad",t.key)},t.delay||0);return}const n=e.loads.find(s=>s.key==t);n?n.num++:e.loads.push({key:t,num:1})},cancelLoad({state:e},i){const t=e.loads.find(n=>n.key==i);t?t.num--:e.loads.push({key:i,num:-1})},showSpinner({state:e},i){const t=$A.randomString(6);e.floatSpinnerTimer.push({id:t,timer:setTimeout(n=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(s=>s.id!==t),e.floatSpinnerLoad++},typeof i=="number"?i:0)})},hiddenSpinner({state:e}){const i=e.floatSpinnerTimer.shift();i?clearTimeout(i.timer):e.floatSpinnerLoad--},previewImage({state:e},i){$A.isJson(i)||(i={index:0,list:[i]}),e.previewImageIndex=i.index,e.previewImageList=i.list},audioPlay({state:e,dispatch:i},t){const n=document.getElementById("__audio_play_element__");if(n&&(n.pause(),n.src=null,n.parentNode.removeChild(n)),!t||t===e.audioPlaying){e.audioPlaying=null;return}const s=document.createElement("audio");s.id=e.audioPlayId="__audio_play_element__",s.controls=!1,s.loop=!1,s.volume=1,s.src=e.audioPlaying=t,s.onended=r=>{i("audioStop",s.src)},document.body.appendChild(s),s.play().then(r=>{})},audioStop({state:e},i){const t=document.getElementById("__audio_play_element__");!t||(t.src===i||i===!0)&&(t.pause(),t.src=null,t.parentNode.removeChild(t),e.audioPlaying=null)},websocketConnection({state:e,dispatch:i}){if(clearTimeout(e.wsTimeout),e.ws&&(e.ws.close(),e.ws=null),e.userId===0)return;let t=$A.mainUrl("ws");t=t.replace("https://","wss://"),t=t.replace("http://","ws://"),t+=`?action=web&token=${e.userToken}&language=${Q}`;const n=$A.openLog,s=$A.randomString(16);e.wsRandom=s,e.ws=new WebSocket(t),e.ws.onopen=async r=>{n&&console.log("[WS] Open",r,$A.formatDate()),e.wsOpenNum++,window.systemInfo.debug!=="yes"&&i("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await i("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async r=>{n&&console.log("[WS] Close",r,$A.formatDate()),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{s===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onerror=async r=>{n&&console.log("[WS] Error",r,$A.formatDate()),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{s===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onmessage=async r=>{n&&console.log("[WS] Message",r);let a=$A.jsonParse(r.data);a.type==="encrypt"&&a.encrypted&&(a=await i("pgpDecryptApi",a.encrypted));const o=$A.formatMsgBasic(a),{type:l,msgId:c}=o;switch(l){case"open":$A.setSessionStorage("userWsFd",o.data.fd);break;case"receipt":typeof e.wsCall[c]=="function"&&e.wsCall[c](o.body,!0),delete e.wsCall[c];break;case"line":V.Store.set("userActive",{type:"line",data:o.data});break;case"msgStream":i("streamDialogMsg",o.stream_url);break;default:switch(c&&i("websocketSend",{type:"receipt",msgId:c}).catch(u=>{}),e.wsMsg=o,Object.values(e.wsListener).forEach(u=>{if(typeof u=="function")try{u(o)}catch(f){n&&console.log("[WS] Callerr",f)}}),l){case"dialog":(function(u){const{mode:f,silence:d,data:h}=u,{dialog_id:p}=h;switch(f){case"delete":if(i("forgetDialogMsg",h.id),e.cacheDialogs.find(({id:b})=>b==p)){const b={id:p,last_at:h.last_msg&&h.last_msg.created_at,last_msg:h.last_msg};h.update_read?i("call",{url:"dialog/msg/unread",data:{dialog_id:p}}).then(({data:D})=>{i("saveDialog",Object.assign(b,D))}).catch(()=>{}):i("saveDialog",b)}break;case"add":case"chat":if(!e.dialogMsgs.find(({id:b})=>b==h.id)){if(i("increaseTaskMsgNum",h),i("increaseMsgReplyNum",h),f==="chat"||$A.isSubElectron)return;if(h.userid!==e.userId){const b=e.cacheDialogs.find(({id:D})=>D==p);if(b){const D={id:p,unread:b.unread+1,mention:b.mention,user_at:h.user_at,user_ms:h.user_ms};h.mention&&D.mention++,i("saveDialog",D)}}d||V.Store.set("dialogMsgPush",h)}const g=(b,D)=>{if(D>5||e.dialogMsgs.find(({id:L})=>L==b.id)){i("saveDialogMsg",b),i("updateDialogLastMsg",b);return}setTimeout(L=>{g(b,++D)},20)};g(h,0);break;case"update":case"readed":const M=(b,D)=>{if(e.dialogMsgs.find(({id:L})=>L==b.id)){i("saveDialogMsg",b),typeof b.todo!="undefined"&&i("getDialogTodo",p);return}D<=5&&setTimeout(L=>{M(b,++D)},500)};M(h,0);break;case"groupAdd":case"groupJoin":case"groupRestore":i("getDialogOne",h.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:b})=>b==h.id)&&i("saveDialog",h);break;case"groupExit":case"groupDelete":i("forgetDialog",h.id);break;case"updateTopMsg":i("saveDialog",{id:h.dialog_id,top_msg_id:h.top_msg_id,top_userid:h.top_userid}),i("getDialogMsgTop",p);break}})(o);break;case"project":(function(u){const{action:f,data:d}=u;switch(f){case"add":case"update":case"recovery":i("saveProject",d);break;case"detail":i("getProjectOne",d.id).catch(()=>{}),i("getTaskForProject",d.id).catch(()=>{});break;case"delete":case"archived":i("forgetProject",d.id);break;case"sort":i("getTaskForProject",d.id).catch(()=>{});break}})(o);break;case"projectColumn":(function(u){const{action:f,data:d}=u;switch(f){case"add":case"update":case"recovery":i("saveColumn",d);break;case"delete":i("forgetColumn",d.id);break}})(o);break;case"projectTask":(function(u){const{action:f,data:d}=u;switch(f){case"add":case"restore":i("addTaskSuccess",d);break;case"update":case"archived":case"recovery":i("saveTask",d);break;case"dialog":i("saveTask",d),i("getDialogOne",d.dialog_id).catch(()=>{});break;case"upload":i("getTaskFiles",d.task_id);break;case"filedelete":i("forgetTaskFile",d.id);break;case"delete":i("forgetTask",d.id);break}})(o);break;case"file":(function(u){const{action:f,data:d}=u;switch(f){case"add":case"update":i("saveFile",d);break;case"delete":i("forgetFile",d.id);break;case"compress":i("packProgress",d);break}})(o);break;case"report":(function({action:u}){u=="unreadUpdate"&&i("getReportUnread",1e3)})(o);break;case"approve":(function({action:u}){u=="unread"&&i("getApproveUnread",1e3)})(o);break}break}}},websocketSend({state:e},i){return new Promise((t,n)=>{var l;if(!$A.isJson(i)){n();return}const{type:s,data:r,callback:a}=i;let o;if(!e.ws){typeof a=="function"&&a(null,!1),n();return}typeof a=="function"&&(o=$A.randomString(16),e.wsCall[o]=a);try{(l=e.ws)==null||l.send(JSON.stringify({type:s,msgId:o,data:r})),t()}catch(c){typeof a=="function"&&a(null,!1),n(c)}})},websocketPath({state:e,dispatch:i},t){clearTimeout(e.wsPathTimeout),e.wsPathValue=t,e.wsPathTimeout=setTimeout(()=>{e.wsPathValue==t&&i("websocketSend",{type:"path",data:{path:t}}).catch(n=>{})},1e3)},websocketMsgListener({state:e},i){if(typeof i=="string"){e.wsListener[i]&&delete e.wsListener[i];return}const{name:t,callback:n}=i;typeof n=="function"?e.wsListener[t]=n:e.wsListener[t]&&delete e.wsListener[t]},websocketClose({state:e}){e.ws&&(e.ws.close(),e.ws=null)},pgpGenerate({state:e}){return new Promise(async i=>{const t=await kt({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});t.publicKeyB64=Wi(t.publicKey.replace(/\s*-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----\s*/g,"")),i(t)})},pgpGetLocalKey({state:e,dispatch:i}){return new Promise(async t=>{if(e.localKeyPair.privateKey)return t(e.localKeyPair);for(;e.localKeyLock===!0;)await new Promise(n=>setTimeout(n,100));if(e.localKeyPair.privateKey)return t(e.localKeyPair);e.localKeyLock=!0,e.localKeyPair=await i("pgpGenerate"),e.localKeyLock=!1,t(e.localKeyPair)})},pgpEncrypt({state:e,dispatch:i},t){return new Promise(async n=>{$A.isJson(t)||(t={message:t});const s=t.message||t.text,r=t.publicKey||t.key||(await i("pgpGetLocalKey")).publicKey,a=await St({armoredKey:r}),o=await Et({message:await Tt({text:s}),encryptionKeys:a});n(o)})},pgpDecrypt({state:e,dispatch:i},t){return new Promise(async n=>{$A.isJson(t)||(t={encrypted:t});const s=t.encrypted||t.text,r=t.privateKey||t.key||(await i("pgpGetLocalKey")).privateKey,a=await It({privateKey:await Ct({armoredKey:r}),passphrase:t.passphrase||e.clientId}),{data:o}=await Dt({message:await xt({armoredMessage:s}),decryptionKeys:a});n(o)})},pgpEncryptApi({state:e,dispatch:i},t){return new Promise(n=>{t=$A.jsonStringify(t),i("pgpEncrypt",{message:t,publicKey:e.apiKeyData.key}).then(s=>{n(s.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:i},t){return new Promise(n=>{i("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE----- `+t+` diff --git a/public/js/build/app.a4396c6f.css b/public/js/build/app.a4396c6f.css new file mode 100644 index 000000000..f024f4c3f --- /dev/null +++ b/public/js/build/app.a4396c6f.css @@ -0,0 +1,7 @@ +@charset "UTF-8";@font-face{font-family:iconfont;src:url(/js/build/iconfont.01196938.eot?t=1576231776697);src:url(/js/build/iconfont.01196938.eot?t=1576231776697#iefix) format("embedded-opentype"),url(data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABBoAAsAAAAAH4gAABAXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCHNAqrGKENATYCJAOBAAtCAAQgBYRtB4I0G3MZM6M2lLTSTfZfJ3BzyOqYZkDBRZ2HprCitPZ3M8J36RIFoV+G+/sYnCYldv0I8xP3uCYjaM7/PYldjAhiEUzzMA2QIPZTSUVTap7SplSDVS1QFajwRBw61IQgv72KhZq8zPfO2kzlgJkk7T4iPTP9Ao/snqj1ZwI+AR+pnFgdsb1FKrikLeIB0AABBLNBwG3sJrh0YieT5piEFlvapTXhESZVxn7z1XMwlGSPvV8g5XsAQOD//62ldqfIqjJ5W5yyMH0RqkLWyJ0JDl3vH2ZCvMHdEpDKq5AV6vZCeyUCDyhMhanQFUJUSF+D5awMrAmEpUSMBqL+u96FgQDAQCUGYXgvHww+aDBOYL4ZcfI48GNh0DlDCfADXM0JaRCbioNPrl47gI3q6xMPkBAfIMGhwC7KNMk4AXqWejiMsp9gM2WP1KcBvJwIoADEAGiA1GkriShQPotRgtEV0vgv/nw0aIhYmpWyISIlSpGpmC1lR7A2toZtsMlp11jXnb47j+64Hg5zn6UsUfjoZBmKutd1v9rr4fphDQRixHGUMDpJirTuWd1zkP6/4AFKBLx5ISGFJwr+FLjwIISKCGIwCCRHgwMJBOCBjwA+fPmRUQPBBeYVAQDRQBvVwFICgxJYGgMBsFIM3sCGYPACNhwDCbARHF8yEhg8gU3EQAFsMgZ/YFMwKIDNwMAF2EwMHsAWAYSQxQCoIEsBEEGOAEAMaQOAgawBIBCyDgA5ZD0ANGQDABzITQBIIE8DIIC8CgAP8hoAfEgXMATAnT6Aj5IPAfCFfASAH6QLGGTwcNgSUAMAjTyBHsAsgPtJgC8GU++pILhNgQSfWmA0EEeRuu4EY14UN4/qGZcT5UhhGA+RzF1SKhUR4hBC68GmUDSfJxZ70tpH5uMJtAFv8k3IHkwQsbghCBGyO1rAEch8KV/ADNGEcnmltkOGKDqMSyXPTB0/f1gqqQ2GOhqiJgftys1wX+tg4SHhrzbqdj3PXQi/2m47jteF30zc/s3hA4btyn6r4/K6TDjNfkX8BZ51Du7ZDf/91en8caT7+06wdx/477cLWrE5JJ5vTUwUGoNjmfpWYWpMj3EjIa2djJquyNcCw/FkoZLVDe/crk7HlF2v3TZYaEO48Z1w1PX2/IHu2BudBRCCYtWvBRVSHgdpaN+n+n7rv7jBDQ41V3FSplXfmsIQFb4MONEnSxwYa4X9U0G67cNIpow0Wh0SzdewKnxLu1VOxbIVnAhqMHornbxVT0WyjfE9pdbQaK7Z+5oiSasw6tdwT1ABCOUhgLAB18k2I80+hAGCwnOPrbkI9MCNCKLYKXcZ/TjoQr+DKJrnBcZTsnHIVYM2IKHdls8KKdCbGp/gempUeVCNKPsiarRXiao7c1VaTpGsEWMZkK0EtaF+zozL/C5XUN1mc6qluTG8qp3ZRtDym7Tu9lABY77EyYCDOGGbSaX751iDcb86IXmrDLwE0OIqWKdHSLsjDVHThTg6e4hoZ0W1836P0nv3Sb9K9d17BS0TY89uRiqBtW8PD2r+uXx1QRH6ltVfNulEDoj+Tjm1OVOZHyxye8FtRMNx4u4SAx8MTWuMkQ4+KV/0Fm8XcxAikH13HgPEKC3sOv3jJfQPSis/NF8bGI8jOIpL/ZXB2cGcB5Z1ZUiOX1iO6uuYrghzg0A0c+naMI6D9DpkvdhphTJ9kdKwGkirDAkBUR5wsCOzDBCmo0JKjNunC1wOIoTbEZD+VCiMAURVWa4nDe1Uln4k54baR4hyhhCcUo33BZUwOqTO9uGIEu3sckJb9ZOAtBpUQIyUJ2wTFL+KLQjgHRCBXRiiowDDHW0vkLDrou0JF3AhCp2uQNv7oSZ/Zq8HJE+5VVSctLt8fbKj7qvd2K24Qljenm39DVKnTb/V54W3JQ4A16ajoC9ROEBhrRiupOO7TmnIt97OMqPbDs+Wd9Bq3vJckauVDIeTrXR126kpctY2WSpk9c2MHRO6XQ9XNLsrPWmuiIwVEqcdeCff1qG2zYzl3PJa3eWNcJmju/52k6wPlzQPrZSiQcZqLufWSkeANGW5t5zLe9SIPBNL1x4h9GWuIMQC46ZamifvFawQbH8TO9I0rWsNNjFoVxBYXmmJLzzjwApSTHhfP6YHrnT8ys8LlM0drRhLRqdJw6g4b54gcvmn+YmBX04ilmmEBR3wyJmoOKTz/7x2u72tOTTFq0y9YyvkJUtybl4LBb35iRHt5/TO+DOA/KGyNL40uZIiKaYvcjlOuvqIwScG1qSjFgfIfbLP6jMG8vOVPAijNL4AiM50bvAUmVSewIpmDqY1Wgcx0sAJqIgdRzrDwEEq9Ju9VwQ9uMGVQNYXahAuP79e5t78jSnVz8fdegMM8RyCb4a6viUlDgoko9Oi2TvWJofjwsQrQLviVhXtZw2YRlAB6J0fh8Wmho2cPr1dBSM3lCjc80GaD03EtTI11wPiQgXYsgRhNYuWASCFtPZOvTBqoNYTaO53H3b2Pdh5VsbHPrh06uYJD41afQ2dV1Ox53dGN6P3433qG3c4d93jvbLy4orHh6+df55b8kmvfHzFxbpnQKQHfUt5p1ImhA00zzRHfBFBLeQs4K1jFm7S5kVGDh0dNpRzCknDOjKzMjPPMVSR8n9r2tpnHEdHqOcoUjLUuUxWntVRyE92lLRftK3NINwmNLSpJfx/lbqsLqlV/p6q99SoaurrHSJ5YM2MGS5Xdr9M5CiwMO5fmMVsaY6LExZNNJvZtleQvnnPbCGYI7YnO58kSaS3nyzqAk6aunXdMQiaQJ1VPXNKS318EJljpwvbcyZxP/Jv0Rr4FOrVA/O4TJenp8KY3yDiW32/CpT5O37iS7orQBHVrJikbKa+wc0qr6jUKoH+W04U/Z3n357tnitXIiN/Q7Fdxj/Ml9kdl+An30RfEVVTAFNdmYZL2bHO9hmKfVZc6tf3L+8P6r/8ImBfnft2F7nL3MMDLo7qH32ueDL2GHUa2aRRJQNKhxQP9ZPJkM8xKUeYiysMlfqBkp/ph/pRy+0jRhoGjTQpq4hZ44bO3F69flKagSubojZwoN20wblhcHB18Kvjzg3O5OP+L1ofcTviOriSK1+8/OKK5PV60MpWzqjxrNn016KlnTs6ly66lb7Gc1H5VCYxhbvP1I/ireJ9J7JVB8mtyhbdKF2L8jvnaeBIyan0U7fDY5/dzB9VUTl8YMkgS7JbT8fei73VnWtfPndj2ewwaomyxJhzU08hxVQZzxpbVENU33jDJqlaRrSqJj73b1RmFWSnihoHU1Kaigw2kCrfQvKZP1fmGnSnqNpStG3+MwkvOlFHaH2N5LNonqTPzClC0rjV69oe+zxuk2/q2SlVKRGdwivDr3Dzfq+V8Hz69UaykNT1+vA8TprylNt/P/DHqs5x6uHq2Z2r/9z0W6NyK5NXfyAjtTChQd7W0NNW9lPPvJ95TH31jq3zhTSytHavdq9QIWKQFL4XuFKmXeAhtqmUIfXmZL/edJN5/RrdFH4tSuZ9R9n+mKud+WZTu1KKTiubkaps4mydXiG1JEXyOlVO0X5Ml/XXwZpCaadNLBW0byIxTWj2HK+/3it87M0vACmTm4KDSdEzLM2vOmLmOKzRu0UszatqHbUZmmB+rbZF49C2uhjVCfXewBMqZ5bT4VTCcdOhgH9lkX9v79pevmM6JoNaQMMIQ7dyq3Obc3vqX45upCDy6GZ6Ig6QXdu6nm4zu6+YP1OZpvzv0pMnhkC7bN+BIGXS8OHruLxgRZz36JKSRB5x+zYIbLuvd5dwO1jXu4upURy4O30Gb6IUC0Nsiij5ypBVMmWUxvY7RBPlgVYWKmyh2oShK6FuFq50tq/yW/XndFgI3qo/vuDzruKSn3DFJK3mERZHrt9KSxVnwOHtZU/GZQ5b2Jh580+7h2x2UMG86mNW6sZZyrra909Ktg0qqJ6Xk38qJy8/91Re7qsjKfk6kZ/zFM2pzvnEaoeVevADZa2pNg0GzvXCfX1xersSyI88TkzTtyh0ZkrRQtcnPt6wYfDgdqPxbppzrA0bHifW04oWyqxrUejT9K2NRrrCguZml9wbQmq8Ipbt59QVdG1Y/9w3wlRmpPl9twpTRNIjA95esJ+z4Ai04c61zLT1XQV1nHhDFHZWtFTogXRTxQzRtz9NkFyLzs4Jcpt8hkLklSit2CNK5Yv3iPV3tOSnbxMrsnu+XPfVLZvS1v7/Jcd7cjzyCrsH7zeXFzWdQq3gW4x6p7Y447os0tkV5/QyqL0jYac3CGhaWPL+FbdW+v1UNdnsTZHB30c2xBy6utz/Q6tU2Lt/LhtWJgr2rFt2FvvztIxn2/dvIgyhg7T1yrkBOiZtGZgJq0S8pdbfOwN++vWKmnF69YmCJU1Nk7Z8+pM9TuLtsds8fq75P44PWfCzq2O9XYHU8d6P/BL9a/wT/eS5zzoJcbqYlJyRkOJdOd8CRj3aLGcwZNgq3yCfJvmvYqIN0l/NTT6xu9/cX3TiWOjg1cd3nwvkBJsCxf8s0EocXp/zRWrfvk+k8cLJy5t9muvr5swGGRmYkrza/kabNJrZ83aYVu3eNZW/CvhooMuPeEn4WRK5kdxES5RK/TZtmU02Xx4lny97/pdilUIpDMXD00iX8hJNuZZE3lKpZpXikimatkqsFcGXSCuWIuFwdW7uyK1D4kODLl38t+n8gn+x3M0Wcb9U2FOkX2cdhXVfPtNzzxCNB1AXqLQZesgNc7j/U+QZFxm29kHKSY0h6KmQYPiI4auhc4ePG14spLhlhu8c8Qt/JT7rQyHFEG0efoOGNz6kBLRwLbka/jP5YHgXeX64HXHwwuHrvtp9dghG+i2fSCj+nE/bqJ+5y+Q8rGwPN2zq51+V9cLh/2m2uu6bRVW4D9IYRzX4IB9MSDyIFHSrG9HfOSyi2ecGFjuAKIMwBzTWItJAAmDCWW6Uyjn7rDytsx7ZKs/QJMFDoEmBjxBE94wxORAiyeSCj1yTQbSikwuhYAUFghYAiNLomAQ8nDFJSPAjo3Q9OxiNnl0mB14e5XExMIr+Y6cUOEMhwjbXv3wR6AKr2qeKhpNzY2Xpzf8JX0kLyXnq7BeSIyd13B1+mz+QIHWkyDd/KsUpJ9ypd8cHRKx64QtM2QU09ef93r1dxc5w1yybF4EusEr7lNNGw8kdvixTX/4TvpKWnNV+TfsLyfHolaOdgwX6EMlqtX1ZNN/8SSHaKbGscKe8Ew3iDaz0+rYuMGUnlLD7sz3ZnLMVu/ZVd2QUNuIa2EerSSBRaAwWhycQSWRKKmoaWjp6BkYmZhZWNnYOTi5unmLY2bHA8rgmyzMTYK6wG3WXt05TxqwX3CLuQ04jdm5u+Z6ItR23THbihWs/ip1flj53yJZiwsQQZ0xj0RTNnG8QzRTLwBL/OSWalIAOk7/KRVYU3ZK5J7QMK40NW4zfPK9LV4myESBZoZjMapY6ZFrWvnG2bXGOcdY3LPo627blR9MAAAAA) format("woff2"),url(/js/build/iconfont.5e0c4d21.woff?t=1576231776697) format("woff"),url(/js/build/iconfont.eb7e69a1.ttf?t=1576231776697) format("truetype"),url(/js/build/iconfont.7bf1e2b0.svg?t=1576231776697#iconfont) format("svg")}.iconfont[data-v-7c98e74e]{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-md[data-v-7c98e74e]:before{content:"\e604"}.icon-redo[data-v-7c98e74e]:before{content:"\e627"}.icon-undo[data-v-7c98e74e]:before{content:"\e633"}.icon-checked[data-v-7c98e74e]:before{content:"\e683"}.icon-checked-false[data-v-7c98e74e]:before{content:"\e684"}.icon-preview[data-v-7c98e74e]:before{content:"\e63a"}.icon-on[data-v-7c98e74e]:before{content:"\e6d8"}.icon-off[data-v-7c98e74e]:before{content:"\e6d9"}.icon-download[data-v-7c98e74e]:before{content:"\e6ae"}.icon-bold[data-v-7c98e74e]:before{content:"\e677"}.icon-group[data-v-7c98e74e]:before{content:"\e647"}.icon-img[data-v-7c98e74e]:before{content:"\e64a"}.icon-under-line[data-v-7c98e74e]:before{content:"\e65a"}.icon-close[data-v-7c98e74e]:before{content:"\e690"}.icon-italic[data-v-7c98e74e]:before{content:"\e628"}.icon-overline[data-v-7c98e74e]:before{content:"\e63b"}.icon-horizontal[data-v-7c98e74e]:before{content:"\e7f0"}.icon-theme[data-v-7c98e74e]:before{content:"\e682"}.icon-quote[data-v-7c98e74e]:before{content:"\e636"}.icon-table[data-v-7c98e74e]:before{content:"\e603"}.icon-clear[data-v-7c98e74e]:before{content:"\e629"}.icon-ul[data-v-7c98e74e]:before{content:"\e624"}.icon-code[data-v-7c98e74e]:before{content:"\e60f"}.icon-link[data-v-7c98e74e]:before{content:"\e7e2"}.icon-fullscreen[data-v-7c98e74e]:before{content:"\e7ec"}.icon-quite[data-v-7c98e74e]:before{content:"\e7ed"}.icon-daoru[data-v-7c98e74e]:before{content:"\e635"}.icon-ol[data-v-7c98e74e]:before{content:"\e6f0"}.icon-upload-img[data-v-7c98e74e]:before{content:"\e679"}.icon-save[data-v-7c98e74e]:before{content:"\e648"}.icon-check-box[data-v-7c98e74e]:before{content:"\ec58"}.markdown[data-v-7c98e74e]{overflow:hidden;position:relative;margin:0;padding:0;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;flex-direction:column;background:#f7f7f7}.markdown.border[data-v-7c98e74e]{border:1px solid #d9d9d9}.markdown *[data-v-7c98e74e]{margin:0;padding:0;box-sizing:border-box}.markdown.fullscreen[data-v-7c98e74e]{position:fixed;z-index:999999;top:0;left:0;right:0;bottom:0;height:100%!important;width:100%;border:none}.markdown.fullscreen .markdown-content[data-v-7c98e74e]{padding:10px 0 0}.markdown .markdown-toolbars[data-v-7c98e74e]{width:100%;display:block;list-style:none;background:#fff;color:#6a6f7b;cursor:pointer;padding-left:4px;border-bottom:1px solid #d9d9d9}.markdown .markdown-toolbars>li[data-v-7c98e74e]{float:left;position:relative;cursor:pointer;margin:0;line-height:normal;min-height:auto}.markdown .markdown-toolbars>li[data-v-7c98e74e]:after{display:block;content:attr(name);position:absolute;z-index:999999999999;top:32px;left:20px;background:#000;color:#fff;white-space:nowrap;font-size:12px;line-height:28px;padding:0 6px;transition:all .3s .1s;transform:scale(0);opacity:0;transform-origin:top;border-radius:2px}.markdown .markdown-toolbars>li[data-v-7c98e74e]:hover:after{transform:scale(1);opacity:1}.markdown .markdown-toolbars>li[data-v-7c98e74e]:last-child:after{right:20%;left:auto}.markdown .markdown-toolbars>li .title[data-v-7c98e74e]{font-size:16px!important}.markdown .markdown-toolbars>li .icon-svg[data-v-7c98e74e]{display:flex;align-items:center;justify-content:center}.markdown .markdown-toolbars>li.right[data-v-7c98e74e]{float:right}.markdown .markdown-toolbars>li.right>ul[data-v-7c98e74e]{list-style:none}.markdown .markdown-toolbars>li.right>ul>li[data-v-7c98e74e]{line-height:normal;float:left}.markdown .markdown-toolbars span[data-v-7c98e74e]{font-size:18px;color:#999;cursor:pointer;display:block;width:30px;height:30px;border-radius:3px;line-height:30px;text-align:center}.markdown .markdown-toolbars span[data-v-7c98e74e]:hover{background:#f7f7f7;color:#1890ff}.markdown .markdown-toolbars .title[data-v-7c98e74e]{padding-left:4px;padding-right:10px}.markdown .markdown-toolbars li:last-child span[data-v-7c98e74e]{font-size:20px!important;margin-right:4px}.markdown .markdown-toolbars .shift-theme[data-v-7c98e74e],.markdown .markdown-toolbars .export-file[data-v-7c98e74e]{height:46px;position:relative;display:flex;justify-content:center;align-items:center}.markdown .markdown-toolbars .shift-theme span[data-v-7c98e74e],.markdown .markdown-toolbars .export-file span[data-v-7c98e74e]{padding:0 8px;transition:all .3s;font-size:18px;display:inline-block;line-height:32px}.markdown .markdown-toolbars .shift-theme span[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file span[data-v-7c98e74e]:hover{color:#0084ff;background:#f7f7f7;border-radius:3px}.markdown .markdown-toolbars .shift-theme ul[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul[data-v-7c98e74e]{transform:scale(0);transition:all .3s;left:-50%;top:40px;width:160px;transform-origin:top center;list-style:none;margin:0;padding:6px 0;box-sizing:border-box;border:1px solid #d9d9d9;background:#fff;border-radius:4px;position:absolute;z-index:9999999;box-shadow:0 2px 8px #0000001a}.markdown .markdown-toolbars .shift-theme ul.active[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul.active[data-v-7c98e74e]{opacity:1;transform:scaleY(1)}.markdown .markdown-toolbars .shift-theme ul li[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li[data-v-7c98e74e]{line-height:30px;padding:0 12px;font-size:13px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;align-items:center;color:#262626}.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-7c98e74e]{font-size:14px;display:block;height:30px;width:30px;line-height:30px;overflow:hidden}.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-7c98e74e]:hover{color:#262626}.markdown .markdown-toolbars .shift-theme ul li i[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li i[data-v-7c98e74e]{font-size:13px;display:block;font-style:normal;flex:1;white-space:normal}.markdown .markdown-toolbars .shift-theme ul li[data-v-7c98e74e]:last-child,.markdown .markdown-toolbars .export-file ul li[data-v-7c98e74e]:last-child{border-bottom:0}.markdown .markdown-toolbars .shift-theme ul li:last-child .iconfont[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li:last-child .iconfont[data-v-7c98e74e]{font-size:14px!important;margin:0!important}.markdown .markdown-toolbars .shift-theme ul li[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file ul li[data-v-7c98e74e]:hover{background:#f7f7f7}.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li.disabled[data-v-7c98e74e]{cursor:not-allowed;color:#bbbec4}.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file ul li.disabled[data-v-7c98e74e]:hover{background:transparent}.markdown .markdown-toolbars .import-file[data-v-7c98e74e]{position:relative}.markdown .markdown-toolbars .import-file input[data-v-7c98e74e]{position:absolute;z-index:9999;left:0;top:0;display:block;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}.markdown .markdown-toolbars .import-file:hover span[data-v-7c98e74e]{background:#f7f7f7;color:#1890ff}.markdown .markdown-toolbars .import-file[data-v-7c98e74e]:hover:after{transform:scale(1);opacity:1}.markdown .close-preview[data-v-7c98e74e]{position:absolute;z-index:999;right:0;top:0;height:40px;width:40px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#262626}.markdown .close-preview span[data-v-7c98e74e]{font-size:22px}.markdown .close-preview span[data-v-7c98e74e]:hover{color:#262626}.markdown .markdown-content[data-v-7c98e74e]{flex:1;width:100%;display:flex;justify-content:space-between;position:relative;overflow:hidden;padding-bottom:0}.markdown .markdown-content .markdown-editor[data-v-7c98e74e]{flex:1;height:100%;position:relative;margin:0!important;overflow:hidden;overflow-y:scroll;display:flex;justify-content:space-between;background:#2d2d2d}.markdown .markdown-content .markdown-editor[data-v-7c98e74e]::-webkit-scrollbar{display:none}.markdown .markdown-content .markdown-editor .index[data-v-7c98e74e]{background:#272727;min-height:100%;width:36px;line-height:22px;padding:12px 0}.markdown .markdown-content .markdown-editor .index li[data-v-7c98e74e]{background:#272727;color:#ccc;font-size:14px;text-align:center;font-family:Consolas}.markdown .markdown-content .markdown-editor textarea[data-v-7c98e74e]{width:100%;min-height:100%;outline:none;border:0;background:#2d2d2d;line-height:22px;caret-color:#ccc;color:#669acc;font-size:14px;font-family:Consolas;resize:none;padding:12px 8px;overflow:hidden;white-space:nowrap;overflow-x:auto}.markdown .markdown-content .markdown-editor textarea[data-v-7c98e74e]::-moz-selection{background:#999;color:#0084ff}.markdown .markdown-content .markdown-editor textarea[data-v-7c98e74e]::selection{background:#999;color:#0084ff}.markdown .markdown-content .codemirror[data-v-7c98e74e]{flex:1;width:auto;height:100%;overflow:auto}.markdown .markdown-content .markdown-preview[data-v-7c98e74e]{flex:1;width:auto;height:100%}.markdown ul.toc-anchor[data-v-7c98e74e]{max-width:260px;min-width:150px;background-color:#f6f8fa;border-left:2px solid #dcdfe6;overflow:auto}.markdown ul.toc-anchor li.toc-anchor-item[data-v-7c98e74e]{cursor:pointer;padding:6px 16px;font-size:12px;line-height:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.markdown ul.toc-anchor li.toc-anchor-item span[data-v-7c98e74e]{color:#333;opacity:.8}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-2[data-v-7c98e74e]{padding-left:16px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-3[data-v-7c98e74e]{padding-left:32px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-4[data-v-7c98e74e]{padding-left:48px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-5[data-v-7c98e74e]{padding-left:64px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-action[data-v-7c98e74e]{color:#2b85e4;opacity:1}.markdown ul.toc-anchor li.toc-anchor-item[data-v-7c98e74e]:first-child{padding-top:16px}.markdown ul.toc-anchor li.toc-anchor-item:hover span[data-v-7c98e74e]{opacity:1}.insert-img-model[data-v-7c98e74e]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99999;background:rgba(0,0,0,.3);padding-top:12%;transition:all .3s;opacity:0;display:none}.insert-img-model .model-container[data-v-7c98e74e]{background:#fff;width:480px;margin:0 auto;border-radius:4px;transition:all .3s;transform:scale(0);transform-origin:center}.insert-img-model .model-container .model-head[data-v-7c98e74e]{line-height:32px;padding:0 12px;background:#f7f7f7;border-radius:4px 4px 0 0;box-shadow:0 1px 2px #d9d9d9;display:flex;justify-content:space-between}.insert-img-model .model-container .model-head span[data-v-7c98e74e]:nth-of-type(2){font-size:14px;padding-left:12px;cursor:pointer}.insert-img-model .model-container .model-head span[data-v-7c98e74e]:nth-of-type(2):hover{color:#ed3f14}.insert-img-model .model-container .model-content[data-v-7c98e74e]{padding:0 12px 20px;min-height:180px}.insert-img-model .model-container .model-content .insert-url[data-v-7c98e74e]{padding:42px 0;display:flex;justify-content:space-between;align-items:center}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]{display:block;border:1px solid #ccc;font-size:14px;padding:4px 8px;line-height:24px;color:#333;background:#fff;border-radius:4px;writing-mode:horizontal-tb;text-rendering:auto;transition:box-shadow 2s;flex:1}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]:focus{border-color:#1890ff}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]::-moz-placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]::placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url a[data-v-7c98e74e]{display:block;background:#1890ff;color:#fff;line-height:32px;height:32px;font-size:13px;padding:0 12px;border-radius:3px;margin-left:20px;border:1px solid #d9d9d9;transition:all .3s}.insert-img-model .model-container .model-content .insert-url a[data-v-7c98e74e]:hover{background:#0169af}.insert-img-model .model-container .model-content .insert-local[data-v-7c98e74e]{height:120px;border:1px dashed #d9d9d9;border-radius:4px;transition:all .3s;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer}.insert-img-model .model-container .model-content .insert-local span[data-v-7c98e74e]{font-size:40px;color:#d9d9d9;line-height:50px;transition:all .3s}.insert-img-model .model-container .model-content .insert-local p[data-v-7c98e74e]{font-size:14px;color:#262626;transition:all .3s}.insert-img-model .model-container .model-content .insert-local[data-v-7c98e74e]:hover{border-color:#1890ff}.insert-img-model .model-container .model-content .insert-local:hover span[data-v-7c98e74e],.insert-img-model .model-container .model-content .insert-local:hover p[data-v-7c98e74e]{color:#1890ff}.insert-img-model .model-container .model-content .insert-local input[data-v-7c98e74e]{display:block;position:absolute;width:100%;height:100%;opacity:0}.insert-img-model .model-container .model-foot[data-v-7c98e74e]{display:flex;justify-content:flex-end;align-items:center;padding:10px 12px;display:none}.insert-img-model .model-container .model-foot a[data-v-7c98e74e]{display:block;background:#f7f7f7;color:#262626;line-height:26px;height:26px;font-size:13px;padding:0 12px;border-radius:3px;margin-left:12px;border:1px solid #d9d9d9;transition:all .3s}.insert-img-model .model-container .model-foot a[data-v-7c98e74e]:hover{background:#d9d9d9}.insert-img-model .model-container .model-foot a.ok[data-v-7c98e74e]{background:#1890ff;color:#fff;border-color:#1890ff}.insert-img-model .model-container .model-foot a.ok[data-v-7c98e74e]:hover{background:#0169af}.insert-img-model.active[data-v-7c98e74e]{opacity:1;display:block}.insert-img-model.active .model-container[data-v-7c98e74e]{transform:scale(1)}ul.shift[data-v-7c98e74e]{padding:6px 12px;display:flex;align-items:center}ul.shift span[data-v-7c98e74e]{font-size:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.shift span.iconfont[data-v-7c98e74e]{font-size:14px}ul.shift label[data-v-7c98e74e]{font-size:12px;padding-right:10px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.shift input[type=radio][data-v-7c98e74e],ul.shift label[data-v-7c98e74e]{transition:all .6s ease;box-sizing:border-box}ul.shift input[type=radio]+label[data-v-7c98e74e]:before{content:"\a0";display:inline-block;vertical-align:middle;margin-right:4px;width:8px;height:8px;border-radius:50%;border:1px solid #292d35;padding:2px}ul.shift input[type=radio]:checked+label[data-v-7c98e74e]:before{background-color:#292d35;background-clip:content-box;padding:2px}ul.shift input[type=radio][data-v-7c98e74e]{position:absolute;clip:rect(0,0,0,0)}ul.shift input[type=radio]:checked+label[data-v-7c98e74e]{color:#292d35}[data-v-7c98e74e] .markdown-preview{flex:1;overflow:hidden;overflow-y:scroll;background:#fff;padding:20px 12px!important;font-family:Tahoma For Number,Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}[data-v-7c98e74e] .markdown-preview *{margin:0;padding:0;box-sizing:border-box}[data-v-7c98e74e] .markdown-preview>div{padding:10px 12px!important;background:#fff}[data-v-7c98e74e] .markdown-preview>div::-webkit-scrollbar{display:none}[data-v-7c98e74e] .markdown-preview::-webkit-scrollbar{display:none}[data-v-7c98e74e] .markdown-preview em{font-style:oblique}[data-v-7c98e74e] .markdown-preview ul{list-style:none;padding:0 20px}[data-v-7c98e74e] .markdown-preview ul li{position:relative}[data-v-7c98e74e] .markdown-preview ul li:after{display:block;content:"";width:8px;height:8px;border-radius:50%;position:absolute;z-index:99;top:12px;left:-16px;background:#262626}[data-v-7c98e74e] .markdown-preview ol,[data-v-7c98e74e] .markdown-preview ul{margin:10px 0}[data-v-7c98e74e] .markdown-preview ol li,[data-v-7c98e74e] .markdown-preview ul li{font-size:14px!important;color:#262626;line-height:22px!important;padding:4px 0 4px 6px;min-height:28px}[data-v-7c98e74e] .markdown-preview ol li input[type=checkbox],[data-v-7c98e74e] .markdown-preview ul li input[type=checkbox]{position:relative;cursor:pointer;overflow:visible;position:absolute;left:-14px;top:5px}[data-v-7c98e74e] .markdown-preview ol li input[type=checkbox]:before,[data-v-7c98e74e] .markdown-preview ul li input[type=checkbox]:before{font-family:iconfont!important;color:#999;display:block;width:18px;height:18px;position:absolute;content:"\e684";top:0px;left:-4px;z-index:999999;background-position:center;background:#fff;font-size:18px;text-align:center;line-height:18px}[data-v-7c98e74e] .markdown-preview ol li input[type=checkbox]:checked:before,[data-v-7c98e74e] .markdown-preview ul li input[type=checkbox]:checked:before{content:"\e683"}[data-v-7c98e74e] .markdown-preview ol.toc-anchor,[data-v-7c98e74e] .markdown-preview ul.toc-anchor{margin:0;padding:0}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item{cursor:pointer;padding:4px 0;font-size:13px!important;line-height:16px!important;min-height:auto;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span{color:#2b85e4;opacity:.9}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-2,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-2{padding-left:16px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-3,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-3{padding-left:32px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-4,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-4{padding-left:48px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-5,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-5{padding-left:64px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item:last-child,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item:last-child{padding-bottom:6px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item:hover span,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item:hover span{opacity:1}[data-v-7c98e74e] .markdown-preview ol{list-style-type:decimal;padding-left:20px}[data-v-7c98e74e] .markdown-preview ol li{list-style:decimal}[data-v-7c98e74e] .markdown-preview hr{color:#d9d9d9;height:1px;border:0;border-top:1px solid #d9d9d9;margin:20px 0;padding:0}[data-v-7c98e74e] .markdown-preview del,[data-v-7c98e74e] .markdown-preview em,[data-v-7c98e74e] .markdown-preview strong{display:inline-block}[data-v-7c98e74e] .markdown-preview blockquote{position:relative;background:#f7f7f7;padding:6px 12px;border-left:5px solid #d9d9d9;border-radius:2px;margin:8px 0}[data-v-7c98e74e] .markdown-preview h1,[data-v-7c98e74e] .markdown-preview h2,[data-v-7c98e74e] .markdown-preview h3,[data-v-7c98e74e] .markdown-preview h4,[data-v-7c98e74e] .markdown-preview h5,[data-v-7c98e74e] .markdown-preview h6{color:#262626}[data-v-7c98e74e] .markdown-preview h1{font-size:28px;border-bottom:1px solid #d9d9d9}[data-v-7c98e74e] .markdown-preview h2{font-size:24px}[data-v-7c98e74e] .markdown-preview h3{font-size:18px}[data-v-7c98e74e] .markdown-preview h4{font-size:16px}[data-v-7c98e74e] .markdown-preview h5{font-size:14px}[data-v-7c98e74e] .markdown-preview h6{font-size:12px}[data-v-7c98e74e] .markdown-preview h1,[data-v-7c98e74e] .markdown-preview h2,[data-v-7c98e74e] .markdown-preview h3,[data-v-7c98e74e] .markdown-preview h4,[data-v-7c98e74e] .markdown-preview h5,[data-v-7c98e74e] .markdown-preview h6{padding:8px 0;font-weight:600}[data-v-7c98e74e] .markdown-preview p{font-size:14px!important;color:#262626;margin-bottom:8px;line-height:22px}[data-v-7c98e74e] .markdown-preview img{display:block;max-width:100%;margin:20px 0;cursor:pointer}[data-v-7c98e74e] .markdown-preview table{width:100%;border:1px solid #d9d9d9;border-bottom:0;background:#fff;border-spacing:0;border-collapse:collapse;margin:20px 0}[data-v-7c98e74e] .markdown-preview table tr{transition:background .1s}[data-v-7c98e74e] .markdown-preview table tr td,[data-v-7c98e74e] .markdown-preview table tr th{padding:4px 8px;font-size:14px;line-height:24px;color:#333;border-bottom:1px solid #d9d9d9;cursor:pointer}[data-v-7c98e74e] .markdown-preview table th{background:#f8f8f9;text-align:left;font-weight:700}[data-v-7c98e74e] .markdown-preview table tr:nth-of-type(even) td{background:#fafafa}[data-v-7c98e74e] .markdown-preview table tr:hover td{background:#f5f5f5}[data-v-7c98e74e] .markdown-preview table td,[data-v-7c98e74e] .markdown-preview table th{border:1px solid #d9d9d9;word-break:break-all}[data-v-7c98e74e] .markdown-preview input[type=checkbox]{display:inline-block;border-radius:0;margin-right:8px}[data-v-7c98e74e] .markdown-preview a{text-decoration:none;color:#1890ff;font-size:14px;line-height:22px}[data-v-7c98e74e] .markdown-preview .code-block{position:relative;padding:0!important}[data-v-7c98e74e] .markdown-preview .code-block .copy-code{position:absolute;z-index:999;top:5px;right:10px;font-size:12px;color:#d9d9d9;line-height:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:all .3s;opacity:0}[data-v-7c98e74e] .markdown-preview .code-block .copy-code:hover{color:#1890ff}[data-v-7c98e74e] .markdown-preview .code-block:hover .copy-code{opacity:1}.preview-img[data-v-7c98e74e]{position:fixed;width:100vw;height:100vh;z-index:99999999;left:0;top:0;background:rgba(0,0,0,.5);display:none;opacity:0;transition:opacity .3s .1s;justify-content:center;align-items:center}.preview-img .close[data-v-7c98e74e]{position:absolute;right:0;top:0;color:#fff;padding:10px;font-size:20px;cursor:pointer}.preview-img img[data-v-7c98e74e]{display:block}.preview-img img.vertical[data-v-7c98e74e]{height:80%;width:auto}.preview-img img.horizontal[data-v-7c98e74e]{width:80%;height:auto}.preview-img.active[data-v-7c98e74e]{display:flex;opacity:1}@media (max-width: 920px){.markdown .markdown-content[data-v-7c98e74e]{flex-direction:column}.markdown .toc-anchor[data-v-7c98e74e],.markdown .icon-svg[data-v-7c98e74e]{display:none!important}}[data-v-7c98e74e] .markdown-theme-light pre{font-size:14px!important;line-height:1.6!important;word-break:break-all;word-wrap:break-word;border:0!important;background:#f7f8fb!important;padding:20px 10px!important;border-radius:4px!important;overflow-y:hidden!important;overflow-x:auto!important;margin:10px 0!important}[data-v-7c98e74e] .markdown-theme-light pre code{font-family:Consolas!important;font-size:13px;line-height:22px!important;color:#444}[data-v-7c98e74e] .markdown-theme-light .hljs{display:block;overflow-x:auto;color:#525252;padding:15px;-webkit-text-size-adjust:none}[data-v-7c98e74e] .markdown-theme-light .hljs-doctype{color:#999}[data-v-7c98e74e] .markdown-theme-light .hljs-tag{color:#3e76f6}[data-v-7c98e74e] .markdown-theme-light .hljs-attribute{color:#e96900}[data-v-7c98e74e] .markdown-theme-light .hljs-value{color:#42b983}[data-v-7c98e74e] .markdown-theme-light .hljs-keyword{color:#e96900}[data-v-7c98e74e] .markdown-theme-light .hljs-string{color:#42b983}[data-v-7c98e74e] .markdown-theme-light .hljs-comment{color:#b3b3b3}[data-v-7c98e74e] .markdown-theme-light .hljs-operator .hljs-comment{color:#525252}[data-v-7c98e74e] .markdown-theme-light .hljs-regexp{color:#af7dff}[data-v-7c98e74e] .markdown-theme-light .hljs-built_in{color:#2db7f5}[data-v-7c98e74e] .markdown-theme-light .css .hljs-class{color:#e96900}[data-v-7c98e74e] .markdown-theme-light .css .hljs-number,[data-v-7c98e74e] .markdown-theme-light .javascript .hljs-number{color:#fc1e70}[data-v-7c98e74e] .markdown-theme-light .css .hljs-attribute{color:#af7dff}[data-v-7c98e74e] .markdown-theme-light .css .hljs-important{color:red}[data-v-7c98e74e] .markdown-theme-light .actionscript .hljs-literal,[data-v-7c98e74e] .markdown-theme-light .javascript .hljs-literal{color:#fc1e70}[data-v-7c98e74e] .markdown-theme-light pre{padding:0;margin:0;background:#f7f7f7!important}[data-v-7c98e74e] .markdown-theme-light code{display:inline-block;background:#f7f7f7;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;margin:0 3px;padding:1px 5px;border-radius:3px;color:#666;border:1px solid #eee}[data-v-7c98e74e] .markdown-theme-light pre code{display:inline;margin:0;padding:0;border:none;background:transparent}[data-v-7c98e74e] .markdown-theme-light pre.bg code{background:#f7f7f7}[data-v-7c98e74e] .markdown-theme-dark pre{display:block;padding:20px 10px!important;border-radius:4px;margin:20px 0!important;background:#1e1e1e;color:#dcdcdc;overflow-y:hidden!important;overflow-x:auto!important;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace!important}[data-v-7c98e74e] .markdown-theme-dark pre *{line-height:1.6!important;font-size:14px;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace!important}[data-v-7c98e74e] .markdown-theme-dark code{padding:0!important;margin:0!important}[data-v-7c98e74e] .markdown-theme-dark .hljs-literal,[data-v-7c98e74e] .markdown-theme-dark .hljs-name,[data-v-7c98e74e] .markdown-theme-dark .hljs-symbol{color:#659bd1}[data-v-7c98e74e] .markdown-theme-dark .hljs-keyword{color:#bc89bd}[data-v-7c98e74e] .markdown-theme-dark .hljs-link{color:#569cd6;text-decoration:underline}[data-v-7c98e74e] .markdown-theme-dark .hljs-built_in,[data-v-7c98e74e] .markdown-theme-dark .hljs-type{color:#4ec9b0}[data-v-7c98e74e] .markdown-theme-dark .hljs-class,[data-v-7c98e74e] .markdown-theme-dark .hljs-number{color:#b8d7a3}[data-v-7c98e74e] .markdown-theme-dark .hljs-meta-string,[data-v-7c98e74e] .markdown-theme-dark .hljs-string{color:#d69d85}[data-v-7c98e74e] .markdown-theme-dark .hljs-regexp,[data-v-7c98e74e] .markdown-theme-dark .hljs-template-tag{color:#9a5334}[data-v-7c98e74e] .markdown-theme-dark .hljs-formula,[data-v-7c98e74e] .markdown-theme-dark .hljs-function,[data-v-7c98e74e] .markdown-theme-dark .hljs-params,[data-v-7c98e74e] .markdown-theme-dark .hljs-subst,[data-v-7c98e74e] .markdown-theme-dark .hljs-title{color:#dcdcdc}[data-v-7c98e74e] .markdown-theme-dark .hljs-comment,[data-v-7c98e74e] .markdown-theme-dark .hljs-quote{color:#57a64a;font-style:italic}[data-v-7c98e74e] .markdown-theme-dark .hljs-doctag{color:#608b4e}[data-v-7c98e74e] .markdown-theme-dark .hljs-meta,[data-v-7c98e74e] .markdown-theme-dark .hljs-meta-keyword,[data-v-7c98e74e] .markdown-theme-dark .hljs-tag{color:#9b9b9b}[data-v-7c98e74e] .markdown-theme-dark .hljs-template-variable,[data-v-7c98e74e] .markdown-theme-dark .hljs-variable{color:#bd63c5}[data-v-7c98e74e] .markdown-theme-dark .hljs-attr,[data-v-7c98e74e] .markdown-theme-dark .hljs-attribute,[data-v-7c98e74e] .markdown-theme-dark .hljs-builtin-name{color:#9cdcfe}[data-v-7c98e74e] .markdown-theme-dark .hljs-section{color:gold}[data-v-7c98e74e] .markdown-theme-dark .hljs-emphasis{font-style:italic}[data-v-7c98e74e] .markdown-theme-dark .hljs-strong{font-weight:700}[data-v-7c98e74e] .markdown-theme-dark .hljs-bullet,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-attr,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-class,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-id,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-pseudo,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-tag{color:#d7ba7d}[data-v-7c98e74e] .markdown-theme-dark .hljs-addition{background-color:#144212;display:inline-block;width:100%}[data-v-7c98e74e] .markdown-theme-dark .hljs-deletion{background-color:#600;display:inline-block;width:100%}[data-v-7c98e74e] .markdown-theme-dark .hljs-comment{font-style:normal}[data-v-7c98e74e] .markdown-theme-oneDark pre{padding:20px 10px!important;display:block;color:#abb2bf;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace;background:#292c34;border-radius:4px;overflow-y:hidden!important;overflow-x:auto!important;margin:10px 0!important}[data-v-7c98e74e] .markdown-theme-oneDark pre *{line-height:1.6!important;font-size:14px;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-comment,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-quote{color:#5c6370;font-style:italic}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-doctag,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-formula,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-keyword{color:#c678dd}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-deletion,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-name,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-section,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-tag,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-subst{color:#e06c75}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-literal{color:#56b6c2}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-addition,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-attribute,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-meta-string,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-regexp,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-string{color:#98c379}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-built_in,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-class .hljs-title{color:#e6c07b}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-attr,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-number,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-attr,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-class,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-pseudo,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-template-variable,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-type,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-variable{color:#d19a66}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-bullet,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-link,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-meta,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-id,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-symbol,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-title{color:#61aeee}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-emphasis{font-style:italic}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-strong{font-weight:700}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-link{text-decoration:underline}[data-v-7c98e74e] .markdown-theme-gitHub pre{padding:20px 10px!important;display:block;overflow-x:auto;color:#333;background:#f7f8fa!important;font-size:13px;line-height:20px;border-radius:4px;margin:10px 0!important;overflow-x:auto!important}[data-v-7c98e74e] .markdown-theme-gitHub pre *{font-family:Consolas!important}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-comment,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-quote{color:#998;font-style:italic}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-selector-tag,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-subst{color:#333;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-keyword{color:#d73a49}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-literal,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-number,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-tag .hljs-attr,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-template-variable,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-variable{color:teal}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-doctag,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-string{color:#d73a49}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-section,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-selector-id,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-title{color:#900;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-subst{font-weight:400}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-class .hljs-title,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-type{color:#458;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-attribute,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-name,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-tag{color:navy;font-weight:400}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-link,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-regexp{color:#009926}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-bullet,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-symbol{color:#990073}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-built_in,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-builtin-name{color:#0086b3}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-meta{color:#999;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-deletion{background:#fdd}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-addition{background:#dfd}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-emphasis{font-style:italic}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-strong{font-weight:700}body .ivu-modal-wrap.common-preview-image-view .ivu-modal{margin:0;padding:0}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content{background:transparent}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-close{display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:#606266;font-size:24px;height:40px;right:40px;top:40px;width:40px}@media (max-width: 640px){body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-close{right:24px;top:24px}}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-close .ivu-icon-ios-close{top:0;right:0;font-size:40px;color:#fff}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-body{padding:0}body .ivu-modal-wrap.common-preview-image-swipe{display:none}.child-view[data-v-1a09ece0]{position:absolute;width:100%;min-height:100%;transition:all .3s cubic-bezier(.55,0,.1,1)}/*! + * Quill Editor v2.0.0 + * https://quilljs.com + * Copyright (c) 2017-2024, Slab + * Copyright (c) 2014, Jason Chen + * Copyright (c) 2013, salesforce.com + */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"\2022"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"\2611"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"\2610"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-bubble.ql-toolbar:after,.ql-bubble .ql-toolbar:after{clear:both;content:"";display:table}.ql-bubble.ql-toolbar button,.ql-bubble .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-bubble.ql-toolbar button svg,.ql-bubble .ql-toolbar button svg{float:left;height:100%}.ql-bubble.ql-toolbar button:active:hover,.ql-bubble .ql-toolbar button:active:hover{outline:none}.ql-bubble.ql-toolbar input.ql-image[type=file],.ql-bubble .ql-toolbar input.ql-image[type=file]{display:none}.ql-bubble.ql-toolbar button:hover,.ql-bubble .ql-toolbar button:hover,.ql-bubble.ql-toolbar button:focus,.ql-bubble .ql-toolbar button:focus,.ql-bubble.ql-toolbar button.ql-active,.ql-bubble .ql-toolbar button.ql-active,.ql-bubble.ql-toolbar .ql-picker-label:hover,.ql-bubble .ql-toolbar .ql-picker-label:hover,.ql-bubble.ql-toolbar .ql-picker-label.ql-active,.ql-bubble .ql-toolbar .ql-picker-label.ql-active,.ql-bubble.ql-toolbar .ql-picker-item:hover,.ql-bubble .ql-toolbar .ql-picker-item:hover,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected{color:#fff}.ql-bubble.ql-toolbar button:hover .ql-fill,.ql-bubble .ql-toolbar button:hover .ql-fill,.ql-bubble.ql-toolbar button:focus .ql-fill,.ql-bubble .ql-toolbar button:focus .ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#fff}.ql-bubble.ql-toolbar button:hover .ql-stroke,.ql-bubble .ql-toolbar button:hover .ql-stroke,.ql-bubble.ql-toolbar button:focus .ql-stroke,.ql-bubble .ql-toolbar button:focus .ql-stroke,.ql-bubble.ql-toolbar button.ql-active .ql-stroke,.ql-bubble .ql-toolbar button.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble.ql-toolbar button:hover .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover .ql-stroke-miter,.ql-bubble.ql-toolbar button:focus .ql-stroke-miter,.ql-bubble .ql-toolbar button:focus .ql-stroke-miter,.ql-bubble.ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#fff}@media (pointer:coarse){.ql-bubble.ql-toolbar button:hover:not(.ql-active),.ql-bubble .ql-toolbar button:hover:not(.ql-active){color:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#ccc}}.ql-bubble,.ql-bubble *{box-sizing:border-box}.ql-bubble .ql-hidden{display:none}.ql-bubble .ql-out-bottom,.ql-bubble .ql-out-top{visibility:hidden}.ql-bubble .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-bubble .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-bubble .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-bubble .ql-formats{display:inline-block;vertical-align:middle}.ql-bubble .ql-formats:after{clear:both;content:"";display:table}.ql-bubble .ql-stroke{fill:none;stroke:#ccc;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-bubble .ql-stroke-miter{fill:none;stroke:#ccc;stroke-miterlimit:10;stroke-width:2}.ql-bubble .ql-fill,.ql-bubble .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-empty{fill:none}.ql-bubble .ql-even{fill-rule:evenodd}.ql-bubble .ql-thin,.ql-bubble .ql-stroke.ql-thin{stroke-width:1}.ql-bubble .ql-transparent{opacity:.4}.ql-bubble .ql-direction svg:last-child{display:none}.ql-bubble .ql-direction.ql-active svg:last-child{display:inline}.ql-bubble .ql-direction.ql-active svg:first-child{display:none}.ql-bubble .ql-editor h1{font-size:2em}.ql-bubble .ql-editor h2{font-size:1.5em}.ql-bubble .ql-editor h3{font-size:1.17em}.ql-bubble .ql-editor h4{font-size:1em}.ql-bubble .ql-editor h5{font-size:.83em}.ql-bubble .ql-editor h6{font-size:.67em}.ql-bubble .ql-editor a{text-decoration:underline}.ql-bubble .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-bubble .ql-editor code,.ql-bubble .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-bubble .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-bubble .ql-editor code{font-size:85%;padding:2px 4px}.ql-bubble .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-bubble .ql-editor img{max-width:100%}.ql-bubble .ql-picker{color:#ccc;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-bubble .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-bubble .ql-picker-label:before{display:inline-block;line-height:22px}.ql-bubble .ql-picker-options{background-color:#444;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-bubble .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-bubble .ql-picker.ql-expanded .ql-picker-label{color:#777;z-index:2}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-bubble .ql-color-picker,.ql-bubble .ql-icon-picker{width:28px}.ql-bubble .ql-color-picker .ql-picker-label,.ql-bubble .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-label svg,.ql-bubble .ql-icon-picker .ql-picker-label svg{right:4px}.ql-bubble .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-bubble .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-bubble .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-bubble .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-bubble .ql-picker.ql-header{width:98px}.ql-bubble .ql-picker.ql-header .ql-picker-label:before,.ql-bubble .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-bubble .ql-picker.ql-font{width:108px}.ql-bubble .ql-picker.ql-font .ql-picker-label:before,.ql-bubble .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-bubble .ql-picker.ql-size{width:98px}.ql-bubble .ql-picker.ql-size .ql-picker-label:before,.ql-bubble .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-bubble .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-bubble .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-bubble .ql-toolbar .ql-formats{margin:8px 12px 8px 0}.ql-bubble .ql-toolbar .ql-formats:first-child{margin-left:12px}.ql-bubble .ql-color-picker svg{margin:1px}.ql-bubble .ql-color-picker .ql-picker-item.ql-selected,.ql-bubble .ql-color-picker .ql-picker-item:hover{border-color:#fff}.ql-bubble .ql-tooltip{background-color:#444;border-radius:25px;color:#fff}.ql-bubble .ql-tooltip-arrow{border-left:6px solid transparent;border-right:6px solid transparent;content:" ";display:block;left:50%;margin-left:-6px;position:absolute}.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow{border-bottom:6px solid #444;top:-6px}.ql-bubble .ql-tooltip.ql-flip .ql-tooltip-arrow{border-top:6px solid #444;bottom:-6px}.ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor{display:block}.ql-bubble .ql-tooltip.ql-editing .ql-formats{visibility:hidden}.ql-bubble .ql-tooltip-editor{display:none}.ql-bubble .ql-tooltip-editor input[type=text]{background:transparent;border:none;color:#fff;font-size:13px;height:100%;outline:none;padding:10px 20px;position:absolute;width:100%}.ql-bubble .ql-tooltip-editor a{top:10px;position:absolute;right:20px}.ql-bubble .ql-tooltip-editor a:before{color:#ccc;content:"\d7";font-size:16px;font-weight:700}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close){position:relative;white-space:nowrap}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):before{background-color:#444;border-radius:15px;top:-5px;font-size:12px;color:#fff;content:attr(href);font-weight:400;overflow:hidden;padding:5px 15px;text-decoration:none;z-index:1}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):after{border-top:6px solid #444;border-left:6px solid transparent;border-right:6px solid transparent;top:0;content:" ";height:0;width:0}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):before,.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):after{left:0;margin-left:50%;position:absolute;transform:translate(-50%,-100%);transition:visibility 0s ease .2s;visibility:hidden}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):hover:before,.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):hover:after{visibility:visible}.ql-mention-list-container{width:270px;border:1px solid #f0f0f0;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #1e1e1e14;z-index:9001;overflow:auto}.ql-mention-loading{line-height:44px;padding:0 20px;vertical-align:middle;font-size:16px}.ql-mention-list{list-style:none;margin:0;padding:0;overflow:hidden}.ql-mention-list-item{cursor:pointer;line-height:44px;font-size:16px;padding:0 20px;vertical-align:middle}.ql-mention-list-item.disabled{cursor:auto}.ql-mention-list-item.selected{background-color:#d3e1eb;text-decoration:none}.mention{height:24px;width:65px;border-radius:6px;background-color:#d3e1eb;padding:3px 0;margin-right:2px;-webkit-user-select:all;-moz-user-select:all;user-select:all}.mention>span{margin:0 3px}.file-icon:before{content:"";background-repeat:no-repeat;background-size:contain;background-image:url(/js/build/other.0cd5a04c.svg)}.file-icon.archive:before{background-image:url(/js/build/archive.2927c41b.svg)}.file-icon.cad:before{background-image:url(/js/build/cad.2dfbfe73.svg)}.file-icon.code:before{background-image:url(/js/build/code.1a9a4504.svg)}.file-icon.document:before{background-image:url(/js/build/document.624c4d76.svg)}.file-icon.drawio:before{background-image:url(/js/build/flow.a58ab0df.svg)}.file-icon.excel:before{background-image:url(/js/build/excel.82abb1cd.svg)}.file-icon.flow:before{background-image:url(/js/build/flow.a58ab0df.svg)}.file-icon.folder:before{background-image:url(/js/build/folder.68818161.svg)}.file-icon.folder.share:before{background-image:url(/js/build/folder-share.800b7d36.svg)}.file-icon.media:before{background-image:url(/js/build/media.7488f9a1.svg)}.file-icon.mind:before{background-image:url(/js/build/mind.9f75182d.svg)}.file-icon.ofd:before{background-image:url(/js/build/ofd.f4f94aaa.svg)}.file-icon.pdf:before{background-image:url(/js/build/pdf.74ce4683.svg)}.file-icon.picture:before{background-image:url(/js/build/picture.eff6e480.svg)}.file-icon.ppt:before{background-image:url(/js/build/ppt.03f2290d.svg)}.file-icon.sheet:before{background-image:url(/js/build/sheet.872ae91e.svg)}.file-icon.tif:before{background-image:url(/js/build/tif.7a6494bd.svg)}.file-icon.txt:before{background-image:url(/js/build/txt.acaac5b7.svg)}.file-icon.updir:before{background-image:url(/js/build/updir.354f6e04.svg)}.file-icon.upload:before{background-image:url(/js/build/upload.01661a19.svg)}.file-icon.word:before{background-image:url(/js/build/word.d0364128.svg)}.file-icon.wps:before{background-image:url(/js/build/wps.3cbc3b98.svg)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-fade-in-enter,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity .3s cubic-bezier(.55,0,.1,1)}@font-face{font-family:element-icons;src:url(/js/build/element-icons.ab40a589.woff) format("woff"),url(/js/build/element-icons.a30f5b3b.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class^=el-icon-],[class*=" el-icon-"]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-ice-cream-round:before{content:"\e6a0"}.el-icon-ice-cream-square:before{content:"\e6a3"}.el-icon-lollipop:before{content:"\e6a4"}.el-icon-potato-strips:before{content:"\e6a5"}.el-icon-milk-tea:before{content:"\e6a6"}.el-icon-ice-drink:before{content:"\e6a7"}.el-icon-ice-tea:before{content:"\e6a9"}.el-icon-coffee:before{content:"\e6aa"}.el-icon-orange:before{content:"\e6ab"}.el-icon-pear:before{content:"\e6ac"}.el-icon-apple:before{content:"\e6ad"}.el-icon-cherry:before{content:"\e6ae"}.el-icon-watermelon:before{content:"\e6af"}.el-icon-grape:before{content:"\e6b0"}.el-icon-refrigerator:before{content:"\e6b1"}.el-icon-goblet-square-full:before{content:"\e6b2"}.el-icon-goblet-square:before{content:"\e6b3"}.el-icon-goblet-full:before{content:"\e6b4"}.el-icon-goblet:before{content:"\e6b5"}.el-icon-cold-drink:before{content:"\e6b6"}.el-icon-coffee-cup:before{content:"\e6b8"}.el-icon-water-cup:before{content:"\e6b9"}.el-icon-hot-water:before{content:"\e6ba"}.el-icon-ice-cream:before{content:"\e6bb"}.el-icon-dessert:before{content:"\e6bc"}.el-icon-sugar:before{content:"\e6bd"}.el-icon-tableware:before{content:"\e6be"}.el-icon-burger:before{content:"\e6bf"}.el-icon-knife-fork:before{content:"\e6c1"}.el-icon-fork-spoon:before{content:"\e6c2"}.el-icon-chicken:before{content:"\e6c3"}.el-icon-food:before{content:"\e6c4"}.el-icon-dish-1:before{content:"\e6c5"}.el-icon-dish:before{content:"\e6c6"}.el-icon-moon-night:before{content:"\e6ee"}.el-icon-moon:before{content:"\e6f0"}.el-icon-cloudy-and-sunny:before{content:"\e6f1"}.el-icon-partly-cloudy:before{content:"\e6f2"}.el-icon-cloudy:before{content:"\e6f3"}.el-icon-sunny:before{content:"\e6f6"}.el-icon-sunset:before{content:"\e6f7"}.el-icon-sunrise-1:before{content:"\e6f8"}.el-icon-sunrise:before{content:"\e6f9"}.el-icon-heavy-rain:before{content:"\e6fa"}.el-icon-lightning:before{content:"\e6fb"}.el-icon-light-rain:before{content:"\e6fc"}.el-icon-wind-power:before{content:"\e6fd"}.el-icon-baseball:before{content:"\e712"}.el-icon-soccer:before{content:"\e713"}.el-icon-football:before{content:"\e715"}.el-icon-basketball:before{content:"\e716"}.el-icon-ship:before{content:"\e73f"}.el-icon-truck:before{content:"\e740"}.el-icon-bicycle:before{content:"\e741"}.el-icon-mobile-phone:before{content:"\e6d3"}.el-icon-service:before{content:"\e6d4"}.el-icon-key:before{content:"\e6e2"}.el-icon-unlock:before{content:"\e6e4"}.el-icon-lock:before{content:"\e6e5"}.el-icon-watch:before{content:"\e6fe"}.el-icon-watch-1:before{content:"\e6ff"}.el-icon-timer:before{content:"\e702"}.el-icon-alarm-clock:before{content:"\e703"}.el-icon-map-location:before{content:"\e704"}.el-icon-delete-location:before{content:"\e705"}.el-icon-add-location:before{content:"\e706"}.el-icon-location-information:before{content:"\e707"}.el-icon-location-outline:before{content:"\e708"}.el-icon-location:before{content:"\e79e"}.el-icon-place:before{content:"\e709"}.el-icon-discover:before{content:"\e70a"}.el-icon-first-aid-kit:before{content:"\e70b"}.el-icon-trophy-1:before{content:"\e70c"}.el-icon-trophy:before{content:"\e70d"}.el-icon-medal:before{content:"\e70e"}.el-icon-medal-1:before{content:"\e70f"}.el-icon-stopwatch:before{content:"\e710"}.el-icon-mic:before{content:"\e711"}.el-icon-copy-document:before{content:"\e718"}.el-icon-full-screen:before{content:"\e719"}.el-icon-switch-button:before{content:"\e71b"}.el-icon-aim:before{content:"\e71c"}.el-icon-crop:before{content:"\e71d"}.el-icon-odometer:before{content:"\e71e"}.el-icon-time:before{content:"\e71f"}.el-icon-bangzhu:before{content:"\e724"}.el-icon-close-notification:before{content:"\e726"}.el-icon-microphone:before{content:"\e727"}.el-icon-turn-off-microphone:before{content:"\e728"}.el-icon-position:before{content:"\e729"}.el-icon-postcard:before{content:"\e72a"}.el-icon-message:before{content:"\e72b"}.el-icon-chat-line-square:before{content:"\e72d"}.el-icon-chat-dot-square:before{content:"\e72e"}.el-icon-chat-dot-round:before{content:"\e72f"}.el-icon-chat-square:before{content:"\e730"}.el-icon-chat-line-round:before{content:"\e731"}.el-icon-chat-round:before{content:"\e732"}.el-icon-set-up:before{content:"\e733"}.el-icon-turn-off:before{content:"\e734"}.el-icon-open:before{content:"\e735"}.el-icon-connection:before{content:"\e736"}.el-icon-link:before{content:"\e737"}.el-icon-cpu:before{content:"\e738"}.el-icon-thumb:before{content:"\e739"}.el-icon-female:before{content:"\e73a"}.el-icon-male:before{content:"\e73b"}.el-icon-guide:before{content:"\e73c"}.el-icon-news:before{content:"\e73e"}.el-icon-price-tag:before{content:"\e744"}.el-icon-discount:before{content:"\e745"}.el-icon-wallet:before{content:"\e747"}.el-icon-coin:before{content:"\e748"}.el-icon-money:before{content:"\e749"}.el-icon-bank-card:before{content:"\e74a"}.el-icon-box:before{content:"\e74b"}.el-icon-present:before{content:"\e74c"}.el-icon-sell:before{content:"\e6d5"}.el-icon-sold-out:before{content:"\e6d6"}.el-icon-shopping-bag-2:before{content:"\e74d"}.el-icon-shopping-bag-1:before{content:"\e74e"}.el-icon-shopping-cart-2:before{content:"\e74f"}.el-icon-shopping-cart-1:before{content:"\e750"}.el-icon-shopping-cart-full:before{content:"\e751"}.el-icon-smoking:before{content:"\e752"}.el-icon-no-smoking:before{content:"\e753"}.el-icon-house:before{content:"\e754"}.el-icon-table-lamp:before{content:"\e755"}.el-icon-school:before{content:"\e756"}.el-icon-office-building:before{content:"\e757"}.el-icon-toilet-paper:before{content:"\e758"}.el-icon-notebook-2:before{content:"\e759"}.el-icon-notebook-1:before{content:"\e75a"}.el-icon-files:before{content:"\e75b"}.el-icon-collection:before{content:"\e75c"}.el-icon-receiving:before{content:"\e75d"}.el-icon-suitcase-1:before{content:"\e760"}.el-icon-suitcase:before{content:"\e761"}.el-icon-film:before{content:"\e763"}.el-icon-collection-tag:before{content:"\e765"}.el-icon-data-analysis:before{content:"\e766"}.el-icon-pie-chart:before{content:"\e767"}.el-icon-data-board:before{content:"\e768"}.el-icon-data-line:before{content:"\e76d"}.el-icon-reading:before{content:"\e769"}.el-icon-magic-stick:before{content:"\e76a"}.el-icon-coordinate:before{content:"\e76b"}.el-icon-mouse:before{content:"\e76c"}.el-icon-brush:before{content:"\e76e"}.el-icon-headset:before{content:"\e76f"}.el-icon-umbrella:before{content:"\e770"}.el-icon-scissors:before{content:"\e771"}.el-icon-mobile:before{content:"\e773"}.el-icon-attract:before{content:"\e774"}.el-icon-monitor:before{content:"\e775"}.el-icon-search:before{content:"\e778"}.el-icon-takeaway-box:before{content:"\e77a"}.el-icon-paperclip:before{content:"\e77d"}.el-icon-printer:before{content:"\e77e"}.el-icon-document-add:before{content:"\e782"}.el-icon-document:before{content:"\e785"}.el-icon-document-checked:before{content:"\e786"}.el-icon-document-copy:before{content:"\e787"}.el-icon-document-delete:before{content:"\e788"}.el-icon-document-remove:before{content:"\e789"}.el-icon-tickets:before{content:"\e78b"}.el-icon-folder-checked:before{content:"\e77f"}.el-icon-folder-delete:before{content:"\e780"}.el-icon-folder-remove:before{content:"\e781"}.el-icon-folder-add:before{content:"\e783"}.el-icon-folder-opened:before{content:"\e784"}.el-icon-folder:before{content:"\e78a"}.el-icon-edit-outline:before{content:"\e764"}.el-icon-edit:before{content:"\e78c"}.el-icon-date:before{content:"\e78e"}.el-icon-c-scale-to-original:before{content:"\e7c6"}.el-icon-view:before{content:"\e6ce"}.el-icon-loading:before{content:"\e6cf"}.el-icon-rank:before{content:"\e6d1"}.el-icon-sort-down:before{content:"\e7c4"}.el-icon-sort-up:before{content:"\e7c5"}.el-icon-sort:before{content:"\e6d2"}.el-icon-finished:before{content:"\e6cd"}.el-icon-refresh-left:before{content:"\e6c7"}.el-icon-refresh-right:before{content:"\e6c8"}.el-icon-refresh:before{content:"\e6d0"}.el-icon-video-play:before{content:"\e7c0"}.el-icon-video-pause:before{content:"\e7c1"}.el-icon-d-arrow-right:before{content:"\e6dc"}.el-icon-d-arrow-left:before{content:"\e6dd"}.el-icon-arrow-up:before{content:"\e6e1"}.el-icon-arrow-down:before{content:"\e6df"}.el-icon-arrow-right:before{content:"\e6e0"}.el-icon-arrow-left:before{content:"\e6de"}.el-icon-top-right:before{content:"\e6e7"}.el-icon-top-left:before{content:"\e6e8"}.el-icon-top:before{content:"\e6e6"}.el-icon-bottom:before{content:"\e6eb"}.el-icon-right:before{content:"\e6e9"}.el-icon-back:before{content:"\e6ea"}.el-icon-bottom-right:before{content:"\e6ec"}.el-icon-bottom-left:before{content:"\e6ed"}.el-icon-caret-top:before{content:"\e78f"}.el-icon-caret-bottom:before{content:"\e790"}.el-icon-caret-right:before{content:"\e791"}.el-icon-caret-left:before{content:"\e792"}.el-icon-d-caret:before{content:"\e79a"}.el-icon-share:before{content:"\e793"}.el-icon-menu:before{content:"\e798"}.el-icon-s-grid:before{content:"\e7a6"}.el-icon-s-check:before{content:"\e7a7"}.el-icon-s-data:before{content:"\e7a8"}.el-icon-s-opportunity:before{content:"\e7aa"}.el-icon-s-custom:before{content:"\e7ab"}.el-icon-s-claim:before{content:"\e7ad"}.el-icon-s-finance:before{content:"\e7ae"}.el-icon-s-comment:before{content:"\e7af"}.el-icon-s-flag:before{content:"\e7b0"}.el-icon-s-marketing:before{content:"\e7b1"}.el-icon-s-shop:before{content:"\e7b4"}.el-icon-s-open:before{content:"\e7b5"}.el-icon-s-management:before{content:"\e7b6"}.el-icon-s-ticket:before{content:"\e7b7"}.el-icon-s-release:before{content:"\e7b8"}.el-icon-s-home:before{content:"\e7b9"}.el-icon-s-promotion:before{content:"\e7ba"}.el-icon-s-operation:before{content:"\e7bb"}.el-icon-s-unfold:before{content:"\e7bc"}.el-icon-s-fold:before{content:"\e7a9"}.el-icon-s-platform:before{content:"\e7bd"}.el-icon-s-order:before{content:"\e7be"}.el-icon-s-cooperation:before{content:"\e7bf"}.el-icon-bell:before{content:"\e725"}.el-icon-message-solid:before{content:"\e799"}.el-icon-video-camera:before{content:"\e772"}.el-icon-video-camera-solid:before{content:"\e796"}.el-icon-camera:before{content:"\e779"}.el-icon-camera-solid:before{content:"\e79b"}.el-icon-download:before{content:"\e77c"}.el-icon-upload2:before{content:"\e77b"}.el-icon-upload:before{content:"\e7c3"}.el-icon-picture-outline-round:before{content:"\e75f"}.el-icon-picture-outline:before{content:"\e75e"}.el-icon-picture:before{content:"\e79f"}.el-icon-close:before{content:"\e6db"}.el-icon-check:before{content:"\e6da"}.el-icon-plus:before{content:"\e6d9"}.el-icon-minus:before{content:"\e6d8"}.el-icon-help:before{content:"\e73d"}.el-icon-s-help:before{content:"\e7b3"}.el-icon-circle-close:before{content:"\e78d"}.el-icon-circle-check:before{content:"\e720"}.el-icon-circle-plus-outline:before{content:"\e723"}.el-icon-remove-outline:before{content:"\e722"}.el-icon-zoom-out:before{content:"\e776"}.el-icon-zoom-in:before{content:"\e777"}.el-icon-error:before{content:"\e79d"}.el-icon-success:before{content:"\e79c"}.el-icon-circle-plus:before{content:"\e7a0"}.el-icon-remove:before{content:"\e7a2"}.el-icon-info:before{content:"\e7a1"}.el-icon-question:before{content:"\e7a4"}.el-icon-warning-outline:before{content:"\e6c9"}.el-icon-warning:before{content:"\e7a3"}.el-icon-goods:before{content:"\e7c2"}.el-icon-s-goods:before{content:"\e7b2"}.el-icon-star-off:before{content:"\e717"}.el-icon-star-on:before{content:"\e797"}.el-icon-more-outline:before{content:"\e6cc"}.el-icon-more:before{content:"\e794"}.el-icon-phone-outline:before{content:"\e6cb"}.el-icon-phone:before{content:"\e795"}.el-icon-user:before{content:"\e6e3"}.el-icon-user-solid:before{content:"\e7a5"}.el-icon-setting:before{content:"\e6ca"}.el-icon-s-tools:before{content:"\e7ac"}.el-icon-delete:before{content:"\e6d7"}.el-icon-delete-solid:before{content:"\e7c9"}.el-icon-eleme:before{content:"\e7c7"}.el-icon-platform-eleme:before{content:"\e7ca"}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-avatar{display:inline-block;box-sizing:border-box;text-align:center;overflow:hidden;color:#fff;background:#C0C4CC;width:40px;height:40px;line-height:40px;font-size:14px}.el-avatar>img{display:block;height:100%;vertical-align:middle}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:4px}.el-avatar--icon{font-size:18px}.el-avatar--large{width:40px;height:40px;line-height:40px}.el-avatar--medium{width:36px;height:36px;line-height:36px}.el-avatar--small{width:28px;height:28px;line-height:28px}.el-tooltip:focus:not(.focusing),.el-tooltip:focus:hover{outline-width:0}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:14px;line-height:1.2;min-width:10px;word-wrap:break-word}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow:after{content:" ";border-width:5px}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-5px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow:after{bottom:-5px;left:1px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper.is-dark{background:#585E6A;color:#fff}.el-tooltip__popper.is-light{background:#FFFFFF;border:1px solid #585E6A}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow:after{border-top-color:#fff}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow:after{border-bottom-color:#fff}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow:after{border-left-color:#fff}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow:after{border-right-color:#fff}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-popover{position:absolute;background:#FFFFFF;min-width:150px;border-radius:4px;border:1px solid #EBEEF5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px #0000001a;word-break:break-all}.el-popover--plain{padding:18px 20px}.el-popover__title{color:#303133;font-size:16px;line-height:1;margin-bottom:12px}.el-popover__reference:focus:not(.focusing),.el-popover__reference:focus:hover{outline-width:0}.el-popover:focus:active,.el-popover:focus{outline-width:0}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFFFFF;border:1px solid #DCDFE6;border-color:#dcdfe6;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button.is-round{padding:12px 20px}.el-button:hover,.el-button:focus{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:none}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:hover,.el-button.is-plain:focus{background:#FFFFFF;border-color:#409eff;color:#409eff}.el-button.is-plain:active{background:#FFFFFF;border-color:#3a8ee6;color:#3a8ee6;outline:none}.el-button.is-active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-disabled,.el-button.is-disabled:hover,.el-button.is-disabled:focus{color:#c0c4cc;cursor:not-allowed;background-image:none;background-color:#fff;border-color:#ebeef5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:hover,.el-button.is-disabled.is-plain:focus{background-color:#fff;border-color:#ebeef5;color:#c0c4cc}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:#ffffff59}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#fff;background-color:#409eff;border-color:#409eff}.el-button--primary:hover,.el-button--primary:focus{background:#66b1ff;border-color:#66b1ff;color:#fff}.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-active{background:#3a8ee6;border-color:#3a8ee6;color:#fff}.el-button--primary.is-disabled,.el-button--primary.is-disabled:hover,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:active{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409eff;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:hover,.el-button--primary.is-plain:focus{background:#409EFF;border-color:#409eff;color:#fff}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:active{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#fff;background-color:#67c23a;border-color:#67c23a}.el-button--success:hover,.el-button--success:focus{background:#85ce61;border-color:#85ce61;color:#fff}.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-active{background:#5daf34;border-color:#5daf34;color:#fff}.el-button--success.is-disabled,.el-button--success.is-disabled:hover,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:active{color:#fff;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67c23a;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:hover,.el-button--success.is-plain:focus{background:#67C23A;border-color:#67c23a;color:#fff}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:active{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#fff;background-color:#e6a23c;border-color:#e6a23c}.el-button--warning:hover,.el-button--warning:focus{background:#ebb563;border-color:#ebb563;color:#fff}.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-active{background:#cf9236;border-color:#cf9236;color:#fff}.el-button--warning.is-disabled,.el-button--warning.is-disabled:hover,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:active{color:#fff;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#e6a23c;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:hover,.el-button--warning.is-plain:focus{background:#E6A23C;border-color:#e6a23c;color:#fff}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:active{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#fff;background-color:#f56c6c;border-color:#f56c6c}.el-button--danger:hover,.el-button--danger:focus{background:#f78989;border-color:#f78989;color:#fff}.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-active{background:#dd6161;border-color:#dd6161;color:#fff}.el-button--danger.is-disabled,.el-button--danger.is-disabled:hover,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:active{color:#fff;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#f56c6c;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:hover,.el-button--danger.is-plain:focus{background:#F56C6C;border-color:#f56c6c;color:#fff}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:active{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#fff;background-color:#909399;border-color:#909399}.el-button--info:hover,.el-button--info:focus{background:#a6a9ad;border-color:#a6a9ad;color:#fff}.el-button--info:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-active{background:#82848a;border-color:#82848a;color:#fff}.el-button--info.is-disabled,.el-button--info.is-disabled:hover,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:active{color:#fff;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:hover,.el-button--info.is-plain:focus{background:#909399;border-color:#909399;color:#fff}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:active{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small{padding:9px 15px;font-size:12px;border-radius:3px}.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini{padding:7px 15px;font-size:12px;border-radius:3px}.el-button--mini.is-round{padding:7px 15px}.el-button--mini.is-circle{padding:7px}.el-button--text{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0}.el-button--text:hover,.el-button--text:focus{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;border-color:transparent;background-color:transparent}.el-button--text.is-disabled,.el-button--text.is-disabled:hover,.el-button--text.is-disabled:focus{border-color:transparent}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:before,.el-button-group:after{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:not(.is-disabled):hover,.el-button-group>.el-button:not(.is-disabled):focus,.el-button-group>.el-button:not(.is-disabled):active{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:#ffffff80}.el-button-group .el-button--primary:first-child{border-right-color:#ffffff80}.el-button-group .el-button--primary:last-child{border-left-color:#ffffff80}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--success:first-child{border-right-color:#ffffff80}.el-button-group .el-button--success:last-child{border-left-color:#ffffff80}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--warning:first-child{border-right-color:#ffffff80}.el-button-group .el-button--warning:last-child{border-left-color:#ffffff80}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--danger:first-child{border-right-color:#ffffff80}.el-button-group .el-button--danger:last-child{border-left-color:#ffffff80}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--info:first-child{border-right-color:#ffffff80}.el-button-group .el-button--info:last-child{border-left-color:#ffffff80}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-left:5px;padding-right:5px;position:relative;border-left:none}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:5px;bottom:5px;left:0;background:rgba(255,255,255,.5)}.el-dropdown .el-dropdown__caret-button.el-button--default:before{background:rgba(220,223,230,.5)}.el-dropdown .el-dropdown__caret-button:hover:not(.is-disabled):before{top:0;bottom:0}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown .el-dropdown-selfdefine:focus:active,.el-dropdown .el-dropdown-selfdefine:focus:not(.focusing){outline-width:0}.el-dropdown [disabled]{cursor:not-allowed;color:#bbb}.el-dropdown-menu{position:absolute;top:0;left:0;z-index:10;padding:10px 0;margin:5px 0;background-color:#fff;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px #0000001a}.el-dropdown-menu__item{list-style:none;line-height:36px;padding:0 20px;margin:0;font-size:14px;color:#606266;cursor:pointer;outline:none}.el-dropdown-menu__item:not(.is-disabled):hover,.el-dropdown-menu__item:focus{background-color:#f4f5f7;color:#606266}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #EBEEF5}.el-dropdown-menu__item--divided:before{content:"";height:6px;display:block;margin:0 -20px;background-color:#fff}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bbb;pointer-events:none}.el-dropdown-menu--medium{padding:6px 0}.el-dropdown-menu--medium .el-dropdown-menu__item{line-height:30px;padding:0 17px;font-size:14px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:6px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:6px;margin:0 -17px}.el-dropdown-menu--small{padding:6px 0}.el-dropdown-menu--small .el-dropdown-menu__item{line-height:27px;padding:0 15px;font-size:13px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:4px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:4px;margin:0 -15px}.el-dropdown-menu--mini{padding:3px 0}.el-dropdown-menu--mini .el-dropdown-menu__item{line-height:24px;padding:0 10px;font-size:12px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:3px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:3px;margin:0 -10px}.el-notification{display:flex;width:330px;padding:14px 26px 14px 13px;border-radius:8px;box-sizing:border-box;border:1px solid #EBEEF5;position:fixed;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:13px;margin-right:8px}.el-notification__title{font-weight:700;font-size:16px;color:#303133;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:6px 0 0;color:#606266;text-align:justify}.el-notification__content p{margin:0}.el-notification__icon{height:24px;width:24px;font-size:24px}.el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.el-notification__closeBtn:hover{color:#606266}.el-notification .el-icon-success{color:#67c23a}.el-notification .el-icon-error{color:#f56c6c}.el-notification .el-icon-info{color:#909399}.el-notification .el-icon-warning{color:#e6a23c}.el-notification-fade-enter.right{right:0;transform:translate(100%)}.el-notification-fade-enter.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-active{opacity:0}.el-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dropdown-menu__item{min-width:100px}.el-dropdown-menu__item .item.red{color:red!important}.el-dropdown-menu__item .item.red>i{color:red!important}.el-dropdown-menu__item--divided:before{height:5px}.el-tooltip__popper.is-light{border-width:0;box-shadow:0 1px 6px #0003}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#d9d9d980}.el-popover{border-width:0;box-shadow:0 1px 6px #0003}@font-face{font-family:zenicon;src:url(/js/build/zenicon.4baf444f.woff2) format("woff2")}.ft.icon{font-family:zenicon,serif;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;text-rendering:auto;transform:scale(1.2);transform-origin:50% 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;direction:ltr;-webkit-font-feature-settings:"liga";padding-left:1px}.ft+.el-el-button,.ft+.ft,.ft+.z-confirm,.ft+.z-execute,.ft+.z-link,.ft+a{margin-left:.6rem}.ft.l12{margin-left:12px}.ft.r12{margin-right:12px}.ft.hover{cursor:pointer}.ft.hover:hover{color:#0285d7}.ft.dark{color:#0d0d0d}.ft.gray{color:#666}.ft.yellow{color:#f90}.ft.red{color:#ed3f14}.ft.green{color:#19be6b}.ft.blue{color:#2d8cf0}.ft.center{text-align:center}.ft.right{text-align:right}.ft.bold{font-weight:700}.ft.underline{text-decoration:underline}.ft.through{text-decoration:line-through}.ft.italic{font-style:italic}.ft.cursor{cursor:pointer}.ft.h1{font-size:1.3rem}.ft.h2{font-size:1.2rem}.ft.h3{font-size:1.1rem}.ft.h4{font-size:.9rem}.ft.h5{font-size:.8rem}@font-face{font-family:taskfont;src:url(/js/build/iconfont.d753185e.woff2) format("woff2"),url(/js/build/iconfont.3539f3bf.woff) format("woff"),url(/js/build/iconfont.b09148ce.ttf) format("truetype")}.taskfont{font-family:taskfont,"serif"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.scrollbar-container{flex:1;height:100%;position:relative;overflow:hidden}.scrollbar-container.scrollbar-touch .scrollbar-track-x,.scrollbar-container.scrollbar-touch .scrollbar-track-y{display:none}.scrollbar-container.scrollbar-desktop .scrollbar-content::-webkit-scrollbar,.scrollbar-container.scrollbar-hidebar .scrollbar-content::-webkit-scrollbar{display:none;width:0;height:0}.scrollbar-container.scrollbar-hidebar .scrollbar-track-x,.scrollbar-container.scrollbar-hidebar .scrollbar-track-y{opacity:0!important}.scrollbar-container .scrollbar-track-x,.scrollbar-container .scrollbar-track-y{position:absolute;z-index:101;display:block;visibility:hidden;opacity:0;transition:background-color .2s linear,opacity .2s linear}.scrollbar-container .scrollbar-track-x{left:0;right:0;bottom:0;height:15px}.scrollbar-container .scrollbar-track-y{top:0;right:0;bottom:0;width:15px}.scrollbar-container.scrollbar-active-x .scrollbar-track-x,.scrollbar-container.scrollbar-active-y .scrollbar-track-y{visibility:visible;background-color:transparent}.scrollbar-container:hover>.scrollbar-track-x,.scrollbar-container:hover>.scrollbar-track-y,.scrollbar-container.scrollbar-scrolling-x .scrollbar-track-x,.scrollbar-container.scrollbar-scrolling-y .scrollbar-track-y{opacity:.6}.scrollbar-container .scrollbar-track-x:hover,.scrollbar-container .scrollbar-track-y:hover,.scrollbar-container .scrollbar-track-x:focus,.scrollbar-container .scrollbar-track-y:focus,.scrollbar-container.scrollbar-moveing-x .scrollbar-track-x,.scrollbar-container.scrollbar-moveing-y .scrollbar-track-y{background-color:#eee;opacity:.9}.scrollbar-container .scrollbar-thumb-x,.scrollbar-container .scrollbar-thumb-y{position:absolute;z-index:102;background-color:#aaa;border-radius:6px;transform:translateZ(0)}.scrollbar-container .scrollbar-thumb-x{transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.scrollbar-container .scrollbar-thumb-y{transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.scrollbar-container .scrollbar-track-x:hover>.scrollbar-thumb-x,.scrollbar-container .scrollbar-track-x:focus>.scrollbar-thumb-x,.scrollbar-container.scrollbar-moveing-x .scrollbar-thumb-x{background-color:#999;height:11px}.scrollbar-container .scrollbar-track-y:hover>.scrollbar-thumb-y,.scrollbar-container .scrollbar-track-y:focus>.scrollbar-thumb-y,.scrollbar-container.scrollbar-moveing-y .scrollbar-thumb-y{background-color:#999;width:11px}.scrollbar-container .scrollbar-content{height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.scrollbar-container .scrollbar-content.scrollbar-disable-x{overflow-x:hidden}.scrollbar-container .scrollbar-content.scrollbar-disable-y{overflow-y:hidden}.scrollbar-hidden::-webkit-scrollbar{display:none}.common-auto-tip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-circle{border-radius:50%}.common-circle .common-circle-path{fill:transparent}.common-circle .common-circle-g-path-ring{stroke:#84c56a}.common-circle .common-circle-g-path-core{fill:#84c56a;transform:scale(.56);transform-origin:50%}.common-drawer-overlay .ivu-modal{margin:0;padding:0}.common-drawer-overlay .ivu-modal .ivu-modal-content{background:transparent}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-close{display:none}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-body{padding:0;display:flex;flex-direction:column;justify-content:flex-end;align-content:flex-end}.common-drawer-overlay .overlay-body{display:flex;flex-direction:column;width:100%;height:100%;max-width:100%;max-height:100%;z-index:2;position:relative}.common-drawer-overlay .overlay-body .overlay-close{flex-shrink:0;display:flex;align-items:flex-end;justify-content:flex-end}.common-drawer-overlay .overlay-body .overlay-close>a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a .icon{width:24px;height:24px}.common-drawer-overlay .overlay-body .overlay-close>a>svg{transition:all .3s}.common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a:hover>svg{transform:rotate(-90deg)}.common-drawer-overlay .overlay-body .overlay-resize{width:100%;height:5px;margin-bottom:-5px;z-index:1}.common-drawer-overlay .overlay-body .overlay-content{flex:1;position:relative;background:#fff;border-radius:18px 18px 0 0;transform:translate(0) scale(1);cursor:default}.common-drawer-overlay.right .ivu-modal .ivu-modal-content .ivu-modal-body,.common-drawer-overlay.right .overlay-body{flex-direction:row}.common-drawer-overlay.right .overlay-body .overlay-close{align-items:flex-start}.common-drawer-overlay.right .overlay-body .overlay-resize{width:5px;height:100%;margin-right:-5px;z-index:1}.common-drawer-overlay.right .overlay-body .overlay-content{border-radius:18px 0 0 18px}.drawer-slide-bottom-enter-active,.drawer-slide-bottom-leave-active{transition:all .2s ease}.drawer-slide-bottom-enter,.drawer-slide-bottom-leave-to{transform:translateY(15%) scale(.98);opacity:0}.drawer-slide-right-enter-active,.drawer-slide-right-leave-active{transition:all .2s ease}.drawer-slide-right-enter,.drawer-slide-right-leave-to{transform:translate(15%) scale(.98);opacity:0}.common-float-spinner{position:fixed;z-index:9999;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:#fff9}.common-float-spinner .common-float-circular{width:30px;height:30px}.common-gantt{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:self-start;color:#747a81}.common-gantt *{box-sizing:border-box}.common-gantt .gantt-left{flex-grow:0;flex-shrink:0;height:100%;background-color:#fff;position:relative;display:flex;flex-direction:column}.common-gantt .gantt-left:after{content:"";position:absolute;top:0;right:0;bottom:0;width:1px;background-color:#edf1f2bf}.common-gantt .gantt-left .gantt-title{height:76px;flex-grow:0;flex-shrink:0;background-color:#f9fafb;padding-left:12px;overflow:hidden}.common-gantt .gantt-left .gantt-title .gantt-title-text{line-height:100px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.common-gantt .gantt-left .gantt-item{transform:translateZ(0);max-height:100%;overflow:auto}.common-gantt .gantt-left .gantt-item::-webkit-scrollbar{display:none}.common-gantt .gantt-left .gantt-item>li{height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative;display:flex;align-items:center;padding-left:12px}.common-gantt .gantt-left .gantt-item>li:hover .item-icon{display:flex}.common-gantt .gantt-left .gantt-item>li .item-overdue{flex-grow:0;flex-shrink:0;color:#fff;margin-right:4px;background-color:red;padding:1px 3px;border-radius:3px;font-size:12px;line-height:18px}.common-gantt .gantt-left .gantt-item>li .item-title{flex:1;padding-right:12px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-gantt .gantt-left .gantt-item>li .item-title.complete{text-decoration:line-through}.common-gantt .gantt-left .gantt-item>li .item-title.overdue{font-weight:600}.common-gantt .gantt-left .gantt-item>li .item-icon{display:none;align-items:center;justify-content:center;width:32px;margin-right:2px;font-size:16px;color:#888}.common-gantt .gantt-right{flex:1;height:100%;background-color:#fff;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart{position:absolute;top:0;left:0;right:0;bottom:0;transform:translateZ(0)}.common-gantt .gantt-right .gantt-chart .gantt-month{display:flex;align-items:center;position:absolute;top:0;left:0;right:0;z-index:1;height:26px;line-height:20px;font-size:14px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-month>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-month>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-month>li .month-format{overflow:hidden;white-space:nowrap;padding:6px 6px 0}.common-gantt .gantt-right .gantt-chart .gantt-date{display:flex;align-items:center;position:absolute;top:26px;left:0;right:0;bottom:0;z-index:2;cursor:move}.common-gantt .gantt-right .gantt-chart .gantt-date:before{content:"";position:absolute;top:0;left:0;right:0;height:50px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-date>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-date>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format{overflow:hidden;white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:center;height:44px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-day{line-height:28px;font-size:18px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-week{line-height:16px;font-weight:300;font-size:13px}.common-gantt .gantt-right .gantt-chart .gantt-timeline{position:absolute;top:76px;left:0;right:0;bottom:0;z-index:3;overflow-x:hidden;overflow-y:auto}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li{cursor:default;height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item{position:absolute;top:0;touch-action:none;pointer-events:auto;padding:4px;margin-top:4px;background:#e74c3c;border-radius:18px;color:#fff;display:flex;align-items:center;will-change:contents;height:32px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-title{touch-action:none;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:4px;margin-right:10px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-resizer{height:22px;touch-action:none;width:8px;background:rgba(255,255,255,.1);cursor:ew-resize;flex-shrink:0;will-change:visibility;position:absolute;top:5px;right:5px}.img-upload-modal .ivu-modal-mask{z-index:1001}.img-upload-modal .ivu-modal-no-mask{background-color:#37373733}.img-upload-modal .ivu-modal-wrap{z-index:1001}.imgcomp-upload-list{display:inline-block;width:60px;height:60px;text-align:center;line-height:60px;border:1px solid transparent;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:0 1px 1px #0003;margin-right:4px;vertical-align:top}.imgcomp-upload-list .imgcomp-upload-img{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-size:cover}.imgcomp-upload-list .imgcomp-upload-list-cover{display:none;position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.6)}.imgcomp-upload-list .imgcomp-upload-list-cover i{color:#fff;font-size:24px;cursor:pointer;vertical-align:middle;margin:0;transition:all .2s}.imgcomp-upload-list .imgcomp-upload-list-cover i:hover{font-size:28px}.imgcomp-upload-list .ivu-progress{height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer{background-color:#000000ad;height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer .ivu-progress-inner{width:88%;margin:0 auto}.imgcomp-upload-list:hover .imgcomp-upload-list-cover{display:block}.img-upload-foot{display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input{flex:1;text-align:left;display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input .img-upload-foot-httptitle{cursor:pointer;padding-left:3px;margin-right:22px}.add-box{width:60px;height:60px;line-height:60px;display:inline-block;background:#fff;border:1px dashed #dddee1;border-radius:4px;text-align:center;position:relative;overflow:hidden;vertical-align:top}.add-box .add-box-icon i{vertical-align:middle;padding-bottom:2px}.add-box .add-box-upload{display:none;position:absolute;top:0;left:0;height:100%;width:100%;color:#fff;padding-top:9px;background:rgba(0,0,0,.6)}.add-box .add-box-upload .add-box-item{height:22px;line-height:22px;cursor:pointer}.add-box .add-box-upload .add-box-item .ivu-upload-drag,.add-box .add-box-upload .add-box-item .ivu-upload-drag:hover{background:transparent;border:0;border-radius:0}.add-box .add-box-upload .add-box-item span{transition:all .2s;font-size:12px}.add-box .add-box-upload .add-box-item:hover span{font-size:14px}.add-box em{font-style:normal}.add-box:hover{border-color:#0009}.add-box:hover .add-box-upload{display:block}.callback-add-box{display:block;width:auto;height:25px;line-height:25px;border:0;background:transparent}.callback-add-box .add-box-icon{display:none}.callback-add-box .add-box-upload{display:block;width:auto;background:transparent;color:#333;padding:0}.callback-add-box .add-box-upload>div{display:inline-block;padding-right:10px}.browse-load{display:flex;align-items:center;justify-content:center;min-height:110px}.browse-list{max-height:540px;overflow:auto}.browse-list .browse-item{margin:10px 15px;display:inline-block;text-align:center;cursor:pointer;position:relative}.browse-list .browse-item .browse-img{width:64px;height:64px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAABxCAAAAABg5GeyAAACW0lEQVR4Ae3XVRLjMBAE0L3/rSwKM3OcSNPyLVYOLvM6UD0Bd03LVe9XH+RlhlRSSSWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkl9WyqppJJKKqmkkgpURP17xngOAR5NxW5wlJ9MaLQh83F4NHWmd/gZtdVBaOldfDB1bq5UpJFbFOC6LKnYrkRO209PAw+hIuzWB8Ep5es8HvYo4z4tE1X8UeRwlMM2D5Bzkc7kj6Bi3VTKDDwEeUcrMxrUvGDXTnHa6kK69SDN9sgq1clxKSbNHqqnYmdri81Q9QHf1JPt1Frncaib2XbiTKL2GkHaurnY9LOulMV0O7G6Kw+g9sw2ohhm62KezVJaaufjWC1TnOkr1exilJ7Ji0vxCCqO9V4UwV4PYr9+apouhGYLKfnahdpqegjmeoXOpXgANe70pKT6Zhu19qkY2nC0PZS527lQOyInqr8Uvc5jqfUb1X+PGh5IhW90S2quh3FQC2XRcF66TUkTXPcLKm5FtdR9RJq+2hWII7UpFtmsQLEyzsdJtkxxpr6gLotbUSlV9yeT0Trmzk2XPdUThLYarUbWOY9j04xXQ2u+pMZLYSumGmNUH3HbM9qOAwSHodN2Pks25F2j3aI7+IxqNsB+YLWb16ukSjiW4xNB0gMoMfApBS/XZQgi3p9/5RsiKNKZEOwYFVIF5VyTyD19sbyjIJiNJRZxpNbx2S8sGKvGZNHJBniBu9Wy5WxjGuQFqIAcBHiRGyt4ua5gSCWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkkllVRSSSWVVFI/AgO0SXIVYHeGAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat;background-size:cover}.browse-list .browse-item .browse-title{display:block;width:64px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.browse-list .browse-item .browse-icon{position:absolute;top:0;left:0;width:100%;height:64px;font-size:36px;padding-top:15px;color:#fff;background-color:#00000080;z-index:1}.browse-list-disabled{position:relative}.browse-list-disabled:after{position:absolute;content:"";top:0;left:0;width:100%;height:100%;background-color:#ffffffe6;z-index:1}.common-loading{transform-origin:center center;width:30px;height:30px;max-width:100%;max-height:100%;margin:auto;overflow:hidden;animation:loading-rotate 2s linear infinite}.common-loading .common-path{fill:none;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:path-dash 1.5s ease-in-out infinite,path-color 6s ease-in-out infinite}.common-pureing{width:30px;height:30px;border:3px solid #eeeeee;border-bottom-color:#84c56a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:pureing-rotation .75s linear infinite}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes path-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}@keyframes path-color{0%,to{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}@keyframes pureing-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mobile-tabbar{display:none;flex-direction:column;justify-content:flex-end;position:fixed;left:0;bottom:0;right:0;z-index:99;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mobile-tabbar .common-network-exception{position:fixed;bottom:72px;width:100%}.mobile-tabbar .common-network-exception .ivu-alert{margin:0 12px}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-with-icon .ivu-alert-icon{top:50%;transform:translateY(-50%)}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-error{background-color:#fff0e7f2}.mobile-tabbar .tabbar-box{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;padding:0;margin:0;height:60px;background-color:#f8f8f8;box-shadow:0 0 1px #1c222b26}.mobile-tabbar .tabbar-box>li{flex:1;width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;list-style:none;padding:0;margin:0;color:#606266;position:relative}.mobile-tabbar .tabbar-box>li .taskfont{font-size:24px;line-height:34px}.mobile-tabbar .tabbar-box>li .tabbar-title{font-size:12px;line-height:18px;max-width:92%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mobile-tabbar .tabbar-box>li .tabbar-badge{position:absolute;top:0;left:50%;transform:scale(.8)}.mobile-tabbar .tabbar-box>li .tabbar-badge .ivu-badge-count{font-size:14px}.mobile-tabbar .tabbar-box>li.active{color:#84c56a}.mobile-back{display:none}.mobile-back .back-semicircle{position:fixed;top:200px;left:-50px;width:500px;height:500px;background-color:#0000001a;z-index:9999;border-radius:50%;transform:translate(-460px,-50%);animation:mobile-back-animation .2s forwards}@keyframes mobile-back-animation{0%{left:-50px}to{left:0}}.mobile-notification{position:fixed;left:50%;top:20px;z-index:9998;padding:12px;border-radius:8px;border:1px solid #ebeef5;background-color:#fff;box-shadow:0 2px 12px #0000001a;width:90%;max-width:320px;transform:translate(-50%)}.mobile-notification .common-avatar.avatar-wrapper{align-items:flex-start}.mobile-notification .common-avatar.avatar-wrapper .avatar-name{flex:1;width:0;margin-left:12px}.mobile-notification .common-avatar.avatar-wrapper .avatar-name>span{font-weight:700}.mobile-notification .notification-desc{float:left;margin-top:-18px;margin-left:52px;font-size:13px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mobile-fade-enter-active{animation:mobile-fade-enter-animation .2s forwards}.mobile-fade-leave-active{animation:mobile-fade-leave-animation .2s backwards}@keyframes mobile-fade-enter-animation{0%{opacity:0}to{opacity:1}}@keyframes mobile-fade-leave-animation{0%{opacity:1}to{opacity:0}}.mobile-slide-enter-active{animation:mobile-slide-enter-animation .2s forwards}.mobile-slide-leave-active{animation:mobile-slide-leave-animation .2s backwards}@keyframes mobile-slide-enter-animation{0%{transform:translateY(15%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes mobile-slide-leave-animation{0%{transform:translate(0);opacity:1}to{transform:translateY(15%);opacity:0}}.mobile-notify-enter-active{animation:mobile-notify-enter-animation .3s forwards}.mobile-notify-leave-active{animation:mobile-notify-leave-animation .3s backwards}@keyframes mobile-notify-enter-animation{0%{transform:translate3d(-50%,-100%,0);opacity:0}to{transform:translate3d(-50%,0,0);opacity:1}}@keyframes mobile-notify-leave-animation{0%{transform:translate3d(-50%,0,0);opacity:1}to{transform:translate3d(-50%,-100%,0);opacity:0}}.mobile-dialog-enter-active{animation:mobile-dialog-enter-animation .3s forwards}.mobile-dialog-leave-active{animation:mobile-dialog-leave-animation .3s backwards}.mobile-dialog-leave-active .ql-editor{caret-color:transparent}@keyframes mobile-dialog-enter-animation{0%{transform:translate3d(100%,0,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes mobile-dialog-leave-animation{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(100%,0,0);opacity:0}}.mobile-send-enter-active{animation:mobile-send-enter-animation .3s forwards}.mobile-send-leave-active{animation:mobile-send-leave-animation .3s backwards}@keyframes mobile-send-enter-animation{0%{transform:translate(-50%,-50%) scale(0);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes mobile-send-leave-animation{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-50%) scale(0);opacity:0}}body.window-touch .mobile-back{display:block}body.window-touch input,body.window-touch textarea,body.window-touch .ql-editor{caret-color:#0bc037}body.window-portrait .mobile-tabbar{display:flex}body.window-portrait .mobile-notification{top:12px;width:94%;max-width:none}@media (max-height: 400px){body.window-portrait .mobile-tabbar,body.window-portrait .messenger-menu{display:none!important}body.window-portrait .page-manage.show-tabbar .manage-box-main{margin-bottom:0!important}}.app-scroller-y{position:absolute;top:0;left:0;right:0;bottom:0;overflow-x:hidden;overflow-y:auto;overflow-y:overlay}.app-scroller-y .app-scroller-bottom{height:0;margin:0;padding:0}.app-scroller-y.static{position:static;flex:1}.teditor-box .tox.tox-silver-sink,.teditor-transfer .tox.tox-silver-sink{z-index:13000}.teditor-box{position:relative;min-height:22px}.teditor-box .icon-inline{color:#bbb;position:absolute;left:0;top:0}.teditor-box textarea{opacity:0}.teditor-box .tox-checklist{padding-inline-start:26px}.teditor-box .tox-tinymce{box-shadow:none;box-sizing:border-box;border-color:#dddee1;border-radius:4px;overflow:hidden}.teditor-box .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-box .tox-tinymce .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teditor-box .tox-tinymce .tox-tbtn--bespoke .tox-tbtn__select-label{width:auto}.teditor-transfer{background-color:#fff}.teditor-transfer .tox-toolbar>div:last-child>button:last-child{margin-right:64px}.teditor-transfer .ivu-modal-header{display:none}.teditor-transfer .ivu-modal-close{top:7px;z-index:2}.teditor-transfer .teditor-transfer-body{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0}.teditor-transfer .teditor-transfer-body textarea{opacity:0}.teditor-transfer .teditor-transfer-body .tox-tinymce{border:0}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-tbtn--bespoke .tox-tbtn__select-label{width:auto}.teditor-loadstyle{width:100%;height:180px;overflow:hidden;position:relative}.teditor-loadedstyle{width:100%;max-height:inherit;overflow:inherit;position:relative}.upload-control{display:none;width:0;height:0;overflow:hidden}.tox-tinymce-inline{z-index:100000}.quick-edit{display:flex;align-items:center;max-width:100%}.quick-edit .quick-input{flex:1;max-width:100%;position:relative}.quick-edit .quick-input .quick-loading{position:absolute;top:0;right:8px;bottom:0;display:flex;align-items:center}.quick-edit .quick-input .quick-loading .common-loading{margin:0;width:14px;height:14px}.quick-edit .quick-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}.quick-edit .quick-icon{display:none;font-size:16px;cursor:pointer}.quick-edit.quick-always .quick-icon{display:inline-block;opacity:.3;transition:opacity .2s}.quick-edit:hover .quick-icon,.ivu-table-row-hover .quick-edit .quick-icon{display:inline-block;opacity:1}.common-tag-input{display:inline-block;width:100%;min-height:32px;padding:2px 7px;border:1px solid #dddee1;border-radius:4px;color:#495060;background:#fff;position:relative;cursor:text;vertical-align:middle;line-height:normal;transition:all .2s}.common-tag-input:hover{border-color:#a2d98d}.common-tag-input.focus{border-color:#a2d98d;box-shadow:0 0 0 2px #8bcf7033}.common-tag-input .tags-item,.common-tag-input .tags-input{position:relative;float:left;color:#495060;background-color:#f1f8ff;border-radius:3px;line-height:22px;margin:2px 6px 2px 0;padding:0 20px 0 6px}.common-tag-input .tags-item .tags-content,.common-tag-input .tags-input .tags-content{line-height:22px}.common-tag-input .tags-item .tags-del,.common-tag-input .tags-input .tags-del{width:20px;height:22px;text-align:center;cursor:pointer;position:absolute;top:-1px;right:0}.common-tag-input .tags-input{max-width:80%;padding:0;background-color:inherit;border:none;color:inherit;height:22px;line-height:22px;-webkit-appearance:none;outline:none;resize:none;overflow:hidden}.common-tag-input .tags-input::-moz-placeholder{color:#bbb}.common-tag-input .tags-input::placeholder{color:#bbb}.common-tag-input .tags-placeholder{position:absolute;left:0;top:0;z-index:-1;color:#fff0}.common-tag-input:after{content:"";display:block;height:0;clear:both}.ivu-form-item-error .common-tag-input,.ivu-form-item-error .common-tag-input:hover{border-color:#ed4014}.ivu-form-item-error .common-tag-input.focus{border-color:#ed4014;box-shadow:0 0 0 2px #ed401433}.common-avatar{position:relative}.common-avatar.avatar-wrapper{display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box{position:relative;border-radius:50%;display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box .avatar-default{background-color:transparent}.common-avatar.avatar-wrapper .avatar-box .avatar-text{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box .avatar-char{display:inline-block;font-size:15px;line-height:inherit}.common-avatar.avatar-wrapper .avatar-box .el-avatar>img{margin:0 auto;pointer-events:none;-webkit-touch-callout:none}.common-avatar.avatar-wrapper .avatar-box>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.common-avatar.avatar-wrapper .avatar-box.online>em{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box.disabled:after,.common-avatar.avatar-wrapper .avatar-box.deleted:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJpb25pY29uIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPkJhbjwvdGl0bGU+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9IiNjY2NjY2MiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSI0OCIgY3g9IjI1NiIgY3k9IjI1NiIgcj0iMjAwIi8+PHBhdGggc3Ryb2tlPSIjY2NjY2NjIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iNDgiIGQ9Ik0xMTQuNTggMTE0LjU4bDI4Mi44NCAyODIuODQiLz48L3N2Zz4=);background-color:#ffffff80;opacity:.8;border-radius:50%}.common-avatar.avatar-wrapper .avatar-box.disabled>em,.common-avatar.avatar-wrapper .avatar-box.deleted>em{background-color:#ccc}.common-avatar.avatar-wrapper .avatar-box.deleted:after{transform:rotate(-45deg)}.common-avatar.avatar-wrapper .avatar-bot{margin-right:-4px;padding-left:6px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name{display:flex;align-items:center;margin-left:6px;line-height:normal}.common-avatar.avatar-wrapper .avatar-name .bot{flex-shrink:0;margin-right:3px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name>span{flex:1;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar.avatar-pointer{cursor:pointer}.common-avatar-transfer{padding:4px 2px;line-height:1.5}.common-avatar-transfer>p{padding:1px 2px}.common-avatar-transfer>p.department-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar-transfer>p>em{font-style:normal}.common-avatar-transfer>p>em.disabled,.common-avatar-transfer>p>em.deleted{display:inline-block;margin-left:2px;white-space:nowrap;font-size:12px;height:20px;line-height:20px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#ed4014}.common-avatar-transfer .avatar-icons{margin-top:12px;border-top:1px solid rgba(244,244,245,.5);padding:8px 0 0;display:flex;align-items:center}.common-avatar-transfer .avatar-icons>i{cursor:pointer;font-size:22px;margin-right:12px;color:#f4f4f5}.common-avatar-transfer .avatar-icons>i:last-child{margin-right:0}.common-avatar-transfer .avatar-icons>i:hover{color:#fff}.common-user-select.select-module{display:none}.common-user-select.select-border{border:1px solid #e8e8e8;border-radius:4px;padding:0 6px}.common-user-select>ul{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start}.common-user-select>ul>li{list-style:none;padding:0;margin:3px 6px 3px 0;cursor:pointer}.common-user-select>ul>li:last-child{margin-right:0}.common-user-select>ul>li.add-icon{width:26px;height:26px;background:#F2F3F5 url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjg2NjIxNjA3NDE0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik04NzQuNjY2NjY3IDQ3My42aC0zMjQuMjY2NjY3VjE0OS4zMzMzMzNjMC0yMS4zMzMzMzMtMTcuMDY2NjY3LTM4LjQtMzguNC0zOC40cy0zOC40IDE3LjA2NjY2Ny0zOC40IDM4LjR2MzI0LjI2NjY2N0gxNDkuMzMzMzMzYy0yMS4zMzMzMzMgMC0zOC40IDE3LjA2NjY2Ny0zOC40IDM4LjRzMTcuMDY2NjY3IDM4LjQgMzguNCAzOC40aDMyNC4yNjY2Njd2MzI0LjI2NjY2N2MwIDIxLjMzMzMzMyAxNy4wNjY2NjcgMzguNCAzOC40IDM4LjRzMzguNC0xNy4wNjY2NjcgMzguNC0zOC40di0zMjQuMjY2NjY3aDMyNC4yNjY2NjdjMjEuMzMzMzMzIDAgMzguNC0xNy4wNjY2NjcgMzguNC0zOC40cy0xNy4wNjY2NjctMzguNC0zOC40LTM4LjR6IiAgZmlsbD0iIzYwNjI2NiI+PC9wYXRoPjwvc3ZnPg==) no-repeat center;background-size:50%;border-radius:50%}.common-user-select-modal .ivu-modal{max-width:90%}.common-user-select-modal .ivu-modal .user-modal-header{height:100%;display:flex;align-items:center;justify-content:space-between;position:relative;font-weight:500}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-close{padding:0 24px;color:#606266}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title{position:absolute;top:0;bottom:0;left:100px;right:100px;display:flex;justify-content:center;align-items:center}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title>span{font-size:16px;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-submit{padding:0 24px;color:#84c56a;display:flex;align-items:center}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-submit .submit-loading{width:14px;height:14px;margin-right:6px}.common-user-select-modal .ivu-modal .ivu-modal-body{padding:0!important;display:flex;flex-direction:column}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search{flex-shrink:0;display:flex;align-items:center;margin:0 24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected{flex:none;height:auto;flex-shrink:0;max-width:60%;margin-right:12px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul{display:flex;align-items:center;cursor:pointer}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li{list-style:none;margin-right:6px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li:last-child{margin-right:0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:20px;background-color:#61b2f9;color:#fff}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar.department,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar.department{background-color:#5bc7b0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar.project,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar.project{background-color:#6e99eb}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar.task,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar.task{background-color:#9b96df;font-size:24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar>img,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar>img{width:100%;height:100%}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input{flex:1;display:flex;align-items:center;justify-content:center;background-color:#f4f5f7;border-radius:6px;height:36px;padding:0 6px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .search-pre .common-loading{width:14px;height:14px;margin:0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .ivu-input{border-color:transparent;background-color:transparent}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .ivu-input:hover,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .ivu-input:focus{box-shadow:none}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-switch{display:flex;flex-direction:row;align-items:center;margin:12px 24px 0;border-radius:4px;background:#F4F5F7}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-switch>li{flex:1;list-style:none;color:#606266;border-radius:2px;margin:2px;padding:4px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-switch>li.active{font-weight:500;color:#303133;background:#ffffff}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list{flex:1;display:flex;flex-direction:column;max-height:400px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul{padding:16px 24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul.user-modal-project>li:last-child .user-modal-avatar .project-name:before{display:none}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li{list-style:none;margin:0;padding:16px 0 0;height:46px;box-sizing:content-box;display:flex;align-items:center;cursor:pointer}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li:first-child{padding-top:0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.selected .user-modal-icon{color:#84c56a}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.selected .user-modal-avatar .project-name .subtitle>em.all{display:inline-block}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.somed .user-modal-icon{color:#84c56a}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.somed .user-modal-avatar .project-name .subtitle>em.some{display:inline-block}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.disabled,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.disabled:hover{color:#c5c8ce;cursor:not-allowed}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-icon{flex-shrink:0;font-size:22px;margin-right:10px;color:#909399b3}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-all{font-size:15px;font-weight:500}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar{flex:1;display:flex;align-items:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar.department,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar.department{background-color:#5bc7b0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar.project,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar.project{background-color:#6e99eb}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar.task,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar.task{background-color:#9b96df;font-size:24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar>img,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar>img{width:100%;height:100%}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .avatar-name,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name{flex:1;width:0;margin-left:12px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .avatar-name>span,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .avatar-name{display:flex;align-items:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name{display:flex;flex-direction:column;position:relative}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name:before{content:"";position:absolute;left:0;right:0;bottom:-9px;height:1px;background-color:#f2f2f2}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name .label{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name .subtitle{padding-top:2px;font-size:12px;color:#909399;display:flex;align-items:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name .subtitle>em{display:none;font-style:normal;padding-left:4px;color:#84c56a}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 36px 20px;min-height:200px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty .empty-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty .empty-icon .ivu-icon{color:#d1d8dd;font-size:46px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty .empty-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.common-user-select-modal .ivu-modal .ivu-modal-footer{border-top:1px solid #f2f2f2!important;padding:12px 0!important;margin:0 24px!important}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen{max-width:none}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-content{margin-top:46px;border-top-left-radius:18px!important;border-top-right-radius:18px!important}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-header{border-bottom:1px solid #f2f2f2;padding:0;height:56px}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body{top:60px}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-search{padding-top:12px}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-list{max-height:none}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-list ul{padding-bottom:0}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-list ul>li:last-child{padding-bottom:16px}.report{height:100%;padding:20px}.report .report-list-wrap{position:absolute;top:0;width:100%;height:100%;padding-top:53px;display:flex;flex-direction:column}.report .report-list-wrap .table-page-box{flex:1;height:0}.report .manage-box-report{margin-left:4px;transform:scale(.8);vertical-align:top}.report .ivu-tabs{height:100%;position:relative}.report .ivu-tabs .ivu-tabs-bar{position:relative;z-index:2;background:#fff}.report .ivu-tabs .ivu-tabs-content{height:100%;width:100%;margin-top:-53px;padding-top:53px}.report-table-avatar{display:flex;align-items:center;justify-content:center}.report-table-avatar .common-avatar{margin:0 1px}.report-table-avatar .more-avatar{padding-left:3px;font-size:12px}.report-detail{display:flex;flex-direction:column;height:100%}.report-detail .report-title{flex-shrink:0;font-size:16px;font-weight:700;padding:20px 24px;border-bottom:1px solid #eeeeee}@media (max-width: 500px){.report-detail .report-title{padding-right:50px}}.report-detail .report-detail-context{flex:1;height:0;padding:24px;display:flex;flex-direction:column;overflow:auto}.report-detail .report-form.auto-form{display:flex;margin-bottom:12px}.report-detail .report-form.auto-form .ivu-form-item{flex:1;flex-shrink:0}.report-detail .report-form.auto-form .ivu-form-item .ivu-form-item-label{padding-top:8px}.report-detail .report-form .ivu-form-item .ivu-form-item-label{opacity:.8}.report-detail .report-form .ivu-form-item .ivu-form-item-content{line-height:30px;display:flex;align-items:center}.report-detail .report-form .ivu-form-item .ivu-form-item-content .common-avatar{margin-right:6px}.report-detail .report-content{width:100%}.report-detail .report-content h2{margin-bottom:10px}.report-detail .report-content ol{margin-bottom:20px;padding-left:18px}.report-detail .report-content ol li{font-size:14px;line-height:24px}.report-detail .report-content img{max-width:100%}.report-edit{position:absolute;top:0;left:0;right:0;bottom:0;padding:24px;overflow:auto;display:flex;flex-direction:column}.report-edit .ivu-input[disabled]{color:#606266}.report-edit .ivu-form-item-content{white-space:nowrap}.report-edit .report-content{flex:1 1 auto;overflow-y:auto}.report-edit .report-users{display:flex;align-items:center}.report-edit .report-users .common-user-select{margin-right:12px}.report-edit .report-users .report-user-link{flex-shrink:0;display:flex;align-items:center}.report-edit .report-users .report-user-link>i{font-size:16px;margin-right:2px;transform:rotate(-90deg)}.report-edit .report-radiogroup{background:#F4F5F7!important;padding:2px!important;border-radius:4px!important}.report-edit .report-radiogroup .ivu-radio-wrapper{padding:0 30px!important;background:#F4F5F7!important;color:#515a6e!important;box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper.ivu-radio-wrapper-disabled{color:#c6c6c6!important}.report-edit .report-radiogroup .ivu-radio-wrapper:before{width:0!important}.report-edit .report-radiogroup .ivu-radio-wrapper:after{width:0!important}.report-edit .report-radiogroup .ivu-radio-focus{box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-focus:after{background:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper-checked:not(.ivu-radio-wrapper-disabled){background:#fff!important;color:#84c56a!important;box-shadow:none!important;border:none!important;border-radius:4px!important}.report-edit .report-buttongroup{margin-left:20px;background:#F4F5F7!important;border-radius:4px}.report-edit .report-buttongroup .report-buttongroup-vertical{position:absolute;left:50%;width:1px;height:15px;background-color:#e9e9e9;top:50%;transform:translate(-50%,-50%);z-index:9}.report-edit .report-buttongroup .ivu-btn-primary{background:#F4F5F7!important;box-shadow:none!important;border:none!important;color:#84c56a!important;height:36px;line-height:34px}.report-edit .report-buttongroup .ivu-btn-primary[disabled]{color:#c6c6c6!important}.report-edit .report-content-editor{flex:1}.report-edit .report-content-editor .ivu-form-item-content{display:flex;height:100%}.report-edit .report-content-editor .ivu-form-item-content .teditor-wrapper{display:flex;flex:1;min-height:380px;min-width:380px;margin-right:-24px;padding-right:24px}.report-edit .report-foot{margin-bottom:0}.report-edit .report-foot .report-bottom{height:38px;line-height:36px;min-width:120px}.component-resize-line{cursor:col-resize}.component-resize-line.resizing:after{content:"";position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999;cursor:col-resize}.component-resize-line.bottom{cursor:row-resize}.component-resize-line.bottom:after{cursor:row-resize}body.window-portrait .component-resize-line{display:none}.common-right-bottom{position:absolute;bottom:22px;right:26px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;transition:bottom .3s}.common-right-bottom .common-right-bottom-link{display:inline-block;cursor:pointer;line-height:32px;height:32px;padding:0 15px;margin:4px 0;font-size:14px;border-radius:4px;color:#fff;background-color:#84c56a;border-color:#84c56a}.common-right-bottom .common-right-bottom-link:hover{color:#fff;opacity:.9}.common-right-bottom-notification .ivu-modal-header{padding-bottom:8px!important}.common-right-bottom-notification .notification-head{display:flex;align-items:center}.common-right-bottom-notification .notification-head .notification-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.common-right-bottom-notification .notification-body{max-height:210px;margin-bottom:16px}.common-right-bottom-notification .notification-body .markdown-preview{margin:-20px -12px}.common-right-bottom-notification .notification-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.common-right-bottom-notification .notification-body .markdown-preview h1:first-child{padding-top:0}.common-right-bottom-notification .notification-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.common-right-bottom-notification .notification-tip{display:inline-block;color:#909399;line-height:22px;padding-top:4px;font-size:12px}.common-right-bottom-notification .notification-link{margin-top:20px;text-align:right}.common-right-bottom-notification .notification-link>button+button{margin-left:6px}body.window-portrait .common-right-bottom{bottom:20px;right:auto;left:50%;transform:translate(-50%);align-items:center}body.window-portrait .common-right-bottom .common-right-bottom-link{color:#606266!important;background-color:transparent;border-color:transparent}@media (max-height: 640px){.common-right-bottom{display:none}}.common-guide{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999999;background-color:#000000de;padding:5px 10px}.common-guide>div{text-align:center}.common-guide>div button{padding:0 45px}body{overflow:hidden}body .form-tip{color:#909399;line-height:22px;padding:5px 0;word-break:break-all}body .form-tip.red{color:#ed4014}body .form-list ol li,body .form-list ul li{list-style-type:none}body .form-list ol li:before,body .form-list ul li:before{display:inline-block;white-space:nowrap;width:1.2em;text-align:left;margin-right:.2em}body .form-list ul li:before{content:"\2022";font-weight:900}body .form-list ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}body .form-list ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}body .ivu-badge-count{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif}body .input-number-box{display:flex;align-items:center;border:1px solid #dcdee2;border-radius:4px}body .input-number-box .ivu-input-number{width:72px;margin:0;border:0}body .input-number-box>label{color:#515a6e;text-align:center;background-color:#f8f8f9;padding:0 7px;font-weight:400;white-space:nowrap}body .input-number-box>label:first-child{border-left:1px solid transparent;border-right:1px solid #dcdee2;border-radius:4px 0 0 4px}body .input-number-box>label:last-child{border-left:1px solid #dcdee2;border-right:1px solid transparent;border-radius:0 4px 4px 0}body .ivu-input,body .ivu-select-selection{border-color:#e8e8e8}body .ivu-select-dropdown{-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:360px}body .ivu-select-dropdown.select-node .ivu-select-item{display:flex;align-items:center;justify-content:space-between}body .ivu-select-dropdown.select-node .ivu-select-item .option-title{flex:1}body .ivu-select-dropdown.select-node .ivu-select-item .ivu-tag{flex-shrink:0;margin-left:18px;margin-right:0;transform:scale(.9);transform-origin:right center}body .ivu-tooltip-popper .ivu-tooltip-inner{white-space:normal}body .ivu-table table{width:100%!important}body .ivu-table table .ivu-table-cell{padding-left:12px;padding-right:12px}body .ivu-table table .ivu-table-cell .common-avatar .avatar-name{width:0;flex:1}body .ivu-table table thead .ivu-table-cell{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell{display:flex;align-items:center}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell .ivu-table-cell-tree{margin-right:6px}body .ivu-table .td-ellipsis{display:flex;align-items:center;max-width:100%}body .ivu-table .td-ellipsis .remark-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}body .ivu-table .td-ellipsis .remark-icon{display:none;font-size:16px;cursor:pointer}body .ivu-table .td-ellipsis .remark-tag{display:inline-block;height:22px;line-height:22px;margin:2px 4px 2px 0;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;opacity:1;color:#606266;padding:0 4px;white-space:nowrap;overflow:visible}body .ivu-table .td-ellipsis .remark-tag.pointer-tag{cursor:pointer;color:#1890ff;background:#e6f7ff;border-color:#91d5ff}body .ivu-table .td-ellipsis .icon-tooltip .ivu-tooltip-rel{display:flex;align-items:center}body .ivu-table .td-action{max-width:100%;display:flex;align-items:center;justify-content:center}body .ivu-table .td-action .td-action-container{flex-shrink:0}body .ivu-table .td-action .td-action-container a{font-size:12px;padding:0 5px}body .ivu-table .td-action .td-action-container.td-action-menu{display:flex;align-items:center}body .ivu-table .td-action .td-action-container.td-action-menu .menu-dropdown{display:flex}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon{cursor:pointer;font-size:21px;padding:0 6px}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon.ivu-icon{font-size:16px}body .ivu-table .ivu-table-row-hover:hover .td-ellipsis .remark-icon{display:inline-block}body .ivu-table:before{background-color:#efefef}body .ivu-modal-wrap{overflow:overlay}body .ivu-modal-wrap .ivu-modal{top:100px;padding-bottom:100px}@media (max-height: 900px){body .ivu-modal-wrap .ivu-modal{top:35px;padding-bottom:35px}}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen{top:0}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen .ivu-modal-content{border-radius:0}body .ivu-modal-wrap .ivu-modal .ivu-modal-header,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{border-color:transparent}body .ivu-modal-wrap .ivu-modal .ivu-modal-header{padding:22px 24px 20px}body .ivu-modal-wrap .ivu-modal .ivu-modal-header .ivu-modal-header-inner{font-size:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body{padding:16px 32px 2px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body .ivu-table-body,body .ivu-modal-wrap .ivu-modal .ivu-modal-body .project-log{overscroll-behavior:none}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{padding:20px 30px 22px}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .ivu-btn{height:34px;line-height:32px;min-width:94px}@media (max-width: 576px){body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption{display:flex;align-items:center;overflow-x:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn{height:38px;line-height:36px;min-width:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{flex:1}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{display:flex;align-items:center}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip .ivu-poptip-rel{flex:1;display:flex;align-items:center}}body .ivu-modal-wrap .ivu-modal .ivu-modal-content{border-radius:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}body .ivu-modal-wrap .ivu-modal-confirm{padding:6px 0 20px}body .ivu-modal-wrap .ivu-modal-confirm .ivu-modal-confirm-body>div{word-break:break-all}body .ivu-modal-wrap .form-network-add-tabs .ivu-tabs-tabpane{padding:10px 6px 0}body .ivu-modal-wrap .form-network-add-in-out{padding:0 6px}body .ivu-modal-wrap .form-network-add-in-out .select-in-type span.ivu-radio{display:none}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item-checked{color:#84c56a;border:1px solid #84C56A!important}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item{display:flex;align-items:center;min-width:90px;border:1px solid #E8EBEE;border-radius:4px;padding:0 12px;margin:0 8px 0 0}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item>span{flex:1}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item:hover{cursor:pointer}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item .select-in-type-icon{margin-left:12px}body .ivu-modal-wrap .form-network-add-in-out .select-in-node{margin-top:18px}body .ivu-progress,body .ivu-progress .ivu-progress-outer{display:flex;align-items:center}body .ivu-progress.ivu-progress-show-info .ivu-progress-outer{margin:0;padding:0}body .ivu-progress.ivu-progress-show-info .ivu-progress-text{flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-drawer-right .ivu-drawer-content{border-radius:18px 0 0 18px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header{padding-top:16px;padding-bottom:6px;border-bottom:1px solid transparent}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header .ivu-drawer-header-inner{font-size:18px;padding:0 4px;height:32px;line-height:32px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-body{padding:10px 20px}body .ivu-drawer-bottom .ivu-drawer-content{border-radius:18px 18px 0 0}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close{top:-40px}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close .ivu-icon{font-size:40px;color:#fff}body .ivu-tabs-nav-next,body .ivu-tabs-nav-prev{padding-top:3px}*[hidden=hidden]{display:none!important}.clearfix{zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}.table-page-box{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper{flex:1}.table-page-box .ivu-table-wrapper .ivu-table{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-header{flex-shrink:0}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body{flex:1;overflow:auto}.table-page-box .ivu-page{flex-shrink:0;text-align:center;margin-top:20px}.table-page-box .table-attach{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-top:20px}.table-page-box .table-attach .select-box{margin-right:12px}.table-page-box .table-attach .select-box .ivu-select{width:auto;max-width:200px;margin-right:3px}.table-page-box .table-attach .ivu-page{padding:0;margin-top:0;margin-left:12px}.page-container{text-align:center;padding:20px 0}.search-container{margin-bottom:12px}.search-container>ul{display:flex;align-items:flex-end;flex-wrap:wrap}.search-container>ul>li{flex:1;flex-shrink:0;margin-right:12px;margin-bottom:12px;list-style:none;display:flex;flex-direction:column}.search-container>ul>li:last-child{margin-right:0}.search-container>ul>li .search-label{font-weight:600}.search-container>ul>li .search-content{margin-top:6px}.search-container>ul>li.search-button{flex:none;display:flex;align-items:center;flex-direction:row}.search-container>ul>li.search-button>button+button{margin-left:8px}.search-container.lr>ul>li:not(.search-button){flex:none;flex-direction:row;align-items:center;margin-right:18px}.search-container.lr>ul>li:not(.search-button) .search-label{flex-shrink:0}.search-container.lr>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.lr>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.lr>ul>li:not(.search-button) .search-content .ivu-select{width:168px;max-width:100%}.search-container.auto>ul>li:not(.search-button){flex:none}.search-container.auto>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.auto>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-select{width:150px;max-width:100%}@media (max-width: 576px){.search-container.lr>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.lr>ul>li:not(.search-button) .search-content .ivu-select,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-select{width:auto}}.search-expand{display:flex;align-items:flex-end}.search-expand .search-container{flex:1}.search-expand .expand-button-group{flex-shrink:0;margin-left:24px;margin-bottom:24px}.search-button-clear .ivu-tooltip-inner{padding:0;display:flex;align-items:center}.search-button-clear .ivu-tooltip-inner .ivu-btn{min-width:80px;font-size:13px}.icon-loading{animation:animation-icon-loading .6s infinite linear}@keyframes animation-icon-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.common-shake{animation:animation-common-shake .6s ease-in-out;animation-delay:.2s}@keyframes animation-common-shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}50%{transform:translate3d(-4px,0,0)}}.login-mode-enter-active{transition:all .3s ease}.login-mode-leave-active{position:absolute;z-index:-1;display:none}.login-mode-enter,.login-mode-leave-to{transform:translate(100%);opacity:0}body .ivu-modal-wrap.common-drawer-overlay{overflow:hidden}body .ivu-modal-wrap.common-drawer-modal .ivu-modal-body{padding:0!important}body .ivu-modal-wrap.common-drawer-modal .ivu-modal-close{z-index:3}.common-nav-back{cursor:pointer;padding-right:8px}.common-nav-back.portrait{display:none}.common-nav-back .taskfont{font-size:26px}body.window-portrait .common-nav-back{display:block}.page-calendar{display:flex;flex-direction:column}.page-calendar .calendar-head{flex-shrink:0;display:flex;align-items:flex-start;margin:32px 20px 16px;border-bottom:1px solid #F4F4F5}.page-calendar .calendar-head .calendar-titbox{flex:1;display:flex;align-items:center;margin-bottom:16px}.page-calendar .calendar-head .calendar-titbox .calendar-title{display:flex;align-items:center;margin-right:36px}.page-calendar .calendar-head .calendar-titbox .calendar-title>h1{color:#303133;font-size:28px;font-weight:600}.page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-right:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button{color:#888;font-size:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button:focus{box-shadow:none}.page-calendar .calendar-head .calendar-titbox .calendar-view{flex:1;display:flex;justify-content:flex-end}.page-calendar .calendar-head .calendar-titbox .calendar-view>button:focus{box-shadow:none}.page-calendar .calendar-box{flex:1;display:flex;flex-direction:column;padding:0 48px 6px;overflow:hidden}.page-calendar .calendar-menu{position:absolute;top:2px;right:2px;z-index:-1;opacity:0}body.window-portrait .page-calendar .calendar-head{margin:24px 16px 16px}body.window-portrait .page-calendar .calendar-head .calendar-titbox .calendar-title{flex:1}body.window-portrait .page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-left:12px;margin-right:0}body.window-portrait .page-calendar .calendar-head .calendar-titbox .calendar-view{display:none}body.window-portrait .page-calendar .calendar-box{padding:0 24px 5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup{font-weight:400}body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-icon{width:14px;height:14px;background-size:14px}body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-content{font-size:14px}@media (max-width: 640px){body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-arrow{display:none}}.page-dashboard{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#fff}.page-dashboard .dashboard-warning{border-top:0;border-top-left-radius:0;border-top-right-radius:0;padding-right:14px;position:fixed;top:0;z-index:2}.page-dashboard .dashboard-warning>span{cursor:pointer}.page-dashboard .dashboard-wrapper{width:100%;height:auto;max-height:100%;display:flex;flex-direction:column;align-items:center}.page-dashboard .dashboard-wrapper .dashboard-hello,.page-dashboard .dashboard-wrapper .dashboard-desc,.page-dashboard .dashboard-wrapper .dashboard-block,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{width:660px;max-width:80%;margin:0 auto}.page-dashboard .dashboard-wrapper .dashboard-hello{padding:6% 12px 0;color:#303133;font-size:24px;font-weight:600;word-wrap:break-word}.page-dashboard .dashboard-wrapper .dashboard-desc{display:flex;align-items:center;margin-top:18px;padding:0 12px;color:#888;font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-desc .dashboard-load{display:flex;align-items:center;justify-content:center;width:14px;height:14px;margin:0 0 0 4px}.page-dashboard .dashboard-wrapper .dashboard-block{margin-top:18px;padding:0 12px;display:flex}.page-dashboard .dashboard-wrapper .dashboard-block>li{flex:1;flex-shrink:0;list-style:none;margin-right:24px;border-radius:8px;padding:16px 24px;background-color:#fa8e8c;display:flex;flex-direction:column;justify-content:center;cursor:pointer;transition:transform .3s ease-out 0s,box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-block>li:first-child{background-color:#6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:last-child{background-color:#98de6e;margin-right:0}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover{transform:translateY(-3px);box-shadow:0 2px 10px #fa8e8c}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:first-child{box-shadow:0 2px 10px #6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:last-child{box-shadow:0 2px 10px #98de6e}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#fff9;font-size:12px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data{display:flex;align-items:center;padding-top:10px;line-height:1}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{flex:1;color:#fff;font-weight:600;font-size:32px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#ffffffb3;font-size:20px}.page-dashboard .dashboard-wrapper .dashboard-list{width:100%;margin-top:48px;padding-bottom:6%}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ref{height:0}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title{position:sticky;top:0;z-index:1;margin:0 auto;padding:0 12px;height:46px;line-height:46px;font-weight:600;font-size:15px;background-color:#fff}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin:0 auto 18px;padding:6px 12px 0;overflow:hidden}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li{position:relative;list-style:none;display:flex;background:#F9FAFB;padding:12px;margin-bottom:8px;border-radius:6px;cursor:pointer;transition:box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li:hover{box-shadow:0 0 6px #dfdfdf}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-title{opacity:.5;text-decoration:line-through}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-icon{display:none}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .priority-color{position:absolute;top:50%;transform:translateY(-50%);left:0;height:12px;width:2px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select{flex-shrink:0;width:22px;height:22px;line-height:22px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select .taskfont{color:#bbb;font-size:18px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title{flex:1;padding-left:6px;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon{display:flex;align-items:center;font-size:13px;margin-left:16px;height:22px;color:#aaa;cursor:pointer}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon .taskfont{font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon>em{font-style:normal;margin-left:4px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.overdue{color:#ed4014}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.today{color:#f90}.page-dashboard .nopage{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-dashboard .nopage .nopage-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-dashboard .nopage .nopage-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-dashboard .nopage .nopage-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.dashboard-load-enter-active{transition:opacity .3s ease;transition-delay:1s}.dashboard-load-leave-active{transition:opacity .2s ease;transition-delay:0s}.dashboard-load-enter,.dashboard-load-leave-to{opacity:0}body.window-touch .page-messenger .messenger-wrapper .messenger-select .messenger-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-dashboard .dashboard-wrapper{display:block}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-hello,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-desc,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-block,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{max-width:96%}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-block{display:block;margin-top:10px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-block>li{margin:0 0 10px;padding:8px 12px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list{height:auto;padding-bottom:2px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .scrollbar-content{overflow:visible}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin-bottom:36px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-file{width:100%;height:100%;display:flex;flex-direction:column}.page-file .file-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-file .file-wrapper .file-head .file-nav{flex:1;display:flex;align-items:center}.page-file .file-wrapper .file-head .file-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-file .file-wrapper .file-head .file-nav .file-refresh{display:none;cursor:pointer;margin-left:12px}.page-file .file-wrapper .file-head .file-nav .file-refresh>i{font-size:18px}.page-file .file-wrapper .file-head .file-nav:hover .file-refresh{display:block}.page-file .file-wrapper .file-head .file-status{flex-shrink:0;margin-left:22px;display:flex;align-items:center;cursor:pointer}.page-file .file-wrapper .file-head .file-status>button{color:#fff;background:#84C56A;border-color:#84c56a}.page-file .file-wrapper .file-head .file-search{flex-shrink:0;margin-left:22px;cursor:pointer}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper{width:auto;transform:translateZ(0)}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input{border-color:#dcdee2;width:0;padding-left:0;padding-right:30px;border-radius:16px;transition:all .3s}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input-suffix i{color:#606266}.page-file .file-wrapper .file-head .file-search.has-value .ivu-input-wrapper .ivu-input,.page-file .file-wrapper .file-head .file-search:hover .ivu-input-wrapper .ivu-input{width:160px;padding-left:14px}.page-file .file-wrapper .file-head .file-add{flex-shrink:0;margin-left:18px;cursor:pointer}.page-file .file-wrapper .file-head .file-add .taskfont{font-size:18px}.page-file .file-wrapper .file-navigator{display:flex;align-items:center;height:24px;line-height:24px;margin:0 32px}.page-file .file-wrapper .file-navigator>ul{display:flex;align-items:center;overflow:auto}.page-file .file-wrapper .file-navigator>ul>li{display:flex;list-style:none;align-items:center;padding-left:8px;font-size:14px;color:#84c56a;cursor:pointer}.page-file .file-wrapper .file-navigator>ul>li:last-child{color:#606266;cursor:default}.page-file .file-wrapper .file-navigator>ul>li+li:before{content:"\203a";margin-top:-2px;padding-right:8px;color:#606266;line-height:1;font-size:16px;font-weight:500;font-family:system-ui,sans-serif}.page-file .file-wrapper .file-navigator>ul>li .taskfont{padding-right:2px}.page-file .file-wrapper .file-navigator>ul>li>span{display:inline-block;max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator>ul>li>span.readonly{transform:scale(.8);transform-origin:right center;border-radius:2px;line-height:20px;font-size:12px;padding:0 5px;color:#606266;background:#f7f7f7;border:1px solid #e8eaec}.page-file .file-wrapper .file-navigator .nav-load{margin-left:8px;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.page-file .file-wrapper .file-navigator .nav-load .common-loading{width:12px;height:12px}.page-file .file-wrapper .file-navigator .nav-refresh{margin-left:8px}.page-file .file-wrapper .file-navigator .ivu-btn{font-size:12px;margin-left:12px}.page-file .file-wrapper .file-navigator .ivu-btn .tool-box{display:flex;align-items:center}.page-file .file-wrapper .file-navigator .ivu-btn .tool-box>i{font-size:14px}.page-file .file-wrapper .file-navigator .ivu-btn .tool-box>span{margin-left:2px}.page-file .file-wrapper .file-navigator .file-shear{display:flex;align-items:center}.page-file .file-wrapper .file-navigator .file-shear>span{padding-right:3px}.page-file .file-wrapper .file-navigator .file-shear>em{display:inline-block;max-width:120px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator .flex-full{flex:1;margin-right:24px}.page-file .file-wrapper .file-navigator .only-checkbox{flex-shrink:0;display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.page-file .file-wrapper .file-navigator .only-checkbox .ivu-checkbox-focus{box-shadow:none}.page-file .file-wrapper .file-navigator .switch-button{flex-shrink:0;display:flex;align-items:center;background-color:#fff;border-radius:6px;position:relative;transition:box-shadow .2s}.page-file .file-wrapper .file-navigator .switch-button:hover{box-shadow:0 0 10px #e6ecfa}.page-file .file-wrapper .file-navigator .switch-button:before{content:"";position:absolute;top:0;left:0;width:50%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.page-file .file-wrapper .file-navigator .switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.page-file .file-wrapper .file-navigator .switch-button>div>i{font-size:17px}.page-file .file-wrapper .file-navigator .switch-button>div:first-child{color:#84c56a}.page-file .file-wrapper .file-navigator .switch-button.table:before{left:50%}.page-file .file-wrapper .file-navigator .switch-button.table>div:first-child{color:#606266}.page-file .file-wrapper .file-navigator .switch-button.table>div:last-child{color:#84c56a}.page-file .file-wrapper .file-drag{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-drag .file-no{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:5%;opacity:.8}.page-file .file-wrapper .file-drag .file-no>i{font-size:64px}.page-file .file-wrapper .file-drag .file-no>p{margin-top:18px;font-size:14px;font-weight:500;line-height:1}.page-file .file-wrapper .file-drag .file-table{flex:1;cursor:default;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .file-table .ivu-table:before{display:none}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip{opacity:.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span{font-size:14px;font-weight:500;line-height:1.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span:before{display:block;content:"\e60b";font-family:taskfont,"serif"!important;font-size:64px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowY,.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowX{-webkit-overflow-scrolling:touch}.page-file .file-wrapper .file-drag .file-table .file-nbox{display:flex;align-items:center;position:relative}.page-file .file-wrapper .file-drag .file-table .file-nbox.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name{flex:1;width:0;display:flex;align-items:center;position:relative;margin-right:46px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name:before{flex-shrink:0;content:"";width:22px;height:22px;margin-right:8px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name .quick-edit{width:98%}.page-file .file-wrapper .file-drag .file-table .file-nbox .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-table .file-nbox .taskfont{color:#aaa;font-size:16px;margin:0 3px}.page-file .file-wrapper .file-drag .file-list{flex:1;padding:0 20px 20px;margin-top:16px;overflow:auto}.page-file .file-wrapper .file-drag .file-list>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,100px);row-gap:2px;-moz-column-gap:12px;column-gap:12px}.page-file .file-wrapper .file-drag .file-list>ul>li{list-style:none;width:100px;height:124px}.page-file .file-wrapper .file-drag .file-list>ul .file-item{position:relative;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;cursor:pointer}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input{margin:11px 4px 4px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input input{margin:0;padding:1px 5px;font-size:13px}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input .file-load{position:absolute;top:0;right:6px;bottom:0;display:flex}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input .file-load .common-loading{width:10px;height:10px}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-name{display:block;width:100%;line-height:16px;color:#606266;font-size:12px;text-align:center;margin:11px 0 5px;padding:0 4px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-check{opacity:0;position:absolute;top:1px;left:4px;transition:opacity .2s}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-check.file-checked{opacity:1}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-menu{opacity:0;position:absolute;top:2px;right:2px;transition:opacity .2s;display:flex}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-menu .ivu-icon{font-size:16px;color:#aaa;transition:color .2s;padding:2px 5px}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-menu .ivu-icon:hover{color:#606266}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon{flex-shrink:0;display:inline-block;width:64px;height:64px;margin-top:12px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon:before{position:absolute;top:0;left:0;right:0;bottom:0}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-icon,.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-avatar{position:absolute;right:0;bottom:0;background-color:#9acd7b;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;transform:scale(.9)}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-icon .taskfont,.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-avatar .taskfont{font-size:18px;color:#fff}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-list>ul .file-item.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-list>ul .file-item.highlight{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul .file-item.operate,.page-file .file-wrapper .file-drag .file-list>ul .file-item:hover{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul .file-item.operate .file-menu,.page-file .file-wrapper .file-drag .file-list>ul .file-item.operate .file-check,.page-file .file-wrapper .file-drag .file-list>ul .file-item:hover .file-menu,.page-file .file-wrapper .file-drag .file-list>ul .file-item:hover .file-check{opacity:1}.page-file .file-wrapper .file-drag .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .drag-over:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.page-file .file-wrapper .file-drag .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.page-file .file-wrapper .file-menu{position:absolute}.page-file .file-upload-list{display:flex;width:380px;padding:14px 26px;border-radius:8px;border:1px solid #ebeef5;position:fixed;right:16px;bottom:16px;z-index:1;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.page-file .file-upload-list .upload-wrap{flex:1;width:100%}.page-file .file-upload-list .upload-wrap .title{font-weight:700;font-size:16px;color:#303133;margin:0}.page-file .file-upload-list .upload-wrap .title>em{padding-left:4px;font-style:normal;cursor:pointer;color:#2b85e4;font-size:12px;font-weight:400}.page-file .file-upload-list .upload-wrap .content{font-size:14px;line-height:21px;margin:12px 0 0;color:#606266;max-height:500px;max-width:100%;overflow-x:hidden;overflow-y:auto}.page-file .file-upload-list .upload-wrap .content>li{cursor:pointer;list-style:none;padding:4px 0;position:relative}.page-file .file-upload-list .upload-wrap .content>li .file-name{line-height:18px;padding-right:16px}.page-file .file-upload-list .upload-wrap .content>li .file-name .overwrite{font-style:normal;color:#0bc037}.page-file .file-upload-list .upload-wrap .content>li .file-error{font-size:12px;color:red}.page-file .file-upload-list .upload-wrap .content>li .file-close{position:absolute;font-size:14px;top:7px;right:-1px;display:none;cursor:pointer}.page-file .file-upload-list .upload-wrap .content>li:hover .file-close{display:block}.page-file .file-upload-list .upload-wrap .close{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.page-file-dropdown-menu{max-height:none!important}.page-file-dropdown-menu .ivu-dropdown{width:100%}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item{display:flex;align-items:center;justify-content:space-between;margin-right:-6px;min-width:90px}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item .ivu-icon{opacity:.7}.page-file-dropdown-menu .file-item{display:flex;align-items:center;position:relative}.page-file-dropdown-menu .file-item:before{flex-shrink:0;content:"";width:20px;height:20px;margin-right:8px}.page-file-dropdown-menu .ivu-dropdown-menu .item-open{display:flex;align-items:center}.page-file-dropdown-menu .ivu-dropdown-menu .item-open .open-name{padding-left:4px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file-share-form{display:flex;align-items:flex-end;margin-bottom:12px}.page-file-share-form .share-userid{flex:1}.page-file-share-form .share-userid .common-user-select{margin-top:10px}.page-file-share-form>div{flex-shrink:0}.page-file-share-form>div:last-child{margin-right:0}.page-file-share-items{border-top:1px solid #eee;margin-top:-12px;padding-top:24px}.page-file-share-title{margin-top:-8px;margin-bottom:14px;padding:0 2px}.page-file-share-list{max-height:500px;margin-bottom:26px;overflow:auto}.page-file-share-list>li{display:flex;align-items:center;margin-bottom:12px}.page-file-share-list>li .common-avatar{flex:1}.page-file-share-list>li .all-avatar{flex:1;display:flex;align-items:center}.page-file-share-list>li .all-avatar .avatar-text{width:32px;height:32px;line-height:32px}.page-file-share-list>li .all-avatar .avatar-name{margin-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-file-share-list>li .ivu-select{width:auto;flex-shrink:0}.page-file-share-list>li .delete{color:red}.page-file-drawer .overlay-content{border-radius:20px 20px 0 0!important}body.window-portrait .page-file .file-wrapper .file-head{margin:24px 16px 16px}body.window-portrait .page-file .file-wrapper .file-navigator{margin:0 24px}body.window-portrait .page-file .file-wrapper .file-navigator .flex-full{margin-right:10px}body.window-portrait .page-file .file-wrapper .file-navigator .only-checkbox{margin-right:0}body.window-portrait .page-file .file-wrapper .file-drag .file-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul{grid-template-columns:repeat(auto-fill,80px);grid-gap:4px}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li{width:80px}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li .file-check,body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li .file-menu{display:none}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li:hover{background-color:transparent}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li.operate:hover{background-color:#f4f5f7}body.window-portrait .page-file .file-wrapper .file-drag .file-table{margin:16px 0 0}body.window-portrait .page-file .file-upload-list{bottom:86px}body.window-portrait .page-file-dropdown-menu .ivu-dropdown-menu .ivu-dropdown-item:hover{background:transparent}body.window-touch .page-file .file-wrapper .file-drag .file-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-login{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#f8f8f8}.page-login .login-body{display:flex;flex-direction:column;align-items:center;padding:32px 0;width:100%;max-height:100%;overflow:auto}.page-login .login-body .login-logo{flex-shrink:0;width:84px;height:84px;background:url(/js/build/logo.060180f3.svg) no-repeat center center;background-size:contain}.page-login .login-body .login-logo.can-click{cursor:pointer}.page-login .login-body .login-box{flex-shrink:0;position:relative;margin-top:36px;width:400px;max-width:90%;border-radius:12px;background-color:#fff;box-shadow:0 0 10px #e6ecfa;overflow:hidden}.page-login .login-body .login-box .login-mode-switch{position:absolute;top:4px;right:4px;z-index:1;border-radius:8px;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box{width:80px;height:80px;transform:translate(40px,-40px) rotate(45deg);cursor:pointer;background-color:#84c56acc;transition:background-color .3s;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box:hover{background-color:#84c56a}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon{position:absolute;font-size:32px;width:50px;height:50px;color:#fff;bottom:-20px;left:16px;transform:rotate(-45deg);display:flex;align-items:flex-start;justify-content:flex-start}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon>svg{width:32px;height:32px;margin-left:13px;margin-top:3px}.page-login .login-body .login-box .login-title{font-size:24px;font-weight:600;text-align:center;margin-top:46px}.page-login .login-body .login-box .login-subtitle{font-size:14px;text-align:center;margin-top:12px;padding:0 12px;color:#aaa}.page-login .login-body .login-box .login-qrcode{display:flex;align-items:center;justify-content:center;margin:50px auto 51px}.page-login .login-body .login-box .login-access{margin:26px 40px 30px}.page-login .login-body .login-box .login-access>*{margin-top:26px}.page-login .login-body .login-box .login-access .ivu-input{border-color:#f1f1f1}.page-login .login-body .login-box .login-access .ivu-input[readonly=readonly]{background-color:#f5f5f5}.page-login .login-body .login-box .login-access .ivu-input-large{font-size:15px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:16px;background:transparent;border-color:#f1f1f1}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend>span,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append>span{font-size:14px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-right:0}.page-login .login-body .login-box .login-access .login-code .ivu-input{border-left-color:transparent;box-shadow:none}.page-login .login-body .login-box .login-access .login-code .login-code-end{margin:-6px -7px;height:38px;overflow:hidden;cursor:pointer}.page-login .login-body .login-box .login-access .login-code .login-code-end .code-load,.page-login .login-body .login-box .login-access .login-code .login-code-end .code-error{height:100%;display:flex;align-items:center;justify-content:center;width:20px;margin:0 20px}.page-login .login-body .login-box .login-access .login-code .login-code-end .code-error{width:auto;font-size:14px;opacity:.8}.page-login .login-body .login-box .login-access .login-code .login-code-end img{height:100%;min-width:60px}.page-login .login-body .login-box .login-access .login-switch{color:#aaa}.page-login .login-body .login-box .login-access>.ivu-poptip{width:100%}.page-login .login-body .login-box .login-access>.ivu-poptip>.ivu-poptip-rel{width:100%}.page-login .login-body .login-bottom{margin-top:18px;display:flex;align-items:center;width:388px;max-width:90%}.page-login .login-body .login-bottom .login-setting{flex-shrink:0;display:flex;align-items:center;cursor:pointer;color:#606266}.page-login .login-body .login-bottom .login-setting .taskfont{margin-top:1px;margin-left:3px;transform:scale(.8);font-size:12px}.page-login .login-body .login-bottom .login-setting-menu{display:flex;flex-direction:column}.page-login .login-body .login-bottom .login-setting-item{display:flex;align-items:center;justify-content:space-between}.page-login .login-body .login-bottom .login-setting-item .ivu-icon{color:#606266;padding-left:6px;margin-right:-6px}.page-login .login-body .login-bottom .login-forgot{flex:1;padding-left:24px;color:#aaa;text-align:right}.privacy-content{margin-bottom:12px;line-height:26px;font-size:16px}.privacy-content>p{text-indent:2rem}body.window-portrait .page-login .login-body{padding:0 0 110px}body.window-portrait .page-login .login-body .login-logo{margin-top:24px;width:76px;height:76px}body.window-portrait .page-login .login-body .login-box{margin-top:0;width:100%;max-width:460px;border-radius:12px;background-color:transparent;box-shadow:none}body.window-portrait .page-login .login-body .login-box .login-mode-switch{display:none}body.window-portrait .page-login .login-body .login-box .login-title{font-size:26px}body.window-portrait .page-login .login-body .login-box .login-subtitle{margin-top:4px}body.window-portrait .page-login .login-body .login-box .login-access{margin:20px 36px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-large{height:44px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-with-prefix{padding-left:40px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-prefix,body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-suffix{width:44px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-prefix i,body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-suffix i{font-size:20px;line-height:44px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-icon{height:44px;line-height:44px}body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:18px;background:#ffffff}body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend .login-code-end,body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-append .login-code-end{height:42px}body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-left:12px;padding-right:2px}body.window-portrait .page-login .login-body .login-bottom{margin-top:8px;width:100%;max-width:460px;padding:0 36px}.page-manage{position:absolute;top:0;left:0;right:0;bottom:0;display:flex}.page-manage.not-logged .manage-box-menu,.page-manage.not-logged .manage-box-main{display:none}.page-manage .manage-box-menu{position:relative;flex-grow:0;flex-shrink:0;width:255px;height:100%;background:#F4F5F7;display:flex;flex-direction:column;align-items:center;transition:all .2s}.page-manage .manage-box-menu .scrollbar-container{flex:1;width:100%;margin-top:16px;display:flex;flex-direction:column}.page-manage .manage-box-menu .menu-base{position:sticky;top:0;z-index:1;margin:0 auto;width:80%;background:#F4F5F7}.page-manage .manage-box-menu .menu-base ul{flex:1;width:100%;display:flex;flex-direction:column}.page-manage .manage-box-menu .menu-base ul>li{flex-shrink:0;display:flex;align-items:center;height:36px;color:#6b6e72;cursor:pointer;position:relative;width:100%;margin:5px auto;padding:0 4%;border-radius:4px}.page-manage .manage-box-menu .menu-base ul>li>i{opacity:.3;font-size:20px;margin-right:10px}.page-manage .manage-box-menu .menu-base ul>li .menu-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-manage .manage-box-menu .menu-base ul>li .menu-badge{margin-left:12px;transform:scale(.9)}.page-manage .manage-box-menu .menu-base ul>li:first-child{margin-top:12px}.page-manage .manage-box-menu .menu-base ul>li.active{background-color:#fff}.page-manage .manage-box-menu .menu-project{flex:1;display:flex;flex-direction:column;align-items:center;padding:12px 0 0;cursor:default;margin:0 auto;width:80%}.page-manage .manage-box-menu .menu-project>ul{width:100%}.page-manage .manage-box-menu .menu-project>ul>li{display:flex;flex-direction:column;list-style:none;cursor:pointer;width:100%;margin:2px auto;border:2px solid transparent}.page-manage .manage-box-menu .menu-project>ul>li .project-h1{position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 28px;border-radius:4px}.page-manage .manage-box-menu .menu-project>ul>li .project-h1>em{position:absolute;top:50%;left:2px;width:24px;height:24px;cursor:pointer;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .menu-project>ul>li .project-h1>em:before{content:"";width:12px;height:12px;background:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIyMzkwODExNTQxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0OTk3IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxwYXRoIGQ9Ik0zNjYuMTgyNCAxMDguMjM2OEw4MTIuMDMyIDQyOC4wMzJhMTAyLjQgMTAyLjQgMCAwIDEgMCAxNjYuNTAyNEwzNjYuMTgyNCA5MTQuMzI5NmExMDIuNCAxMDIuNCAwIDAgMS0xNjIuMDk5Mi04My4yNTEyVjE5MS40ODhhMTAyLjQgMTAyLjQgMCAwIDEgMTYyLjA5OTItODMuMjUxMnoiIHAtaWQ9IjI0OTk4IiBmaWxsPSIjOTk5OTk5Ij48L3BhdGg+PC9zdmc+) no-repeat center center;background-size:contain;transition:transform .2s}.page-manage .manage-box-menu .menu-project>ul>li .project-h1 .title{flex:1;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:38px;line-height:38px}.page-manage .manage-box-menu .menu-project>ul>li .project-h1 .icon-top{padding-left:8px;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.page-manage .manage-box-menu .menu-project>ul>li .project-h1 .num{padding-left:8px;font-size:12px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2{display:none;margin:16px 4px;padding:0 8px 0 24px;cursor:default}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p{display:flex;align-items:center;padding:4px 0;height:36px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p em,.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p span{font-style:normal;font-size:12px;flex-shrink:0;padding-right:6px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p .ivu-progress{margin-right:-18px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p .ivu-progress .ivu-progress-inner{background-color:#e4e4e4}.page-manage .manage-box-menu .menu-project>ul>li.active .project-h1{background-color:#fff}.page-manage .manage-box-menu .menu-project>ul>li.open-menu .project-h1>em:before{transform:rotate(90deg)}.page-manage .manage-box-menu .menu-project>ul>li.open-menu .project-h2{display:block}.page-manage .manage-box-menu .menu-project>ul>li.operate{border-color:#84c56a}.page-manage .manage-box-menu .menu-project>ul>li.loading{display:flex;align-items:center;justify-content:center;padding:6px}.page-manage .manage-box-menu .menu-project>ul>li.loading .common-loading{margin:6px;width:22px;height:22px}.page-manage .manage-box-menu .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-manage .manage-box-menu .manage-project-search{width:80%;padding:0 6px;margin:8px 0 -2px;border-radius:12px;background-color:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .manage-project-search .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .manage-project-search .search-pre .common-loading{width:14px;height:14px;margin:0}.page-manage .manage-box-menu .manage-project-search .ivu-input{border-color:transparent;background-color:transparent}.page-manage .manage-box-menu .manage-project-search .ivu-input:hover,.page-manage .manage-box-menu .manage-project-search .ivu-input:focus{box-shadow:none}.page-manage .manage-box-menu .manage-box-new-group{width:80%;margin-top:16px;margin-bottom:20px;display:flex;align-items:center}.page-manage .manage-box-menu .manage-box-new-group .manage-box-new{flex:1}.page-manage .manage-box-menu .manage-box-new-group .ivu-btn{height:38px}.page-manage .manage-box-menu .manage-box-new-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}.page-manage .manage-box-main{flex:1;position:relative}.page-manage .manage-box-main .manage-box-view{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto}.page-manage-menu-dropdown{flex-shrink:0}.page-manage-menu-dropdown.main-menu{width:86%}.page-manage-menu-dropdown .ivu-select-dropdown{padding:7px 0}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item{padding:9px 16px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided{margin-top:7px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided:before{top:-9px}.page-manage-menu-dropdown .manage-box-title{display:flex;align-items:center;flex-shrink:0;padding:6px 10px;margin-top:27px;border-radius:8px;background-color:#fff;cursor:pointer;transition:box-shadow .3s}.page-manage-menu-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #0003}.page-manage-menu-dropdown .manage-box-title .manage-box-avatar{width:36px;height:36px}.page-manage-menu-dropdown .manage-box-title>span{flex:1;padding-left:12px;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-left:16px;padding-right:2px}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report{overflow:unset;margin-right:-6px;align-items:center;flex-direction:column;justify-content:center;flex:0 0 auto}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report .ivu-badge-dot{margin-right:4px}.page-manage-menu-dropdown .manage-menu-report-badge{margin-left:6px;transform:scale(.9);vertical-align:top}.page-manage-menu-dropdown .manage-menu-flex{display:flex;align-items:center;justify-content:space-between}.page-manage-menu-dropdown .manage-menu-flex .ivu-icon{color:#606266}.page-manage-menu-dropdown .task-title{max-width:600px;display:flex;align-items:center}.page-manage-menu-dropdown .task-title>span{flex-shrink:0;font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:6px}.page-manage-menu-dropdown .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-manage-menu-dropdown .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-manage-menu-dropdown .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-manage-menu-dropdown .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-manage-menu-dropdown .task-title .task-title-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-add-task-button-group{margin-left:8px!important}.page-manage-add-task-button-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}@media (max-height: 640px){.page-manage .manage-box-menu .menu-base{position:relative}}body.window-touch .page-manage .manage-box-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-manage.show-tabbar .manage-box-main{margin-bottom:60px}body.window-portrait .page-manage .manage-box-menu{position:fixed;z-index:49;left:0;top:0;bottom:0;width:100%;transform:translate(-120%)}body.window-portrait .page-manage .manage-box-menu.show-mobile-menu{transform:translate(0)}.page-messenger{display:flex}.page-messenger .messenger-wrapper{flex:1;display:flex;align-items:flex-start;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select{position:relative;height:100%;width:30%;min-width:240px;max-width:320px;flex-shrink:0;display:flex;flex-direction:column}.page-messenger .messenger-wrapper .messenger-select:after{content:"";position:absolute;top:0;right:0;height:100%;width:1px;background-color:#f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-search{display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{flex:1;background-color:#f7f7f7;padding:0 6px;margin:0 4px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:hover,.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:focus{box-shadow:none}.page-messenger .messenger-wrapper .messenger-select .messenger-nav{display:flex;align-items:center;padding:2px 10px 12px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div{flex:1;flex-shrink:0;display:flex;align-items:center;justify-content:center;line-height:1;padding:0 6px;color:#888;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.nav-menu{max-width:46px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.nav-menu .nav-icon{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.nav-menu .nav-icon>i{font-size:16px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title{position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title>em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title .nav-num{position:absolute;top:-12px;right:-8px;transform:scale(.7)}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.active{color:#555;font-weight:500}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div:hover{color:#777}.page-messenger .messenger-wrapper .messenger-select .messenger-notify-permission{position:sticky;display:flex;align-items:center;padding:6px 12px;justify-content:space-between;background-color:#fef7ee;border:1px solid #FAE0B5;margin:8px 12px;border-radius:6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list{flex:1;height:0;width:100%;overflow-x:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul>li.nothing{margin:0!important;padding:24px!important;text-align:center;justify-content:center;height:100%;border-radius:0;line-height:22px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li{display:flex;flex-direction:row;align-items:flex-start;padding:16px 12px;position:relative;cursor:pointer;list-style:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .img-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .user-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar{width:42px;height:42px;margin:2px;flex-grow:0;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .img-avatar{display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .img-avatar>img{width:100%;height:100%}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar.department{background-color:#5bc7b0}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar.project{background-color:#6e99eb}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar.task{background-color:#9b96df;font-size:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box{flex:1;width:0;display:flex;flex-direction:column;padding-left:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;line-height:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .todo,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .mention,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .bot{color:red;background-color:transparent;font-weight:600;flex-shrink:0;margin-right:4px;padding:0;height:auto;width:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .bot{color:#84c56a;font-size:16px;font-weight:400}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .ivu-tag{margin:0 4px 0 0;padding:0 5px;box-sizing:content-box}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .ivu-tag.ivu-tag-success{padding:0 6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>span{flex:1;color:#303133;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>i{flex-shrink:0;margin-left:8px;transform:scale(.9);font-size:12px;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>i.completed{font-size:18px;margin:0 4px 0 0;transform:scale(1)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>em{flex-shrink:0;margin-left:8px;font-style:normal;color:#909399;font-size:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text{color:#909399;font-size:12px;min-height:24px;line-height:24px;display:flex;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-self{flex-shrink:0;padding-right:4px;margin-right:4px;position:relative;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft:after,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar:after,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-self:after{content:":";position:absolute;top:50%;transform:translateY(-50%);right:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft{color:red}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft:after{color:#909399}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar{flex-shrink:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar .avatar-name{max-width:100%}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-text{flex:1;display:flex;align-items:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-text>em{flex-shrink:0;background-color:#90939940;height:20px;width:26px;line-height:20px;text-align:center;border-radius:10px;font-size:14px;font-style:normal;margin-right:4px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-text>span{flex:1;width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-silence{font-size:15px;padding-left:4px;color:#90939980}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-num{position:absolute;top:10px;left:58px;transform:scale(.8) translate(-100%)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-line{display:none;position:absolute;bottom:0;right:0;left:68px;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.top{background-color:#f4f5f7}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.active{background-color:#eeeff1}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.operate:before{display:block}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;bottom:0;right:12px;font-size:28px;color:#19be6b;opacity:.2;z-index:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.completed .dialog-box .dialog-text{padding-right:36px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li{list-style:none;margin-left:24px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li .label{padding-left:4px;margin-top:6px;margin-bottom:6px;height:34px;line-height:34px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li .label:after{content:"";position:absolute;bottom:0;right:0;left:0;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li.loaded{margin:0;height:52px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li{list-style:none;display:flex;flex-direction:row;align-items:center;height:52px;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .avatar{flex-grow:0;flex-shrink:0;width:30px;height:30px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname{flex:1;width:0;padding-left:12px;font-size:14px;display:flex;align-items:center;justify-content:space-between;flex-flow:row wrap;align-content:flex-start}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname>em{padding-right:12px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname .tags{padding-right:12px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#909399}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname .tags>span+span:before{content:", "}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .loading{margin-right:12px;width:16px;height:16px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-menu{display:flex;align-items:center;justify-content:center;height:52px;flex-shrink:0;border-top:1px solid #f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon{height:100%;display:flex;align-items:center;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon .menu-num{position:absolute;top:4px;left:50%;margin-left:3px;transform:scale(.8)}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i{cursor:pointer;font-size:24px;margin:0 24px;color:#aaa;opacity:.9}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i.active{opacity:1;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i:hover{opacity:1}.page-messenger .messenger-wrapper .messenger-msg{flex:1;width:0;height:100%;display:flex;position:relative}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.messenger-nav-menu .messenger-nav-item{display:flex;align-items:center;min-width:80px}.messenger-nav-menu .messenger-nav-item.active .nav-title{font-weight:700}.messenger-nav-menu .messenger-nav-item .nav-title{flex:1;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}.messenger-nav-menu .messenger-nav-item .nav-num{transform:scale(.7);transform-origin:center right}.messenger-dialog-operation .ivu-dropdown-item-divided:before{transform:scaleY(.5)}.messenger-dialog-operation .item{display:flex;align-items:center;justify-content:space-between}.messenger-dialog-operation .item>i{flex-shrink:0;width:18px;height:18px;line-height:18px;font-size:18px;margin-left:16px;opacity:.7}.messenger-dialog-operation .item>i.color{opacity:1}body.window-touch .page-messenger .messenger-wrapper .messenger-select .messenger-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:#fff;z-index:48}body.window-portrait .page-messenger .messenger-wrapper .messenger-select:after{display:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-search{background-color:#f8f8f8}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{background-color:#fff}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-nav{background-color:#f8f8f8}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-menu{border-top:0;height:60px;opacity:0}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .user-avatar .common-avatar:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-line{display:block}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li:last-child .dialog-line{display:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-msg{display:none}body.window-portrait .messenger-nav-menu .messenger-nav-item{min-width:100px}.page-project{flex:1;display:flex;align-items:flex-start}.page-project .project-panel{flex:1;width:0;height:100%;background-color:#fafafa}.page-project .project-dialog{position:relative;height:100%;width:35%;min-width:320px;max-width:520px;flex-shrink:0}@media (max-height: 700px){.page-project .project-panel{height:auto;min-height:100%}.page-project .project-panel.gantt{height:100%}}.page-setting{display:flex;flex-direction:column}.page-setting .setting-head{display:flex;align-items:center;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-setting .setting-head .setting-titbox{flex:1;margin-bottom:16px}.page-setting .setting-head .setting-titbox .setting-title{display:flex;align-items:center}.page-setting .setting-head .setting-titbox .setting-title>h1{flex:1;width:0;color:#303133;font-size:28px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-head .setting-titbox .setting-title .setting-more{display:none}.page-setting .setting-box{flex:1;height:0;display:flex;padding-bottom:16px}.page-setting .setting-box .mobile-nav-box{display:none}.page-setting .setting-box .setting-menu{width:200px;flex-shrink:0;border-right:1px solid #F4F4F5;overflow:auto}.page-setting .setting-box .setting-menu>ul{padding:12px 0 0 32px}.page-setting .setting-box .setting-menu>ul>li{cursor:pointer;color:#6b6e72;list-style:none;line-height:42px;padding:0 20px;margin:5px 0;position:relative;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-box .setting-menu>ul>li.flex{display:flex;align-items:center}.page-setting .setting-box .setting-menu>ul>li .ivu-badge{transform:scale(.8);transform-origin:right center}.page-setting .setting-box .setting-menu>ul>li.active,.page-setting .setting-box .setting-menu>ul>li:hover{background-color:#f4f5f7}.page-setting .setting-box .setting-menu>ul>li.divided{position:relative;margin-top:10px;padding-top:10px}.page-setting .setting-box .setting-menu>ul>li.divided:before{content:"";position:absolute;top:0;left:0;right:0;z-index:1;height:1px;background-color:#f4f4f5}.page-setting .setting-box .setting-menu>ul>li.divided:after{content:"";position:absolute;top:1px;left:0;right:0;z-index:2;height:9px;background-color:#fff}.page-setting .setting-box .setting-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.page-setting .setting-box .setting-content .setting-content-title{font-size:20px;font-weight:500;padding:12px 32px}.page-setting .setting-box .setting-content .setting-content-view{flex:1;position:relative}.page-setting .setting-box .setting-content .setting-content-view .setting-router-view{padding:24px 40px}.page-setting .setting-item .ivu-input,.page-setting .setting-item .ivu-select-default{max-width:460px}.page-setting .setting-item .ivu-form{overflow:auto}.page-setting .setting-item .setting-color,.page-setting .setting-item .setting-template{min-width:400px;max-width:600px;margin-bottom:12px}.page-setting .setting-item .setting-color>div,.page-setting .setting-item .setting-template>div{text-align:center;padding-right:12px}.page-setting .setting-item .setting-color>div:first-child,.page-setting .setting-item .setting-template>div:first-child{text-align:left}.page-setting .setting-item .setting-color>div:last-child,.page-setting .setting-item .setting-template>div:last-child{padding-right:0;width:60px;flex:auto;flex-shrink:0}.page-setting .setting-item .setting-color>div .ivu-color-picker,.page-setting .setting-item .setting-template>div .ivu-color-picker{width:100%}.page-setting .setting-item .setting-color .information,.page-setting .setting-item .setting-template .information{color:#909399}.page-setting .setting-item .setting-color.color-label-box .el-tooltip{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-item .setting-template>div{flex-shrink:0;text-align:left}.page-setting .setting-item .setting-template>div:last-child{flex:1;width:auto;max-width:none}.page-setting .setting-item .setting-footer{display:flex;align-items:center}.page-setting .setting-item .setting-footer>button{display:flex;align-items:center;justify-content:center;height:34px;line-height:32px;min-width:94px}.page-setting .setting-item .setting-footer>button>span{margin-left:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-setting .setting-item .setting-auto-day{display:block;width:110px;margin-top:12px;line-height:32px;margin-bottom:-10px}.page-setting .setting-item .setting-checkin-load{margin-bottom:12px}.page-setting .setting-item .setting-checkin-load .common-loading{width:20px;height:20px}.page-setting .setting-item .setting-checkin-lately>li{padding-bottom:8px}.page-setting .setting-item .setting-checkin-lately>li .time{font-weight:700}.page-setting .setting-item .setting-checkin-lately>li .content{font-size:13px;opacity:.7}.page-setting .setting-item .setting-checkin-row{overflow:auto}.page-setting .setting-item .setting-checkin-button{padding-bottom:4px;cursor:pointer;color:#2b85e4}.page-setting .setting-item .setting-checkin-button:hover{text-decoration:underline}.page-setting .setting-item.submit{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding:0!important}.page-setting .setting-item.submit .ivu-form{flex:1;padding:24px 40px 0;overflow:auto}.page-setting .setting-item.submit .ivu-tabs{flex:1;padding:16px 32px 0;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content{flex:1;height:0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane{position:relative}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item{position:absolute;top:0;left:0;right:0;bottom:0;flex:1;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding:8px 12px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0 -32px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box{position:relative;padding:44px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box:hover{box-shadow:0 0 10px #e6ecfa}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .form-box{overflow:auto}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-placeholder{height:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data{margin-top:6px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p:hover{text-decoration:underline}.page-setting .setting-item.submit .setting-footer{flex-shrink:0;position:static;padding:16px 24px 0;border-top:1px solid #F4F4F5}.page-setting .setting-item.submit .setting-input,.page-setting .setting-item.submit .setting-send-input{max-width:460px}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append{background-color:#ededed!important;border:1px solid #EDEDED!important;color:#999!important}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append:before{background:#EDEDED}.page-setting .setting-item.submit .setting-button{margin-left:8px}.page-setting-delete-box .big-text{font-size:16px;font-weight:500;color:red}.page-setting-delete-box .small-text{margin-top:15px}.page-setting-delete-box .small-text>div{margin:10px 0}.page-setting-delete-box .button-box{text-align:center}body.window-portrait .page-setting{background-color:#f8f8f8}body.window-portrait .page-setting .setting-head{display:none}body.window-portrait .page-setting .setting-box{position:relative}body.window-portrait .page-setting .setting-box .mobile-nav-box{display:flex;position:sticky;top:0;z-index:3;background-color:#f8f8f8}body.window-portrait .page-setting .setting-box .setting-menu{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}body.window-portrait .page-setting .setting-box .setting-menu>ul{padding:0 0 20px}body.window-portrait .page-setting .setting-box .setting-menu>ul>li{position:relative;padding:0 32px;line-height:48px;margin:0;background-color:#fff}body.window-portrait .page-setting .setting-box .setting-menu>ul>li:after{content:"";position:absolute;top:0;left:32px;right:0;z-index:1;height:1px;transform:scaleY(.5);background-color:#f4f4f5}body.window-portrait .page-setting .setting-box .setting-menu>ul>li:first-child:after{display:none}body.window-portrait .page-setting .setting-box .setting-menu>ul>li.divided{margin-top:20px}body.window-portrait .page-setting .setting-box .setting-menu>ul>li.divided:before,body.window-portrait .page-setting .setting-box .setting-menu>ul>li.divided:after{display:none}body.window-portrait .page-setting .setting-box .setting-content{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;background-color:#fff}body.window-portrait .page-setting .setting-box .setting-content .setting-content-title{display:none}body.window-portrait .page-setting .setting-item .setting-footer>button{flex:1;height:40px;line-height:38px}body.window-portrait .page-setting .setting-item.submit .ivu-tabs{padding:0}body.window-portrait .page-setting .setting-item.submit .ivu-tabs .ivu-tabs-bar{margin-bottom:0}body.window-portrait .page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding-top:16px}body.window-portrait .page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0}body.window-portrait .page-setting .setting-item.submit .setting-footer{padding:16px 24px}.page-approve{width:100%;height:100%;display:flex;flex-direction:column}.page-approve .approve-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-approve .approve-wrapper .approve-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 20px 5px;border-bottom:1px solid #F4F4F5;gap:16px}.page-approve .approve-wrapper .approve-head .approve-nav{flex:1;display:flex;align-items:center}.page-approve .approve-wrapper .approve-head .approve-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-approve .approve-wrapper .approve-main-search{display:flex;justify-content:space-between;margin:0 5px 10px}.page-approve .approve-wrapper .approve-main-search>div{display:flex;gap:10px;overflow:hidden}.page-approve .approve-wrapper .approve-main-search>div .ivu-select{width:150px}.page-approve .approve-wrapper .approve-main-search>div .ivu-dropdown{margin-right:8px}.page-approve .approve-wrapper .approve-main-search>div .load{font-size:12px;width:20px;height:32px;overflow:hidden}.page-approve .approve-wrapper .approve-main-search .ivu-input-wrapper{max-width:200px}@media (max-width: 515px){.page-approve .approve-wrapper .approve-main-search .ivu-btn{min-width:45px}}.page-approve .approve-wrapper .approve-load{text-align:center;padding-top:20px}.page-approve .approve-wrapper .noData{text-align:center;line-height:150px}.page-approve .approve-wrapper .page-approve-tabs{margin:0 20px;height:100%}.page-approve .approve-wrapper .approve-mains{display:flex;flex:1 1 auto;height:calc(100vh - 190px);position:relative}.page-approve .approve-wrapper .approve-mains .approve-main-left{display:flex;flex-direction:column;flex:0 0 auto;position:absolute;left:0;top:0;bottom:12px;max-width:360px;width:100%}@media (max-width: 1010px){.page-approve .approve-wrapper .approve-mains .approve-main-left{max-width:100%}}.page-approve .approve-wrapper .approve-mains .approve-main-left .load{text-align:center}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list{display:flex;flex-direction:column;flex:1 1 auto;overflow:scroll}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list{margin-bottom:8px;padding:12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s;cursor:pointer}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list:hover{box-shadow:0 0 10px #e6ecfa}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>h2{display:flex;align-items:center;justify-content:space-between}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>h2>.list-name{font-size:14px;font-weight:700}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>p{font-size:14px;margin-top:5px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>p>span{color:#303133}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list .list-member{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list .list-member>span{display:flex;align-items:center;font-size:12px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list .list-member>span .ivu-avatar{margin-right:8px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list-active{border:1px solid #8bcf70}@media (max-width: 1010px){.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list-active{border:1px solid #eeeeee}}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list::-webkit-scrollbar{display:none}.page-approve .approve-wrapper .approve-mains .approve-main-right{position:absolute;left:360px;top:0;right:0;bottom:0;flex:1 1 auto;display:flex;margin:0 0 12px 12px}@media (max-width: 1010px){.page-approve .approve-wrapper .approve-mains .approve-main-right{display:none}}.approve-details{flex:1 1 auto;display:flex;flex-direction:column;border:1px solid #eeeeee;background:#fff}.approve-details .approve-details-nav{height:52px;padding:0 8px;text-align:center;line-height:52px;background-color:#f8f8f8;display:none}@media (max-width: 425px){.approve-details .approve-details-nav{display:block}}.approve-details .approve-details-nav .common-nav-back{float:left}.approve-details .approve-details-nav h2{font-size:17px;font-weight:600}.approve-details .approve-details-box{flex:1 1 auto;padding:24px;overflow-y:scroll}.approve-details .approve-details-box .approve-details-title{display:flex;align-items:center}.approve-details .approve-details-box .approve-details-title .ivu-tag{margin-left:8px}.approve-details .approve-details-box .approve-details-subtitle{margin-top:8px;display:flex}.approve-details .approve-details-box .approve-details-subtitle .ivu-avatar{margin-right:8px}.approve-details .approve-details-box .approve-details-subtitle>span{font-size:14px}.approve-details .approve-details-box .timeline-title{font-weight:700;padding-bottom:10px}.approve-details .approve-details-box .approve-details-text{margin-bottom:12px}.approve-details .approve-details-box .approve-details-text>h4{color:#999}.approve-details .approve-details-box .approve-details-text>p{font-size:14px;margin-top:2px;font-weight:500}.approve-details .approve-details-box .approve-details-text .img-body{display:flex;gap:10px;margin-top:3px}.approve-details .approve-details-box .approve-details-text .time-text>span+span{padding-left:4px}.approve-details .approve-details-box .approve-record-timeline{margin-top:20px}.approve-details .approve-details-box .approve-record-timeline .timeline-body{display:flex}.approve-details .approve-details-box .approve-record-timeline .approve-process-state{font-size:12px;color:#19be6b;height:21px}.approve-details .approve-details-box .approve-record-timeline .approve-process-left{margin-left:10px;flex:1;width:0}.approve-details .approve-details-box .approve-record-timeline .approve-process-left .approve-process-desc{font-size:12px;max-width:100%;overflow:auto;word-break:break-all}.approve-details .approve-details-box .approve-record-timeline .approve-process-right{text-align:right}.approve-details .approve-details-box .approve-record-timeline>li:last-child{padding-bottom:0}.approve-details .approve-details-box .approve-record-timeline .finish .ivu-timeline-item-content{padding-bottom:0}.approve-details .approve-details-box .approve-record-comment{padding:10px 10px 0}.approve-details .approve-details-box .approve-record-comment .ivu-list-item>div:first-child{width:100%}.approve-details .approve-details-box .approve-record-comment .top{display:flex;gap:8px;width:100%}.approve-details .approve-details-box .approve-record-comment .top>div{flex:1}.approve-details .approve-details-box .approve-record-comment .time{font-size:12px;color:#a2a2a2}.approve-details .approve-details-box .approve-record-comment .content{margin-top:3px;padding-left:45px}.approve-details .approve-details-box .approve-record-comment .ivu-list-items>li:last-child{padding-bottom:0}.approve-details .approve-details-box .approve-details-text:nth-last-child(1){margin-bottom:0}.approve-details .approve-details-box .img-view{display:flex;max-width:60px;border-radius:5px}.approve-details .approve-details-box .approve-copy{margin-top:8px;display:flex}.approve-details .approve-details-box .approve-copy .approve-copy-member{display:flex;align-items:center;background:#F4F4F5;padding:2px 8px;border-radius:20px}.approve-details .approve-details-box .approve-copy .approve-copy-member .ivu-avatar{margin-right:4px}.approve-details .approve-details-box::-webkit-scrollbar{display:none}.approve-details .approve-operation{flex:0 0 auto;padding:0 24px;border-top:1px solid #F4F4F5;display:flex;align-items:center;justify-content:flex-end}.approve-details .approve-operation button{margin:10px 0 10px 10px}.approve-details .approve-load{position:absolute;top:1px;left:1px;right:1px;bottom:1px;display:flex;z-index:9;background:rgba(0,0,0,.0196078431)}.approve-details .comment{margin-top:5px;margin-left:45px;font-size:12px}.approve-details .comment span{background-color:#eaeaea;border-radius:5px;padding:3px 10px;display:inline-block}.page-approve-setting .approve-row{padding:24px;overflow:auto;margin:0!important}.page-approve-setting .approve-row .ivu-col{margin-bottom:16px}.page-approve-setting .approve-row .ivu-col .approve-col-box{border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s;cursor:pointer}.page-approve-setting .approve-row .ivu-col .approve-col-box:hover{box-shadow:0 0 10px #e6ecfa}.page-approve-setting .approve-row .ivu-col .approve-col-add{height:100%;font-size:48px;display:flex;justify-content:center;align-items:center;color:#ededed;min-height:95px}.page-approve-setting .approve-row .ivu-col .approve-col-for{padding:16px 16px 13px;display:flex;flex-direction:column}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-name{font-weight:500;color:#135de6}.page-approve-setting .approve-row .ivu-col .approve-col-for .divider{margin:12px 0 9px}.page-approve-setting .approve-row .ivu-col .approve-col-for .icon-warp{position:relative}.page-approve-setting .approve-row .ivu-col .approve-col-for>p{display:flex;align-items:center}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-button-box{display:flex;justify-content:space-between;align-items:center}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-button-box>p{display:flex;align-items:center}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-button-box>p>i{font-size:16px;margin-left:8px;color:#606266}body.window-portrait .page-approve .approve-head{margin:24px 16px 6px}.page-microapp .microapp-load{align-items:center;display:flex;justify-content:center;height:90%}.electron-single-micro-apps .page-microapp .microapp-load{margin-top:25%}.page-apply{width:100%;height:100%;display:flex;flex-direction:column}.page-apply .apply-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative;background-color:#fafafa}.page-apply .apply-wrapper .apply-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 32px 0;border-bottom:1px solid #f6f6f6}.page-apply .apply-wrapper .apply-head .apply-nav{flex:1;display:flex;align-items:center}.page-apply .apply-wrapper .apply-head .apply-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-apply .apply-wrapper .apply-content{flex:1;padding:16px 30px;overflow:auto}.page-apply .apply-wrapper .apply-content .apply-row-title{margin-bottom:16px}.page-apply .apply-wrapper .apply-content>div.apply-row-title:nth-last-child(2){margin-top:22px!important}.page-apply .apply-wrapper .apply-content .apply-col{margin-bottom:16px}.page-apply .apply-wrapper .apply-content .apply-col>div{font-size:14px;font-weight:400;background:#FFFFFF;color:#333;border-radius:8px;padding:12px;display:flex;align-items:center;gap:10px;cursor:pointer;position:relative;border:1px solid #f1f1f1}.page-apply .apply-wrapper .apply-content .apply-col>div>.logo{width:40px;height:40px;display:inline-block}.page-apply .apply-wrapper .apply-content .apply-col>div>p{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.page-apply .apply-wrapper .apply-content .apply-col>div .apply-box-top-report{position:absolute;right:-16px;top:-16px;padding:8px}@media (max-width: 510px){.page-apply .apply-wrapper{background-color:#fff}.page-apply .apply-wrapper .apply-row-title{margin-bottom:8px!important}.page-apply .apply-wrapper .apply-content .ivu-row{margin-left:-12px!important;margin-right:-12px!important}.page-apply .apply-wrapper .apply-content .apply-col{margin-bottom:6px}.page-apply .apply-wrapper .apply-content .apply-col>div{display:block;text-align:center;padding:12px 0;background:none;border-color:#fff}.page-apply .apply-wrapper .apply-content .apply-col>div .logo{margin-bottom:8px;position:relative}.page-apply .apply-wrapper .apply-content .apply-col>div>p{-webkit-line-clamp:1}.page-apply .apply-wrapper .apply-content .apply-col>div .apply-box-top-report{right:-20px;top:-20px}}.apply-icon{width:40px;height:40px;background-repeat:no-repeat;background-size:contain;background-position:center center}.apply-icon.approve{background-image:url(/js/build/approve.c0c85d70.svg)}.apply-icon.add-project{background-image:url(/js/build/add-project.a5c9a747.svg)}.apply-icon.add-task{background-image:url(/js/build/add-task.45a04438.svg)}.apply-icon.all-user{background-image:url(/js/build/all-user.1d203f3c.svg)}.apply-icon.app-push{background-image:url(/js/build/app-push.d5e56edc.svg)}.apply-icon.approve{background-image:url(/js/build/approve.c0c85d70.svg)}.apply-icon.calendar{background-image:url(/js/build/calendar.972f5520.svg)}.apply-icon.file{background-image:url(/js/build/file.aa23b4ce.svg)}.apply-icon.ldap{background-image:url(/js/build/ldap.6937bf6c.svg)}.apply-icon.mail{background-image:url(/js/build/mail.8f60e67c.svg)}.apply-icon.meeting{background-image:url(/js/build/meeting.41663ea5.svg)}.apply-icon.meeting-create{background-image:url(/js/build/meeting.41663ea5.svg)}.apply-icon.meeting-join{background-image:url(/js/build/meeting-join.ebeac42f.svg)}.apply-icon.okr{background-image:url(/js/build/okr.3e2b21c4.svg)}.apply-icon.okr-analyze{background-image:url(/js/build/okr-analyze.90c08797.svg)}.apply-icon.report{background-image:url(/js/build/report.e6a77cec.svg)}.apply-icon.robot{background-image:url(/js/build/robot.d890987e.svg)}.apply-icon.scan{background-image:url(/js/build/scan.e98df126.svg)}.apply-icon.setting{background-image:url(/js/build/setting.678a0338.svg)}.apply-icon.signin{background-image:url(/js/build/signin.017d48dc.svg)}.apply-icon.vote{background-image:url(/js/build/vote.f1407634.svg)}.apply-icon.word-chain{background-image:url(/js/build/word-chain.84645558.svg)}.ivu-modal-wrap-apply{position:relative;height:100%;display:flex;flex-direction:column;max-width:100vw;overflow:auto}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-title{line-height:40px;font-size:20px;font-weight:500;padding:12px 30px;color:#303133}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-title>p{float:right;cursor:pointer;color:#2b85e4;font-size:14px}@media (max-width: 500px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-title{margin-right:28px}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body{position:relative;flex:1;padding:8px 30px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item{position:absolute;top:0;left:0;right:0;bottom:0;flex:1;display:flex;flex-direction:column}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form{padding:8px 30px;overflow:auto;flex:1}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form .ivu-form-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form .ivu-form-item{padding:12px 0 0}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content{display:flex}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content>.ivu-form,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content>.ivu-form{margin-bottom:8px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box{position:relative;padding:24px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}@media (max-width: 420px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-advance>.ivu-form-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-advance>.ivu-form-item{display:flex;flex-direction:column}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-advance>.ivu-form-item .ivu-form-item-label,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-advance>.ivu-form-item .ivu-form-item-label{text-align:left}}@media (max-width: 460px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-msg-unread>.ivu-form-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-msg-unread>.ivu-form-item{display:flex;flex-direction:column}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-msg-unread>.ivu-form-item .ivu-form-item-label,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-msg-unread>.ivu-form-item .ivu-form-item-label{text-align:left}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box h3,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template{margin-bottom:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template>div,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template>div{padding-right:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .export-data>p,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .export-data>p{cursor:pointer;color:#2b85e4}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-footer,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer{flex-shrink:0;position:static;padding:16px 26px;border-top:1px solid #F4F4F5;display:flex;align-items:center;gap:8px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer .ivu-btn{min-width:120px;height:38px;line-height:36px}@media (max-width: 500px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer .ivu-btn{width:50%}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-tabs{display:flex;flex-direction:column;height:100%;margin:0 -30px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-tabs .ivu-tabs-bar{padding:0 10px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-tabs .ivu-tabs-content{height:100%;flex:1}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul{list-style-type:none;overflow:hidden;border-radius:3px;margin-right:-10px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li{float:left;width:calc(50% - 10px);border:1px solid #eeeeee;box-sizing:border-box;padding:28px 20px;position:relative;text-align:center;margin-right:10px;margin-bottom:10px;border-radius:5px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .apply-icon{display:block;width:50px;height:50px;border-radius:16px;margin:0 auto 12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li h4{word-break:break-all;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-style:normal;max-width:100%;font-size:16px;font-weight:500;color:#1b1b1b;line-height:24px;text-align:center;padding:0 12px;margin-bottom:6px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li p{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}@media (max-width: 510px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li p{-webkit-line-clamp:2}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .desc{cursor:pointer;height:84px}@media (max-width: 510px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .desc{height:42px}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .btn{color:#2b85e4;margin:20px auto 0;cursor:pointer;padding:5px 0}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .load{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(151,151,151,.1098039216);line-height:300px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .aibot-warp{position:relative;height:100%}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .aibot-warp .ivu-form{overflow:hidden;padding:0;margin:0 30px}.mobile-scan-login-box{margin:2px 0 12px}.mobile-scan-login-box .mobile-scan-login-title{font-size:20px}.mobile-scan-login-box .mobile-scan-login-subtitle{padding-top:8px}body.window-portrait .page-apply .apply-head{margin:24px 24px 0}body.window-portrait .page-apply .apply-content{padding:16px 20px}body.window-portrait .page-apply .apply-content .apply-col>div{font-size:12px;font-weight:500}.chat-input-box{display:inline-block;width:100%}.chat-input-box.record-ready .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .6s ease;transform:translate(-50%,-50%) scale(2)}.chat-input-box.record-progress .chat-input-wrapper .ql-container{opacity:0}.chat-input-box.record-progress .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .3s ease;transform:translate(-50%,-50%) scale(2.5)}.chat-input-box.record-progress .chat-input-wrapper .chat-record{visibility:visible;opacity:1;z-index:1}.chat-input-box.simple-mode .chat-input-wrapper{border:1px solid #e8e8e8;border-radius:4px}.chat-input-box.simple-mode .chat-input-wrapper .ql-container{width:100%}.chat-input-box.simple-mode .chat-input-wrapper .chat-space,.chat-input-box.simple-mode .chat-input-wrapper .chat-toolbar{display:none}.chat-input-box.show-menu .chat-input-wrapper .chat-cover,.chat-input-box.show-more .chat-input-wrapper .chat-cover,.chat-input-box.show-emoji .chat-input-wrapper .chat-cover{display:block}.chat-input-box .chat-input-quick-emoji{position:absolute;top:4px;right:24px;width:0;height:0;visibility:hidden;z-index:-1}.chat-input-box .chat-input-wrapper{position:relative;display:inline-block;vertical-align:middle;width:100%}.chat-input-box .chat-input-wrapper .chat-quote{position:relative;padding:0 48px 8px 24px}.chat-input-box .chat-input-wrapper .chat-quote:after{content:"";position:absolute;top:0;left:12px;bottom:8px;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.chat-input-box .chat-input-wrapper .chat-quote .quote-label,.chat-input-box .chat-input-wrapper .chat-quote .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.chat-input-box .chat-input-wrapper .chat-quote .quote-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.chat-input-box .chat-input-wrapper .chat-quote i.taskfont{position:absolute;right:0;top:0;bottom:8px;z-index:1;font-size:16px;width:48px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .3s ease}.chat-input-box .chat-input-wrapper .chat-quote i.taskfont:hover{transform:rotate(-90deg);color:#303133}.chat-input-box .chat-input-wrapper .ql-container{display:block;float:left;width:auto;max-width:100%;min-width:calc(100% - 170px);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-input-box .chat-input-wrapper .ql-container.ql-bubble:not(.ql-disabled) a{white-space:normal}.chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:14px;max-height:200px;padding:0;margin:4px 7px;line-height:22px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor::-webkit-scrollbar{display:none}.chat-input-box .chat-input-wrapper .ql-container .ql-editor img{max-width:150px;max-height:150px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul{padding-left:0}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{color:#08f;text-align:left;margin-right:.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{font-weight:900}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before{width:auto;min-width:1.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=checked]>.ql-ui:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=unchecked]>.ql-ui:before{font-family:taskfont,"serif"!important;font-size:14px;content:"\e6ed";font-weight:400;transform:scale(1.12)}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=unchecked]>.ql-ui:before{content:"\e6f1"}.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:after{display:none}.chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:7px;right:7px;color:#ccc;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention{color:#0bc037;background-color:transparent;margin-right:0;-webkit-user-select:auto}.chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention>span{margin:0 2px}.chat-input-box .chat-input-wrapper .ql-bubble .ql-tooltip{z-index:1}.chat-input-box .chat-input-wrapper .ql-bubble .ql-tooltip .ql-formats{display:flex;align-items:center}.chat-input-box .chat-input-wrapper .chat-space{float:right;width:170px;height:30px}.chat-input-box .chat-input-wrapper .chat-space .space-input{border:none;outline:none;box-shadow:none;background:transparent;height:1px;width:1px;overflow:hidden}.chat-input-box .chat-input-wrapper .chat-space .space-input:focus,.chat-input-box .chat-input-wrapper .chat-space .space-input:active{border:none;outline:none;box-shadow:none}.chat-input-box .chat-input-wrapper .chat-toolbar{position:absolute;right:2px;bottom:8px;display:flex;align-items:center;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-input-box .chat-input-wrapper .chat-toolbar>li{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont{display:inline-block;font-size:22px;line-height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont.disabled{opacity:.5}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send{width:48px;position:relative}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send:before{content:"";position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%) scale(1);border-radius:50%;background-color:#84c56a;width:36px;height:36px;transition:all .3s ease;opacity:1}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .el-tooltip{height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);transition:all .3s ease;color:#fff;font-size:20px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);display:flex;align-items:center;justify-content:center}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load .common-loading{width:20px;height:20px}.chat-input-box .chat-input-wrapper .chat-record{position:absolute;top:0;left:0;z-index:-1;height:100%;width:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;pointer-events:none;visibility:hidden;opacity:0}.chat-input-box .chat-input-wrapper .chat-record>div{flex:1;width:100%;max-height:46px;display:flex;flex-direction:column;justify-content:flex-end}.chat-input-box .chat-input-wrapper .chat-cover{display:none;position:absolute;top:0;left:0;right:48px;bottom:0;z-index:4}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul{width:auto;padding:8px 2px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul:after{content:"";flex:auto}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul>li>img{transition:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul>li:hover>img{transform:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu{width:100%;padding:3px 0;border-radius:8px}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li{position:relative}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li:before{display:none;content:"";position:absolute;top:50%;left:50%;width:36px;height:36px;border-radius:8px;transform:translate(-50%,-50%);background-color:#fff;z-index:1}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>span,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>img,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>i{position:static;z-index:2}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:transparent}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{display:block}.chat-emoji-wrapper{display:flex;flex-direction:column;position:relative}.chat-emoji-wrapper .chat-emoji-emosearch{flex-shrink:0;padding:8px 8px 0}.chat-emoji-wrapper .chat-emoji-nav{flex-shrink:0;display:flex;align-items:center;overflow:auto;background:#f8f8f8}.chat-emoji-wrapper .chat-emoji-nav>div{position:relative;width:46px;height:40px;margin:auto;color:#5e6d82}.chat-emoji-wrapper .chat-emoji-nav>div.active{color:#84c56a}.chat-emoji-wrapper .chat-emoji-nav>div.active:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:#ffffff;border-top-left-radius:4px;border-top-right-radius:4px;z-index:1}.chat-emoji-wrapper .chat-emoji-nav>div>svg{fill:currentColor;position:absolute;top:50%;left:50%;width:18px;height:18px;transform:translate(-50%,-50%);z-index:2}.chat-emoji-wrapper .chat-emoji-box{display:flex;flex-direction:column;height:280px}.chat-emoji-wrapper .chat-emoji-box ul{flex:1;width:360px;height:0;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,40px);padding:8px;flex-wrap:wrap;word-break:break-all;box-sizing:content-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-emoji-wrapper .chat-emoji-box ul>li{width:40px;height:40px;line-height:40px;font-size:22px;text-align:center;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-emoji-wrapper .chat-emoji-box ul>li>img{max-width:100%;max-height:100%;pointer-events:none;-webkit-touch-callout:none;transition:transform .3s}.chat-emoji-wrapper .chat-emoji-box ul>li:hover>img{transform:scale(1.4)}.chat-emoji-wrapper .chat-emoji-box ul.emoji>li:active{background-color:#eee;border-radius:8px}.chat-emoji-wrapper .chat-emoji-box ul.emosearch,.chat-emoji-wrapper .chat-emoji-box ul.emoticon{grid-template-columns:repeat(auto-fill,72px)}.chat-emoji-wrapper .chat-emoji-box ul.emosearch>li,.chat-emoji-wrapper .chat-emoji-box ul.emoticon>li{width:72px;height:72px;padding:8px}.chat-emoji-wrapper .chat-emoji-menu{width:376px;height:40px;line-height:40px;background-color:#f2f4f7;display:flex;align-items:center;overflow:auto}.chat-emoji-wrapper .chat-emoji-menu::-webkit-scrollbar{display:none}.chat-emoji-wrapper .chat-emoji-menu>li{list-style:none;cursor:pointer;display:flex;align-items:center;height:100%}.chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:#fff}.chat-emoji-wrapper .chat-emoji-menu>li>span{padding:0 13px;font-size:22px}.chat-emoji-wrapper .chat-emoji-menu>li>i{width:48px;font-size:18px;text-align:center}.chat-emoji-wrapper .chat-emoji-menu>li>img{width:24px;height:24px;padding:0 12px;box-sizing:content-box}.chat-emoji-wrapper .chat-emoji-menu .left-btn,.chat-emoji-wrapper .chat-emoji-menu .right-btn{position:absolute!important;height:40px;background:#f2f4f7!important;width:34px;z-index:3}.chat-emoji-wrapper .chat-emoji-menu .left-btn{left:0;box-shadow:10px 0 10px -10px #00000080}.chat-emoji-wrapper .chat-emoji-menu .right-btn{right:0;box-shadow:-10px 0 10px -10px #00000080}.chat-input-emoji-popover{padding:0;overflow:hidden}.chat-quick-emoji-popover{padding:0;overflow:hidden;min-width:100px}.chat-quick-emoji-wrapper{display:flex;overflow-y:hidden;overflow-x:auto}.chat-quick-emoji-wrapper>li{flex-shrink:0;width:90px;height:90px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-quick-emoji-wrapper>li>img{width:72%;height:72%}.chat-input-more-popover{min-width:100px;padding:8px}.chat-input-more-popover .chat-input-popover-item{display:flex;align-items:center;font-size:14px;cursor:pointer;line-height:36px;padding:0 8px;border-radius:4px}.chat-input-more-popover .chat-input-popover-item:hover{background-color:#ecf5ff}.chat-input-more-popover .chat-input-popover-item .taskfont{font-size:20px;margin-right:8px}.chat-input-record-transfer{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;padding:14px 26px;color:#303133;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .3s ease}.chat-input-record-transfer .record-duration{font-size:20px;line-height:30px}.chat-input-record-transfer .record-loading{display:flex;align-items:center;justify-content:center;height:30px}.chat-input-record-transfer .record-loading .common-pureing{width:24px;height:24px;margin:0;padding:0}.chat-input-record-transfer .record-cancel{margin-top:6px;opacity:.6}.chat-input-record-transfer.cancel{background-color:#ff6565;color:#fff}.chat-input-full-input .ivu-modal .ivu-modal-content{margin-top:46px;border-top-left-radius:18px!important;border-top-right-radius:18px!important}.chat-input-full-input .ivu-modal .ivu-modal-content .ivu-modal-body{overflow:visible;padding:24px!important}.chat-input-full-input .ivu-modal .ivu-modal-content .ivu-modal-close>i{top:3px;right:2px;font-size:24px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;background-color:#fff;border-radius:50%;color:#999}.chat-input-full-input .chat-input-box,.chat-input-full-input .chat-input-box .chat-input-wrapper{height:100%}.chat-input-full-input .chat-input-box .chat-input-wrapper .ql-container{height:100%;width:100%}.chat-input-full-input .chat-input-box .chat-input-wrapper .ql-container .ql-editor{max-height:none}.ql-mention-list-container{width:auto;min-width:220px;max-width:280px;max-height:360px;overflow-x:hidden;overflow-y:auto}.ql-mention-list-container.task-mention .ql-mention-list>li:first-child{margin-top:0}.ql-mention-list-container.task-mention .ql-mention-list-item{line-height:36px}.ql-mention-list-container.task-mention .ql-mention-list-item .mention-item-disabled{padding:8px 4px 0}.ql-mention-list-container .ql-mention-list>li:first-child{margin-top:8px}.ql-mention-list-container .ql-mention-list>li:last-child{margin-bottom:8px}.ql-mention-list-container .ql-mention-list-item{padding:0 8px;display:flex;align-items:center;margin:0 8px}.ql-mention-list-container .ql-mention-list-item.selected{border-radius:4px}.ql-mention-list-container .ql-mention-list-item .mention-item-at{flex-shrink:0;width:28px;height:28px;line-height:28px;border-radius:50%;text-align:center;color:#fff;background-color:#84c56a;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img{flex-shrink:0;position:relative;display:flex;align-items:center;justify-content:center}.ql-mention-list-container .ql-mention-list-item .mention-item-img>img{width:28px;height:28px;border-radius:50%;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.ql-mention-list-container .ql-mention-list-item .mention-item-img.online>em{background-color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-bot{font-size:16px;margin-left:8px;margin-right:-5px;color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-name{flex:1;padding:0 8px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-tip{flex-shrink:0;text-align:right;color:#8f8f8e;font-size:12px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-disabled{flex-shrink:0;color:#aaa;font-size:12px;padding:0 4px;line-height:40px}.chat-emoji-one-modal .ivu-modal-content{background:transparent;box-shadow:none}.chat-emoji-one-modal .ivu-modal-content .ivu-modal-close{display:none}.chat-emoji-one-modal .ivu-modal-content .ivu-modal-body .chat-emoji-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:94%;max-height:94%;background:rgb(255,255,255);border-radius:8px;overflow:hidden}body.window-portrait .chat-input-box .chat-input-quick-emoji{right:10px}body.window-portrait .chat-input-box .chat-input-wrapper{padding-left:6px;padding-right:6px;background-color:#fff}body.window-portrait .chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:16px;color:#303133}body.window-portrait .chat-input-box .chat-emoji-wrapper{margin-top:8px;background-color:#fff}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box{height:246px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul{grid-template-columns:repeat(auto-fill,50px)}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul>li{width:50px;height:50px;line-height:50px;font-size:28px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emosearch,body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emoticon{grid-template-columns:repeat(auto-fill,80px)}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emosearch>li,body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emoticon>li{width:80px;height:80px;padding:8px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu{border-radius:0;background-color:#f8f8f8;padding:4px;width:100%;height:48px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{background-color:#e1e1e1}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu .left-btn,body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu .right-btn{background:#f8f8f8!important}.dialog-group-info{display:flex;flex-direction:column;position:absolute;top:10px;left:0;right:0;bottom:0}.dialog-group-info .group-info-title{color:#b7b1b1;margin:18px 24px 0}.dialog-group-info .group-info-value{margin:4px 24px 0;line-height:34px}.dialog-group-info .group-info-value .quick-text{padding:6px 0;height:auto;line-height:20px;box-sizing:content-box;overflow:visible;white-space:normal}.dialog-group-info .group-info-value .quick-input{display:flex;flex-direction:column}.dialog-group-info .group-info-search{margin:24px 24px 0}.dialog-group-info .group-info-button{display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-group-info .group-info-button>button{margin:0 8px}.dialog-group-info .group-info-user{flex:1;overflow:auto;margin-top:12px;padding:0 12px}.dialog-group-info .group-info-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;height:56px;border-radius:6px}.dialog-group-info .group-info-user>ul>li:hover{background-color:#9093991a}.dialog-group-info .group-info-user>ul>li:hover .user-exit{opacity:1;transform:translate(0)}.dialog-group-info .group-info-user>ul>li.no{justify-content:center;color:#999}.dialog-group-info .group-info-user>ul>li.no:hover{background-color:transparent}.dialog-group-info .group-info-user>ul>li.no .common-loading{width:16px;height:16px}.dialog-group-info .group-info-user>ul>li .common-avatar{width:0;flex:1}.dialog-group-info .group-info-user>ul>li .common-avatar .avatar-name{margin-left:8px}.dialog-group-info .group-info-user>ul>li .user-tag{margin-left:4px;height:22px;line-height:22px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#84c56a}.dialog-group-info .group-info-user>ul>li .user-exit{display:flex;align-items:center;justify-content:flex-end;cursor:pointer;height:100%;width:32px;opacity:0;transform:translate(50%);transition:all .2s}.dialog-group-info .group-info-user>ul>li .user-exit:hover>i{color:#606266}.dialog-group-info .group-info-user>ul>li .user-exit>i{display:flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:12px;color:#909399;border:1px solid #dddddd;border-radius:50%}body.window-portrait .dialog-group-info .group-info-user>ul>li:hover{background-color:transparent}body.window-portrait .dialog-group-info .group-info-user>ul>li .user-exit{opacity:1;transform:translate(0)}.dialog-respond{display:flex;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0}.dialog-respond .respond-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center}.dialog-respond .respond-title>em{font-style:normal;font-size:22px;margin-right:8px}.dialog-respond .respond-user{flex:1;overflow:auto;padding:6px}.dialog-respond .respond-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;border-radius:6px}.dialog-respond .respond-user>ul>li:hover{background-color:#9093991a}.dialog-respond .respond-user>ul>li .common-avatar{width:0;flex:1}.dialog-respond .respond-user>ul>li .common-avatar .avatar-name{margin-left:8px}body.window-portrait .dialog-respond .respond-user>ul>li:hover{background-color:transparent}.dialog-wrapper-dialogids .ivu-select-arrow{display:none!important}.dialog-wrapper-forward .forward-option{max-width:100%;display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar{display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar{width:26px;height:26px;flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;background-color:#61b2f9;color:#fff}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.task{background-color:#9b96df;font-size:16px}.dialog-wrapper-forward .forward-option .forward-name{margin-left:10px;flex:1;width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dialog-wrapper-forward .ivu-select-item.ivu-select-item-selected:after{top:8px}.dialog-wrapper-forward .forward-drop-prepend{text-align:center;color:#c5c8ce;line-height:20px;padding-bottom:5px;font-size:12px;border-bottom:1px solid #f1f1f1;margin-bottom:5px}.dialog-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;background-color:#fff;z-index:1}.dialog-wrapper.record-ready{overflow:hidden}.dialog-wrapper.inde-list{border-radius:18px 0 0 18px;overflow:hidden}.dialog-wrapper.inde-list .dialog-nav .drawer-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500}.dialog-wrapper.inde-list .dialog-scroller{padding:16px 20px 0}.dialog-wrapper.inde-list .dialog-scroller .reply-item{border-bottom:1px solid #eeeeee;margin-bottom:16px}.dialog-wrapper.inde-list .dialog-scroller .original-button{display:block;margin:0 auto 16px;box-shadow:none}.dialog-wrapper.inde-list .dialog-scroller .dialog-scroller-item{border-bottom:1px solid #eeeeee;margin-bottom:16px}.dialog-wrapper.inde-list .dialog-scroller .dialog-scroller-item .reply-item{border-bottom:none;margin-bottom:0}.dialog-wrapper.inde-list .dialog-scroller .dialog-scroller-item .original-button-warp{display:flex;margin-bottom:16px}.dialog-wrapper.inde-list .todo-button{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-wrapper.inde-list .todo-button>button{margin:0 8px}.dialog-wrapper .vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:overlay}.dialog-wrapper .dialog-nav{width:100%}.dialog-wrapper .dialog-nav .nav-wrapper{display:flex;align-items:center;padding:0 22px;height:68px;position:relative}.dialog-wrapper .dialog-nav .nav-wrapper:before{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#f4f5f5}.dialog-wrapper .dialog-nav .nav-wrapper.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:50%;right:52px;transform:translateY(-50%);font-size:40px;color:#19be6b;opacity:.2;z-index:1}.dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:52px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{flex:1;width:0;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{flex-shrink:0;margin-right:12px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .user-avatar,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{width:42px;height:42px;margin-right:2px;flex-grow:0;flex-shrink:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar{display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar>img{width:100%;height:100%}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.task{background-color:#9b96df;font-size:24px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:1;width:0;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{display:flex;align-items:center;line-height:22px;max-width:100%}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag{flex-shrink:0;margin:0 6px 0 0;padding:0 5px;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.ivu-tag-success{padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.after{margin:0 0 0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.pointer{cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon{font-size:18px;margin-right:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon.completed{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>em{display:inline-block;flex-shrink:0;font-style:normal;font-size:17px;font-weight:500;margin-left:6px;cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load .common-loading{width:16px;height:16px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:none;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li{font-size:12px;list-style:none;line-height:16px;padding-top:2px;color:#aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;transform:scale(.9)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li.online{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{font-size:12px;list-style:none;line-height:24px;margin-top:4px;margin-right:6px;margin-bottom:-6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;display:flex;align-items:center;padding:0 6px;color:#303133;border-radius:5px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{flex-shrink:0;width:14px;height:14px;line-height:14px;font-size:14px;margin-right:4px;background-repeat:no-repeat;background-size:contain;background-position:center center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.file i{background-image:url(/js/build/file.3e98845a.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.image i{background-image:url(/js/build/image.d3eec0cd.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.link i{background-image:url(/js/build/link.5b1cd276.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.msg i{background-image:url(/js/build/msg.d43597ba.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.tag i{background-image:url(/js/build/tag.d5e85a3b.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.todo i{background-image:url(/js/build/todo.31b54029.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.project i{background-image:url(/js/build/project.91434d04.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.task i{background-image:url(/js/build/task.19dff412.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.okr i{background-image:url(/js/build/task.19dff412.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.active{font-weight:500;color:#84c56a;background-color:#84c56a2e}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{margin-right:-22px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{cursor:pointer;margin:0 22px;font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{display:none;cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search{position:absolute;top:0;left:0;right:0;bottom:1px;z-index:2;background-color:#fff;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-location{margin-left:14px;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-location>i{cursor:pointer;font-size:18px;padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input{flex:1;padding:0 6px;margin-left:12px;border-radius:12px;background-color:#f7f7f7;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .search-pre .common-loading{width:14px;height:14px;margin:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .ivu-input{border-color:transparent;background-color:transparent}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .ivu-input:hover,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .ivu-input:focus{box-shadow:none}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .search-total{padding-right:12px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-cancel{cursor:pointer;padding:0 18px;color:#84c56a}.dialog-wrapper .dialog-top-message{background:white}.dialog-wrapper .dialog-top-message .dialog-top-message-warp{padding:10px 5px;position:relative;display:flex;margin:10px 16px 0;cursor:pointer;border-radius:10px;border:1px solid #ebebeb;box-shadow:0 0 5px #cdcdcd80}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content{flex:1;overflow:hidden}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;gap:4px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.content{margin-bottom:2px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.content>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.personnel{font-size:12px;color:#afafaf}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.personnel .avatar-name{color:#84c56a;margin-left:10px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-font{line-height:42px;text-align:center;padding:0 10px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-font .taskfont{font-size:16px;padding:5px;border-radius:50%;background-color:#ff821a;color:#fff}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-btn{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 10px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-btn .taskfont{border-radius:3px;font-size:18px;padding:4px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-btn .common-pureing{width:18px;height:18px;margin:4px;border-width:2px}.dialog-wrapper .dialog-msgs{flex:1;position:relative;overflow:hidden}.dialog-wrapper .dialog-position{position:absolute;top:24px;right:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;opacity:0;transform:translate(100%);animation:position-in-animation .2s ease-out forwards;animation-delay:.3s}.dialog-wrapper .dialog-position .position-label{display:flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:18px 0 0 18px;color:#fff;background-color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-position .position-label>i{margin-right:4px;width:14px;height:14px;font-size:14px;line-height:14px}.dialog-wrapper .dialog-scroller{position:absolute;left:0;bottom:0;width:100%;height:100%;padding:16px 32px 0}.dialog-wrapper .dialog-scroller.scrollbar-virtual{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.dialog-wrapper .dialog-scroller .item-leave pre,.dialog-wrapper .dialog-scroller .item-leave code,.dialog-wrapper .dialog-scroller .item-leave .markdown-body{visibility:hidden}.dialog-wrapper .dialog-scroller .dialog-item{display:flex;flex-direction:row;align-items:flex-start;list-style:none;padding-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-top,.dialog-wrapper .dialog-scroller .dialog-item .dialog-notice{font-size:12px;max-width:80%;margin:0 auto;padding:4px 8px;border-radius:8px;color:#909399;background-color:#efefef;word-wrap:break-word}.dialog-wrapper .dialog-scroller .dialog-item .dialog-top,.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-top .tag-user,.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag .tag-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div{padding-left:8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div:before{content:"\3001";position:absolute;left:0;bottom:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-avatar{position:relative;margin-bottom:20px;flex-shrink:0;width:30px;height:30px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 0 8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:70%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-action .dialog-head{box-shadow:0 1px 6px #0003}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-username{max-width:100%;height:22px;margin-bottom:6px;opacity:.8}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{display:flex;flex-direction:column;background-color:#f4f5f7;padding:8px;min-width:32px;border-radius:2px 8px 8px;transition:box-shadow .3s ease;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head.transparent{background-color:transparent!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply{position:relative;padding-left:9px;margin-bottom:4px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-avatar{height:20px;line-height:20px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-avatar .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc .image-preview{max-width:40px;max-height:40px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content{display:flex;align-items:flex-start;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content a,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content img{-webkit-user-drag:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.an-emoji .content-text>pre{font-size:72px!important;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.two-emoji .content-text>pre{font-size:52px!important;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.three-emoji .content-text>pre{font-size:32px!important;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text{color:#303133;padding:2px;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text .no-size-image-box{display:inline-block;max-width:220px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text .markdown-body{min-height:20px;line-height:20px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{display:block;margin:0;padding:0;line-height:20px;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#436ff6}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li{list-style-type:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{display:inline-block;white-space:nowrap;width:1.2em;color:#08f;text-align:left;margin-right:.2em}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{content:"\2022";font-weight:900}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=bullet]:before{content:"\2022";font-weight:900;text-align:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=checked]:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=unchecked]:before{font-family:taskfont,"serif"!important;font-size:14px;content:"\e6ed";font-weight:400;transform:scale(1.12)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=unchecked]:before{content:"\e6f1"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre pre{white-space:pre-wrap;margin:5px 0;padding:5px 10px;border-radius:3px;background-color:#23241f;color:#f8f8f2;overflow:visible}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img{cursor:pointer;max-width:100%;max-height:220px;vertical-align:bottom}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img.emoticon{max-width:100%;max-height:150px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#0bc037;background-color:transparent;-webkit-user-select:inherit;-moz-user-select:inherit;user-select:inherit;padding:0;margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention>span{margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.task,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.okr{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#436ff6!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.user{white-space:nowrap}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:13px;font-weight:600;padding:3px 4px;color:#fff;white-space:nowrap;background-color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details{width:260px;display:inline-block;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause{border-bottom:1px solid #e3e3e3;border-top:1px solid #e3e3e3;padding-bottom:10px;margin-top:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause>span:first-child{display:inline-block;padding:15px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause>b{display:inline-block;margin-bottom:5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause>span{display:inline-block;margin-bottom:3px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw{display:flex;text-align:center;padding:12px 0 5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw>button.ivu-btn{flex:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw>button.ivu-btn-primary{margin-right:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw>button.ivu-btn-small{height:32px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file{position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file .file-percentage{position:absolute;left:2px;right:2px;bottom:2px;height:2px;border-radius:3px;overflow:hidden}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file .file-percentage>span{position:absolute;top:0;left:0;bottom:0;width:0;background-color:#0bc037}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{background-color:#fff;display:flex;align-items:center;padding:10px 14px;border-radius:3px;width:220px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-thumb{width:36px;flex-shrink:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info{margin-left:12px;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-name{color:#303133;font-size:14px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-size{padding-top:4px;color:#606266;font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img{padding:0;display:flex;max-width:220px;max-height:220px;border-radius:6px;overflow:hidden}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img .file-img{display:flex;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record{display:flex;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-content:center;line-height:24px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 0 0 4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(180deg) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon:before{content:"\e793"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record.playing .record-icon:before{animation:record-playing 1s infinite}@keyframes record-playing{0%{content:"\e793"}33%{content:"\e791"}66%{content:"\e792"}to{content:"\e793"}}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{padding:4px 6px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting{min-width:220px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting.meeting-end{opacity:.7}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting.meeting-end>li.meeting-operation{justify-content:center;cursor:default}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li{list-style:none;display:flex;flex-direction:column;align-items:flex-start;margin-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation{margin-bottom:0;padding:12px 0 0;display:flex;flex-direction:row;align-items:center;font-size:12px;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:hover .taskfont{padding-left:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#cccc;transform:scaleY(.5)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation .taskfont{font-size:12px;padding-left:2px;transform:scale(.8);transition:all .2s}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li>em{font-style:normal;font-weight:700;padding-bottom:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading{display:flex;align-items:center;height:24px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading>i{font-size:20px;margin:2px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading .common-loading{width:20px;height:20px;margin:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-unknown{text-decoration:underline;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul{list-style-type:none;margin-top:20px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li{margin-top:5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li .expand{cursor:pointer;color:#0bc037}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li .shrink{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li.participate{display:flex;align-items:center;cursor:pointer;margin-top:10px;color:#0bc037}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li.participate>i{font-size:12px;padding-left:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul.expand .expand,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li:nth-last-child(2) .expand{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul.expand .shrink,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li:nth-last-child(2) .shrink{display:block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote{min-width:200px;max-width:260px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head{display:flex;align-items:center;margin-bottom:8px;color:#0bc037;line-height:18px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head em{font-style:normal;font-weight:700;padding:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head span{padding:2px 4px;border-radius:3px;background-color:#dee2fa;margin:0 4px;font-size:12px;color:#7076e4}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group{margin-top:10px;width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-checkbox-wrapper,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-radio-wrapper,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-checkbox-wrapper,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-radio-wrapper{display:block;width:100%;height:34px;line-height:34px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-checkbox-wrapper .ivu-checkbox-inner,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-radio-wrapper .ivu-checkbox-inner,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-checkbox-wrapper .ivu-checkbox-inner,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-radio-wrapper .ivu-checkbox-inner{border-radius:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body{font-size:12px;margin-top:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul{list-style-type:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li{margin-bottom:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .vote-option-title{margin-bottom:3px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .ivu-progress-inner{background-color:#e2e2e2}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .avatar-row{gap:2px;display:flex;overflow:auto;margin-top:4px;padding-bottom:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .avatar-row::-webkit-scrollbar{background:none;width:6px;height:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .avatar-row::-webkit-scrollbar-thumb{background:#d4d4d4;border-radius:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li:last-child{margin-bottom:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body>span,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body .ticket-num span{margin-right:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .btn-row{display:flex;text-align:center;padding:10px 0 5px;gap:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .btn-row .ivu-btn{flex:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{list-style:none;display:flex;align-items:flex-start;padding:2px 8px;margin-top:6px;margin-right:8px;border-radius:14px;line-height:22px;cursor:pointer;background-color:#e1e1e180}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#e1e1e1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:16px;transition:transform .3s}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol:hover{transform:scale(1.5)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users{position:relative;padding-left:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{display:flex;align-items:center;list-style:none;color:#818181;font-size:12px;height:22px;line-height:22px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li.bold{font-weight:600}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:after{content:"\3001"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:last-child:after{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot{display:flex;align-items:center;padding-top:4px;height:21px;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error{cursor:pointer;color:#ed4014}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error>i{font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .common-loading{margin:0 2px;width:10px;height:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .popover-reference{position:absolute;left:65%;bottom:0;width:0;height:100%;pointer-events:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .top,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify{display:flex;align-items:center;margin-right:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .top>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify>i{font-size:13px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo{position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo .common-loading{margin:0 3px 0 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply{font-size:12px;color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i{padding-right:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .time{color:#bbb;font-size:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .done{display:none;margin-left:4px;transform:scale(.9);font-size:12px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .percent{display:none;margin-left:4px;align-items:center;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action{align-self:flex-start;display:flex;align-items:flex-start;height:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action>*{margin:0 5px}.dialog-wrapper .dialog-scroller .dialog-item.head-box{height:36px;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item.head-box .loading>span{width:8px;height:8px;border-radius:50%;display:block;margin:0 auto;position:relative;background:#e3e3e3;box-sizing:border-box;animation:head-box-loading-animation .5s linear infinite alternate}.dialog-wrapper .dialog-scroller .dialog-item.head-box .describe{color:#909399}.dialog-wrapper .dialog-scroller .dialog-item.head-box .filled{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.dialog-wrapper .dialog-scroller .dialog-item.unread-start{position:relative;padding-top:44px}.dialog-wrapper .dialog-scroller .dialog-item.unread-start .dialog-unread-label{position:absolute;top:4px;left:0;right:0;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item.unread-start .dialog-unread-label>em{height:1px;background-color:#e9e9e9;flex:1;margin:0 12px;max-width:80px}.dialog-wrapper .dialog-scroller .dialog-item.unread-start .dialog-unread-label>span{font-size:12px;color:#909399}.dialog-wrapper .dialog-scroller .dialog-item.self{flex-direction:row-reverse}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view{align-items:flex-end;margin:0 8px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a;border-radius:8px 2px 8px 8px}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply:after{background-color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .reply-avatar .bot,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .reply-avatar .common-avatar,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#303133}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:inherit;font-weight:inherit;padding:inherit;background-color:inherit}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record{flex-direction:row}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 4px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(0) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{background-color:#fffc}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-loading>i{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-unknown{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-word-chain ul li.participate,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-word-chain ul li .expand,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head{color:#23241f}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#5ba93c80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#5ba93c}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#ffffff80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .done{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .percent{display:flex}.dialog-wrapper .dialog-float-loading{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#fffc}.dialog-wrapper .dialog-footer{position:relative;padding:0 24px;margin-bottom:16px}.dialog-wrapper .dialog-footer .dialog-goto{position:absolute;top:-48px;right:30px;z-index:2;width:40px;height:40px;border-radius:50%;color:#606266;box-shadow:0 0 4px #60626633;background-color:#fff;border:1px solid #eeeeee;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;align-content:center;justify-content:center;animation:dialog-goto-animation .2s ease-out forwards}.dialog-wrapper .dialog-footer .dialog-goto .ivu-badge{display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-footer .dialog-goto .ivu-badge .ivu-badge-count{right:unset;transform:unset;border:none;box-shadow:none;display:flex;justify-content:center;align-items:center}.dialog-wrapper .dialog-footer .dialog-goto .taskfont{font-size:24px}.dialog-wrapper .dialog-footer .chat-upload{display:none;width:0;height:0;overflow:hidden}.dialog-wrapper .dialog-footer .chat-bottom-menu{display:flex;align-items:center;padding:8px 0}.dialog-wrapper .dialog-footer .chat-bottom-menu .bottom-menu-label{flex-shrink:0;padding-right:8px}.dialog-wrapper .dialog-footer .chat-bottom-menu>ul{flex:1;display:flex;align-items:center;overflow-x:auto}.dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li{flex-shrink:0;list-style:none;margin-right:8px;background-color:#f0f1f3;padding:0 12px;border-radius:13px;line-height:26px;font-size:13px;cursor:pointer;display:flex;align-items:center}.dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li .bottom-menu-desc{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-footer .chat-mute{color:#909399;background-color:#f4f5f7;padding:8px 12px;border-radius:10px;text-align:center}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#f4f5f7;padding:8px 2px;border-radius:10px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor{margin:4px 12px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:12px;right:12px}.dialog-wrapper .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.dialog-wrapper .drag-over:before{content:"";position:absolute;top:16px;left:16px;right:16px;bottom:16px;border:2px dashed #7b7b7b;border-radius:12px}.dialog-wrapper .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.dialog-wrapper .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar{width:6px;background-color:transparent}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar:hover{width:16px;background-color:#f0f0f0}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar-thumb{border-radius:6px;background-color:#c8c8c9}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar-thumb:hover{background-color:#a2a2a2}.dialog-forward-message-modal .ivu-modal{margin:10px auto}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search{padding-bottom:16px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected{max-width:100%}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search .user-modal-avatar{display:flex;align-items:center;gap:5px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search .user-modal-avatar .avatar-name{max-width:90%}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend{margin:0 24px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper{position:relative;z-index:1}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper.inde-list{border-radius:0}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller{position:relative;padding:0}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view{width:100%;max-width:100%;margin:0}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{width:100%;border-radius:8px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file,.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{width:100%}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot,.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-avatar{display:none}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .leave-message{position:relative;z-index:2;padding-bottom:16px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .leave-message textarea{background:#f7f7f7}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer{display:flex;justify-content:flex-end;gap:20px}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer .dialog-wrapper-forward-footer{display:flex;line-height:34px;cursor:pointer}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer .dialog-wrapper-forward-footer .user-modal-icon{flex-shrink:0;font-size:22px;margin-right:5px;color:#909399b3;margin-top:6px}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer .dialog-wrapper-forward-footer.selected .user-modal-icon{color:#84c56a}.dialog-wrapper-read-poptip{width:360px;max-width:72%}.dialog-wrapper-read-poptip .read-poptip-content{display:flex;position:relative}.dialog-wrapper-read-poptip .read-poptip-content .read,.dialog-wrapper-read-poptip .read-poptip-content .unread{flex:1;max-height:300px}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title,.dialog-wrapper-read-poptip .read-poptip-content .read ul>li,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li{padding-bottom:12px}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title{position:sticky;top:0;z-index:10;background:#ffffff}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title>em,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title>em{font-size:18px;font-weight:600;font-style:normal;padding-right:6px}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li{min-height:26px;list-style:none}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li .common-avatar,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li .common-avatar{width:100%}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li .common-avatar .avatar-name,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li .common-avatar .avatar-name{margin-left:6px}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li:last-child,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li:last-child{padding-bottom:6px}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li.read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li.read-title{min-height:auto}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li.read-title>em,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li.read-title>em{font-size:18px;font-weight:600;font-style:normal;padding-right:6px}.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li{padding-left:16px}.dialog-wrapper-read-poptip .read-poptip-content:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background-color:#f4f4f5}.dialog-wrapper-paste{display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-wrapper-paste.multiple{display:block}.dialog-wrapper-paste>li{list-style:none}.dialog-wrapper-paste>li img{max-width:100%;max-height:500px}.dialog-wrapper-paste>li>div,.dialog-wrapper-paste>li>img{display:flex;flex-direction:column;padding:0}.dialog-wrapper-paste>li+li{margin-top:20px}.dialog-wrapper-todo{display:inline-block}.dialog-wrapper-todo>div{display:flex;align-items:center}.dialog-wrapper-todo>div .ivu-tag{display:flex;align-items:center;margin-left:4px;height:20px;line-height:20px;padding:0 5px}.dialog-wrapper-operate .ivu-dropdown-item{padding:0}.dialog-wrapper-operate .ivu-dropdown-item:hover{background-color:transparent}.dialog-wrapper-operate .dropdown-emoji{position:relative}.dialog-wrapper-operate .dropdown-emoji:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#f4f5f5}.dialog-wrapper-operate .operate-action{width:316px;padding:8px;margin-bottom:-8px;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,60px)}.dialog-wrapper-operate .operate-action.cancel{display:flex;align-items:center;justify-content:center;width:auto;margin-top:2px;margin-bottom:-14px}.dialog-wrapper-operate .operate-action>li{list-style:none;width:60px;height:52px;margin-bottom:14px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.dialog-wrapper-operate .operate-action>li .taskfont{font-size:22px}.dialog-wrapper-operate .operate-action>li>span{padding:0 1px;font-size:12px;max-width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper-operate .operate-action-top{width:auto}.dialog-wrapper-operate .operate-action-top>li{margin-bottom:0}.dialog-wrapper-operate .operate-emoji{width:316px;padding:8px 4px 2px;display:flex;align-items:center;overflow:auto}.dialog-wrapper-operate .operate-emoji>li{list-style:none;width:44px;height:30px;line-height:30px;box-sizing:content-box;display:flex;flex-shrink:0;font-size:22px;justify-content:center;align-items:center}.dialog-wrapper-operate .operate-emoji>li.more-emoji{position:absolute;right:0;top:8px;bottom:0;width:54px;background-image:linear-gradient(to right,rgba(255,255,255,0) 0%,#ffffff 20%)}.dialog-wrapper-operate .operate-emoji>li.more-emoji>i{font-size:24px;color:#5e6d82}.dialog-wrapper-drawer-list{position:absolute!important;overflow:hidden!important}@keyframes head-box-loading-animation{0%{box-shadow:0 0,0 0;color:#e3e3e333}to{box-shadow:-12px 0,12px 0;color:#e3e3e3cc}}body.window-touch .dialog-wrapper .dialog-scroller{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-touch .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{position:relative}body.window-touch .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box:before{content:"";position:absolute;top:0;left:0;width:60px;height:100%;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-touch .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content{-webkit-user-select:text;-moz-user-select:text;user-select:text}body.window-portrait .dialog-wrapper{background-color:#f8f8f8}body.window-portrait .dialog-wrapper.inde-list .dialog-nav .drawer-title{height:52px;line-height:52px;border-bottom:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper{height:52px;padding:0;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper:before{display:none}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper.completed:after{font-size:36px;right:40px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper.tagged{margin-bottom:34px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{position:absolute;top:0;bottom:0;right:0;width:52px;display:flex;align-items:center;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu,body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{margin:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{padding-right:6px;right:auto;left:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back>i{font-size:26px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back .back-num{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;position:absolute;top:50%;left:32px;background:#e6ebf1;color:#303133;transform:translateY(-50%);font-weight:500;font-size:14px;border-radius:12px;min-width:24px;height:24px;line-height:24px;text-align:center;padding:0 6px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{margin:0 80px;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{display:none}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:unset;width:unset;overflow:hidden;text-align:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:flex;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{position:absolute;left:0;right:0;top:48px;z-index:1;padding:0 8px;background-color:#f8f8f8;height:32px;align-items:flex-start;overflow-x:auto}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{flex-shrink:0;line-height:28px;padding:0 8px;font-size:14px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{width:16px;height:16px;line-height:16px;font-size:16px;margin-right:3px}body.window-portrait .dialog-wrapper .dialog-scroller{padding-right:14px;padding-left:14px;overscroll-behavior:none;background-color:#fff}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:calc(100% - 80px)}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content a,body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content img{-webkit-touch-callout:none}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{font-size:15px}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:14px;margin-right:-1px;transition:none}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol:hover{transform:none}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content a,body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content img{-webkit-touch-callout:default}body.window-portrait .dialog-wrapper .dialog-footer{background-color:#f8f8f8;padding:8px 10px;margin-bottom:0}body.window-portrait .dialog-wrapper .dialog-footer .chat-bottom-menu{padding-top:0}body.window-portrait .dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li{background-color:#fff}body.window-portrait .dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li .bottom-menu-desc{max-width:120px}body.window-portrait .dialog-wrapper .dialog-footer .chat-mute,body.window-portrait .dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#fff}body.window-portrait .dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .chat-record{margin-left:-10px;width:calc(100% + 20px);background-color:#f8f8f8}body.window-portrait .dialog-wrapper .dialog-footer .chat-input-box .chat-emoji-wrapper{margin-left:-10px;margin-bottom:-8px;width:calc(100% + 20px)}body.window-portrait .dialog-wrapper .dialog-footer .dialog-goto{right:16px}body.window-portrait .dialog-wrapper-operate .operate-emoji>li{font-size:24px}@media (max-width: 768px) and (min-width: 390px){body.window-portrait .dialog-wrapper-operate .operate-action{width:376px}body.window-portrait .dialog-wrapper-operate .operate-action.cancel{width:auto}body.window-portrait .dialog-wrapper-operate .operate-emoji{width:376px}body.window-portrait .dialog-wrapper-operate .operate-emoji>li{width:46px}}@keyframes dialog-goto-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes position-in-animation{0%{transform:translate3d(100%,0,0);opacity:0}to{transform:translateZ(0);opacity:1}}.file-content,.file-preview{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;flex-direction:column;border-radius:18px 18px 0 0;overflow:hidden;transform:translateZ(0)}.file-content .preview-iframe,.file-preview .preview-iframe{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;border:0;float:none;max-width:none;margin:0;padding:0;outline:0}.file-content .office-header,.file-preview .office-header{position:absolute;top:0;left:0;z-index:-1;opacity:0}.file-content .edit-header,.file-preview .edit-header{display:flex;flex-direction:row;align-items:center;width:100%;height:42px;background-color:#fff;box-shadow:0 1px 5px #0000000d;position:relative;z-index:99}.file-content .edit-header .header-title,.file-preview .edit-header .header-title{flex:1;color:#303133;padding-left:24px;padding-right:24px;line-height:24px;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-content .edit-header .header-title .file-unsave-tip,.file-preview .edit-header .header-title .file-unsave-tip{color:#303133;padding-right:6px;font-weight:500;cursor:pointer;transition:color .3s}.file-content .edit-header .header-title .file-unsave-tip:hover,.file-preview .edit-header .header-title .file-unsave-tip:hover{color:#000}.file-content .edit-header .header-user,.file-preview .edit-header .header-user{margin-right:24px}.file-content .edit-header .header-user>ul,.file-preview .edit-header .header-user>ul{display:flex;align-items:center}.file-content .edit-header .header-user>ul>li,.file-preview .edit-header .header-user>ul>li{list-style:none;margin-right:-4px}.file-content .edit-header .header-user>ul>li.more,.file-preview .edit-header .header-user>ul>li.more{width:28px;height:28px;text-align:center;line-height:24px;font-size:12px;border:2px solid #ffffff;background-color:#84c56a;color:#fff;z-index:1;border-radius:50%}.file-content .edit-header .header-hint,.file-preview .edit-header .header-hint{padding-right:22px;font-size:12px;color:#666;white-space:nowrap}.file-content .edit-header .header-hint .ivu-btn,.file-preview .edit-header .header-hint .ivu-btn{font-size:12px;padding:0 10px}.file-content .edit-header .header-hint .ivu-dropdown-item,.file-preview .edit-header .header-hint .ivu-dropdown-item{font-size:12px!important}.file-content .edit-header .header-icons,.file-preview .edit-header .header-icons{margin-left:-4px;margin-right:16px;display:flex;align-items:center;justify-content:center}.file-content .edit-header .header-icons .header-icon,.file-preview .edit-header .header-icons .header-icon{display:flex;align-items:center;justify-content:center;width:44px;height:100%;color:#777;cursor:pointer}.file-content .edit-header .header-icons .header-icon>i,.file-preview .edit-header .header-icons .header-icon>i{font-size:20px}.file-content .edit-header .header-button,.file-preview .edit-header .header-button{font-size:12px;margin-right:24px}.file-content .content-body,.file-preview .content-body{flex:1;display:flex;position:relative}.file-content .content-body .teditor-wrapper,.file-content .content-body .mdeditor-wrapper,.file-preview .content-body .teditor-wrapper,.file-preview .content-body .mdeditor-wrapper{flex:1;display:flex}.file-content .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling,.file-preview .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling{flex-wrap:wrap}.file-content .content-body .mdeditor-box,.file-preview .content-body .mdeditor-box{position:relative;width:100%}.file-content .content-body .mdeditor-box .markdown,.file-preview .content-body .mdeditor-box .markdown{position:absolute;top:0;left:0;bottom:0;right:0;overflow:auto;transform:translateZ(0)}.file-content .content-body .mdeditor-box .markdown .markdown-toolbars,.file-preview .content-body .mdeditor-box .markdown .markdown-toolbars{border-bottom:1px solid #eeeeee}.file-content .content-body .mdeditor-box .markdown.border,.file-preview .content-body .mdeditor-box .markdown.border{border:0!important}.file-content .content-body .teditor-loadedstyle,.file-preview .content-body .teditor-loadedstyle{height:100%}.file-content .content-body .teditor-loadedstyle .tox-tinymce,.file-preview .content-body .teditor-loadedstyle .tox-tinymce{border:0;border-radius:0}.file-content .content-body .teditor-loadedstyle .tox-mbtn,.file-preview .content-body .teditor-loadedstyle .tox-mbtn{height:36px}.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0 12%;background:#ffffff}.file-content .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-content .content-body .teditor-loadedstyle .tox-toolbar__primary,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__primary{background:none!important;border-top:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{border-bottom:1px solid #E9E9E9!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type),.file-preview .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type){border-right:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:22px 12%;border:1px solid #e8e8e8;border-radius:2px;box-shadow:0 4px 8px #00000014}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area{border-top:0}.file-content .content-body .teditor-loadedstyle .tox-statusbar,.file-preview .content-body .teditor-loadedstyle .tox-statusbar{border-top:1px solid #E9E9E9}.file-content .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle,.file-preview .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle{display:none}.file-content .content-body .content-mask,.file-preview .content-body .content-mask{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2}.file-content .content-load,.file-preview .content-load{display:flex;align-items:center;justify-content:center;position:absolute;top:42px;left:0;right:0;bottom:0;z-index:1000}.file-content .content-load .common-loading,.file-preview .content-load .common-loading{margin:0}.file-preview .edit-header .header-title{display:flex;align-items:center}.file-preview .edit-header .header-title .title-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-preview .edit-header .header-title .ivu-tag{flex-shrink:0;margin-left:6px;padding:0 6px;line-height:20px}.file-preview .edit-header .header-title .refresh{display:flex;align-items:center;margin-left:6px}.file-preview .edit-header .header-title .refresh .common-loading{margin:2px;width:16px;height:16px}.file-preview .edit-header .header-title .refresh>i{opacity:.6;font-size:20px;cursor:pointer;transition:all .2s}.file-preview .edit-header .header-title .refresh>i:hover{opacity:1}.file-preview .content-body{overflow:hidden}.file-preview .content-body .teditor-wrapper .tox-editor-header,.file-preview .content-body .teditor-wrapper .tox-statusbar{display:none}.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0;border:0}.file-preview .content-body .markdown-preview-warp{flex:1;overflow:auto}@media (max-width: 1200px){.file-content{overflow:auto}.file-content .edit-header,.file-content .content-body{min-width:375px;overflow-x:auto}.file-content .edit-header .teditor-loadedstyle .tox-menubar,.file-content .edit-header .teditor-loadedstyle .tox-toolbar-overlord,.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-content .edit-header .teditor-loadedstyle .tox-sidebar-wrap,.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0}}body.window-portrait .file-preview .edit-header .header-hint{display:none}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content{border-radius:0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body{padding:16px 24px 0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,220px);grid-gap:24px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{list-style:none;position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player{position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:220px;height:220px;border-radius:12px;position:relative;z-index:1;overflow:hidden;background-color:#e1e1e1;background-size:136%;background-position:center;background-repeat:no-repeat}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state{position:absolute;top:4px;right:8px;z-index:2;display:flex;align-items:center}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state .taskfont{color:red;font-size:18px;margin-left:8px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .meeting-avatar{position:absolute;bottom:-8px;right:-8px;z-index:2}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .avatar-box em{transform:scale(1.0625)}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .avatar-box .el-avatar--circle{border:1px solid #FFFFFF}body .ivu-modal-wrap.meeting-hidden{display:none}body.window-portrait .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{grid-template-columns:none;grid-gap:12px;display:flex;flex-wrap:wrap;justify-content:flex-start}body.window-portrait .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{width:calc(50% - 6px);max-width:180px}body.window-portrait .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:100%;height:176px}.meeting-drag-ball{position:relative;background-color:#fff;padding:6px 12px;white-space:nowrap;border-radius:4px;box-shadow:0 0 3px #2d2d2d4d;cursor:pointer;display:flex;align-items:center}.meeting-drag-ball>i{font-size:20px;height:24px;line-height:24px;margin-right:5px}.meeting-drag-ball>em{font-style:normal;padding-left:4px}.meeting-button-group{display:flex;justify-content:flex-end}.meeting-button-group .taskfont{font-size:20px}.meeting-button-group .ivu-btn{display:flex;align-items:center;justify-content:center}.meeting-button-group .ivu-btn>span{display:flex;align-items:center;justify-content:center}.project-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-archived .archived-title .title-icon>i{cursor:pointer}.project-archived .table-page-box{flex:1;height:0}.project-dialog{display:flex;flex-direction:column;background-color:#fff;border-left:1px solid #f4f5f5;z-index:1;position:relative}.project-dialog .dialog-user{margin-top:26px}.project-dialog .dialog-user .member-head{display:flex;align-items:center;padding:0 22px}.project-dialog .dialog-user .member-head .member-title{flex:1;font-size:18px;font-weight:600}.project-dialog .dialog-user .member-head .member-title>span{padding-left:6px;color:#84c56a;cursor:pointer}.project-dialog .dialog-user .member-head .member-close{cursor:pointer}.project-dialog .dialog-user .member-head .member-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}.project-dialog .dialog-user .member-head .member-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}.project-dialog .dialog-user .member-list{display:flex;align-items:center;margin-top:12px;padding:0 22px;overflow:auto}.project-dialog .dialog-user .member-list::-webkit-scrollbar{display:none}.project-dialog .dialog-user .member-list>li{position:relative;list-style:none;margin-right:10px;margin-bottom:8px}.project-dialog .dialog-user .member-list.member-all{display:block}.project-dialog .dialog-user .member-list.member-all>li{display:inline-block;overflow:hidden}.project-dialog .dialog-nav .nav-wrapper{padding:0 20px}.project-gstc-gantt{position:absolute;top:15px;left:15px;right:15px;bottom:15px;z-index:1;transform:translateZ(0);background-color:#fdfdfd;border-radius:3px;overflow:hidden}.project-gstc-gantt .project-gstc-dropdown-filtr{position:absolute;top:38px;left:222px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon{cursor:pointer;color:#999;font-size:20px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon.filtr{color:#058ce4}.project-gstc-gantt .project-gstc-close{position:absolute;top:8px;left:12px;cursor:pointer}.project-gstc-gantt .project-gstc-close:hover i{transform:scale(1) rotate(45deg)}.project-gstc-gantt .project-gstc-close i{color:#606266;font-size:28px;transform:scale(.92);transition:all .2s}.project-gstc-gantt .project-gstc-edit{position:absolute;bottom:6px;right:6px;background:#ffffff;border-radius:4px;opacity:0;transform:translate(120%);transition:all .2s}.project-gstc-gantt .project-gstc-edit.visible{opacity:1;transform:translate(0)}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-info{display:block}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-small{display:none}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info{display:none;border:1px solid #e4e4e4;background:#ffffff;padding:6px;border-radius:4px;width:500px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns{margin:12px 6px 4px;display:flex;align-items:center;justify-content:flex-end}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .ivu-btn{margin-right:8px;font-size:13px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom{font-size:20px;color:#444;cursor:pointer}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small{border:1px solid #e4e4e4;background:#ffffff;padding:6px 12px;display:flex;align-items:center}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text{cursor:pointer;text-decoration:underline;color:#444;margin-right:8px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .ivu-btn{margin-left:4px;font-size:13px}.project-gstc-gantt .ivu-dropdown-item.dropdown-active{color:#058ce4}.project-list{flex:1;height:100%;display:flex;flex-direction:column;align-items:flex-start}.project-list .list-search{width:100%;flex-shrink:0;display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;background-color:#f8f8f8}.project-list .list-search .search-wrapper{flex:1;background-color:#fff;padding:0 6px;margin:0 4px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}.project-list .list-search .search-wrapper .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.project-list .list-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.project-list .list-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.project-list .list-search .search-wrapper .ivu-input:hover,.project-list .list-search .search-wrapper .ivu-input:focus{box-shadow:none}.project-list>ul{flex:1;height:0;width:100%;overflow:auto;background-color:#f8f8f8;-webkit-user-select:none;-moz-user-select:none;user-select:none}.project-list>ul>li{padding:16px;margin:16px;border-radius:12px;background-color:#fff;list-style:none;position:relative}.project-list>ul>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none;border-radius:12px}.project-list>ul>li.nothing,.project-list>ul>li.loading{text-align:center;height:100%;margin:0;padding:24px;border-radius:0;line-height:22px}.project-list>ul>li.loading{display:flex;align-items:flex-start;justify-content:center}.project-list>ul>li.loading .common-loading{width:20px;height:20px;margin:1px}.project-list>ul>li.operate:before{display:block}.project-list>ul>li .project-item{display:flex;align-items:center}.project-list>ul>li .project-item .item-left{flex:1;width:0}.project-list>ul>li .project-item .item-left .project-h1{display:flex;align-items:flex-start}.project-list>ul>li .project-item .item-left .project-h1 .project-name{font-size:14px;line-height:22px;color:#303133;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.project-list>ul>li .project-item .item-left .project-h1 .icon-top{margin-top:4px;margin-left:6px;flex-shrink:0;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.project-list>ul>li .project-item .item-left .project-h1 .num{margin-top:1px;margin-left:6px;flex-shrink:0;font-style:normal;display:inline-block;background-color:#fd9c9b26;color:#ff7559;padding:0 5px;min-width:10px;height:20px;line-height:20px;text-align:center;border-radius:10px;box-sizing:content-box;font-weight:500;font-size:14px;white-space:nowrap}.project-list>ul>li .project-item .item-left .project-h2{margin-top:4px;line-height:20px;font-size:12px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#909399}.project-list>ul>li .project-item .item-right{flex-shrink:0;display:flex;align-items:center;margin-left:28px}.project-list>ul>li .project-item .item-right .ivu-chart-circle .ivu-icon{font-size:40px;font-weight:900;color:#84c56a33}.project-list>ul>li .project-item .item-right .ivu-chart-circle .percent-text{color:#84c56a;font-weight:500}.project-list .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.project-log .log-title{display:none}.project-log.is-drawer{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;overflow:auto}.project-log.is-drawer .log-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px}.project-log .logs-activity{position:relative;word-break:break-all;padding:12px}.project-log .logs-activity>li{list-style:none;padding-top:0}.project-log .logs-activity>li.logs-loading,.project-log .logs-activity>li.logs-more,.project-log .logs-activity>li.logs-none{height:22px;line-height:22px}.project-log .logs-activity>li.logs-loading{display:flex}.project-log .logs-activity>li.logs-loading .common-loading{margin:0}.project-log .logs-activity>li.logs-more{cursor:pointer}.project-log .logs-activity>li.logs-more:hover{color:#048be0}.project-log .logs-activity>li.logs-none{cursor:pointer;color:#bbb}.project-log .logs-activity>li .logs-date{color:#0000005c;padding-bottom:14px}.project-log .logs-activity>li .logs-section{margin:4px}.project-log .logs-activity>li .logs-section .ivu-timeline>li{padding-bottom:8px}.project-log .logs-activity>li .logs-section .ivu-timeline>li:last-child{padding-bottom:0}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-head-custom{position:static;left:auto;margin-top:8px;margin-left:-13px;margin-right:6px;width:auto;min-width:40px}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-content{padding-left:20px;margin-top:-5px}.project-log .logs-activity>li .logs-dot{width:auto;height:18px;margin-left:10px;display:flex}.project-log .logs-activity>li .logs-dot .avatar-name.auto{color:#9599a1}.project-log .logs-activity>li .log-summary{position:relative;padding:4px 0 4px 12px}.project-log .logs-activity>li .log-summary>span,.project-log .logs-activity>li .log-summary>a{padding-right:6px;word-wrap:break-word;word-break:break-word}.project-log .logs-activity>li .log-summary .log-text{display:inline-block;color:#000000b8}.project-log .logs-activity>li .log-summary .log-text .change-value:hover{border-bottom:1px dotted rgba(0,0,0,.3)}.project-log .logs-activity>li .log-summary .log-text .detail-user{display:inline-block;vertical-align:top}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap{display:flex}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap .common-avatar{margin:0 2px}.project-log .logs-activity>li .log-summary .log-operation>button{font-size:12px}.project-log .logs-activity>li .log-summary .log-operation>button+button{margin-left:4px}.project-log .logs-activity>li .log-summary .log-time{color:#0000004d;font-size:12px}.project-log .logs-activity>li .log-task{margin-left:12px;margin-bottom:6px;opacity:.6;cursor:pointer}.project-log .logs-activity>li .log-task:hover{opacity:1}.project-log .logs-activity>li .log-task:hover>em{color:#84c56a}.project-log .logs-activity>li .log-task>em{display:inline-block;font-style:normal;font-size:12px;line-height:18px;height:18px;max-width:100%;color:#909399;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-management .management-title .title-icon>i{cursor:pointer}.project-management .project-name{display:flex;align-items:center}.project-management .project-name .ivu-tag{height:18px;line-height:18px;padding:0 4px;transform:scale(.8);transform-origin:right center;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management .project-percent{line-height:1}.project-management .project-percent .ivu-progress{margin-top:2px}.project-management .table-page-box{flex:1;height:0}.project-panel{display:flex!important;flex-direction:column}.project-panel .project-titbox{width:100%;padding:32px 32px 4px}.project-panel .project-titbox .project-title{float:left;display:flex;align-items:center;margin-bottom:8px}.project-panel .project-titbox .project-title .project-back{display:none}.project-panel .project-titbox .project-title>h1{color:#303133;font-size:28px;font-weight:600}.project-panel .project-titbox .project-title .project-load{display:flex;align-items:center;margin-left:18px}.project-panel .project-titbox .project-title .project-load .common-loading{width:22px;height:22px}.project-panel .project-titbox .project-icons{float:right;display:flex;align-items:center;margin-top:3px;margin-bottom:8px}.project-panel .project-titbox .project-icons>li{list-style:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;position:relative;margin-left:16px;cursor:pointer;transition:box-shadow .3s}.project-panel .project-titbox .project-icons>li:hover{box-shadow:0 0 6px #ccc}.project-panel .project-titbox .project-icons>li.cursor-default{cursor:default}.project-panel .project-titbox .project-icons>li.project-avatar{width:auto;min-width:36px}.project-panel .project-titbox .project-icons>li.project-avatar:hover{box-shadow:none}.project-panel .project-titbox .project-icons>li.project-avatar>ul{display:flex;align-items:center}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li{list-style:none;margin-left:-6px;transition:transform .2s}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li .ivu-badge{position:absolute;top:-5px;left:23px;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:hover{transform:scale(1.05)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:first-child{margin-left:0}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li.more{display:flex;align-items:center;justify-content:center;font-size:17px;width:30px;height:32px;color:#aaa;background-color:transparent;border-color:transparent;transform:scale(1)!important;z-index:1}.project-panel .project-titbox .project-icons>li.project-icon{border-radius:50%;background-color:#f2f3f5}.project-panel .project-titbox .project-icons>li.project-icon .menu-icon{font-size:20px;width:36px;height:36px;line-height:36px}.project-panel .project-titbox .project-icons>li.project-icon .menu-badge{position:absolute;top:-6px;left:20px;z-index:1;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-icon .search-input{margin:2px 0;width:170px}.project-panel .project-titbox .project-icons>li.project-icon.active{color:#fff;background-color:#84c56a}.project-panel .project-subbox{width:100%;padding:0 32px}.project-panel .project-subbox .project-subtitle{float:left;color:#909399;line-height:1.5;margin:8px 0 7px;max-height:220px;overflow:auto}.project-panel .project-subbox .project-switch{float:right;margin:3px 0 3px 32px;display:flex;align-items:flex-end}.project-panel .project-subbox .project-switch .project-checkbox{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-checkbox .ivu-checkbox-focus{box-shadow:none}.project-panel .project-subbox .project-switch .project-select{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-select .project-flow{font-size:13px;height:28px;line-height:26px;padding:0 8px;border-radius:4px;background:#f7f7f7;border:1px solid #e8eaec;display:flex;align-items:center;justify-content:center;cursor:pointer}.project-panel .project-subbox .project-switch .project-select .project-flow.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-subbox .project-switch .project-select .project-flow.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-subbox .project-switch .project-select .project-flow.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-subbox .project-switch .project-select .project-flow.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-subbox .project-switch .project-switch-button{display:flex;align-items:center;background-color:#fff;border-radius:6px;height:30px;position:relative;transition:all .2s}.project-panel .project-subbox .project-switch .project-switch-button .active{color:#84c56a}.project-panel .project-subbox .project-switch .project-switch-button .slider{position:absolute;top:0;left:0;width:33.3%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.project-panel .project-subbox .project-switch .project-switch-button:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-subbox .project-switch .project-switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.project-panel .project-subbox .project-switch .project-switch-button>div>i{font-size:17px}.project-panel .project-column{display:flex;height:100%;padding-top:15px;overflow-x:auto;overflow-y:hidden}.project-panel .project-column>ul{display:inline-flex;justify-content:space-between;align-items:flex-start}.project-panel .project-column>ul>li{flex-shrink:0;list-style:none;width:300px;height:100%;display:flex;flex-direction:column}.project-panel .project-column>ul>li:first-child{margin-left:22px}.project-panel .project-column>ul>li:last-child{margin-right:22px}.project-panel .project-column>ul>li.add-column{height:36px;color:#888;cursor:pointer;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li.add-column .add-column-text{display:flex;flex-direction:row;align-items:center;line-height:36px;padding:0 12px}.project-panel .project-column>ul>li.add-column .add-column-text>i{font-size:16px;padding-right:8px}.project-panel .project-column>ul>li.add-column .add-column-text:hover{color:#777}.project-panel .project-column>ul>li.add-column .add-column-input{display:none;align-items:center;height:36px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input{height:36px;padding:4px 10px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input-icon{width:36px;height:36px;line-height:36px}.project-panel .project-column>ul>li.add-column.show-input .add-column-text{display:none}.project-panel .project-column>ul>li.add-column.show-input .add-column-input{display:flex}.project-panel .project-column>ul>li .column-head{display:flex;align-items:center;padding:7px 10px;margin:0 10px;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li .column-head .column-head-title{flex:1;width:0;display:flex;align-items:center;font-weight:500}.project-panel .project-column>ul>li .column-head .column-head-title>span{font-size:15px}.project-panel .project-column>ul>li .column-head .column-head-title>em{color:#888;font-style:normal;font-size:14px;padding-left:6px}.project-panel .project-column>ul>li .column-head .column-head-icon{display:flex;align-items:center;margin-left:16px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding-right:8px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading .common-loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{cursor:pointer;font-size:16px;color:#aaa;font-weight:600;transition:color .3s}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon:hover{color:#888}.project-panel .project-column>ul>li .column-head .column-head-icon .last{padding-right:0}.project-panel .project-column>ul>li .column-head.custom-color{color:#fff}.project-panel .project-column>ul>li .column-head.custom-color .column-head-title>em{color:#fff9}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon{color:#ffffff80}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon:hover{color:#ffffffe6}.project-panel .project-column>ul>li .column-task{flex:1;display:flex;flex-direction:column}.project-panel .project-column>ul>li .column-task .task-list>div:last-child{margin-bottom:16px}.project-panel .project-column>ul>li .column-task .task-item{cursor:pointer;margin:16px 10px 0;background-color:#fff;border-radius:12px;padding:12px;transition:box-shadow .3s,opacity .3s;position:relative}.project-panel .project-column>ul>li .column-task .task-item:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-column>ul>li .column-task .task-item .task-head{display:flex;align-items:flex-start}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title{flex:1;padding-top:1px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span{float:left;font-size:12px;height:20px;line-height:18px;padding:0 3px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:4px;text-align:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>pre{display:block;margin:0;padding:0;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;word-break:break-word}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu{margin-left:8px;width:22px;height:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading .common-loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{font-size:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete{color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete:hover{color:#555}.project-panel .project-column>ul>li .column-task .task-item .task-head.has-desc .task-title{font-weight:600}.project-panel .project-column>ul>li .column-task .task-item .task-desc>pre{color:#909399;padding:0;margin:10px 0 0;line-height:20px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-panel .project-column>ul>li .column-task .task-item .task-tags{margin-top:10px}.project-panel .project-column>ul>li .column-task .task-item .task-users{margin-top:10px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul{flex:1;width:0;display:flex;align-items:center;overflow:auto;margin-right:24px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul::-webkit-scrollbar{display:none}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li{list-style:none;margin-left:-6px;width:32px;height:32px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li:first-child{margin-left:0}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner{width:auto}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner .ivu-btn-small{font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon{margin-left:6px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon .ivu-icon{margin-left:1px;font-size:14px}.project-panel .project-column>ul>li .column-task .task-item .task-progress{margin-top:10px;display:flex;align-items:center;justify-content:flex-end}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-sub-num{font-size:12px;margin-right:8px;color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time{flex-shrink:0;color:#777;background-color:#eaedf2;border:1px solid #EAEDF2;padding:0 3px;margin-left:18px;font-size:12px;border-radius:3px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue,.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#fff}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time .taskfont{margin-right:3px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .priority-color{position:absolute;top:12px;left:0;width:3px;height:42px;max-height:50%;border-radius:2px}.project-panel .project-column>ul>li .column-task .task-item.additem{cursor:default;padding:0}.project-panel .project-column>ul>li .column-task .task-item.complete{opacity:.5}.project-panel .project-column>ul>li .column-task .task-item.complete:hover{opacity:.8}.project-panel .project-column>ul>li .column-task .task-item.complete .task-head .task-title{text-decoration:line-through}.project-panel .project-column>ul>li .column-task .task-item.hidden{display:none}.project-panel .project-table{height:100%;margin-top:18px}.project-panel .project-table .task-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.project-panel .project-table .task-row>div{display:flex;align-items:center;padding:8px 12px;border-right:1px solid #F4F4F5}.project-panel .project-table .task-row>div:first-child{padding-left:32px}.project-panel .project-table .task-row>div:last-child{border-right:0}.project-panel .project-table .task-row>div.complete .item-title{color:#aaa;text-decoration:line-through}.project-panel .project-table .task-row .priority-color{position:absolute;top:0;left:0;bottom:-1px;width:3px}.project-panel .project-table .project-table-head,.project-panel .project-table .project-table-body{min-width:800px;margin:0 32px 12px;border-radius:5px;border:1px solid #F4F4F5;border-bottom:0;overflow:hidden}.project-panel .project-table .project-table-head.project-table-hide .task-rows,.project-panel .project-table .project-table-body.project-table-hide .task-rows{display:none}.project-panel .project-table .project-table-head.project-table-hide .row-title .taskfont,.project-panel .project-table .project-table-body.project-table-hide .row-title .taskfont{transform:rotate(-90deg)}.project-panel .project-table .project-table-head .task-row>div{color:#888;font-size:13px;font-weight:500}.project-panel .project-table .project-table-head .task-row>div .sort{display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-head .task-row>div .head-title{white-space:nowrap}.project-panel .project-table .project-table-head .task-row>div .task-sort{display:inline-block;width:14px;height:12px;margin-top:-1px;margin-left:1px;vertical-align:middle;overflow:hidden;cursor:pointer;position:relative}.project-panel .project-table .project-table-head .task-row>div .task-sort>i{display:block;height:6px;line-height:6px;overflow:hidden;position:absolute;color:#c5c8ce;transition:color .2s ease-in-out;font-size:16px}.project-panel .project-table .project-table-head .task-row>div .task-sort>i.on{color:#84c56a}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:hover{color:inherit}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:first-child{top:0}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:last-child{bottom:0}.project-panel .project-table .project-table-body{transition:box-shadow .3s}.project-panel .project-table .project-table-body:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-table .project-table-body .task-row>div{padding:10px 12px}.project-panel .project-table .project-table-body .task-row>div.row-title{font-size:14px;font-weight:500;color:#303133;padding-left:14px}.project-panel .project-table .project-table-body .task-row>div.row-title .taskfont{cursor:pointer;transition:transform .3s;font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-h1{padding-left:18px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-num{color:#909399;padding-left:6px}.project-panel .project-table .project-table-body .task-row>div.row-name{align-items:flex-start;padding:12px 12px 12px 34px;line-height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .loading{height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon{cursor:pointer;font-size:16px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon{font-size:16px;width:16px;height:16px;margin-top:4px;margin-left:-20px;margin-right:4px;color:#cfcfcf;transition:transform .2s}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon.active{transform:rotate(90deg)}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.uncomplete{color:#ccc}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title{flex:1;padding:0 22px 0 8px;cursor:pointer;word-break:break-all}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons{display:flex;align-items:center;margin-left:4px;flex-shrink:0}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon{display:flex;font-size:12px;margin-left:16px;color:#aaa;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon .taskfont{font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon>em{font-style:normal;margin-left:4px}.project-panel .project-table .project-table-body .task-row>div.row-column .el-dropdown,.project-panel .project-table .project-table-body .task-row>div.row-priority .el-dropdown{display:flex;align-items:center;overflow:hidden}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column,.project-panel .project-table .project-table-body .task-row>div.row-column .task-priority,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-column,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-priority{cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-panel .project-table .project-table-body .task-row>div.row-user{padding:8px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li{max-width:100%;list-style:none;display:inline-block;margin-left:-6px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li:first-child{margin-left:0}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li.no-owner{height:32px;display:flex;align-items:center}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue,.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#fff;padding:0 4px;border:1px solid transparent;font-size:13px;border-radius:3px}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-table .project-table-body .task-rows .task-rows{position:relative;overflow:hidden}.project-panel .project-table .project-table-body .task-rows .task-rows:before{content:"";position:absolute;top:0;left:0;right:0;box-shadow:#00000014 0 0 8px 1px;z-index:1}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row .priority-color{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name{padding-left:56px}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name .item-title{color:#6b6e72}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-column>div,.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-priority>div{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row>div.row-add{padding-left:56px}.project-panel .project-gantt{height:100%;position:relative}.project-panel-more-dropdown-menu>li .item{display:flex;align-items:center}.project-panel-more-dropdown-menu>li .item>i{width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.project-panel-more-dropdown-menu>li .item>i.ivu-icon{font-size:16px}.project-panel-wait-remove{margin-top:6px}.project-panel-wait-remove>li{display:flex;align-items:center;list-style:none;line-height:26px}.project-panel-wait-remove>li:first-child{font-weight:600}.project-panel-flow-cascader{max-height:none!important}.project-panel-flow-cascader .ivu-cascader-menu{height:auto;max-height:360px;overflow:auto}.project-panel-flow-cascader .ivu-cascader-menu-item{color:#606266!important}.project-panel-flow-cascader .ivu-cascader-menu-item.start{color:#ff7070!important}.project-panel-flow-cascader .ivu-cascader-menu-item.progress{color:#fc984b!important}.project-panel-flow-cascader .ivu-cascader-menu-item.test{color:#2f99ec!important}.project-panel-flow-cascader .ivu-cascader-menu-item.end{color:#0bc037!important}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0{margin-top:12px;position:relative}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0:before{content:"";position:absolute;top:-6px;left:0;right:0;border-top:1px solid #EBEEF5}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.start,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.start{background-color:#ff70701a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.progress,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.progress{background-color:#fc984b1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.test,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.test{background-color:#2f99ec1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.end,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.end{background-color:#0bc0371a}body.window-portrait .project-panel .project-titbox{position:sticky;top:0;z-index:2;background-color:#fafafa;padding:12px 16px 4px}body.window-portrait .project-panel .project-titbox .project-title{float:left;max-width:100%}body.window-portrait .project-panel .project-titbox .project-title .project-back{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:-16px;width:52px}body.window-portrait .project-panel .project-titbox .project-title .project-back>i{font-size:26px}body.window-portrait .project-panel .project-titbox .project-title>h1{font-size:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}body.window-portrait .project-panel .project-titbox .project-icons{float:right;margin-left:24px;margin-top:4px;justify-content:flex-end}body.window-portrait .project-panel .project-subbox{padding:0 16px}body.window-portrait .project-panel .project-subbox .project-subtitle{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}body.window-portrait .project-panel .project-subbox .project-switch{margin-left:0;justify-content:flex-end}body.window-portrait .project-panel .project-column::-webkit-scrollbar{display:none}body.window-portrait .project-panel .project-column>ul>li{width:320px}body.window-portrait .project-panel .project-column>ul>li:first-child{margin-left:10px}body.window-portrait .project-panel .project-column>ul>li:last-child{margin-right:10px}body.window-portrait .project-panel .project-table .project-table-head,body.window-portrait .project-panel .project-table .project-table-body{min-width:720px;margin:0 24px 12px}.project-workflow{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.project-workflow .workflow-title{color:#303133;font-size:20px;font-weight:500;line-height:1;padding:20px 20px 24px;display:flex;align-items:center}.project-workflow .workflow-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-workflow .workflow-title .title-icon>i{cursor:pointer}.project-workflow .workflow-content{flex:1;padding:0 20px;overflow:auto;margin-bottom:20px;height:100%}.project-workflow .workflow-content .ivu-collapse{min-width:700px;height:100%}.project-workflow .workflow-content .ivu-collapse .ivu-collapse-item{height:100%}.project-workflow .workflow-content .ivu-collapse .ivu-collapse-item .ivu-collapse-content{height:calc(100% - 38px);overflow:auto}.project-workflow .workflow-content .ivu-collapse-header{display:flex;align-items:center}.project-workflow .workflow-content .workflow-item{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-name{flex-shrink:0;margin-right:24px}.project-workflow .workflow-content .workflow-item .workflow-status{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-status>div{height:24px;line-height:22px;margin-right:8px;padding:0 8px;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;overflow:hidden}.project-workflow .workflow-content .workflow-item .workflow-status>div.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-workflow .workflow-content .workflow-item .workflow-status>div.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-workflow .workflow-content .workflow-item .workflow-status>div.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-workflow .workflow-content .workflow-item .workflow-status>div.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-workflow .workflow-content .workflow-item .workflow-save{margin:0 8px;flex-shrink:0}.project-workflow .workflow-content .workflow-item .workflow-save>button{height:26px;line-height:24px;padding:0 13px;font-size:13px;margin-right:4px}.project-workflow .workflow-no{flex:1;padding:0 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999}.project-workflow .workflow-no>button{margin-top:18px}.project-workflow .taskflow-config{display:flex;max-height:100%}.project-workflow .taskflow-config .taskflow-config-table{display:flex;width:100%;border-radius:4px;box-shadow:1px 0 3px #0000001a}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container{position:relative;flex-shrink:0;width:246px;padding-top:16px;padding-bottom:16px;overflow-x:scroll;-ms-overflow-style:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container:after{content:"";position:absolute;top:0;right:0;bottom:0;z-index:1;border-right:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header{position:absolute;top:0;left:0;right:0;height:58px;padding:0 20px;font-size:16px;font-weight:700;line-height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header.left-header{top:16px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-body{margin-top:58px;height:calc(100% - 58px)}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block{width:100%;padding:12px 0}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr{position:relative}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr:after{content:"";position:absolute;top:0;left:0;right:0;z-index:1;border-top:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-title{padding:0 20px;height:40px;color:#8c8c8c;line-height:40px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group .ivu-radio-group-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group .ivu-checkbox-group-item,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.with-indicator:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:20px;width:4px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .title{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .subtitle{margin-top:2px;font-size:12px;color:#8c8c8c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.center{align-items:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.radio-item>span{display:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .transform-status-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{flex-grow:1;flex-direction:row;padding-top:16px;padding-bottom:16px;overflow-x:auto;overflow-y:hidden}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-list-wrapper,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{display:flex}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column{position:relative;flex-shrink:0;width:210px;height:100%;margin-bottom:16px;margin-right:16px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:first-child{margin-left:20px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:hover .status-label-with-menu .more{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #d9d9d9;cursor:pointer;color:#8c8c8c}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew:hover{color:#777;border-color:#bfbfbf}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.column-border{border-width:1px;border-style:solid}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start{border-color:#ff707033}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start:hover{border-color:#ff7070b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-checked .ivu-radio-inner{border-color:#ff7070;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-inner:after{background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#ff7070;background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress{border-color:#fc984b33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress:hover{border-color:#fc984bb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-checked .ivu-radio-inner{border-color:#fc984b;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-inner:after{background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#fc984b;background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test{border-color:#2f99ec33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test:hover{border-color:#2f99ecb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-checked .ivu-radio-inner{border-color:#2f99ec;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-inner:after{background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#2f99ec;background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end{border-color:#0bc03733}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end:hover{border-color:#0bc037b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-checked .ivu-radio-inner{border-color:#0bc037;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-inner:after{background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#0bc037;background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column .ivu-checkbox-disabled.ivu-checkbox-checked .ivu-checkbox-inner{background-color:#f3f3f3!important;border-color:#dcdee2!important}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-item{display:flex;align-items:center;padding:8px;height:58px;line-height:58px;cursor:move}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu{max-width:100%;display:inline-flex;align-items:center;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;padding:0 32px;width:200px;height:36px;line-height:32px;font-size:14px;font-weight:400;justify-content:center}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu:hover{font-weight:700}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.start{background-color:#ff70701a;color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.progress{background-color:#fc984b1a;color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.test{background-color:#2f99ec1a;color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.end{background-color:#0bc0371a;color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more{cursor:pointer;position:absolute;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:38px;font-size:18px;font-weight:400!important;opacity:.2;transition:opacity,transform .3s}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more.opacity{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more:hover{transform:scale(1.1)}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more .more-icon{display:flex;align-items:center}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more .more-icon .ivu-badge-dot{top:4px;right:-6px;width:6px;height:6px}.workflow-setting-box{position:relative;padding:44px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}.workflow-setting-box:hover{box-shadow:0 0 10px #e6ecfa}.workflow-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.workflow-setting-box .form-box{overflow:auto}.workflow-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.workflow-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.workflow-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .users{display:flex;padding:6px 0;margin:0 -8px;overflow:auto}.taskflow-config-more-dropdown-menu .users .common-avatar{max-width:100%;margin-right:-5px}.taskflow-config-more-dropdown-menu .item{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .item .ivu-badge-dot{top:4px}.taskflow-config-more-dropdown-menu .delete{color:red}.project-permission{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.project-permission .permission-title{color:#303133;font-size:20px;font-weight:500;line-height:1;padding:20px 20px 24px;display:flex;align-items:center}.project-permission .permission-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-permission .permission-title .title-icon>i{cursor:pointer}.project-permission .permission-content{flex:1;padding:0 25px;overflow:auto;margin-bottom:20px;height:100%;position:relative}.project-permission .permission-content .project-permission-title{font-weight:500;padding:20px 0 10px}.project-permission .permission-content .ivu-form-item{margin-bottom:5px}.project-permission .permission-content .form-placeholder{font-size:12px;color:#999}.project-permission .project-permission-footer{flex-shrink:0;position:static;padding:16px 26px;border-top:1px solid #F4F4F5;display:flex;align-items:center;gap:16px}.project-permission .project-permission-footer button{min-width:120px;height:38px;line-height:36px}body.window-portrait .project-permission .project-permission-footer button{width:50%}.task-add{position:relative}.task-add .head{display:flex;align-items:center;padding:8px 0;margin-bottom:20px;position:relative}.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (max-width: 600px){.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:200px}}@media (max-width: 400px){.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:160px}}@media (max-width: 320px){.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:100px}}.task-add .head .ivu-cascader .ivu-cascader-label{width:auto;padding:0;font-size:15px;display:flex;align-items:center}.task-add .head .ivu-cascader .ivu-cascader-label:after{transition:all .2s;padding:6px;font-family:Ionicons,serif;content:"\f116";opacity:1}.task-add .head .ivu-cascader .ivu-cascader-arrow{display:none}.task-add .head .ivu-cascader .ivu-input{padding:4px 0;border:0;box-shadow:none;font-size:15px}.task-add .head .ivu-cascader .ivu-cascader-not-found-tip{padding:6px 12px}.task-add .head.empty .ivu-cascader .ivu-cascader-label:after{opacity:0}.task-add .head.visible .ivu-cascader .ivu-cascader-label:after{transform:rotate(180deg)}.task-add .task-add-form .calculate-dropdown,.task-add .task-add-advanced .calculate-dropdown{position:absolute;top:0;left:0;right:0;bottom:0;width:0;height:0;z-index:-1;pointer-events:none}.task-add .task-add-form .title .ivu-input,.task-add .task-add-advanced .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-add .task-add-form .title .ivu-input:focus,.task-add .task-add-advanced .title .ivu-input:focus{box-shadow:none}.task-add .task-add-form .desc,.task-add .task-add-advanced .desc{margin-top:24px}.task-add .task-add-form .desc div[contenteditable=true],.task-add .task-add-advanced .desc div[contenteditable=true]{outline:none}.task-add .task-add-form .desc .mce-content-body img,.task-add .task-add-advanced .desc .mce-content-body img{max-width:100%}.task-add .task-add-form .desc .mce-content-body pre,.task-add .task-add-advanced .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-add .task-add-form .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before,.task-add .task-add-advanced .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-add .task-add-form .advanced-option,.task-add .task-add-advanced .advanced-option{padding-top:42px;z-index:1;display:flex;align-items:center}.task-add .task-add-form .advanced-option.advanced-open>button,.task-add .task-add-advanced .advanced-option.advanced-open>button{margin-left:24px}.task-add .task-add-form .advanced-option>button,.task-add .task-add-advanced .advanced-option>button{transition:margin .2s}.task-add .task-add-form .advanced-option>button:focus,.task-add .task-add-advanced .advanced-option>button:focus{box-shadow:none}.task-add .task-add-form .advanced-option .advanced-priority,.task-add .task-add-advanced .advanced-option .advanced-priority{display:flex;align-items:center;margin-left:24px;height:34px;overflow-y:hidden;overflow-x:auto}.task-add .task-add-form .advanced-option .advanced-priority::-webkit-scrollbar,.task-add .task-add-advanced .advanced-option .advanced-priority::-webkit-scrollbar{display:none}.task-add .task-add-form .advanced-option .advanced-priority>li,.task-add .task-add-advanced .advanced-option .advanced-priority>li{list-style:none;margin-left:3px}.task-add .task-add-form .advanced-option .advanced-priority>li .taskfont,.task-add .task-add-advanced .advanced-option .advanced-priority>li .taskfont{font-size:34px;cursor:pointer}.task-add .task-add-form .advanced-option .advanced-time,.task-add .task-add-advanced .advanced-option .advanced-time{display:flex;align-items:center;margin-left:20px;position:relative;cursor:pointer;transition:margin .2s}.task-add .task-add-form .advanced-option .advanced-time .ivu-icon,.task-add .task-add-advanced .advanced-option .advanced-time .ivu-icon{font-size:32px}.task-add .task-add-form .advanced-option .advanced-time>em,.task-add .task-add-advanced .advanced-option .advanced-time>em{position:absolute;top:-5px;left:16px;font-family:Monospaced Number,"serif";transform:scale(.8);height:20px;min-width:20px;line-height:20px;border-radius:10px;background:#84C56A;color:#fff;text-align:center;padding:0 6px;font-size:12px;font-style:normal;white-space:nowrap;box-shadow:0 0 0 1px #fff}.task-add .task-add-form .visibility-text,.task-add .task-add-advanced .visibility-text{cursor:pointer}.task-add .task-add-form .visibility-text.color,.task-add .task-add-advanced .visibility-text.color{color:#bbb}.task-add .task-add-form .visibility-text .taskfont,.task-add .task-add-advanced .visibility-text .taskfont{display:inline-block;transform:scale(.9);opacity:.8;font-size:12px;margin-right:0}.task-add .task-add-form .task-add-visibility,.task-add .task-add-advanced .task-add-visibility{cursor:pointer;color:#909399b3}.task-add .task-add-advanced{margin:-16px 0 0;padding:46px 32px 6px;border-radius:8px;border:1px solid #e8e8e8}.task-add .task-add-advanced .subtasks{margin-bottom:24px;padding:12px 16px;border-radius:6px;background-color:#f8f8f8}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input{background:transparent;border-color:transparent}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:hover,.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:focus{box-shadow:none}.task-add .task-add-advanced .subtasks .sublist .ivu-row{margin-bottom:12px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div{padding-right:7px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div:last-child{padding-right:0}.task-add .task-add-advanced .ivu-date-picker{width:100%}.task-add .ivu-modal-footer{padding:26px 0 22px!important}body.window-portrait .task-add .task-add-form .advanced-option,body.window-portrait .task-add .task-add-advanced .advanced-option{width:calc(100% + 8px);padding-right:8px;justify-content:space-between}body.window-portrait .task-add .task-add-form .advanced-option.advanced-open>button,body.window-portrait .task-add .task-add-advanced .advanced-option.advanced-open>button{margin-left:8px}body.window-portrait .task-add .task-add-form .advanced-option.advanced-open .advanced-time,body.window-portrait .task-add .task-add-advanced .advanced-option.advanced-open .advanced-time{margin-right:4px}body.window-portrait .task-add .task-add-form .advanced-option .advanced-priority,body.window-portrait .task-add .task-add-advanced .advanced-option .advanced-priority{margin-left:8px}body.window-portrait .task-add .task-add-form .advanced-option .advanced-time,body.window-portrait .task-add .task-add-advanced .advanced-option .advanced-time{margin-left:4px}.task-add-simple{padding:12px}.task-add-simple .ivu-input-wrapper{display:none}.task-add-simple .add-placeholder{cursor:pointer;color:#888;margin:-12px;padding:12px}.task-add-simple .add-placeholder .ivu-icon{margin-right:4px}.task-add-simple .add-placeholder:hover{color:#606266}.task-add-simple .priority{display:none;align-items:center;min-height:22px;margin-top:10px;margin-bottom:-3px}.task-add-simple .priority>ul{flex:1;display:flex;align-items:center}.task-add-simple .priority>ul>li{list-style:none;margin-right:3px}.task-add-simple .priority>ul>li .taskfont{font-size:22px;cursor:pointer}.task-add-simple .priority .ivu-icon{cursor:pointer;font-size:16px}.task-add-simple.active .ivu-input-wrapper{display:block}.task-add-simple.active .add-placeholder{display:none}.task-add-simple.active .priority{display:flex}.task-add-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.task-add-row>div{display:flex;padding:8px 12px;border-right:1px solid #F4F4F5}.task-add-row>div:last-child{border-right:0}.task-add-row>div.row-add{display:flex;flex-direction:column;justify-content:center;min-height:48px;padding-left:34px}.task-add-row>div.row-add .add-btn{display:block;cursor:pointer;opacity:.5;transition:opacity .3s}.task-add-row>div.row-add .add-btn .add-icon{font-size:16px;margin-right:8px}.task-add-row>div.row-add .add-btn:hover{opacity:1}.task-add-row>div.row-add .add-input{display:none;align-items:flex-start;border:1px solid #dcdee2;border-radius:4px;color:#606266;background-color:#fff}.task-add-row>div.row-add .add-input:hover{border-color:#57a3f3}.task-add-row>div.row-add .add-input textarea{border-color:transparent;resize:none}.task-add-row>div.row-add .add-input textarea:focus{box-shadow:none}.task-add-row>div.row-add .add-input .priority{margin:0 4px;display:flex;align-items:center;height:31px}.task-add-row>div.row-add .add-input .priority>ul{flex:1;display:flex;align-items:center}.task-add-row>div.row-add .add-input .priority>ul>li{list-style:none;margin-right:4px}.task-add-row>div.row-add .add-input .priority>ul>li .taskfont{font-size:17px;cursor:pointer}.task-add-row>div.row-add .add-input .priority .ivu-icon{cursor:pointer;font-size:15px;margin:0 5px 0 3px}.task-add-row>div.row-add.active{padding-top:7px;padding-bottom:7px}.task-add-row>div.row-add.active .add-btn{display:none}.task-add-row>div.row-add.active .add-input{display:flex}.task-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-archived .archived-title .title-icon>i{cursor:pointer}.task-archived .table-page-box{flex:1;height:0}.task-deleted{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-deleted .deleted-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-deleted .deleted-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-deleted .deleted-title .title-icon>i{cursor:pointer}.task-deleted .table-page-box{flex:1;height:0}.task-detail{display:flex;flex-direction:column;margin:0 -32px 12px -15px;padding:0 22px 10px 0;min-height:120px}.task-detail .task-info{flex:3;display:flex;flex-direction:column;position:relative;z-index:1}.task-detail .task-info .head{display:flex;align-items:center;height:42px;margin-left:5px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-info .head:before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-info .head .task-menu-icon{margin-right:18px;display:flex;align-items:center}.task-detail .task-info .head .task-menu-icon .ivu-icon{font-size:18px}.task-detail .task-info .head .task-menu-icon .loading{width:18px;height:18px}.task-detail .task-info .head .task-menu-icon .loading .common-loading{width:16px;height:16px}.task-detail .task-info .head .task-menu-icon .uncomplete{color:#888}.task-detail .task-info .head .flow{display:flex;align-items:center;margin-right:10px}.task-detail .task-info .head .flow>span{font-size:14px;height:26px;line-height:24px;padding:0 8px;border-radius:4px;color:#84c56a;border:1px solid #84C56A;display:inline-block;text-align:center;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.task-detail .task-info .head .flow>span.archived{background-color:#7f7f7f1a;border-color:#7f7f7f1a;color:#7f7f7f}.task-detail .task-info .head .flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .head .flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .head .flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .head .flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .head .nav{flex:1;display:flex;align-items:center;font-size:12px;width:0;height:40px;overflow:auto}.task-detail .task-info .head .nav::-webkit-scrollbar{display:none}.task-detail .task-info .head .nav>p{display:flex;align-items:center;padding-right:5px}.task-detail .task-info .head .nav>p>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .head .nav>p:after{content:"/";padding-left:5px}.task-detail .task-info .head .nav>p:last-child:after{display:none}.task-detail .task-info .head .function{display:flex;align-items:center;margin:0 32px}.task-detail .task-info .head .function .pick{margin-left:12px;margin-right:10px}.task-detail .task-info .head .function .open{margin-top:-2px;margin-left:12px;font-size:22px;cursor:pointer}.task-detail .task-info .head .function .menu{margin-left:12px;display:flex;align-items:center}.task-detail .task-info .head .function .menu .task-menu-icon{margin-right:0}.task-detail .task-info .head .function .menu .ivu-icon{font-size:22px;color:#606266}.task-detail .task-info .scroller{margin-right:-5px}.task-detail .task-info .scroller .scrollbar-content{padding:0 5px}.task-detail .task-info .scroller .title{margin-top:18px}.task-detail .task-info .scroller .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-detail .task-info .scroller .title .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .desc{margin-top:10px}.task-detail .task-info .scroller .desc div[contenteditable=true]{outline:none}.task-detail .task-info .scroller .desc .mce-content-body img{max-width:100%}.task-detail .task-info .scroller .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-detail .task-info .scroller .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-detail .task-info .scroller .items{margin-top:12px}.task-detail .task-info .scroller .items .ivu-form-item{margin-bottom:10px}.task-detail .task-info .scroller .items .item-label{display:flex;align-items:center;color:#bbb}.task-detail .task-info .scroller .items .item-label .taskfont{margin-right:4px}.task-detail .task-info .scroller .items .item-content{margin-top:5px;margin-left:12px}.task-detail .task-info .scroller .items .item-content>li{display:flex;align-items:center;list-style:none;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .el-dropdown{display:flex;cursor:pointer}.task-detail .task-info .scroller .items .item-content>li .task-priority{padding:0 7px}.task-detail .task-info .scroller .items .item-content>li .picker-time{display:flex;align-items:center;flex-wrap:wrap;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .picker-time .time{cursor:pointer;margin-right:10px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag{flex-shrink:0;margin-right:10px;padding:0 4px;height:20px;line-height:18px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text{display:flex;align-items:center}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text .taskfont{transform:scale(.9);font-size:14px;padding-right:3px}.task-detail .task-info .scroller .items .item-content.user{margin-top:1px}.task-detail .task-info .scroller .items .item-content.file{margin-bottom:-3px}.task-detail .task-info .scroller .items .item-content.file>li{margin-bottom:2px}.task-detail .task-info .scroller .items .item-content.file>li.tip{color:#999}.task-detail .task-info .scroller .items .item-content.file>li .file-load{margin:0;padding:2px;width:16px;height:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-ext{width:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-name{color:#606266;padding-left:8px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.task-detail .task-info .scroller .items .item-content.file>li .file-size{flex-shrink:0;padding-left:10px;height:24px;font-size:12px;color:#bbb}.task-detail .task-info .scroller .items .item-content.file>li .file-menu{display:flex;align-items:center;opacity:0;transition:all .3s;padding-left:12px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu.show{opacity:1}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i{font-size:14px;color:#aaa;transition:color .3s;cursor:pointer;padding:0 4px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i:hover{color:#777}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del{font-size:13px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del:hover{color:red}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-name{color:#303133}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-menu{opacity:1}.task-detail .task-info .scroller .items .item-content.subtask>li{align-items:flex-start;margin-bottom:4px}.task-detail .task-info .scroller .items .item-content.subtask>li:last-child{margin-bottom:-6px}.task-detail .task-info .scroller .items .item-content.subtask>li:hover .subtask-time .clock{transform:translate(0);opacity:.7}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-icon{padding-top:1px;width:16px;height:26px;line-height:26px;margin-right:6px;display:flex;align-items:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span{white-space:nowrap;font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;margin-right:3px;text-align:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name{flex:1;margin-right:8px;display:flex}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input{min-width:80px;margin:-2px 0;padding:4px 0;resize:none;border-color:transparent;line-height:20px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time{margin-right:8px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;height:26px;line-height:26px;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.overdue{font-weight:600;color:#ed4014}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.today{font-weight:500;color:#f90}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .clock{margin:3px 2px;font-size:20px;transition:all .2s;transform:translate(50%);opacity:0}.task-detail .task-info .scroller .items .item-content.subtask>li .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .items .item-content.nosub{margin-top:0}.task-detail .task-info .scroller .items .item-content.nosub>li .add-input,.task-detail .task-info .scroller .items .item-content.nosub>li .add-button{margin-top:-2px}.task-detail .task-info .scroller .items .visibility-text{cursor:pointer}.task-detail .task-info .scroller .items .visibility-text.color{color:#bbb}.task-detail .task-info .scroller .items .visibility-text .taskfont{display:inline-block;transform:scale(.9);font-size:12px;margin-right:0}.task-detail .task-info .scroller .add{margin-top:12px;margin-bottom:10px}.task-detail .task-info .scroller .add .el-dropdown{max-width:100%}.task-detail .task-info .scroller .add .el-dropdown .add-button>em{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.task-detail .task-info .scroller .add-input{margin-top:6px}.task-detail .task-info .scroller .add-input.loading .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .add-button{cursor:pointer;color:#bbb;display:flex;align-items:center;margin-top:6px;height:32px}.task-detail .task-info .scroller .add-button>i{font-size:14px;padding-right:8px}.task-detail .task-info .scroller .add-button>span{white-space:nowrap}.task-detail .task-info .scroller .add-button>em{font-style:normal;padding-left:4px}.task-detail .task-info .scroller .add-button>em:after{content:"/";padding-left:4px}.task-detail .task-info .scroller .add-button>em:last-child:after{display:none}.task-detail .task-info .scroller .add-button:hover{color:#909399}.task-detail .task-info .scroller .calculate-dropdown{position:absolute;top:0;left:0;right:0;bottom:0;width:0;height:0;z-index:-1;pointer-events:none}.task-detail .task-info .scroller .calculate-dropdown .calculate-content{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%}.task-detail .task-info .upload{display:none}.task-detail .task-dialog{flex:2;flex-shrink:0;display:flex;flex-direction:column;justify-content:flex-end;margin-top:22px;position:relative;z-index:1}.task-detail .task-dialog .head{display:flex;align-items:center;height:42px;margin-left:5px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-dialog .head:before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-dialog .head .icon{width:18px;font-size:18px}.task-detail .task-dialog .head .nav{flex:1;display:flex;align-items:center;padding-left:18px;font-weight:500;color:#606266}.task-detail .task-dialog .head .nav>p{display:flex;align-items:center;margin-right:24px;cursor:pointer}.task-detail .task-dialog .head .nav>p.active{margin-top:-2px;font-size:16px;font-weight:600;color:#555;cursor:default}.task-detail .task-dialog .head .nav .refresh{display:flex;align-items:center;margin-left:-18px}.task-detail .task-dialog .head .nav .refresh>i{font-size:18px;cursor:pointer;opacity:.8;transition:opacity .2s}.task-detail .task-dialog .head .nav .refresh>i:hover{opacity:1}.task-detail .task-dialog .head .nav .refresh .common-loading{margin:3px;width:12px;height:12px}.task-detail .task-dialog .head .menu .menu-item{display:flex;align-items:center;line-height:24px}.task-detail .task-dialog .head .menu .menu-item .menu-load{margin-right:8px;width:14px;height:14px;display:flex}.task-detail .task-dialog .head .menu .menu-item>em{font-style:normal;padding-left:1px}.task-detail .task-dialog .head .menu .menu-item>i{margin-left:4px;font-size:14px}.task-detail .task-dialog .no-dialog{flex:1;display:flex;flex-direction:column;position:relative}.task-detail .task-dialog .no-dialog .no-tip{flex:1;display:none;margin-left:5px}.task-detail .task-dialog .no-dialog .no-input{position:relative;margin:22px 0 0 5px;background-color:#f4f5f7;padding:10px 0;border-radius:10px}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-quick-emoji{right:0}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper{padding:0 4px 0 6px;background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper .chat-toolbar{right:4px;bottom:0}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper .chat-record{background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.task-detail .task-dialog .no-dialog .drag-over:before{content:"";position:absolute;top:0;left:5px;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.task-detail .task-dialog .no-dialog .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.task-detail .task-dialog .project-log{margin-left:5px}.task-detail .task-dialog .project-log .logs-activity{padding:13px 0 0}.task-detail .task-dialog .project-log .logs-activity>li{list-style:none;padding-top:0}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading,.task-detail .task-dialog .project-log .logs-activity>li.logs-more,.task-detail .task-dialog .project-log .logs-activity>li.logs-none{height:59px;line-height:59px}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading{display:flex;align-items:center}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading .common-loading{width:22px;height:22px;margin:0}.task-detail .task-dialog .dialog-wrapper .dialog-scroller{padding-right:16px;padding-left:32px}.task-detail .task-dialog .dialog-wrapper .dialog-footer{padding:0 0 0 24px}.task-detail .task-dialog .dialog-wrapper .dialog-footer .chat-input-box .chat-input-quick-emoji{right:2px}.task-detail .task-load{margin-top:6px;position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%);display:flex}.task-detail .task-load .common-loading{width:32px;height:32px}.task-detail.open-dialog{flex-direction:row}.task-detail.open-dialog .task-info{width:1px}.task-detail.open-dialog .task-info .head .function{margin-right:2px}.task-detail.open-dialog .task-dialog{margin:0 0 0 18px;min-width:220px;max-width:450px;border-left:1px solid #f4f5f5}.task-detail.open-dialog .task-dialog .head:before{left:18px}.task-detail.open-dialog .task-dialog .head .icon:before{display:none}.task-detail.open-dialog .task-dialog .head .nav{padding-left:0}.task-detail.open-dialog .task-dialog .head .nav>p{margin-right:28px}.task-detail.open-dialog .task-dialog .head .nav>p.active{font-size:18px}.task-detail.open-dialog .task-dialog .no-dialog .no-tip{display:flex;align-items:center;justify-content:center;margin-left:18px;color:#909399}.task-detail.open-dialog .task-dialog .no-dialog .no-input{margin:0 0 0 18px}.task-detail.open-dialog .task-dialog .dialog-wrapper{z-index:0}.task-detail.open-dialog .task-dialog .dialog-wrapper .dialog-footer{margin-bottom:0}.task-detail.open-dialog .task-dialog .project-log{position:absolute;top:40px;left:0;right:0;bottom:0;z-index:1;padding:8px;margin-left:8px;background-color:#fff;overflow:auto}.task-detail.open-dialog .task-dialog .project-log .logs-activity{padding:13px 0 0 10px}.task-detail.completed .task-info:before{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:0;right:13%;font-size:72px;color:#19be6b;opacity:.2;z-index:1}.task-detail-receive{padding:6px 6px 3px}.task-detail-receive .receive-title{font-size:14px}.task-detail-receive .receive-title .ivu-icon{font-size:16px;color:#f90;line-height:18px}.task-detail-receive .receive-time{margin-top:10px}.task-detail-receive .receive-time .ivu-date-picker{width:280px}.task-detail-receive .receive-bottom{text-align:right;margin-top:12px}.task-detail-receive .receive-bottom>button+button{margin-left:4px}.task-detail-delete-file-popover{max-width:200px}.task-detail-delete-file-popover .buttons{text-align:right;margin-top:12px}.task-detail-delete-file-popover .buttons .ivu-btn-small{font-size:12px}.task-detail-loop>li{text-align:center}body.window-portrait .task-detail .task-info .scroller .scrollbar-content{overflow-x:auto}.task-menu-icon{position:relative}.task-menu-icon .loading{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.task-menu-icon .loading .common-loading{margin:0;width:14px;height:14px}.task-menu-icon .ivu-icon{cursor:pointer;font-size:16px;color:#ccc}.task-menu-icon .ivu-icon.completed{color:#84c56a}.task-operation-dropdown{position:absolute;top:0;left:0;width:0;opacity:0;z-index:-1}.task-operation-dropdown .task-operation-icon{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;cursor:pointer}.task-operation-more-dropdown>li.task-operation-more-warp{list-style:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul{max-height:320px;overflow:auto}.task-operation-more-dropdown>li.task-operation-more-warp>ul::-webkit-scrollbar{display:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item{display:flex;align-items:center}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i{flex-shrink:0;width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.ivu-icon{font-size:16px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.movefont{font-size:14px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.taskfont{text-align:center}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow{padding:4px 0}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i{margin-right:3px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i.check{color:#84c56a}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name{border-radius:4px;white-space:nowrap;padding:0 5px;height:20px;line-height:20px;font-size:12px;background:#f4f4f4;color:#595959}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow{display:flex;align-items:center;justify-content:center;padding:8px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow .load-flow-warp{width:18px;height:18px}.task-operation-more-dropdown>li.task-operation-more-warp.medium>ul>li .flow .flow-name{height:24px;line-height:24px;padding:0 7px}.task-operation-more-dropdown>li.task-operation-more-warp.large>ul>li .flow .flow-name{font-size:13px;height:30px;line-height:30px;padding:0 8px}.task-priority{font-size:13px;display:inline-block;padding:2px 5px;border-radius:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:1px solid transparent}.task-move .task-move-content{display:flex;gap:10px;margin-top:16px}.task-move .task-move-content>div{flex:1;padding:5px;border-radius:5px}.task-move .task-move-content>div .task-move-title{margin-bottom:10px;font-weight:700}.task-move .task-move-content>div .task-move-row{padding:5px 0;display:flex;line-height:36px}.task-move .task-move-content>div .task-move-row.not-flex{display:block}.task-move .task-move-content>div .task-move-row .label{width:60px;min-width:60px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.task-move .task-move-content>div .task-move-row .task-menu-icon{padding-right:5px}.task-move .task-move-content>div .task-move-row .flow{cursor:pointer}.task-move .task-move-content>div .task-move-row .flow>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:8px;text-align:center}.task-move .task-move-content>div .task-move-row .flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-move .task-move-content>div .task-move-row .flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-move .task-move-content>div .task-move-row .flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-move .task-move-content>div .task-move-row .flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-move .task-move-content>div.task-move-content-old .task-move-row>div{opacity:.5}.task-move .task-move-content>div.task-move-content-old .task-move-row .common-user-select>ul>li,.task-move .task-move-content>div.task-move-content-old .task-move-row .flow{cursor:initial}.task-move .ivu-modal-footer{padding:26px 0 22px!important}body.window-portrait .task-move .ivu-select-dropdown{max-width:100%;overflow:auto}body.window-portrait .task-move .ivu-select-dropdown .ivu-cascader-menu:last-child{margin-right:0}body.window-portrait .task-move .task-move-row .label{width:auto;min-width:50px}.team-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column;overflow:auto}.team-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.team-management .management-title .title-zoom{display:flex;align-items:center;height:20px;line-height:20px;margin-left:6px}.team-management .management-title .title-zoom>i{cursor:pointer;font-size:24px}.team-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.team-management .management-title .title-icon>i{cursor:pointer}.team-management .management-box{flex:1;display:flex;height:0}.team-management .management-box.min-box .management-department{display:none}.team-management .management-box.min-box .management-user{padding-left:0}.team-management .management-box .management-department{width:239px;border-right:1px solid #efefef;flex-shrink:0;display:flex;flex-direction:column}.team-management .management-box .management-department>ul{flex:1;overflow:auto}.team-management .management-box .management-department>ul>li{list-style:none;padding:0;margin:0;height:40px;display:flex;align-items:center;cursor:pointer;overflow:hidden}.team-management .management-box .management-department>ul>li:hover,.team-management .management-box .management-department>ul>li.active{background-color:#ecf5ff}.team-management .management-box .management-department>ul>li.level-1{font-weight:500}.team-management .management-box .management-department>ul>li.level-2{margin-left:24px}.team-management .management-box .management-department>ul>li.level-3{margin-left:48px}.team-management .management-box .management-department>ul>li.level-4{margin-left:72px}.team-management .management-box .management-department>ul>li .department-icon{padding:8px;font-size:16px}.team-management .management-box .management-department>ul>li .department-title{flex:1;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .management-box .management-department>ul>li .department-menu{display:inline-block;padding:12px;font-size:16px;transform:rotate(-90deg)}.team-management .management-box .management-department .department-buttons{margin-top:20px;display:flex;align-items:center;justify-content:center}.team-management .management-box .management-user{flex:1;width:0;display:flex;flex-direction:column;padding-left:20px}.team-management .team-email{display:flex;align-items:center}.team-management .team-email .ivu-icon{color:#84c56a;margin-left:6px;font-size:16px}.team-management .team-email .ivu-tag{height:18px;line-height:18px;padding:0 4px;margin-left:4px;zoom:.8;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .table-page-box{flex:1;height:0}.team-department-add-dialog-group{display:flex;align-items:center}.team-department-add-dialog-group .dialog-name{flex:1;width:0;padding-right:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-department-checkin-item{margin-bottom:12px}.team-department-checkin-item>div{padding-right:12px}.team-department-checkin-item>div:last-child{padding-right:0}.team-table-department-warp{display:flex;align-items:center}.team-table-department-warp>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-table-department-warp .department-tag-num{background-color:#515a6e;border-radius:9px;color:#fff;cursor:pointer;flex-shrink:0;font-size:12px;height:18px;line-height:18px;margin-left:4px;min-width:18px;padding:0 5px;text-align:center;transform:scale(.9);transform-origin:right center}.update-log .uplog-head{display:flex;align-items:center}.update-log .uplog-head .uplog-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.update-log .ivu-modal-body{padding:0 32px!important}.update-log .ivu-modal-body .uplog-body{max-height:240px}.update-log .ivu-modal-body .uplog-body .markdown-preview{margin:-20px -12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1:first-child{padding-top:0}.update-log .ivu-modal-body .uplog-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.update-log .ivu-modal-fullscreen .ivu-modal-body{padding:0 16px!important;margin:16px 0!important}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body{max-height:none;overflow-x:auto}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body .markdown-preview{margin:0}.task-exist-tips .ivu-modal-body{padding:0 26px 16px!important;max-height:500px;overflow:auto}.task-exist-tips .list-content{flex:1;width:100%}.task-exist-tips .list-task{display:flex;margin-left:34px;margin-right:6px;margin-top:10px}.task-exist-tips .list-task-info{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:12px}.task-exist-tips .list-task-info span:first-child{color:#a7abb5}.calendar-wrapper{flex:1;position:relative}.calendar-wrapper:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background-color:#fff;z-index:1}.calendar-wrapper .tui-full-calendar-popup{box-shadow:none}.calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-section-header .tui-full-calendar-ic-checkbox-checked{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAhFBMVEUAAACLz3CLz3CLz3CKzm6Gy2+Lz3CLz3CL0HCLz3CLz3CLz3CLz3CMz3GLz3CKz3CLz3CL0HCJ0G+KznCN0HCL0HCLz3CKz3CLz3CLz3CLz3CMz3CLz3CLz3GL0XCL0HCN0XKLz3CLz3CMz3CLz3CM0HCM0G+FzHCLz3CKz3CMz3CLz3Bod5CFAAAAK3RSTlMA18RAOQ3s8+Pc0rmyq3tpiUwTgBnovyDMjmNSRjUvJQX5yKB0WisKppuUFLaY7gAAAotJREFUeNrtm+FymkAUhc8KqIAgSkyUtkmsmqa97/9+HWeSudpCd8qZ7E0m+73A9/1gxmXx4IK0nbipvDFTN2lT9JDVToLh6gx/sHQSFLfEFZUEp8IFczFgrv5CTChe/TsxYvfy/IkZy7M/c2KGywDUYkgNIBdDciARUxI0YkqDiZgygRNTHKZiyhRiTAyIATEgBsSAGBADYsAnCJgdmtIywKUAOrsA94QzJyKA95/pbALcPV7piADGryzDB+Rnv3IkAhi/UhMBjF9pQwbk3/A3JRXA+7GjAng/DqEC5v3+dMYE8P6nQsIEzFOPnw7g/QpC+R8K4QJ4f5iAzaA/TMAm6fdvZQgY+wW2fn9A0a66Bee/2xLH8kp/Rr1MB/3jAxaP0ALCPzagzPBCM9r/XcYH3K4BLfD4vw75xwdMbqB4CmaD/vEB2ztc0RD+MQHFg+c85fffDPv9AbPUd6Lz+ydCBDyjh1//6WcCGngK1L8a8lMBJTwFfj8XIC16+SnX7Af9bIDUngLSrwFEwaD/VogA5YheDj7/Wv1MgL9g/8XjpwNk+c8Cyq8BYwqePX46QOkGCmi/BowrqFi/Bvg4wYv6y7e4Kz4Rfj5AnzY/WSlcwHAB5+cD9ivKzwfIbEX4qQA99RB+NkDfO4b5sRAigHjzpP0C6u6D9wuo2z/eL+DvXx8Zv4C4gVd/qABxCeFnApQT5+cDpOP8fICcLv2VxbfjlQZUNh+vU/XbBIj6jQLm9wDWlZgFyOaYHJ3Ix/gDQwyIATEgBsSAGODBfuBgPvEwH7m0YkqLVExJYfsQuPcwdjOf+5kPHoFKjKio0e3Hn90WUCyGt7v3Nf0GsjqXYOR1hh6SJsz8v0mg/AZRXmaRKXtJBwAAAABJRU5ErkJggg==)}.calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-popup-container{word-break:break-all;border:0;box-shadow:0 1px 6px #0003;border-radius:6px}.calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border{top:-8px;border-bottom-color:#d9d9d980}.calendar-wrapper .tui-full-calendar-dropdown-menu{border-color:#e8e8e8;width:calc(100% - 14px)}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-title,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-calendar-dot{display:none}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-date{background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5NjcwNjA3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2Mzg4IiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk2MCAxMjhIODMzYzAtNTMtNDMtOTYtOTYtOTZoLTE2Yy01MyAwLTk2IDQzLTk2IDk2SDQwMGMwLTI2LjUtMTAuNy01MC41LTI4LjEtNjcuOUMzNTQuNSA0Mi43IDMzMC41IDMyIDMwNCAzMmgtMTZjLTUzIDAtOTYgNDMtOTYgOTZINjRjLTM1LjMgMC02NCAyOC42LTY0IDY0djczNmMwIDM1LjMgMjguNyA2NCA2NCA2NGg4OTZjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTkyYzAtMzUuNC0yOC43LTY0LTY0LTY0eiBtLTI3MSA4YzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzY5My41IDIzNyA2ODkgMjI3IDY4OSAyMTZ2LTgweiBtLTQzMyAwYzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzI2MC41IDIzNyAyNTYgMjI3IDI1NiAyMTZ2LTgweiBtNzA0IDc2MGMwIDE3LjctMTQuMyAzMi0zMiAzMkg5NmMtMTcuNyAwLTMyLTE0LjMtMzItMzJWNDQ4aDg5NnY0NDh6IiBwLWlkPSIxNjM4OSIgZmlsbD0iIzUxNTE1MSI+PC9wYXRoPjwvc3ZnPg==);background-size:contain}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-content{padding-left:0}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section{display:flex;justify-content:space-between;margin-bottom:10px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item{height:36px;line-height:34px;border-color:#e8e8e8;border-radius:4px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item input{height:34px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title input{width:100%}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date{width:210px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date .tui-full-calendar-content,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date .tui-full-calendar-content{padding-left:8px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-location,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-private,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-allday,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-state{display:none}.calendar-wrapper .tui-full-calendar-popup-task .priority{color:#fff;padding:2px 4px;border-radius:4px;margin-right:6px}.calendar-wrapper .tui-full-calendar-popup-task .overdue{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;padding:1px 3px;border-radius:4px;margin-right:6px}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-calendar-dot,.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-priority{opacity:0}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-edit{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzY4MTg5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjExMTkiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48cGF0aCBkPSJNODMzLjQyODU3MTY4IDYySDE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzJ2NjQyLjg1NzE0MzM2YTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzIgMCAwIDAgMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMmg2NDIuODU3MTQzMzZhMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMiAwIDAgMCAxMjguNTcxNDI4MzItMTI4LjU3MTQyODMyVjE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMi0xMjguNTcxNDI4MzJ6IG02NC4yODU3MTQxNiA3NzEuNDI4NTcxNjhhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEtNjQuMjg1NzE0MTcgNjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyYTY0LjI4NTcxNDE2IDY0LjI4NTcxNDE2IDAgMCAxLTY0LjI4NTcxNDE2LTY0LjI4NTcxNDE2VjE5MC41NzE0MjgzMmE2NC4yODU3MTQxNiA2NC4yODU3MTQxNiAwIDAgMSA2NC4yODU3MTQxNy02NC4yODU3MTQxNmg2NDIuODU3MTQzMzVhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEgNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTd6IiBwLWlkPSIxMTIwIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PHBhdGggZD0iTTE5MC41NzE0MjgzMiAyNTQuODU3MTQyNDhoNjQuMjg1NzE0MTZ2NjQuMjg1NzE1MDRIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgMjU0Ljg1NzE0MjQ4aDQ1MHY2NC4yODU3MTUwNEgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA0NDcuNzE0Mjg1ODRoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNDQ3LjcxNDI4NTg0aDQ1MHY2NC4yODU3MTQxNkgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA2NDAuNTcxNDI4MzJoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNjQwLjU3MTQyODMyaDMyMS40Mjg1NzA4djY0LjI4NTcxNDE2SDMxOS4xNDI4NTc1MnoiIHAtaWQ9IjExMjEiIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD48L3N2Zz4=)}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-delete{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzMwMTc2IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijc5MiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik04OTIuMjg4IDI1NmgtMTkxLjE2OEEyMDIuMjQgMjAyLjI0IDAgMCAwIDUwOS42MzIgNjIuMDggMjAxLjIxNiAyMDEuMjE2IDAgMCAwIDMxOC44NDggMjU2SDEyOGMtMTguNjg4IDAtNjYuMDQ4LTQuMjI0LTY2LjA0OCAyNC43NjhDNjEuOTUyIDMyNy43NDQgMTA5LjM3NiAzMjAgMTI4IDMyMGg2NHY1MTJhMTQ2LjQ5NiAxNDYuNDk2IDAgMCAwIDEyNy40MjQgMTI4aDM4Mi4yNzJBMTUwLjAxNiAxNTAuMDE2IDAgMCAwIDgzMiA4MzJsLTMuMzkyLTUxMmg2NGMxOC4zNjggMCA2NS4wMjQgMS40NzIgNjUuMDI0LTM5Ljc0NEE3Mi4zODQgNzIuMzg0IDAgMCAwIDg5Mi4yODggMjU2ek01MDkuNjMyIDEyOC41MTJBMTM4LjE3NiAxMzguMTc2IDAgMCAxIDYzNy40NCAyNTZIMzgyLjU5MmExMzcuOTIgMTM3LjkyIDAgMCAxIDEyNy4wNC0xMjcuNDg4ek03NjggODMyYTk3Ljk4NCA5Ny45ODQgMCAwIDEtNjYuODggNjRIMzE4Ljg0OGE5My41NjggOTMuNTY4IDAgMCAxLTY0LTY0VjMyMEg3Njh2NTEyeiBtLTM4NS40MDgtNjRWNTEyYzAtMTguNDk2IDAuOTYtNjAuOTkyIDM2LjczNi02MC45OTIgMjcuMzI4IDAgMjYuNDk2IDQzLjAwOCAyNi45NDQgNjAuOTkydjI1NmMwIDE4LjQ5Ni02LjQgMjAuMDMyLTI0Ljk2IDIwLjAzMnMtMzguNzItMS41MzYtMzguNzItMjAuMDMyeiBtMTkxLjE2OCAwVjUxMmE2NCA2NCAwIDAgMSAyMy44MDgtNjAuOTkyYzQyLjQzMiAwIDM5LjM2IDQzLjAwOCAzOS44NzIgNjAuOTkydjI1NmMwIDE4LjQ5Ni0xOS41ODQgMjAuMDMyLTM3Ljk1MiAyMC4wMzJzLTI1Ljc5Mi0xLjUzNi0yNS43OTItMjAuMDMyeiIgcC1pZD0iNzkzIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PC9zdmc+)}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-popup-detail-item-separate{padding-left:22px}.calendar-wrapper .tui-datepicker{border-color:#e8e8e8}.calendar-wrapper .tui-datepicker .tui-calendar th,.calendar-wrapper .tui-datepicker .tui-calendar td{height:32px}.calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-prev-month.tui-calendar-date,.calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-next-month.tui-calendar-date{visibility:visible}.calendar-wrapper .tui-datepicker .tui-datepicker-body .tui-timepicker,.calendar-wrapper .tui-datepicker .tui-datepicker-footer .tui-timepicker{padding:16px 46px 16px 47px}.calendar-wrapper .tui-full-calendar-week-container{min-height:100px}body.window-portrait .calendar-wrapper .tui-full-calendar-popup{font-weight:400}body.window-portrait .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-icon{width:14px;height:14px;background-size:14px}body.window-portrait .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-content{font-size:14px}@media (max-width: 640px){body.window-portrait .calendar-wrapper .tui-full-calendar-popup-arrow{display:none}}.dialog-droup-word-chain .ivu-modal-body{max-height:calc(100vh - 260px);overflow:auto;padding-top:0!important;padding-right:0!important}.dialog-droup-word-chain .chain-modal-header{height:100%;display:flex;align-items:center;justify-content:space-between;position:relative;font-weight:500}.dialog-droup-word-chain .chain-modal-header .chain-modal-close{color:#606266}.dialog-droup-word-chain .chain-modal-header .chain-modal-title{position:absolute;top:0;bottom:0;left:100px;right:100px;display:flex;justify-content:center;align-items:center}.dialog-droup-word-chain .chain-modal-header .chain-modal-title>span{font-size:16px;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-droup-word-chain .chain-modal-header .chain-modal-submit{color:#84c56a;display:flex;align-items:center}.dialog-droup-word-chain .chain-modal-header .chain-modal-submit .submit-loading{width:14px;height:14px;margin-right:6px}.dialog-droup-word-chain .chain-modal-header .chain-modal-submit.disabled{color:#9c9c9c}.dialog-droup-word-chain .word-chain-body{display:flex;flex-direction:column;height:100%;max-height:calc(100vh - 265px)}.dialog-droup-word-chain .word-chain-body .source{margin-right:32px}.dialog-droup-word-chain .word-chain-body .source span{color:#84c56a}.dialog-droup-word-chain .word-chain-body .initiate{gap:5px;white-space:nowrap;text-overflow:ellipsis;overflow-y:auto;min-height:26px;margin:10px 32px 20px 0}.dialog-droup-word-chain .word-chain-body .initiate .ivu-input{border-color:#fff!important}.dialog-droup-word-chain .word-chain-body .initiate .avatar-wrapper{margin:0 4px 4px}.dialog-droup-word-chain .word-chain-body .initiate>span,.dialog-droup-word-chain .word-chain-body .initiate>div{float:left}.dialog-droup-word-chain .word-chain-body .textarea{padding-right:32px}.dialog-droup-word-chain .word-chain-body ul{margin:20px 0;list-style-type:none;flex:1;overflow:auto;padding-right:32px}.dialog-droup-word-chain .word-chain-body ul li{display:flex;gap:10px;padding:5px 0;color:#7f7f7f}.dialog-droup-word-chain .word-chain-body ul li span{min-width:28px;height:28px;line-height:28px;margin-top:2px;background-color:#f2f2f2;border-radius:100%;text-align:center;font-size:12px}.dialog-droup-word-chain .word-chain-body ul li .taskfont{font-size:28px;cursor:pointer;line-height:34px;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:scale(.92)}.dialog-droup-word-chain .word-chain-body ul li .taskfont.disabled{opacity:.5;cursor:no-drop}.dialog-droup-word-chain .word-chain-body ul li.add .taskfont{line-height:32px;transform:scale(1)}.dialog-droup-word-chain .word-chain-body .switch-row{padding:10px 5px;margin:0 32px 0 0;display:flex;border-top:1px solid #f0f0f0}.dialog-droup-word-chain .word-chain-body .switch-row span.label{flex:1}.dialog-droup-word-chain .word-chain-body .switch-row:last-child{border-bottom:1px solid #f0f0f0}body.window-portrait .dialog-droup-word-chain .ivu-modal-fullscreen .ivu-modal-body{padding-top:10px!important;max-height:100%}body.window-portrait .dialog-droup-word-chain .ivu-modal-fullscreen .word-chain-body{max-height:100%}body.window-portrait .dialog-droup-word-chain .ivu-modal-fullscreen .word-chain-body ul{flex:none}body.dark-mode-reverse .ivu-btn-primary,body.dark-mode-reverse .ivu-badge-count,body.dark-mode-reverse .ivu-btn-grey,body.dark-mode-reverse .ivu-btn-error,body.dark-mode-reverse .ivu-btn-warning,body.dark-mode-reverse .common-right-bottom .common-right-bottom-link{color:#000}body.dark-mode-reverse .ivu-btn-grey{background-color:#c7c7c7;border-color:#c7c7c7}body.dark-mode-reverse .ivu-btn-grey:hover{background-color:#d5d5d5;border-color:#d5d5d5}body.dark-mode-reverse .ivu-btn-grey:focus{box-shadow:none}body.dark-mode-reverse .ivu-btn-error{background-color:#ff9d84;border-color:#ff9d84}body.dark-mode-reverse .ivu-btn-error:hover{background-color:#ffbdab;border-color:#ffbdab}body.dark-mode-reverse .ivu-btn-error:focus{box-shadow:none}body.dark-mode-reverse .ivu-modal-mask{background-color:#e6e6e699}body.dark-mode-reverse .ivu-modal-content{box-shadow:0 4px 12px #ffffff26}body.dark-mode-reverse .ivu-message-notice-content{box-shadow:0 1px 6px #fff3;border:1px solid #e3e8ed}body.dark-mode-reverse .ivu-select-dropdown,body.dark-mode-reverse .ivu-notice-notice,body.dark-mode-reverse .ivu-tooltip-inner,body.dark-mode-reverse .ivu-poptip-inner{border:1px solid #e3e8ed;box-shadow:none}body.dark-mode-reverse .el-dropdown-menu{border-color:#e3e8ed;box-shadow:0 2px 12px #ffffff1a}body.dark-mode-reverse .el-tooltip__popper.is-light{border:1px solid #e3e8ed;box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .common-avatar.avatar-wrapper .avatar-box .avatar-char{color:#000}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a{color:#323232}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#000}body.dark-mode-reverse .file-content .content-body .tox .tox-edit-area__iframe,body.dark-mode-reverse .file-preview .content-body .tox .tox-edit-area__iframe{background-color:#000}body.dark-mode-reverse .file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,body.dark-mode-reverse .file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{box-shadow:none}body.dark-mode-reverse .minder-editor-container .quickbar{border:1px solid #e3e8ed!important;box-shadow:3px 3px 10px #fff3!important}body.dark-mode-reverse .project-panel .project-titbox .project-icons>li.project-icon.active{color:#000}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{color:#1c1917}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{color:#555}body.dark-mode-reverse .dialog-wrapper .dialog-position .position-label{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{background-color:#e1e1e1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc{color:#fff}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff!important}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause{border-bottom:1px solid #7f7f7f;border-top:1px solid #7f7f7f}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{background-color:#f3f3f380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#f3f3f3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#0027a1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#0027a1!important}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#b2ff9380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#b2ff93}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#000000b3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#000}body.dark-mode-reverse .dialog-group-info .group-info-user>ul>li .user-tag{color:#1c1917}body.dark-mode-reverse .file-icon:before{background-image:url(/js/build/other.0cd5a04c.svg)}body.dark-mode-reverse .file-icon.archive:before{background-image:url(/js/build/archive.12fcb5b5.svg)}body.dark-mode-reverse .file-icon.cad:before{background-image:url(/js/build/cad.868e2ca7.svg)}body.dark-mode-reverse .file-icon.code:before{background-image:url(/js/build/code.1f28156e.svg)}body.dark-mode-reverse .file-icon.document:before{background-image:url(/js/build/document.7a75f110.svg)}body.dark-mode-reverse .file-icon.drawio:before{background-image:url(/js/build/flow.0122e3f0.svg)}body.dark-mode-reverse .file-icon.excel:before{background-image:url(/js/build/excel.03422f0b.svg)}body.dark-mode-reverse .file-icon.flow:before{background-image:url(/js/build/flow.0122e3f0.svg)}body.dark-mode-reverse .file-icon.folder:before{background-image:url(/js/build/folder.f3036060.svg)}body.dark-mode-reverse .file-icon.folder.share:before{background-image:url(/js/build/folder-share.08f619a2.svg)}body.dark-mode-reverse .file-icon.media:before{background-image:url(/js/build/media.59a8ab73.svg)}body.dark-mode-reverse .file-icon.mind:before{background-image:url(/js/build/mind.8663d6b3.svg)}body.dark-mode-reverse .file-icon.ofd:before{background-image:url(/js/build/ofd.50e43c45.svg)}body.dark-mode-reverse .file-icon.pdf:before{background-image:url(/js/build/pdf.13216727.svg)}body.dark-mode-reverse .file-icon.picture:before{background-image:url(/js/build/picture.7c0acca9.svg)}body.dark-mode-reverse .file-icon.ppt:before{background-image:url(/js/build/ppt.0788eae8.svg)}body.dark-mode-reverse .file-icon.sheet:before{background-image:url(/js/build/sheet.74a69469.svg)}body.dark-mode-reverse .file-icon.tif:before{background-image:url(/js/build/tif.37ae91f2.svg)}body.dark-mode-reverse .file-icon.txt:before{background-image:url(/js/build/txt.13b9241a.svg)}body.dark-mode-reverse .file-icon.updir:before{background-image:url(/js/build/updir.39b387be.svg)}body.dark-mode-reverse .file-icon.upload:before{background-image:url(/js/build/upload.c7a709a7.svg)}body.dark-mode-reverse .file-icon.word:before{background-image:url(/js/build/word.41e80094.svg)}body.dark-mode-reverse .file-icon.wps:before{background-image:url(/js/build/wps.045449a7.svg)}body.dark-mode-reverse .page-login .login-body .login-box{box-shadow:none}body.dark-mode-reverse .page-manage .manage-box-menu .manage-box-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#0009;font-size:12px}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{color:#000}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#000000b3}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar{color:#1c1917}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text{color:#555}body.dark-mode-reverse .page-file .file-wrapper .file-navigator .ivu-btn{color:#000}body.dark-mode-reverse .page-index .page-warp{background-color:#efefef}body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-github,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-uplog,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1 .header-right-1-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2 .header-right-2-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-3,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-title,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-tips{color:#000}body.dark-mode-reverse .page-index .page-warp .page-header-bottom{background-color:#efefef}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor{color:#ccc}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{color:#333}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{color:#000}body.dark-mode-reverse .chat-input-record-transfer.cancel,body.dark-mode-reverse .ql-mention-list-container .ql-mention-list-item .mention-item-at{color:#000}body.dark-mode-reverse .common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar{color:#1c1917}body.dark-mode-reverse .common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar{color:#1c1917} diff --git a/public/js/build/app.e18e3ed3.css b/public/js/build/app.e18e3ed3.css deleted file mode 100644 index ac2b46352..000000000 --- a/public/js/build/app.e18e3ed3.css +++ /dev/null @@ -1,7 +0,0 @@ -@charset "UTF-8";@font-face{font-family:iconfont;src:url(/js/build/iconfont.01196938.eot?t=1576231776697);src:url(/js/build/iconfont.01196938.eot?t=1576231776697#iefix) format("embedded-opentype"),url(data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABBoAAsAAAAAH4gAABAXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCHNAqrGKENATYCJAOBAAtCAAQgBYRtB4I0G3MZM6M2lLTSTfZfJ3BzyOqYZkDBRZ2HprCitPZ3M8J36RIFoV+G+/sYnCYldv0I8xP3uCYjaM7/PYldjAhiEUzzMA2QIPZTSUVTap7SplSDVS1QFajwRBw61IQgv72KhZq8zPfO2kzlgJkk7T4iPTP9Ao/snqj1ZwI+AR+pnFgdsb1FKrikLeIB0AABBLNBwG3sJrh0YieT5piEFlvapTXhESZVxn7z1XMwlGSPvV8g5XsAQOD//62ldqfIqjJ5W5yyMH0RqkLWyJ0JDl3vH2ZCvMHdEpDKq5AV6vZCeyUCDyhMhanQFUJUSF+D5awMrAmEpUSMBqL+u96FgQDAQCUGYXgvHww+aDBOYL4ZcfI48GNh0DlDCfADXM0JaRCbioNPrl47gI3q6xMPkBAfIMGhwC7KNMk4AXqWejiMsp9gM2WP1KcBvJwIoADEAGiA1GkriShQPotRgtEV0vgv/nw0aIhYmpWyISIlSpGpmC1lR7A2toZtsMlp11jXnb47j+64Hg5zn6UsUfjoZBmKutd1v9rr4fphDQRixHGUMDpJirTuWd1zkP6/4AFKBLx5ISGFJwr+FLjwIISKCGIwCCRHgwMJBOCBjwA+fPmRUQPBBeYVAQDRQBvVwFICgxJYGgMBsFIM3sCGYPACNhwDCbARHF8yEhg8gU3EQAFsMgZ/YFMwKIDNwMAF2EwMHsAWAYSQxQCoIEsBEEGOAEAMaQOAgawBIBCyDgA5ZD0ANGQDABzITQBIIE8DIIC8CgAP8hoAfEgXMATAnT6Aj5IPAfCFfASAH6QLGGTwcNgSUAMAjTyBHsAsgPtJgC8GU++pILhNgQSfWmA0EEeRuu4EY14UN4/qGZcT5UhhGA+RzF1SKhUR4hBC68GmUDSfJxZ70tpH5uMJtAFv8k3IHkwQsbghCBGyO1rAEch8KV/ADNGEcnmltkOGKDqMSyXPTB0/f1gqqQ2GOhqiJgftys1wX+tg4SHhrzbqdj3PXQi/2m47jteF30zc/s3hA4btyn6r4/K6TDjNfkX8BZ51Du7ZDf/91en8caT7+06wdx/477cLWrE5JJ5vTUwUGoNjmfpWYWpMj3EjIa2djJquyNcCw/FkoZLVDe/crk7HlF2v3TZYaEO48Z1w1PX2/IHu2BudBRCCYtWvBRVSHgdpaN+n+n7rv7jBDQ41V3FSplXfmsIQFb4MONEnSxwYa4X9U0G67cNIpow0Wh0SzdewKnxLu1VOxbIVnAhqMHornbxVT0WyjfE9pdbQaK7Z+5oiSasw6tdwT1ABCOUhgLAB18k2I80+hAGCwnOPrbkI9MCNCKLYKXcZ/TjoQr+DKJrnBcZTsnHIVYM2IKHdls8KKdCbGp/gempUeVCNKPsiarRXiao7c1VaTpGsEWMZkK0EtaF+zozL/C5XUN1mc6qluTG8qp3ZRtDym7Tu9lABY77EyYCDOGGbSaX751iDcb86IXmrDLwE0OIqWKdHSLsjDVHThTg6e4hoZ0W1836P0nv3Sb9K9d17BS0TY89uRiqBtW8PD2r+uXx1QRH6ltVfNulEDoj+Tjm1OVOZHyxye8FtRMNx4u4SAx8MTWuMkQ4+KV/0Fm8XcxAikH13HgPEKC3sOv3jJfQPSis/NF8bGI8jOIpL/ZXB2cGcB5Z1ZUiOX1iO6uuYrghzg0A0c+naMI6D9DpkvdhphTJ9kdKwGkirDAkBUR5wsCOzDBCmo0JKjNunC1wOIoTbEZD+VCiMAURVWa4nDe1Uln4k54baR4hyhhCcUo33BZUwOqTO9uGIEu3sckJb9ZOAtBpUQIyUJ2wTFL+KLQjgHRCBXRiiowDDHW0vkLDrou0JF3AhCp2uQNv7oSZ/Zq8HJE+5VVSctLt8fbKj7qvd2K24Qljenm39DVKnTb/V54W3JQ4A16ajoC9ROEBhrRiupOO7TmnIt97OMqPbDs+Wd9Bq3vJckauVDIeTrXR126kpctY2WSpk9c2MHRO6XQ9XNLsrPWmuiIwVEqcdeCff1qG2zYzl3PJa3eWNcJmju/52k6wPlzQPrZSiQcZqLufWSkeANGW5t5zLe9SIPBNL1x4h9GWuIMQC46ZamifvFawQbH8TO9I0rWsNNjFoVxBYXmmJLzzjwApSTHhfP6YHrnT8ys8LlM0drRhLRqdJw6g4b54gcvmn+YmBX04ilmmEBR3wyJmoOKTz/7x2u72tOTTFq0y9YyvkJUtybl4LBb35iRHt5/TO+DOA/KGyNL40uZIiKaYvcjlOuvqIwScG1qSjFgfIfbLP6jMG8vOVPAijNL4AiM50bvAUmVSewIpmDqY1Wgcx0sAJqIgdRzrDwEEq9Ju9VwQ9uMGVQNYXahAuP79e5t78jSnVz8fdegMM8RyCb4a6viUlDgoko9Oi2TvWJofjwsQrQLviVhXtZw2YRlAB6J0fh8Wmho2cPr1dBSM3lCjc80GaD03EtTI11wPiQgXYsgRhNYuWASCFtPZOvTBqoNYTaO53H3b2Pdh5VsbHPrh06uYJD41afQ2dV1Ox53dGN6P3433qG3c4d93jvbLy4orHh6+df55b8kmvfHzFxbpnQKQHfUt5p1ImhA00zzRHfBFBLeQs4K1jFm7S5kVGDh0dNpRzCknDOjKzMjPPMVSR8n9r2tpnHEdHqOcoUjLUuUxWntVRyE92lLRftK3NINwmNLSpJfx/lbqsLqlV/p6q99SoaurrHSJ5YM2MGS5Xdr9M5CiwMO5fmMVsaY6LExZNNJvZtleQvnnPbCGYI7YnO58kSaS3nyzqAk6aunXdMQiaQJ1VPXNKS318EJljpwvbcyZxP/Jv0Rr4FOrVA/O4TJenp8KY3yDiW32/CpT5O37iS7orQBHVrJikbKa+wc0qr6jUKoH+W04U/Z3n357tnitXIiN/Q7Fdxj/Ml9kdl+An30RfEVVTAFNdmYZL2bHO9hmKfVZc6tf3L+8P6r/8ImBfnft2F7nL3MMDLo7qH32ueDL2GHUa2aRRJQNKhxQP9ZPJkM8xKUeYiysMlfqBkp/ph/pRy+0jRhoGjTQpq4hZ44bO3F69flKagSubojZwoN20wblhcHB18Kvjzg3O5OP+L1ofcTviOriSK1+8/OKK5PV60MpWzqjxrNn016KlnTs6ly66lb7Gc1H5VCYxhbvP1I/ireJ9J7JVB8mtyhbdKF2L8jvnaeBIyan0U7fDY5/dzB9VUTl8YMkgS7JbT8fei73VnWtfPndj2ewwaomyxJhzU08hxVQZzxpbVENU33jDJqlaRrSqJj73b1RmFWSnihoHU1Kaigw2kCrfQvKZP1fmGnSnqNpStG3+MwkvOlFHaH2N5LNonqTPzClC0rjV69oe+zxuk2/q2SlVKRGdwivDr3Dzfq+V8Hz69UaykNT1+vA8TprylNt/P/DHqs5x6uHq2Z2r/9z0W6NyK5NXfyAjtTChQd7W0NNW9lPPvJ95TH31jq3zhTSytHavdq9QIWKQFL4XuFKmXeAhtqmUIfXmZL/edJN5/RrdFH4tSuZ9R9n+mKud+WZTu1KKTiubkaps4mydXiG1JEXyOlVO0X5Ml/XXwZpCaadNLBW0byIxTWj2HK+/3it87M0vACmTm4KDSdEzLM2vOmLmOKzRu0UszatqHbUZmmB+rbZF49C2uhjVCfXewBMqZ5bT4VTCcdOhgH9lkX9v79pevmM6JoNaQMMIQ7dyq3Obc3vqX45upCDy6GZ6Ig6QXdu6nm4zu6+YP1OZpvzv0pMnhkC7bN+BIGXS8OHruLxgRZz36JKSRB5x+zYIbLuvd5dwO1jXu4upURy4O30Gb6IUC0Nsiij5ypBVMmWUxvY7RBPlgVYWKmyh2oShK6FuFq50tq/yW/XndFgI3qo/vuDzruKSn3DFJK3mERZHrt9KSxVnwOHtZU/GZQ5b2Jh580+7h2x2UMG86mNW6sZZyrra909Ktg0qqJ6Xk38qJy8/91Re7qsjKfk6kZ/zFM2pzvnEaoeVevADZa2pNg0GzvXCfX1xersSyI88TkzTtyh0ZkrRQtcnPt6wYfDgdqPxbppzrA0bHifW04oWyqxrUejT9K2NRrrCguZml9wbQmq8Ipbt59QVdG1Y/9w3wlRmpPl9twpTRNIjA95esJ+z4Ai04c61zLT1XQV1nHhDFHZWtFTogXRTxQzRtz9NkFyLzs4Jcpt8hkLklSit2CNK5Yv3iPV3tOSnbxMrsnu+XPfVLZvS1v7/Jcd7cjzyCrsH7zeXFzWdQq3gW4x6p7Y447os0tkV5/QyqL0jYac3CGhaWPL+FbdW+v1UNdnsTZHB30c2xBy6utz/Q6tU2Lt/LhtWJgr2rFt2FvvztIxn2/dvIgyhg7T1yrkBOiZtGZgJq0S8pdbfOwN++vWKmnF69YmCJU1Nk7Z8+pM9TuLtsds8fq75P44PWfCzq2O9XYHU8d6P/BL9a/wT/eS5zzoJcbqYlJyRkOJdOd8CRj3aLGcwZNgq3yCfJvmvYqIN0l/NTT6xu9/cX3TiWOjg1cd3nwvkBJsCxf8s0EocXp/zRWrfvk+k8cLJy5t9muvr5swGGRmYkrza/kabNJrZ83aYVu3eNZW/CvhooMuPeEn4WRK5kdxES5RK/TZtmU02Xx4lny97/pdilUIpDMXD00iX8hJNuZZE3lKpZpXikimatkqsFcGXSCuWIuFwdW7uyK1D4kODLl38t+n8gn+x3M0Wcb9U2FOkX2cdhXVfPtNzzxCNB1AXqLQZesgNc7j/U+QZFxm29kHKSY0h6KmQYPiI4auhc4ePG14spLhlhu8c8Qt/JT7rQyHFEG0efoOGNz6kBLRwLbka/jP5YHgXeX64HXHwwuHrvtp9dghG+i2fSCj+nE/bqJ+5y+Q8rGwPN2zq51+V9cLh/2m2uu6bRVW4D9IYRzX4IB9MSDyIFHSrG9HfOSyi2ecGFjuAKIMwBzTWItJAAmDCWW6Uyjn7rDytsx7ZKs/QJMFDoEmBjxBE94wxORAiyeSCj1yTQbSikwuhYAUFghYAiNLomAQ8nDFJSPAjo3Q9OxiNnl0mB14e5XExMIr+Y6cUOEMhwjbXv3wR6AKr2qeKhpNzY2Xpzf8JX0kLyXnq7BeSIyd13B1+mz+QIHWkyDd/KsUpJ9ypd8cHRKx64QtM2QU09ef93r1dxc5w1yybF4EusEr7lNNGw8kdvixTX/4TvpKWnNV+TfsLyfHolaOdgwX6EMlqtX1ZNN/8SSHaKbGscKe8Ew3iDaz0+rYuMGUnlLD7sz3ZnLMVu/ZVd2QUNuIa2EerSSBRaAwWhycQSWRKKmoaWjp6BkYmZhZWNnYOTi5unmLY2bHA8rgmyzMTYK6wG3WXt05TxqwX3CLuQ04jdm5u+Z6ItR23THbihWs/ip1flj53yJZiwsQQZ0xj0RTNnG8QzRTLwBL/OSWalIAOk7/KRVYU3ZK5J7QMK40NW4zfPK9LV4myESBZoZjMapY6ZFrWvnG2bXGOcdY3LPo627blR9MAAAAA) format("woff2"),url(/js/build/iconfont.5e0c4d21.woff?t=1576231776697) format("woff"),url(/js/build/iconfont.eb7e69a1.ttf?t=1576231776697) format("truetype"),url(/js/build/iconfont.7bf1e2b0.svg?t=1576231776697#iconfont) format("svg")}.iconfont[data-v-7c98e74e]{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-md[data-v-7c98e74e]:before{content:"\e604"}.icon-redo[data-v-7c98e74e]:before{content:"\e627"}.icon-undo[data-v-7c98e74e]:before{content:"\e633"}.icon-checked[data-v-7c98e74e]:before{content:"\e683"}.icon-checked-false[data-v-7c98e74e]:before{content:"\e684"}.icon-preview[data-v-7c98e74e]:before{content:"\e63a"}.icon-on[data-v-7c98e74e]:before{content:"\e6d8"}.icon-off[data-v-7c98e74e]:before{content:"\e6d9"}.icon-download[data-v-7c98e74e]:before{content:"\e6ae"}.icon-bold[data-v-7c98e74e]:before{content:"\e677"}.icon-group[data-v-7c98e74e]:before{content:"\e647"}.icon-img[data-v-7c98e74e]:before{content:"\e64a"}.icon-under-line[data-v-7c98e74e]:before{content:"\e65a"}.icon-close[data-v-7c98e74e]:before{content:"\e690"}.icon-italic[data-v-7c98e74e]:before{content:"\e628"}.icon-overline[data-v-7c98e74e]:before{content:"\e63b"}.icon-horizontal[data-v-7c98e74e]:before{content:"\e7f0"}.icon-theme[data-v-7c98e74e]:before{content:"\e682"}.icon-quote[data-v-7c98e74e]:before{content:"\e636"}.icon-table[data-v-7c98e74e]:before{content:"\e603"}.icon-clear[data-v-7c98e74e]:before{content:"\e629"}.icon-ul[data-v-7c98e74e]:before{content:"\e624"}.icon-code[data-v-7c98e74e]:before{content:"\e60f"}.icon-link[data-v-7c98e74e]:before{content:"\e7e2"}.icon-fullscreen[data-v-7c98e74e]:before{content:"\e7ec"}.icon-quite[data-v-7c98e74e]:before{content:"\e7ed"}.icon-daoru[data-v-7c98e74e]:before{content:"\e635"}.icon-ol[data-v-7c98e74e]:before{content:"\e6f0"}.icon-upload-img[data-v-7c98e74e]:before{content:"\e679"}.icon-save[data-v-7c98e74e]:before{content:"\e648"}.icon-check-box[data-v-7c98e74e]:before{content:"\ec58"}.markdown[data-v-7c98e74e]{overflow:hidden;position:relative;margin:0;padding:0;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;flex-direction:column;background:#f7f7f7}.markdown.border[data-v-7c98e74e]{border:1px solid #d9d9d9}.markdown *[data-v-7c98e74e]{margin:0;padding:0;box-sizing:border-box}.markdown.fullscreen[data-v-7c98e74e]{position:fixed;z-index:999999;top:0;left:0;right:0;bottom:0;height:100%!important;width:100%;border:none}.markdown.fullscreen .markdown-content[data-v-7c98e74e]{padding:10px 0 0}.markdown .markdown-toolbars[data-v-7c98e74e]{width:100%;display:block;list-style:none;background:#fff;color:#6a6f7b;cursor:pointer;padding-left:4px;border-bottom:1px solid #d9d9d9}.markdown .markdown-toolbars>li[data-v-7c98e74e]{float:left;position:relative;cursor:pointer;margin:0;line-height:normal;min-height:auto}.markdown .markdown-toolbars>li[data-v-7c98e74e]:after{display:block;content:attr(name);position:absolute;z-index:999999999999;top:32px;left:20px;background:#000;color:#fff;white-space:nowrap;font-size:12px;line-height:28px;padding:0 6px;transition:all .3s .1s;transform:scale(0);opacity:0;transform-origin:top;border-radius:2px}.markdown .markdown-toolbars>li[data-v-7c98e74e]:hover:after{transform:scale(1);opacity:1}.markdown .markdown-toolbars>li[data-v-7c98e74e]:last-child:after{right:20%;left:auto}.markdown .markdown-toolbars>li .title[data-v-7c98e74e]{font-size:16px!important}.markdown .markdown-toolbars>li .icon-svg[data-v-7c98e74e]{display:flex;align-items:center;justify-content:center}.markdown .markdown-toolbars>li.right[data-v-7c98e74e]{float:right}.markdown .markdown-toolbars>li.right>ul[data-v-7c98e74e]{list-style:none}.markdown .markdown-toolbars>li.right>ul>li[data-v-7c98e74e]{line-height:normal;float:left}.markdown .markdown-toolbars span[data-v-7c98e74e]{font-size:18px;color:#999;cursor:pointer;display:block;width:30px;height:30px;border-radius:3px;line-height:30px;text-align:center}.markdown .markdown-toolbars span[data-v-7c98e74e]:hover{background:#f7f7f7;color:#1890ff}.markdown .markdown-toolbars .title[data-v-7c98e74e]{padding-left:4px;padding-right:10px}.markdown .markdown-toolbars li:last-child span[data-v-7c98e74e]{font-size:20px!important;margin-right:4px}.markdown .markdown-toolbars .shift-theme[data-v-7c98e74e],.markdown .markdown-toolbars .export-file[data-v-7c98e74e]{height:46px;position:relative;display:flex;justify-content:center;align-items:center}.markdown .markdown-toolbars .shift-theme span[data-v-7c98e74e],.markdown .markdown-toolbars .export-file span[data-v-7c98e74e]{padding:0 8px;transition:all .3s;font-size:18px;display:inline-block;line-height:32px}.markdown .markdown-toolbars .shift-theme span[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file span[data-v-7c98e74e]:hover{color:#0084ff;background:#f7f7f7;border-radius:3px}.markdown .markdown-toolbars .shift-theme ul[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul[data-v-7c98e74e]{transform:scale(0);transition:all .3s;left:-50%;top:40px;width:160px;transform-origin:top center;list-style:none;margin:0;padding:6px 0;box-sizing:border-box;border:1px solid #d9d9d9;background:#fff;border-radius:4px;position:absolute;z-index:9999999;box-shadow:0 2px 8px #0000001a}.markdown .markdown-toolbars .shift-theme ul.active[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul.active[data-v-7c98e74e]{opacity:1;transform:scaleY(1)}.markdown .markdown-toolbars .shift-theme ul li[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li[data-v-7c98e74e]{line-height:30px;padding:0 12px;font-size:13px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;align-items:center;color:#262626}.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-7c98e74e]{font-size:14px;display:block;height:30px;width:30px;line-height:30px;overflow:hidden}.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-7c98e74e]:hover{color:#262626}.markdown .markdown-toolbars .shift-theme ul li i[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li i[data-v-7c98e74e]{font-size:13px;display:block;font-style:normal;flex:1;white-space:normal}.markdown .markdown-toolbars .shift-theme ul li[data-v-7c98e74e]:last-child,.markdown .markdown-toolbars .export-file ul li[data-v-7c98e74e]:last-child{border-bottom:0}.markdown .markdown-toolbars .shift-theme ul li:last-child .iconfont[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li:last-child .iconfont[data-v-7c98e74e]{font-size:14px!important;margin:0!important}.markdown .markdown-toolbars .shift-theme ul li[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file ul li[data-v-7c98e74e]:hover{background:#f7f7f7}.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-7c98e74e],.markdown .markdown-toolbars .export-file ul li.disabled[data-v-7c98e74e]{cursor:not-allowed;color:#bbbec4}.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-7c98e74e]:hover,.markdown .markdown-toolbars .export-file ul li.disabled[data-v-7c98e74e]:hover{background:transparent}.markdown .markdown-toolbars .import-file[data-v-7c98e74e]{position:relative}.markdown .markdown-toolbars .import-file input[data-v-7c98e74e]{position:absolute;z-index:9999;left:0;top:0;display:block;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}.markdown .markdown-toolbars .import-file:hover span[data-v-7c98e74e]{background:#f7f7f7;color:#1890ff}.markdown .markdown-toolbars .import-file[data-v-7c98e74e]:hover:after{transform:scale(1);opacity:1}.markdown .close-preview[data-v-7c98e74e]{position:absolute;z-index:999;right:0;top:0;height:40px;width:40px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#262626}.markdown .close-preview span[data-v-7c98e74e]{font-size:22px}.markdown .close-preview span[data-v-7c98e74e]:hover{color:#262626}.markdown .markdown-content[data-v-7c98e74e]{flex:1;width:100%;display:flex;justify-content:space-between;position:relative;overflow:hidden;padding-bottom:0}.markdown .markdown-content .markdown-editor[data-v-7c98e74e]{flex:1;height:100%;position:relative;margin:0!important;overflow:hidden;overflow-y:scroll;display:flex;justify-content:space-between;background:#2d2d2d}.markdown .markdown-content .markdown-editor[data-v-7c98e74e]::-webkit-scrollbar{display:none}.markdown .markdown-content .markdown-editor .index[data-v-7c98e74e]{background:#272727;min-height:100%;width:36px;line-height:22px;padding:12px 0}.markdown .markdown-content .markdown-editor .index li[data-v-7c98e74e]{background:#272727;color:#ccc;font-size:14px;text-align:center;font-family:Consolas}.markdown .markdown-content .markdown-editor textarea[data-v-7c98e74e]{width:100%;min-height:100%;outline:none;border:0;background:#2d2d2d;line-height:22px;caret-color:#ccc;color:#669acc;font-size:14px;font-family:Consolas;resize:none;padding:12px 8px;overflow:hidden;white-space:nowrap;overflow-x:auto}.markdown .markdown-content .markdown-editor textarea[data-v-7c98e74e]::-moz-selection{background:#999;color:#0084ff}.markdown .markdown-content .markdown-editor textarea[data-v-7c98e74e]::selection{background:#999;color:#0084ff}.markdown .markdown-content .codemirror[data-v-7c98e74e]{flex:1;width:auto;height:100%;overflow:auto}.markdown .markdown-content .markdown-preview[data-v-7c98e74e]{flex:1;width:auto;height:100%}.markdown ul.toc-anchor[data-v-7c98e74e]{max-width:260px;min-width:150px;background-color:#f6f8fa;border-left:2px solid #dcdfe6;overflow:auto}.markdown ul.toc-anchor li.toc-anchor-item[data-v-7c98e74e]{cursor:pointer;padding:6px 16px;font-size:12px;line-height:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.markdown ul.toc-anchor li.toc-anchor-item span[data-v-7c98e74e]{color:#333;opacity:.8}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-2[data-v-7c98e74e]{padding-left:16px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-3[data-v-7c98e74e]{padding-left:32px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-4[data-v-7c98e74e]{padding-left:48px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-5[data-v-7c98e74e]{padding-left:64px}.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-action[data-v-7c98e74e]{color:#2b85e4;opacity:1}.markdown ul.toc-anchor li.toc-anchor-item[data-v-7c98e74e]:first-child{padding-top:16px}.markdown ul.toc-anchor li.toc-anchor-item:hover span[data-v-7c98e74e]{opacity:1}.insert-img-model[data-v-7c98e74e]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99999;background:rgba(0,0,0,.3);padding-top:12%;transition:all .3s;opacity:0;display:none}.insert-img-model .model-container[data-v-7c98e74e]{background:#fff;width:480px;margin:0 auto;border-radius:4px;transition:all .3s;transform:scale(0);transform-origin:center}.insert-img-model .model-container .model-head[data-v-7c98e74e]{line-height:32px;padding:0 12px;background:#f7f7f7;border-radius:4px 4px 0 0;box-shadow:0 1px 2px #d9d9d9;display:flex;justify-content:space-between}.insert-img-model .model-container .model-head span[data-v-7c98e74e]:nth-of-type(2){font-size:14px;padding-left:12px;cursor:pointer}.insert-img-model .model-container .model-head span[data-v-7c98e74e]:nth-of-type(2):hover{color:#ed3f14}.insert-img-model .model-container .model-content[data-v-7c98e74e]{padding:0 12px 20px;min-height:180px}.insert-img-model .model-container .model-content .insert-url[data-v-7c98e74e]{padding:42px 0;display:flex;justify-content:space-between;align-items:center}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]{display:block;border:1px solid #ccc;font-size:14px;padding:4px 8px;line-height:24px;color:#333;background:#fff;border-radius:4px;writing-mode:horizontal-tb;text-rendering:auto;transition:box-shadow 2s;flex:1}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]:focus{border-color:#1890ff}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]::-moz-placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url input[data-v-7c98e74e]::placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url a[data-v-7c98e74e]{display:block;background:#1890ff;color:#fff;line-height:32px;height:32px;font-size:13px;padding:0 12px;border-radius:3px;margin-left:20px;border:1px solid #d9d9d9;transition:all .3s}.insert-img-model .model-container .model-content .insert-url a[data-v-7c98e74e]:hover{background:#0169af}.insert-img-model .model-container .model-content .insert-local[data-v-7c98e74e]{height:120px;border:1px dashed #d9d9d9;border-radius:4px;transition:all .3s;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer}.insert-img-model .model-container .model-content .insert-local span[data-v-7c98e74e]{font-size:40px;color:#d9d9d9;line-height:50px;transition:all .3s}.insert-img-model .model-container .model-content .insert-local p[data-v-7c98e74e]{font-size:14px;color:#262626;transition:all .3s}.insert-img-model .model-container .model-content .insert-local[data-v-7c98e74e]:hover{border-color:#1890ff}.insert-img-model .model-container .model-content .insert-local:hover span[data-v-7c98e74e],.insert-img-model .model-container .model-content .insert-local:hover p[data-v-7c98e74e]{color:#1890ff}.insert-img-model .model-container .model-content .insert-local input[data-v-7c98e74e]{display:block;position:absolute;width:100%;height:100%;opacity:0}.insert-img-model .model-container .model-foot[data-v-7c98e74e]{display:flex;justify-content:flex-end;align-items:center;padding:10px 12px;display:none}.insert-img-model .model-container .model-foot a[data-v-7c98e74e]{display:block;background:#f7f7f7;color:#262626;line-height:26px;height:26px;font-size:13px;padding:0 12px;border-radius:3px;margin-left:12px;border:1px solid #d9d9d9;transition:all .3s}.insert-img-model .model-container .model-foot a[data-v-7c98e74e]:hover{background:#d9d9d9}.insert-img-model .model-container .model-foot a.ok[data-v-7c98e74e]{background:#1890ff;color:#fff;border-color:#1890ff}.insert-img-model .model-container .model-foot a.ok[data-v-7c98e74e]:hover{background:#0169af}.insert-img-model.active[data-v-7c98e74e]{opacity:1;display:block}.insert-img-model.active .model-container[data-v-7c98e74e]{transform:scale(1)}ul.shift[data-v-7c98e74e]{padding:6px 12px;display:flex;align-items:center}ul.shift span[data-v-7c98e74e]{font-size:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.shift span.iconfont[data-v-7c98e74e]{font-size:14px}ul.shift label[data-v-7c98e74e]{font-size:12px;padding-right:10px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.shift input[type=radio][data-v-7c98e74e],ul.shift label[data-v-7c98e74e]{transition:all .6s ease;box-sizing:border-box}ul.shift input[type=radio]+label[data-v-7c98e74e]:before{content:"\a0";display:inline-block;vertical-align:middle;margin-right:4px;width:8px;height:8px;border-radius:50%;border:1px solid #292d35;padding:2px}ul.shift input[type=radio]:checked+label[data-v-7c98e74e]:before{background-color:#292d35;background-clip:content-box;padding:2px}ul.shift input[type=radio][data-v-7c98e74e]{position:absolute;clip:rect(0,0,0,0)}ul.shift input[type=radio]:checked+label[data-v-7c98e74e]{color:#292d35}[data-v-7c98e74e] .markdown-preview{flex:1;overflow:hidden;overflow-y:scroll;background:#fff;padding:20px 12px!important;font-family:Tahoma For Number,Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}[data-v-7c98e74e] .markdown-preview *{margin:0;padding:0;box-sizing:border-box}[data-v-7c98e74e] .markdown-preview>div{padding:10px 12px!important;background:#fff}[data-v-7c98e74e] .markdown-preview>div::-webkit-scrollbar{display:none}[data-v-7c98e74e] .markdown-preview::-webkit-scrollbar{display:none}[data-v-7c98e74e] .markdown-preview em{font-style:oblique}[data-v-7c98e74e] .markdown-preview ul{list-style:none;padding:0 20px}[data-v-7c98e74e] .markdown-preview ul li{position:relative}[data-v-7c98e74e] .markdown-preview ul li:after{display:block;content:"";width:8px;height:8px;border-radius:50%;position:absolute;z-index:99;top:12px;left:-16px;background:#262626}[data-v-7c98e74e] .markdown-preview ol,[data-v-7c98e74e] .markdown-preview ul{margin:10px 0}[data-v-7c98e74e] .markdown-preview ol li,[data-v-7c98e74e] .markdown-preview ul li{font-size:14px!important;color:#262626;line-height:22px!important;padding:4px 0 4px 6px;min-height:28px}[data-v-7c98e74e] .markdown-preview ol li input[type=checkbox],[data-v-7c98e74e] .markdown-preview ul li input[type=checkbox]{position:relative;cursor:pointer;overflow:visible;position:absolute;left:-14px;top:5px}[data-v-7c98e74e] .markdown-preview ol li input[type=checkbox]:before,[data-v-7c98e74e] .markdown-preview ul li input[type=checkbox]:before{font-family:iconfont!important;color:#999;display:block;width:18px;height:18px;position:absolute;content:"\e684";top:0px;left:-4px;z-index:999999;background-position:center;background:#fff;font-size:18px;text-align:center;line-height:18px}[data-v-7c98e74e] .markdown-preview ol li input[type=checkbox]:checked:before,[data-v-7c98e74e] .markdown-preview ul li input[type=checkbox]:checked:before{content:"\e683"}[data-v-7c98e74e] .markdown-preview ol.toc-anchor,[data-v-7c98e74e] .markdown-preview ul.toc-anchor{margin:0;padding:0}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item{cursor:pointer;padding:4px 0;font-size:13px!important;line-height:16px!important;min-height:auto;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span{color:#2b85e4;opacity:.9}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-2,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-2{padding-left:16px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-3,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-3{padding-left:32px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-4,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-4{padding-left:48px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-5,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-5{padding-left:64px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item:last-child,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item:last-child{padding-bottom:6px}[data-v-7c98e74e] .markdown-preview ol.toc-anchor li.toc-anchor-item:hover span,[data-v-7c98e74e] .markdown-preview ul.toc-anchor li.toc-anchor-item:hover span{opacity:1}[data-v-7c98e74e] .markdown-preview ol{list-style-type:decimal;padding-left:20px}[data-v-7c98e74e] .markdown-preview ol li{list-style:decimal}[data-v-7c98e74e] .markdown-preview hr{color:#d9d9d9;height:1px;border:0;border-top:1px solid #d9d9d9;margin:20px 0;padding:0}[data-v-7c98e74e] .markdown-preview del,[data-v-7c98e74e] .markdown-preview em,[data-v-7c98e74e] .markdown-preview strong{display:inline-block}[data-v-7c98e74e] .markdown-preview blockquote{position:relative;background:#f7f7f7;padding:6px 12px;border-left:5px solid #d9d9d9;border-radius:2px;margin:8px 0}[data-v-7c98e74e] .markdown-preview h1,[data-v-7c98e74e] .markdown-preview h2,[data-v-7c98e74e] .markdown-preview h3,[data-v-7c98e74e] .markdown-preview h4,[data-v-7c98e74e] .markdown-preview h5,[data-v-7c98e74e] .markdown-preview h6{color:#262626}[data-v-7c98e74e] .markdown-preview h1{font-size:28px;border-bottom:1px solid #d9d9d9}[data-v-7c98e74e] .markdown-preview h2{font-size:24px}[data-v-7c98e74e] .markdown-preview h3{font-size:18px}[data-v-7c98e74e] .markdown-preview h4{font-size:16px}[data-v-7c98e74e] .markdown-preview h5{font-size:14px}[data-v-7c98e74e] .markdown-preview h6{font-size:12px}[data-v-7c98e74e] .markdown-preview h1,[data-v-7c98e74e] .markdown-preview h2,[data-v-7c98e74e] .markdown-preview h3,[data-v-7c98e74e] .markdown-preview h4,[data-v-7c98e74e] .markdown-preview h5,[data-v-7c98e74e] .markdown-preview h6{padding:8px 0;font-weight:600}[data-v-7c98e74e] .markdown-preview p{font-size:14px!important;color:#262626;margin-bottom:8px;line-height:22px}[data-v-7c98e74e] .markdown-preview img{display:block;max-width:100%;margin:20px 0;cursor:pointer}[data-v-7c98e74e] .markdown-preview table{width:100%;border:1px solid #d9d9d9;border-bottom:0;background:#fff;border-spacing:0;border-collapse:collapse;margin:20px 0}[data-v-7c98e74e] .markdown-preview table tr{transition:background .1s}[data-v-7c98e74e] .markdown-preview table tr td,[data-v-7c98e74e] .markdown-preview table tr th{padding:4px 8px;font-size:14px;line-height:24px;color:#333;border-bottom:1px solid #d9d9d9;cursor:pointer}[data-v-7c98e74e] .markdown-preview table th{background:#f8f8f9;text-align:left;font-weight:700}[data-v-7c98e74e] .markdown-preview table tr:nth-of-type(even) td{background:#fafafa}[data-v-7c98e74e] .markdown-preview table tr:hover td{background:#f5f5f5}[data-v-7c98e74e] .markdown-preview table td,[data-v-7c98e74e] .markdown-preview table th{border:1px solid #d9d9d9;word-break:break-all}[data-v-7c98e74e] .markdown-preview input[type=checkbox]{display:inline-block;border-radius:0;margin-right:8px}[data-v-7c98e74e] .markdown-preview a{text-decoration:none;color:#1890ff;font-size:14px;line-height:22px}[data-v-7c98e74e] .markdown-preview .code-block{position:relative;padding:0!important}[data-v-7c98e74e] .markdown-preview .code-block .copy-code{position:absolute;z-index:999;top:5px;right:10px;font-size:12px;color:#d9d9d9;line-height:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:all .3s;opacity:0}[data-v-7c98e74e] .markdown-preview .code-block .copy-code:hover{color:#1890ff}[data-v-7c98e74e] .markdown-preview .code-block:hover .copy-code{opacity:1}.preview-img[data-v-7c98e74e]{position:fixed;width:100vw;height:100vh;z-index:99999999;left:0;top:0;background:rgba(0,0,0,.5);display:none;opacity:0;transition:opacity .3s .1s;justify-content:center;align-items:center}.preview-img .close[data-v-7c98e74e]{position:absolute;right:0;top:0;color:#fff;padding:10px;font-size:20px;cursor:pointer}.preview-img img[data-v-7c98e74e]{display:block}.preview-img img.vertical[data-v-7c98e74e]{height:80%;width:auto}.preview-img img.horizontal[data-v-7c98e74e]{width:80%;height:auto}.preview-img.active[data-v-7c98e74e]{display:flex;opacity:1}@media (max-width: 920px){.markdown .markdown-content[data-v-7c98e74e]{flex-direction:column}.markdown .toc-anchor[data-v-7c98e74e],.markdown .icon-svg[data-v-7c98e74e]{display:none!important}}[data-v-7c98e74e] .markdown-theme-light pre{font-size:14px!important;line-height:1.6!important;word-break:break-all;word-wrap:break-word;border:0!important;background:#f7f8fb!important;padding:20px 10px!important;border-radius:4px!important;overflow-y:hidden!important;overflow-x:auto!important;margin:10px 0!important}[data-v-7c98e74e] .markdown-theme-light pre code{font-family:Consolas!important;font-size:13px;line-height:22px!important;color:#444}[data-v-7c98e74e] .markdown-theme-light .hljs{display:block;overflow-x:auto;color:#525252;padding:15px;-webkit-text-size-adjust:none}[data-v-7c98e74e] .markdown-theme-light .hljs-doctype{color:#999}[data-v-7c98e74e] .markdown-theme-light .hljs-tag{color:#3e76f6}[data-v-7c98e74e] .markdown-theme-light .hljs-attribute{color:#e96900}[data-v-7c98e74e] .markdown-theme-light .hljs-value{color:#42b983}[data-v-7c98e74e] .markdown-theme-light .hljs-keyword{color:#e96900}[data-v-7c98e74e] .markdown-theme-light .hljs-string{color:#42b983}[data-v-7c98e74e] .markdown-theme-light .hljs-comment{color:#b3b3b3}[data-v-7c98e74e] .markdown-theme-light .hljs-operator .hljs-comment{color:#525252}[data-v-7c98e74e] .markdown-theme-light .hljs-regexp{color:#af7dff}[data-v-7c98e74e] .markdown-theme-light .hljs-built_in{color:#2db7f5}[data-v-7c98e74e] .markdown-theme-light .css .hljs-class{color:#e96900}[data-v-7c98e74e] .markdown-theme-light .css .hljs-number,[data-v-7c98e74e] .markdown-theme-light .javascript .hljs-number{color:#fc1e70}[data-v-7c98e74e] .markdown-theme-light .css .hljs-attribute{color:#af7dff}[data-v-7c98e74e] .markdown-theme-light .css .hljs-important{color:red}[data-v-7c98e74e] .markdown-theme-light .actionscript .hljs-literal,[data-v-7c98e74e] .markdown-theme-light .javascript .hljs-literal{color:#fc1e70}[data-v-7c98e74e] .markdown-theme-light pre{padding:0;margin:0;background:#f7f7f7!important}[data-v-7c98e74e] .markdown-theme-light code{display:inline-block;background:#f7f7f7;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;margin:0 3px;padding:1px 5px;border-radius:3px;color:#666;border:1px solid #eee}[data-v-7c98e74e] .markdown-theme-light pre code{display:inline;margin:0;padding:0;border:none;background:transparent}[data-v-7c98e74e] .markdown-theme-light pre.bg code{background:#f7f7f7}[data-v-7c98e74e] .markdown-theme-dark pre{display:block;padding:20px 10px!important;border-radius:4px;margin:20px 0!important;background:#1e1e1e;color:#dcdcdc;overflow-y:hidden!important;overflow-x:auto!important;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace!important}[data-v-7c98e74e] .markdown-theme-dark pre *{line-height:1.6!important;font-size:14px;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace!important}[data-v-7c98e74e] .markdown-theme-dark code{padding:0!important;margin:0!important}[data-v-7c98e74e] .markdown-theme-dark .hljs-literal,[data-v-7c98e74e] .markdown-theme-dark .hljs-name,[data-v-7c98e74e] .markdown-theme-dark .hljs-symbol{color:#659bd1}[data-v-7c98e74e] .markdown-theme-dark .hljs-keyword{color:#bc89bd}[data-v-7c98e74e] .markdown-theme-dark .hljs-link{color:#569cd6;text-decoration:underline}[data-v-7c98e74e] .markdown-theme-dark .hljs-built_in,[data-v-7c98e74e] .markdown-theme-dark .hljs-type{color:#4ec9b0}[data-v-7c98e74e] .markdown-theme-dark .hljs-class,[data-v-7c98e74e] .markdown-theme-dark .hljs-number{color:#b8d7a3}[data-v-7c98e74e] .markdown-theme-dark .hljs-meta-string,[data-v-7c98e74e] .markdown-theme-dark .hljs-string{color:#d69d85}[data-v-7c98e74e] .markdown-theme-dark .hljs-regexp,[data-v-7c98e74e] .markdown-theme-dark .hljs-template-tag{color:#9a5334}[data-v-7c98e74e] .markdown-theme-dark .hljs-formula,[data-v-7c98e74e] .markdown-theme-dark .hljs-function,[data-v-7c98e74e] .markdown-theme-dark .hljs-params,[data-v-7c98e74e] .markdown-theme-dark .hljs-subst,[data-v-7c98e74e] .markdown-theme-dark .hljs-title{color:#dcdcdc}[data-v-7c98e74e] .markdown-theme-dark .hljs-comment,[data-v-7c98e74e] .markdown-theme-dark .hljs-quote{color:#57a64a;font-style:italic}[data-v-7c98e74e] .markdown-theme-dark .hljs-doctag{color:#608b4e}[data-v-7c98e74e] .markdown-theme-dark .hljs-meta,[data-v-7c98e74e] .markdown-theme-dark .hljs-meta-keyword,[data-v-7c98e74e] .markdown-theme-dark .hljs-tag{color:#9b9b9b}[data-v-7c98e74e] .markdown-theme-dark .hljs-template-variable,[data-v-7c98e74e] .markdown-theme-dark .hljs-variable{color:#bd63c5}[data-v-7c98e74e] .markdown-theme-dark .hljs-attr,[data-v-7c98e74e] .markdown-theme-dark .hljs-attribute,[data-v-7c98e74e] .markdown-theme-dark .hljs-builtin-name{color:#9cdcfe}[data-v-7c98e74e] .markdown-theme-dark .hljs-section{color:gold}[data-v-7c98e74e] .markdown-theme-dark .hljs-emphasis{font-style:italic}[data-v-7c98e74e] .markdown-theme-dark .hljs-strong{font-weight:700}[data-v-7c98e74e] .markdown-theme-dark .hljs-bullet,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-attr,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-class,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-id,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-pseudo,[data-v-7c98e74e] .markdown-theme-dark .hljs-selector-tag{color:#d7ba7d}[data-v-7c98e74e] .markdown-theme-dark .hljs-addition{background-color:#144212;display:inline-block;width:100%}[data-v-7c98e74e] .markdown-theme-dark .hljs-deletion{background-color:#600;display:inline-block;width:100%}[data-v-7c98e74e] .markdown-theme-dark .hljs-comment{font-style:normal}[data-v-7c98e74e] .markdown-theme-oneDark pre{padding:20px 10px!important;display:block;color:#abb2bf;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace;background:#292c34;border-radius:4px;overflow-y:hidden!important;overflow-x:auto!important;margin:10px 0!important}[data-v-7c98e74e] .markdown-theme-oneDark pre *{line-height:1.6!important;font-size:14px;font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-comment,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-quote{color:#5c6370;font-style:italic}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-doctag,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-formula,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-keyword{color:#c678dd}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-deletion,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-name,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-section,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-tag,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-subst{color:#e06c75}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-literal{color:#56b6c2}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-addition,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-attribute,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-meta-string,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-regexp,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-string{color:#98c379}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-built_in,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-class .hljs-title{color:#e6c07b}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-attr,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-number,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-attr,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-class,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-pseudo,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-template-variable,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-type,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-variable{color:#d19a66}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-bullet,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-link,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-meta,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-selector-id,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-symbol,[data-v-7c98e74e] .markdown-theme-oneDark .hljs-title{color:#61aeee}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-emphasis{font-style:italic}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-strong{font-weight:700}[data-v-7c98e74e] .markdown-theme-oneDark .hljs-link{text-decoration:underline}[data-v-7c98e74e] .markdown-theme-gitHub pre{padding:20px 10px!important;display:block;overflow-x:auto;color:#333;background:#f7f8fa!important;font-size:13px;line-height:20px;border-radius:4px;margin:10px 0!important;overflow-x:auto!important}[data-v-7c98e74e] .markdown-theme-gitHub pre *{font-family:Consolas!important}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-comment,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-quote{color:#998;font-style:italic}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-selector-tag,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-subst{color:#333;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-keyword{color:#d73a49}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-literal,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-number,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-tag .hljs-attr,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-template-variable,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-variable{color:teal}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-doctag,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-string{color:#d73a49}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-section,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-selector-id,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-title{color:#900;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-subst{font-weight:400}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-class .hljs-title,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-type{color:#458;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-attribute,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-name,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-tag{color:navy;font-weight:400}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-link,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-regexp{color:#009926}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-bullet,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-symbol{color:#990073}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-built_in,[data-v-7c98e74e] .markdown-theme-gitHub .hljs-builtin-name{color:#0086b3}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-meta{color:#999;font-weight:700}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-deletion{background:#fdd}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-addition{background:#dfd}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-emphasis{font-style:italic}[data-v-7c98e74e] .markdown-theme-gitHub .hljs-strong{font-weight:700}body .ivu-modal-wrap.common-preview-image-view .ivu-modal{margin:0;padding:0}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content{background:transparent}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-close{display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:#606266;font-size:24px;height:40px;right:40px;top:40px;width:40px}@media (max-width: 640px){body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-close{right:24px;top:24px}}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-close .ivu-icon-ios-close{top:0;right:0;font-size:40px;color:#fff}body .ivu-modal-wrap.common-preview-image-view .ivu-modal .ivu-modal-content .ivu-modal-body{padding:0}body .ivu-modal-wrap.common-preview-image-swipe{display:none}.child-view[data-v-1a09ece0]{position:absolute;width:100%;min-height:100%;transition:all .3s cubic-bezier(.55,0,.1,1)}/*! - * Quill Editor v2.0.0 - * https://quilljs.com - * Copyright (c) 2017-2024, Slab - * Copyright (c) 2014, Jason Chen - * Copyright (c) 2013, salesforce.com - */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"\2022"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"\2611"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"\2610"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-bubble.ql-toolbar:after,.ql-bubble .ql-toolbar:after{clear:both;content:"";display:table}.ql-bubble.ql-toolbar button,.ql-bubble .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-bubble.ql-toolbar button svg,.ql-bubble .ql-toolbar button svg{float:left;height:100%}.ql-bubble.ql-toolbar button:active:hover,.ql-bubble .ql-toolbar button:active:hover{outline:none}.ql-bubble.ql-toolbar input.ql-image[type=file],.ql-bubble .ql-toolbar input.ql-image[type=file]{display:none}.ql-bubble.ql-toolbar button:hover,.ql-bubble .ql-toolbar button:hover,.ql-bubble.ql-toolbar button:focus,.ql-bubble .ql-toolbar button:focus,.ql-bubble.ql-toolbar button.ql-active,.ql-bubble .ql-toolbar button.ql-active,.ql-bubble.ql-toolbar .ql-picker-label:hover,.ql-bubble .ql-toolbar .ql-picker-label:hover,.ql-bubble.ql-toolbar .ql-picker-label.ql-active,.ql-bubble .ql-toolbar .ql-picker-label.ql-active,.ql-bubble.ql-toolbar .ql-picker-item:hover,.ql-bubble .ql-toolbar .ql-picker-item:hover,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected{color:#fff}.ql-bubble.ql-toolbar button:hover .ql-fill,.ql-bubble .ql-toolbar button:hover .ql-fill,.ql-bubble.ql-toolbar button:focus .ql-fill,.ql-bubble .ql-toolbar button:focus .ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-bubble.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-bubble.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#fff}.ql-bubble.ql-toolbar button:hover .ql-stroke,.ql-bubble .ql-toolbar button:hover .ql-stroke,.ql-bubble.ql-toolbar button:focus .ql-stroke,.ql-bubble .ql-toolbar button:focus .ql-stroke,.ql-bubble.ql-toolbar button.ql-active .ql-stroke,.ql-bubble .ql-toolbar button.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-bubble.ql-toolbar button:hover .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover .ql-stroke-miter,.ql-bubble.ql-toolbar button:focus .ql-stroke-miter,.ql-bubble .ql-toolbar button:focus .ql-stroke-miter,.ql-bubble.ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar button.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-bubble.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-bubble .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#fff}@media (pointer:coarse){.ql-bubble.ql-toolbar button:hover:not(.ql-active),.ql-bubble .ql-toolbar button:hover:not(.ql-active){color:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#ccc}.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-bubble.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-bubble .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#ccc}}.ql-bubble,.ql-bubble *{box-sizing:border-box}.ql-bubble .ql-hidden{display:none}.ql-bubble .ql-out-bottom,.ql-bubble .ql-out-top{visibility:hidden}.ql-bubble .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-bubble .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-bubble .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-bubble .ql-formats{display:inline-block;vertical-align:middle}.ql-bubble .ql-formats:after{clear:both;content:"";display:table}.ql-bubble .ql-stroke{fill:none;stroke:#ccc;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-bubble .ql-stroke-miter{fill:none;stroke:#ccc;stroke-miterlimit:10;stroke-width:2}.ql-bubble .ql-fill,.ql-bubble .ql-stroke.ql-fill{fill:#ccc}.ql-bubble .ql-empty{fill:none}.ql-bubble .ql-even{fill-rule:evenodd}.ql-bubble .ql-thin,.ql-bubble .ql-stroke.ql-thin{stroke-width:1}.ql-bubble .ql-transparent{opacity:.4}.ql-bubble .ql-direction svg:last-child{display:none}.ql-bubble .ql-direction.ql-active svg:last-child{display:inline}.ql-bubble .ql-direction.ql-active svg:first-child{display:none}.ql-bubble .ql-editor h1{font-size:2em}.ql-bubble .ql-editor h2{font-size:1.5em}.ql-bubble .ql-editor h3{font-size:1.17em}.ql-bubble .ql-editor h4{font-size:1em}.ql-bubble .ql-editor h5{font-size:.83em}.ql-bubble .ql-editor h6{font-size:.67em}.ql-bubble .ql-editor a{text-decoration:underline}.ql-bubble .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-bubble .ql-editor code,.ql-bubble .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-bubble .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-bubble .ql-editor code{font-size:85%;padding:2px 4px}.ql-bubble .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-bubble .ql-editor img{max-width:100%}.ql-bubble .ql-picker{color:#ccc;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-bubble .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-bubble .ql-picker-label:before{display:inline-block;line-height:22px}.ql-bubble .ql-picker-options{background-color:#444;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-bubble .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-bubble .ql-picker.ql-expanded .ql-picker-label{color:#777;z-index:2}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#777}.ql-bubble .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-bubble .ql-color-picker,.ql-bubble .ql-icon-picker{width:28px}.ql-bubble .ql-color-picker .ql-picker-label,.ql-bubble .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-label svg,.ql-bubble .ql-icon-picker .ql-picker-label svg{right:4px}.ql-bubble .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-bubble .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-bubble .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-bubble .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-bubble .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-bubble .ql-picker.ql-header{width:98px}.ql-bubble .ql-picker.ql-header .ql-picker-label:before,.ql-bubble .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-bubble .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-bubble .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-bubble .ql-picker.ql-font{width:108px}.ql-bubble .ql-picker.ql-font .ql-picker-label:before,.ql-bubble .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-bubble .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-bubble .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-bubble .ql-picker.ql-size{width:98px}.ql-bubble .ql-picker.ql-size .ql-picker-label:before,.ql-bubble .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-bubble .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-bubble .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-bubble .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-bubble .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-bubble .ql-toolbar .ql-formats{margin:8px 12px 8px 0}.ql-bubble .ql-toolbar .ql-formats:first-child{margin-left:12px}.ql-bubble .ql-color-picker svg{margin:1px}.ql-bubble .ql-color-picker .ql-picker-item.ql-selected,.ql-bubble .ql-color-picker .ql-picker-item:hover{border-color:#fff}.ql-bubble .ql-tooltip{background-color:#444;border-radius:25px;color:#fff}.ql-bubble .ql-tooltip-arrow{border-left:6px solid transparent;border-right:6px solid transparent;content:" ";display:block;left:50%;margin-left:-6px;position:absolute}.ql-bubble .ql-tooltip:not(.ql-flip) .ql-tooltip-arrow{border-bottom:6px solid #444;top:-6px}.ql-bubble .ql-tooltip.ql-flip .ql-tooltip-arrow{border-top:6px solid #444;bottom:-6px}.ql-bubble .ql-tooltip.ql-editing .ql-tooltip-editor{display:block}.ql-bubble .ql-tooltip.ql-editing .ql-formats{visibility:hidden}.ql-bubble .ql-tooltip-editor{display:none}.ql-bubble .ql-tooltip-editor input[type=text]{background:transparent;border:none;color:#fff;font-size:13px;height:100%;outline:none;padding:10px 20px;position:absolute;width:100%}.ql-bubble .ql-tooltip-editor a{top:10px;position:absolute;right:20px}.ql-bubble .ql-tooltip-editor a:before{color:#ccc;content:"\d7";font-size:16px;font-weight:700}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close){position:relative;white-space:nowrap}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):before{background-color:#444;border-radius:15px;top:-5px;font-size:12px;color:#fff;content:attr(href);font-weight:400;overflow:hidden;padding:5px 15px;text-decoration:none;z-index:1}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):after{border-top:6px solid #444;border-left:6px solid transparent;border-right:6px solid transparent;top:0;content:" ";height:0;width:0}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):before,.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):after{left:0;margin-left:50%;position:absolute;transform:translate(-50%,-100%);transition:visibility 0s ease .2s;visibility:hidden}.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):hover:before,.ql-container.ql-bubble:not(.ql-disabled) a:not(.ql-close):hover:after{visibility:visible}.ql-mention-list-container{width:270px;border:1px solid #f0f0f0;border-radius:4px;background-color:#fff;box-shadow:0 2px 12px #1e1e1e14;z-index:9001;overflow:auto}.ql-mention-loading{line-height:44px;padding:0 20px;vertical-align:middle;font-size:16px}.ql-mention-list{list-style:none;margin:0;padding:0;overflow:hidden}.ql-mention-list-item{cursor:pointer;line-height:44px;font-size:16px;padding:0 20px;vertical-align:middle}.ql-mention-list-item.disabled{cursor:auto}.ql-mention-list-item.selected{background-color:#d3e1eb;text-decoration:none}.mention{height:24px;width:65px;border-radius:6px;background-color:#d3e1eb;padding:3px 0;margin-right:2px;-webkit-user-select:all;-moz-user-select:all;user-select:all}.mention>span{margin:0 3px}.file-icon:before{content:"";background-repeat:no-repeat;background-size:contain;background-image:url(/js/build/other.0cd5a04c.svg)}.file-icon.archive:before{background-image:url(/js/build/archive.2927c41b.svg)}.file-icon.cad:before{background-image:url(/js/build/cad.2dfbfe73.svg)}.file-icon.code:before{background-image:url(/js/build/code.1a9a4504.svg)}.file-icon.document:before{background-image:url(/js/build/document.624c4d76.svg)}.file-icon.drawio:before{background-image:url(/js/build/drawio.a58ab0df.svg)}.file-icon.excel:before{background-image:url(/js/build/excel.82abb1cd.svg)}.file-icon.flow:before{background-image:url(/js/build/drawio.a58ab0df.svg)}.file-icon.folder:before{background-image:url(/js/build/folder.68818161.svg)}.file-icon.folder.share:before{background-image:url(/js/build/folder-share.800b7d36.svg)}.file-icon.media:before{background-image:url(/js/build/media.7488f9a1.svg)}.file-icon.mind:before{background-image:url(/js/build/mind.9f75182d.svg)}.file-icon.ofd:before{background-image:url(/js/build/ofd.f4f94aaa.svg)}.file-icon.pdf:before{background-image:url(/js/build/pdf.74ce4683.svg)}.file-icon.picture:before{background-image:url(/js/build/picture.eff6e480.svg)}.file-icon.ppt:before{background-image:url(/js/build/ppt.03f2290d.svg)}.file-icon.sheet:before{background-image:url(/js/build/sheet.872ae91e.svg)}.file-icon.tif:before{background-image:url(/js/build/tif.7a6494bd.svg)}.file-icon.txt:before{background-image:url(/js/build/txt.acaac5b7.svg)}.file-icon.updir:before{background-image:url(/js/build/updir.354f6e04.svg)}.file-icon.upload:before{background-image:url(/js/build/upload.01661a19.svg)}.file-icon.word:before{background-image:url(/js/build/word.d0364128.svg)}.file-icon.wps:before{background-image:url(/js/build/wps.3cbc3b98.svg)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-fade-in-enter,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter,.el-list-leave-active{opacity:0;transform:translateY(-30px)}.el-opacity-transition{transition:opacity .3s cubic-bezier(.55,0,.1,1)}@font-face{font-family:element-icons;src:url(/js/build/element-icons.ab40a589.woff) format("woff"),url(/js/build/element-icons.a30f5b3b.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class^=el-icon-],[class*=" el-icon-"]{font-family:element-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.el-icon-ice-cream-round:before{content:"\e6a0"}.el-icon-ice-cream-square:before{content:"\e6a3"}.el-icon-lollipop:before{content:"\e6a4"}.el-icon-potato-strips:before{content:"\e6a5"}.el-icon-milk-tea:before{content:"\e6a6"}.el-icon-ice-drink:before{content:"\e6a7"}.el-icon-ice-tea:before{content:"\e6a9"}.el-icon-coffee:before{content:"\e6aa"}.el-icon-orange:before{content:"\e6ab"}.el-icon-pear:before{content:"\e6ac"}.el-icon-apple:before{content:"\e6ad"}.el-icon-cherry:before{content:"\e6ae"}.el-icon-watermelon:before{content:"\e6af"}.el-icon-grape:before{content:"\e6b0"}.el-icon-refrigerator:before{content:"\e6b1"}.el-icon-goblet-square-full:before{content:"\e6b2"}.el-icon-goblet-square:before{content:"\e6b3"}.el-icon-goblet-full:before{content:"\e6b4"}.el-icon-goblet:before{content:"\e6b5"}.el-icon-cold-drink:before{content:"\e6b6"}.el-icon-coffee-cup:before{content:"\e6b8"}.el-icon-water-cup:before{content:"\e6b9"}.el-icon-hot-water:before{content:"\e6ba"}.el-icon-ice-cream:before{content:"\e6bb"}.el-icon-dessert:before{content:"\e6bc"}.el-icon-sugar:before{content:"\e6bd"}.el-icon-tableware:before{content:"\e6be"}.el-icon-burger:before{content:"\e6bf"}.el-icon-knife-fork:before{content:"\e6c1"}.el-icon-fork-spoon:before{content:"\e6c2"}.el-icon-chicken:before{content:"\e6c3"}.el-icon-food:before{content:"\e6c4"}.el-icon-dish-1:before{content:"\e6c5"}.el-icon-dish:before{content:"\e6c6"}.el-icon-moon-night:before{content:"\e6ee"}.el-icon-moon:before{content:"\e6f0"}.el-icon-cloudy-and-sunny:before{content:"\e6f1"}.el-icon-partly-cloudy:before{content:"\e6f2"}.el-icon-cloudy:before{content:"\e6f3"}.el-icon-sunny:before{content:"\e6f6"}.el-icon-sunset:before{content:"\e6f7"}.el-icon-sunrise-1:before{content:"\e6f8"}.el-icon-sunrise:before{content:"\e6f9"}.el-icon-heavy-rain:before{content:"\e6fa"}.el-icon-lightning:before{content:"\e6fb"}.el-icon-light-rain:before{content:"\e6fc"}.el-icon-wind-power:before{content:"\e6fd"}.el-icon-baseball:before{content:"\e712"}.el-icon-soccer:before{content:"\e713"}.el-icon-football:before{content:"\e715"}.el-icon-basketball:before{content:"\e716"}.el-icon-ship:before{content:"\e73f"}.el-icon-truck:before{content:"\e740"}.el-icon-bicycle:before{content:"\e741"}.el-icon-mobile-phone:before{content:"\e6d3"}.el-icon-service:before{content:"\e6d4"}.el-icon-key:before{content:"\e6e2"}.el-icon-unlock:before{content:"\e6e4"}.el-icon-lock:before{content:"\e6e5"}.el-icon-watch:before{content:"\e6fe"}.el-icon-watch-1:before{content:"\e6ff"}.el-icon-timer:before{content:"\e702"}.el-icon-alarm-clock:before{content:"\e703"}.el-icon-map-location:before{content:"\e704"}.el-icon-delete-location:before{content:"\e705"}.el-icon-add-location:before{content:"\e706"}.el-icon-location-information:before{content:"\e707"}.el-icon-location-outline:before{content:"\e708"}.el-icon-location:before{content:"\e79e"}.el-icon-place:before{content:"\e709"}.el-icon-discover:before{content:"\e70a"}.el-icon-first-aid-kit:before{content:"\e70b"}.el-icon-trophy-1:before{content:"\e70c"}.el-icon-trophy:before{content:"\e70d"}.el-icon-medal:before{content:"\e70e"}.el-icon-medal-1:before{content:"\e70f"}.el-icon-stopwatch:before{content:"\e710"}.el-icon-mic:before{content:"\e711"}.el-icon-copy-document:before{content:"\e718"}.el-icon-full-screen:before{content:"\e719"}.el-icon-switch-button:before{content:"\e71b"}.el-icon-aim:before{content:"\e71c"}.el-icon-crop:before{content:"\e71d"}.el-icon-odometer:before{content:"\e71e"}.el-icon-time:before{content:"\e71f"}.el-icon-bangzhu:before{content:"\e724"}.el-icon-close-notification:before{content:"\e726"}.el-icon-microphone:before{content:"\e727"}.el-icon-turn-off-microphone:before{content:"\e728"}.el-icon-position:before{content:"\e729"}.el-icon-postcard:before{content:"\e72a"}.el-icon-message:before{content:"\e72b"}.el-icon-chat-line-square:before{content:"\e72d"}.el-icon-chat-dot-square:before{content:"\e72e"}.el-icon-chat-dot-round:before{content:"\e72f"}.el-icon-chat-square:before{content:"\e730"}.el-icon-chat-line-round:before{content:"\e731"}.el-icon-chat-round:before{content:"\e732"}.el-icon-set-up:before{content:"\e733"}.el-icon-turn-off:before{content:"\e734"}.el-icon-open:before{content:"\e735"}.el-icon-connection:before{content:"\e736"}.el-icon-link:before{content:"\e737"}.el-icon-cpu:before{content:"\e738"}.el-icon-thumb:before{content:"\e739"}.el-icon-female:before{content:"\e73a"}.el-icon-male:before{content:"\e73b"}.el-icon-guide:before{content:"\e73c"}.el-icon-news:before{content:"\e73e"}.el-icon-price-tag:before{content:"\e744"}.el-icon-discount:before{content:"\e745"}.el-icon-wallet:before{content:"\e747"}.el-icon-coin:before{content:"\e748"}.el-icon-money:before{content:"\e749"}.el-icon-bank-card:before{content:"\e74a"}.el-icon-box:before{content:"\e74b"}.el-icon-present:before{content:"\e74c"}.el-icon-sell:before{content:"\e6d5"}.el-icon-sold-out:before{content:"\e6d6"}.el-icon-shopping-bag-2:before{content:"\e74d"}.el-icon-shopping-bag-1:before{content:"\e74e"}.el-icon-shopping-cart-2:before{content:"\e74f"}.el-icon-shopping-cart-1:before{content:"\e750"}.el-icon-shopping-cart-full:before{content:"\e751"}.el-icon-smoking:before{content:"\e752"}.el-icon-no-smoking:before{content:"\e753"}.el-icon-house:before{content:"\e754"}.el-icon-table-lamp:before{content:"\e755"}.el-icon-school:before{content:"\e756"}.el-icon-office-building:before{content:"\e757"}.el-icon-toilet-paper:before{content:"\e758"}.el-icon-notebook-2:before{content:"\e759"}.el-icon-notebook-1:before{content:"\e75a"}.el-icon-files:before{content:"\e75b"}.el-icon-collection:before{content:"\e75c"}.el-icon-receiving:before{content:"\e75d"}.el-icon-suitcase-1:before{content:"\e760"}.el-icon-suitcase:before{content:"\e761"}.el-icon-film:before{content:"\e763"}.el-icon-collection-tag:before{content:"\e765"}.el-icon-data-analysis:before{content:"\e766"}.el-icon-pie-chart:before{content:"\e767"}.el-icon-data-board:before{content:"\e768"}.el-icon-data-line:before{content:"\e76d"}.el-icon-reading:before{content:"\e769"}.el-icon-magic-stick:before{content:"\e76a"}.el-icon-coordinate:before{content:"\e76b"}.el-icon-mouse:before{content:"\e76c"}.el-icon-brush:before{content:"\e76e"}.el-icon-headset:before{content:"\e76f"}.el-icon-umbrella:before{content:"\e770"}.el-icon-scissors:before{content:"\e771"}.el-icon-mobile:before{content:"\e773"}.el-icon-attract:before{content:"\e774"}.el-icon-monitor:before{content:"\e775"}.el-icon-search:before{content:"\e778"}.el-icon-takeaway-box:before{content:"\e77a"}.el-icon-paperclip:before{content:"\e77d"}.el-icon-printer:before{content:"\e77e"}.el-icon-document-add:before{content:"\e782"}.el-icon-document:before{content:"\e785"}.el-icon-document-checked:before{content:"\e786"}.el-icon-document-copy:before{content:"\e787"}.el-icon-document-delete:before{content:"\e788"}.el-icon-document-remove:before{content:"\e789"}.el-icon-tickets:before{content:"\e78b"}.el-icon-folder-checked:before{content:"\e77f"}.el-icon-folder-delete:before{content:"\e780"}.el-icon-folder-remove:before{content:"\e781"}.el-icon-folder-add:before{content:"\e783"}.el-icon-folder-opened:before{content:"\e784"}.el-icon-folder:before{content:"\e78a"}.el-icon-edit-outline:before{content:"\e764"}.el-icon-edit:before{content:"\e78c"}.el-icon-date:before{content:"\e78e"}.el-icon-c-scale-to-original:before{content:"\e7c6"}.el-icon-view:before{content:"\e6ce"}.el-icon-loading:before{content:"\e6cf"}.el-icon-rank:before{content:"\e6d1"}.el-icon-sort-down:before{content:"\e7c4"}.el-icon-sort-up:before{content:"\e7c5"}.el-icon-sort:before{content:"\e6d2"}.el-icon-finished:before{content:"\e6cd"}.el-icon-refresh-left:before{content:"\e6c7"}.el-icon-refresh-right:before{content:"\e6c8"}.el-icon-refresh:before{content:"\e6d0"}.el-icon-video-play:before{content:"\e7c0"}.el-icon-video-pause:before{content:"\e7c1"}.el-icon-d-arrow-right:before{content:"\e6dc"}.el-icon-d-arrow-left:before{content:"\e6dd"}.el-icon-arrow-up:before{content:"\e6e1"}.el-icon-arrow-down:before{content:"\e6df"}.el-icon-arrow-right:before{content:"\e6e0"}.el-icon-arrow-left:before{content:"\e6de"}.el-icon-top-right:before{content:"\e6e7"}.el-icon-top-left:before{content:"\e6e8"}.el-icon-top:before{content:"\e6e6"}.el-icon-bottom:before{content:"\e6eb"}.el-icon-right:before{content:"\e6e9"}.el-icon-back:before{content:"\e6ea"}.el-icon-bottom-right:before{content:"\e6ec"}.el-icon-bottom-left:before{content:"\e6ed"}.el-icon-caret-top:before{content:"\e78f"}.el-icon-caret-bottom:before{content:"\e790"}.el-icon-caret-right:before{content:"\e791"}.el-icon-caret-left:before{content:"\e792"}.el-icon-d-caret:before{content:"\e79a"}.el-icon-share:before{content:"\e793"}.el-icon-menu:before{content:"\e798"}.el-icon-s-grid:before{content:"\e7a6"}.el-icon-s-check:before{content:"\e7a7"}.el-icon-s-data:before{content:"\e7a8"}.el-icon-s-opportunity:before{content:"\e7aa"}.el-icon-s-custom:before{content:"\e7ab"}.el-icon-s-claim:before{content:"\e7ad"}.el-icon-s-finance:before{content:"\e7ae"}.el-icon-s-comment:before{content:"\e7af"}.el-icon-s-flag:before{content:"\e7b0"}.el-icon-s-marketing:before{content:"\e7b1"}.el-icon-s-shop:before{content:"\e7b4"}.el-icon-s-open:before{content:"\e7b5"}.el-icon-s-management:before{content:"\e7b6"}.el-icon-s-ticket:before{content:"\e7b7"}.el-icon-s-release:before{content:"\e7b8"}.el-icon-s-home:before{content:"\e7b9"}.el-icon-s-promotion:before{content:"\e7ba"}.el-icon-s-operation:before{content:"\e7bb"}.el-icon-s-unfold:before{content:"\e7bc"}.el-icon-s-fold:before{content:"\e7a9"}.el-icon-s-platform:before{content:"\e7bd"}.el-icon-s-order:before{content:"\e7be"}.el-icon-s-cooperation:before{content:"\e7bf"}.el-icon-bell:before{content:"\e725"}.el-icon-message-solid:before{content:"\e799"}.el-icon-video-camera:before{content:"\e772"}.el-icon-video-camera-solid:before{content:"\e796"}.el-icon-camera:before{content:"\e779"}.el-icon-camera-solid:before{content:"\e79b"}.el-icon-download:before{content:"\e77c"}.el-icon-upload2:before{content:"\e77b"}.el-icon-upload:before{content:"\e7c3"}.el-icon-picture-outline-round:before{content:"\e75f"}.el-icon-picture-outline:before{content:"\e75e"}.el-icon-picture:before{content:"\e79f"}.el-icon-close:before{content:"\e6db"}.el-icon-check:before{content:"\e6da"}.el-icon-plus:before{content:"\e6d9"}.el-icon-minus:before{content:"\e6d8"}.el-icon-help:before{content:"\e73d"}.el-icon-s-help:before{content:"\e7b3"}.el-icon-circle-close:before{content:"\e78d"}.el-icon-circle-check:before{content:"\e720"}.el-icon-circle-plus-outline:before{content:"\e723"}.el-icon-remove-outline:before{content:"\e722"}.el-icon-zoom-out:before{content:"\e776"}.el-icon-zoom-in:before{content:"\e777"}.el-icon-error:before{content:"\e79d"}.el-icon-success:before{content:"\e79c"}.el-icon-circle-plus:before{content:"\e7a0"}.el-icon-remove:before{content:"\e7a2"}.el-icon-info:before{content:"\e7a1"}.el-icon-question:before{content:"\e7a4"}.el-icon-warning-outline:before{content:"\e6c9"}.el-icon-warning:before{content:"\e7a3"}.el-icon-goods:before{content:"\e7c2"}.el-icon-s-goods:before{content:"\e7b2"}.el-icon-star-off:before{content:"\e717"}.el-icon-star-on:before{content:"\e797"}.el-icon-more-outline:before{content:"\e6cc"}.el-icon-more:before{content:"\e794"}.el-icon-phone-outline:before{content:"\e6cb"}.el-icon-phone:before{content:"\e795"}.el-icon-user:before{content:"\e6e3"}.el-icon-user-solid:before{content:"\e7a5"}.el-icon-setting:before{content:"\e6ca"}.el-icon-s-tools:before{content:"\e7ac"}.el-icon-delete:before{content:"\e6d7"}.el-icon-delete-solid:before{content:"\e7c9"}.el-icon-eleme:before{content:"\e7c7"}.el-icon-platform-eleme:before{content:"\e7ca"}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-avatar{display:inline-block;box-sizing:border-box;text-align:center;overflow:hidden;color:#fff;background:#C0C4CC;width:40px;height:40px;line-height:40px;font-size:14px}.el-avatar>img{display:block;height:100%;vertical-align:middle}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:4px}.el-avatar--icon{font-size:18px}.el-avatar--large{width:40px;height:40px;line-height:40px}.el-avatar--medium{width:36px;height:36px;line-height:36px}.el-avatar--small{width:28px;height:28px;line-height:28px}.el-tooltip:focus:not(.focusing),.el-tooltip:focus:hover{outline-width:0}.el-tooltip__popper{position:absolute;border-radius:4px;padding:10px;z-index:2000;font-size:14px;line-height:1.2;min-width:10px;word-wrap:break-word}.el-tooltip__popper .popper__arrow,.el-tooltip__popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-tooltip__popper .popper__arrow{border-width:6px}.el-tooltip__popper .popper__arrow:after{content:" ";border-width:5px}.el-tooltip__popper[x-placement^=top]{margin-bottom:12px}.el-tooltip__popper[x-placement^=top] .popper__arrow{bottom:-6px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-5px;border-top-color:#585e6a;border-bottom-width:0}.el-tooltip__popper[x-placement^=bottom]{margin-top:12px}.el-tooltip__popper[x-placement^=bottom] .popper__arrow{top:-6px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-5px;border-top-width:0;border-bottom-color:#585e6a}.el-tooltip__popper[x-placement^=right]{margin-left:12px}.el-tooltip__popper[x-placement^=right] .popper__arrow{left:-6px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=right] .popper__arrow:after{bottom:-5px;left:1px;border-right-color:#585e6a;border-left-width:0}.el-tooltip__popper[x-placement^=left]{margin-right:12px}.el-tooltip__popper[x-placement^=left] .popper__arrow{right:-6px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-5px;margin-left:-5px;border-right-width:0;border-left-color:#585e6a}.el-tooltip__popper.is-dark{background:#585E6A;color:#fff}.el-tooltip__popper.is-light{background:#FFFFFF;border:1px solid #585E6A}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow:after{border-top-color:#fff}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow:after{border-bottom-color:#fff}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow:after{border-left-color:#fff}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#585e6a}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow:after{border-right-color:#fff}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-popover{position:absolute;background:#FFFFFF;min-width:150px;border-radius:4px;border:1px solid #EBEEF5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px #0000001a;word-break:break-all}.el-popover--plain{padding:18px 20px}.el-popover__title{color:#303133;font-size:16px;line-height:1;margin-bottom:12px}.el-popover__reference:focus:not(.focusing),.el-popover__reference:focus:hover{outline-width:0}.el-popover:focus:active,.el-popover:focus{outline-width:0}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFFFFF;border:1px solid #DCDFE6;border-color:#dcdfe6;color:#606266;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px}.el-button+.el-button{margin-left:10px}.el-button.is-round{padding:12px 20px}.el-button:hover,.el-button:focus{color:#409eff;border-color:#c6e2ff;background-color:#ecf5ff}.el-button:active{color:#3a8ee6;border-color:#3a8ee6;outline:none}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon-]+span{margin-left:5px}.el-button.is-plain:hover,.el-button.is-plain:focus{background:#FFFFFF;border-color:#409eff;color:#409eff}.el-button.is-plain:active{background:#FFFFFF;border-color:#3a8ee6;color:#3a8ee6;outline:none}.el-button.is-active{color:#3a8ee6;border-color:#3a8ee6}.el-button.is-disabled,.el-button.is-disabled:hover,.el-button.is-disabled:focus{color:#c0c4cc;cursor:not-allowed;background-image:none;background-color:#fff;border-color:#ebeef5}.el-button.is-disabled.el-button--text{background-color:transparent}.el-button.is-disabled.is-plain,.el-button.is-disabled.is-plain:hover,.el-button.is-disabled.is-plain:focus{background-color:#fff;border-color:#ebeef5;color:#c0c4cc}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:#ffffff59}.el-button.is-round{border-radius:20px;padding:12px 23px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--primary{color:#fff;background-color:#409eff;border-color:#409eff}.el-button--primary:hover,.el-button--primary:focus{background:#66b1ff;border-color:#66b1ff;color:#fff}.el-button--primary:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-active{background:#3a8ee6;border-color:#3a8ee6;color:#fff}.el-button--primary.is-disabled,.el-button--primary.is-disabled:hover,.el-button--primary.is-disabled:focus,.el-button--primary.is-disabled:active{color:#fff;background-color:#a0cfff;border-color:#a0cfff}.el-button--primary.is-plain{color:#409eff;background:#ecf5ff;border-color:#b3d8ff}.el-button--primary.is-plain:hover,.el-button--primary.is-plain:focus{background:#409EFF;border-color:#409eff;color:#fff}.el-button--primary.is-plain:active{background:#3a8ee6;border-color:#3a8ee6;color:#fff;outline:none}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:active{color:#8cc5ff;background-color:#ecf5ff;border-color:#d9ecff}.el-button--success{color:#fff;background-color:#67c23a;border-color:#67c23a}.el-button--success:hover,.el-button--success:focus{background:#85ce61;border-color:#85ce61;color:#fff}.el-button--success:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-active{background:#5daf34;border-color:#5daf34;color:#fff}.el-button--success.is-disabled,.el-button--success.is-disabled:hover,.el-button--success.is-disabled:focus,.el-button--success.is-disabled:active{color:#fff;background-color:#b3e19d;border-color:#b3e19d}.el-button--success.is-plain{color:#67c23a;background:#f0f9eb;border-color:#c2e7b0}.el-button--success.is-plain:hover,.el-button--success.is-plain:focus{background:#67C23A;border-color:#67c23a;color:#fff}.el-button--success.is-plain:active{background:#5daf34;border-color:#5daf34;color:#fff;outline:none}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:active{color:#a4da89;background-color:#f0f9eb;border-color:#e1f3d8}.el-button--warning{color:#fff;background-color:#e6a23c;border-color:#e6a23c}.el-button--warning:hover,.el-button--warning:focus{background:#ebb563;border-color:#ebb563;color:#fff}.el-button--warning:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-active{background:#cf9236;border-color:#cf9236;color:#fff}.el-button--warning.is-disabled,.el-button--warning.is-disabled:hover,.el-button--warning.is-disabled:focus,.el-button--warning.is-disabled:active{color:#fff;background-color:#f3d19e;border-color:#f3d19e}.el-button--warning.is-plain{color:#e6a23c;background:#fdf6ec;border-color:#f5dab1}.el-button--warning.is-plain:hover,.el-button--warning.is-plain:focus{background:#E6A23C;border-color:#e6a23c;color:#fff}.el-button--warning.is-plain:active{background:#cf9236;border-color:#cf9236;color:#fff;outline:none}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:active{color:#f0c78a;background-color:#fdf6ec;border-color:#faecd8}.el-button--danger{color:#fff;background-color:#f56c6c;border-color:#f56c6c}.el-button--danger:hover,.el-button--danger:focus{background:#f78989;border-color:#f78989;color:#fff}.el-button--danger:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-active{background:#dd6161;border-color:#dd6161;color:#fff}.el-button--danger.is-disabled,.el-button--danger.is-disabled:hover,.el-button--danger.is-disabled:focus,.el-button--danger.is-disabled:active{color:#fff;background-color:#fab6b6;border-color:#fab6b6}.el-button--danger.is-plain{color:#f56c6c;background:#fef0f0;border-color:#fbc4c4}.el-button--danger.is-plain:hover,.el-button--danger.is-plain:focus{background:#F56C6C;border-color:#f56c6c;color:#fff}.el-button--danger.is-plain:active{background:#dd6161;border-color:#dd6161;color:#fff;outline:none}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:active{color:#f9a7a7;background-color:#fef0f0;border-color:#fde2e2}.el-button--info{color:#fff;background-color:#909399;border-color:#909399}.el-button--info:hover,.el-button--info:focus{background:#a6a9ad;border-color:#a6a9ad;color:#fff}.el-button--info:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-active{background:#82848a;border-color:#82848a;color:#fff}.el-button--info.is-disabled,.el-button--info.is-disabled:hover,.el-button--info.is-disabled:focus,.el-button--info.is-disabled:active{color:#fff;background-color:#c8c9cc;border-color:#c8c9cc}.el-button--info.is-plain{color:#909399;background:#f4f4f5;border-color:#d3d4d6}.el-button--info.is-plain:hover,.el-button--info.is-plain:focus{background:#909399;border-color:#909399;color:#fff}.el-button--info.is-plain:active{background:#82848a;border-color:#82848a;color:#fff;outline:none}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:active{color:#bcbec2;background-color:#f4f4f5;border-color:#e9e9eb}.el-button--medium{padding:10px 20px;font-size:14px;border-radius:4px}.el-button--medium.is-round{padding:10px 20px}.el-button--medium.is-circle{padding:10px}.el-button--small{padding:9px 15px;font-size:12px;border-radius:3px}.el-button--small.is-round{padding:9px 15px}.el-button--small.is-circle{padding:9px}.el-button--mini{padding:7px 15px;font-size:12px;border-radius:3px}.el-button--mini.is-round{padding:7px 15px}.el-button--mini.is-circle{padding:7px}.el-button--text{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0}.el-button--text:hover,.el-button--text:focus{color:#66b1ff;border-color:transparent;background-color:transparent}.el-button--text:active{color:#3a8ee6;border-color:transparent;background-color:transparent}.el-button--text.is-disabled,.el-button--text.is-disabled:hover,.el-button--text.is-disabled:focus{border-color:transparent}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:before,.el-button-group:after{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button.is-disabled{z-index:1}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-radius:4px}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:20px}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:not(.is-disabled):hover,.el-button-group>.el-button:not(.is-disabled):focus,.el-button-group>.el-button:not(.is-disabled):active{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:#ffffff80}.el-button-group .el-button--primary:first-child{border-right-color:#ffffff80}.el-button-group .el-button--primary:last-child{border-left-color:#ffffff80}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--success:first-child{border-right-color:#ffffff80}.el-button-group .el-button--success:last-child{border-left-color:#ffffff80}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--warning:first-child{border-right-color:#ffffff80}.el-button-group .el-button--warning:last-child{border-left-color:#ffffff80}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--danger:first-child{border-right-color:#ffffff80}.el-button-group .el-button--danger:last-child{border-left-color:#ffffff80}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-button-group .el-button--info:first-child{border-right-color:#ffffff80}.el-button-group .el-button--info:last-child{border-left-color:#ffffff80}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:#ffffff80;border-right-color:#ffffff80}.el-popper .popper__arrow,.el-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{border-width:6px;filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.el-popper .popper__arrow:after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:12px}.el-popper[x-placement^=top] .popper__arrow{bottom:-6px;left:50%;margin-right:3px;border-top-color:#ebeef5;border-bottom-width:0}.el-popper[x-placement^=top] .popper__arrow:after{bottom:1px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.el-popper[x-placement^=bottom]{margin-top:12px}.el-popper[x-placement^=bottom] .popper__arrow{top:-6px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.el-popper[x-placement^=bottom] .popper__arrow:after{top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.el-popper[x-placement^=right]{margin-left:12px}.el-popper[x-placement^=right] .popper__arrow{top:50%;left:-6px;margin-bottom:3px;border-right-color:#ebeef5;border-left-width:0}.el-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1px;border-right-color:#fff;border-left-width:0}.el-popper[x-placement^=left]{margin-right:12px}.el-popper[x-placement^=left] .popper__arrow{top:50%;right:-6px;margin-bottom:3px;border-right-width:0;border-left-color:#ebeef5}.el-popper[x-placement^=left] .popper__arrow:after{right:1px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.el-dropdown{display:inline-block;position:relative;color:#606266;font-size:14px}.el-dropdown .el-button-group{display:block}.el-dropdown .el-button-group .el-button{float:none}.el-dropdown .el-dropdown__caret-button{padding-left:5px;padding-right:5px;position:relative;border-left:none}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:5px;bottom:5px;left:0;background:rgba(255,255,255,.5)}.el-dropdown .el-dropdown__caret-button.el-button--default:before{background:rgba(220,223,230,.5)}.el-dropdown .el-dropdown__caret-button:hover:not(.is-disabled):before{top:0;bottom:0}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{padding-left:0}.el-dropdown__icon{font-size:12px;margin:0 3px}.el-dropdown .el-dropdown-selfdefine:focus:active,.el-dropdown .el-dropdown-selfdefine:focus:not(.focusing){outline-width:0}.el-dropdown [disabled]{cursor:not-allowed;color:#bbb}.el-dropdown-menu{position:absolute;top:0;left:0;z-index:10;padding:10px 0;margin:5px 0;background-color:#fff;border:1px solid #EBEEF5;border-radius:4px;box-shadow:0 2px 12px #0000001a}.el-dropdown-menu__item{list-style:none;line-height:36px;padding:0 20px;margin:0;font-size:14px;color:#606266;cursor:pointer;outline:none}.el-dropdown-menu__item:not(.is-disabled):hover,.el-dropdown-menu__item:focus{background-color:#f4f5f7;color:#606266}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{position:relative;margin-top:6px;border-top:1px solid #EBEEF5}.el-dropdown-menu__item--divided:before{content:"";height:6px;display:block;margin:0 -20px;background-color:#fff}.el-dropdown-menu__item.is-disabled{cursor:default;color:#bbb;pointer-events:none}.el-dropdown-menu--medium{padding:6px 0}.el-dropdown-menu--medium .el-dropdown-menu__item{line-height:30px;padding:0 17px;font-size:14px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:6px}.el-dropdown-menu--medium .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:6px;margin:0 -17px}.el-dropdown-menu--small{padding:6px 0}.el-dropdown-menu--small .el-dropdown-menu__item{line-height:27px;padding:0 15px;font-size:13px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:4px}.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:4px;margin:0 -15px}.el-dropdown-menu--mini{padding:3px 0}.el-dropdown-menu--mini .el-dropdown-menu__item{line-height:24px;padding:0 10px;font-size:12px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided{margin-top:3px}.el-dropdown-menu--mini .el-dropdown-menu__item.el-dropdown-menu__item--divided:before{height:3px;margin:0 -10px}.el-notification{display:flex;width:330px;padding:14px 26px 14px 13px;border-radius:8px;box-sizing:border-box;border:1px solid #EBEEF5;position:fixed;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:13px;margin-right:8px}.el-notification__title{font-weight:700;font-size:16px;color:#303133;margin:0}.el-notification__content{font-size:14px;line-height:21px;margin:6px 0 0;color:#606266;text-align:justify}.el-notification__content p{margin:0}.el-notification__icon{height:24px;width:24px;font-size:24px}.el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.el-notification__closeBtn:hover{color:#606266}.el-notification .el-icon-success{color:#67c23a}.el-notification .el-icon-error{color:#f56c6c}.el-notification .el-icon-info{color:#909399}.el-notification .el-icon-warning{color:#e6a23c}.el-notification-fade-enter.right{right:0;transform:translate(100%)}.el-notification-fade-enter.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-active{opacity:0}.el-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dropdown-menu__item{min-width:100px}.el-dropdown-menu__item .item.red{color:red!important}.el-dropdown-menu__item .item.red>i{color:red!important}.el-dropdown-menu__item--divided:before{height:5px}.el-tooltip__popper.is-light{border-width:0;box-shadow:0 1px 6px #0003}.el-tooltip__popper.is-light[x-placement^=top] .popper__arrow{border-top-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=bottom] .popper__arrow{border-bottom-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=left] .popper__arrow{border-left-color:#d9d9d980}.el-tooltip__popper.is-light[x-placement^=right] .popper__arrow{border-right-color:#d9d9d980}.el-popover{border-width:0;box-shadow:0 1px 6px #0003}@font-face{font-family:zenicon;src:url(/js/build/zenicon.4baf444f.woff2) format("woff2")}.ft.icon{font-family:zenicon,serif;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;text-rendering:auto;transform:scale(1.2);transform-origin:50% 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;direction:ltr;-webkit-font-feature-settings:"liga";padding-left:1px}.ft+.el-el-button,.ft+.ft,.ft+.z-confirm,.ft+.z-execute,.ft+.z-link,.ft+a{margin-left:.6rem}.ft.l12{margin-left:12px}.ft.r12{margin-right:12px}.ft.hover{cursor:pointer}.ft.hover:hover{color:#0285d7}.ft.dark{color:#0d0d0d}.ft.gray{color:#666}.ft.yellow{color:#f90}.ft.red{color:#ed3f14}.ft.green{color:#19be6b}.ft.blue{color:#2d8cf0}.ft.center{text-align:center}.ft.right{text-align:right}.ft.bold{font-weight:700}.ft.underline{text-decoration:underline}.ft.through{text-decoration:line-through}.ft.italic{font-style:italic}.ft.cursor{cursor:pointer}.ft.h1{font-size:1.3rem}.ft.h2{font-size:1.2rem}.ft.h3{font-size:1.1rem}.ft.h4{font-size:.9rem}.ft.h5{font-size:.8rem}@font-face{font-family:taskfont;src:url(/js/build/iconfont.d753185e.woff2) format("woff2"),url(/js/build/iconfont.3539f3bf.woff) format("woff"),url(/js/build/iconfont.b09148ce.ttf) format("truetype")}.taskfont{font-family:taskfont,"serif"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.scrollbar-container{flex:1;height:100%;position:relative;overflow:hidden}.scrollbar-container.scrollbar-touch .scrollbar-track-x,.scrollbar-container.scrollbar-touch .scrollbar-track-y{display:none}.scrollbar-container.scrollbar-desktop .scrollbar-content::-webkit-scrollbar,.scrollbar-container.scrollbar-hidebar .scrollbar-content::-webkit-scrollbar{display:none;width:0;height:0}.scrollbar-container.scrollbar-hidebar .scrollbar-track-x,.scrollbar-container.scrollbar-hidebar .scrollbar-track-y{opacity:0!important}.scrollbar-container .scrollbar-track-x,.scrollbar-container .scrollbar-track-y{position:absolute;z-index:101;display:block;visibility:hidden;opacity:0;transition:background-color .2s linear,opacity .2s linear}.scrollbar-container .scrollbar-track-x{left:0;right:0;bottom:0;height:15px}.scrollbar-container .scrollbar-track-y{top:0;right:0;bottom:0;width:15px}.scrollbar-container.scrollbar-active-x .scrollbar-track-x,.scrollbar-container.scrollbar-active-y .scrollbar-track-y{visibility:visible;background-color:transparent}.scrollbar-container:hover>.scrollbar-track-x,.scrollbar-container:hover>.scrollbar-track-y,.scrollbar-container.scrollbar-scrolling-x .scrollbar-track-x,.scrollbar-container.scrollbar-scrolling-y .scrollbar-track-y{opacity:.6}.scrollbar-container .scrollbar-track-x:hover,.scrollbar-container .scrollbar-track-y:hover,.scrollbar-container .scrollbar-track-x:focus,.scrollbar-container .scrollbar-track-y:focus,.scrollbar-container.scrollbar-moveing-x .scrollbar-track-x,.scrollbar-container.scrollbar-moveing-y .scrollbar-track-y{background-color:#eee;opacity:.9}.scrollbar-container .scrollbar-thumb-x,.scrollbar-container .scrollbar-thumb-y{position:absolute;z-index:102;background-color:#aaa;border-radius:6px;transform:translateZ(0)}.scrollbar-container .scrollbar-thumb-x{transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.scrollbar-container .scrollbar-thumb-y{transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.scrollbar-container .scrollbar-track-x:hover>.scrollbar-thumb-x,.scrollbar-container .scrollbar-track-x:focus>.scrollbar-thumb-x,.scrollbar-container.scrollbar-moveing-x .scrollbar-thumb-x{background-color:#999;height:11px}.scrollbar-container .scrollbar-track-y:hover>.scrollbar-thumb-y,.scrollbar-container .scrollbar-track-y:focus>.scrollbar-thumb-y,.scrollbar-container.scrollbar-moveing-y .scrollbar-thumb-y{background-color:#999;width:11px}.scrollbar-container .scrollbar-content{height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.scrollbar-container .scrollbar-content.scrollbar-disable-x{overflow-x:hidden}.scrollbar-container .scrollbar-content.scrollbar-disable-y{overflow-y:hidden}.scrollbar-hidden::-webkit-scrollbar{display:none}.common-auto-tip{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-circle{border-radius:50%}.common-circle .common-circle-path{fill:transparent}.common-circle .common-circle-g-path-ring{stroke:#84c56a}.common-circle .common-circle-g-path-core{fill:#84c56a;transform:scale(.56);transform-origin:50%}.common-drawer-overlay .ivu-modal{margin:0;padding:0}.common-drawer-overlay .ivu-modal .ivu-modal-content{background:transparent}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-close{display:none}.common-drawer-overlay .ivu-modal .ivu-modal-content .ivu-modal-body{padding:0;display:flex;flex-direction:column;justify-content:flex-end;align-content:flex-end}.common-drawer-overlay .overlay-body{display:flex;flex-direction:column;width:100%;height:100%;max-width:100%;max-height:100%;z-index:2;position:relative}.common-drawer-overlay .overlay-body .overlay-close{flex-shrink:0;display:flex;align-items:flex-end;justify-content:flex-end}.common-drawer-overlay .overlay-body .overlay-close>a{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a .icon{width:24px;height:24px}.common-drawer-overlay .overlay-body .overlay-close>a>svg{transition:all .3s}.common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#fff}.common-drawer-overlay .overlay-body .overlay-close>a:hover>svg{transform:rotate(-90deg)}.common-drawer-overlay .overlay-body .overlay-resize{width:100%;height:5px;margin-bottom:-5px;z-index:1}.common-drawer-overlay .overlay-body .overlay-content{flex:1;position:relative;background:#fff;border-radius:18px 18px 0 0;transform:translate(0) scale(1);cursor:default}.common-drawer-overlay.right .ivu-modal .ivu-modal-content .ivu-modal-body,.common-drawer-overlay.right .overlay-body{flex-direction:row}.common-drawer-overlay.right .overlay-body .overlay-close{align-items:flex-start}.common-drawer-overlay.right .overlay-body .overlay-resize{width:5px;height:100%;margin-right:-5px;z-index:1}.common-drawer-overlay.right .overlay-body .overlay-content{border-radius:18px 0 0 18px}.drawer-slide-bottom-enter-active,.drawer-slide-bottom-leave-active{transition:all .2s ease}.drawer-slide-bottom-enter,.drawer-slide-bottom-leave-to{transform:translateY(15%) scale(.98);opacity:0}.drawer-slide-right-enter-active,.drawer-slide-right-leave-active{transition:all .2s ease}.drawer-slide-right-enter,.drawer-slide-right-leave-to{transform:translate(15%) scale(.98);opacity:0}.common-float-spinner{position:fixed;z-index:9999;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:#fff9}.common-float-spinner .common-float-circular{width:30px;height:30px}.common-gantt{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:self-start;color:#747a81}.common-gantt *{box-sizing:border-box}.common-gantt .gantt-left{flex-grow:0;flex-shrink:0;height:100%;background-color:#fff;position:relative;display:flex;flex-direction:column}.common-gantt .gantt-left:after{content:"";position:absolute;top:0;right:0;bottom:0;width:1px;background-color:#edf1f2bf}.common-gantt .gantt-left .gantt-title{height:76px;flex-grow:0;flex-shrink:0;background-color:#f9fafb;padding-left:12px;overflow:hidden}.common-gantt .gantt-left .gantt-title .gantt-title-text{line-height:100px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.common-gantt .gantt-left .gantt-item{transform:translateZ(0);max-height:100%;overflow:auto}.common-gantt .gantt-left .gantt-item::-webkit-scrollbar{display:none}.common-gantt .gantt-left .gantt-item>li{height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative;display:flex;align-items:center;padding-left:12px}.common-gantt .gantt-left .gantt-item>li:hover .item-icon{display:flex}.common-gantt .gantt-left .gantt-item>li .item-overdue{flex-grow:0;flex-shrink:0;color:#fff;margin-right:4px;background-color:red;padding:1px 3px;border-radius:3px;font-size:12px;line-height:18px}.common-gantt .gantt-left .gantt-item>li .item-title{flex:1;padding-right:12px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-gantt .gantt-left .gantt-item>li .item-title.complete{text-decoration:line-through}.common-gantt .gantt-left .gantt-item>li .item-title.overdue{font-weight:600}.common-gantt .gantt-left .gantt-item>li .item-icon{display:none;align-items:center;justify-content:center;width:32px;margin-right:2px;font-size:16px;color:#888}.common-gantt .gantt-right{flex:1;height:100%;background-color:#fff;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart{position:absolute;top:0;left:0;right:0;bottom:0;transform:translateZ(0)}.common-gantt .gantt-right .gantt-chart .gantt-month{display:flex;align-items:center;position:absolute;top:0;left:0;right:0;z-index:1;height:26px;line-height:20px;font-size:14px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-month>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-month>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-month>li .month-format{overflow:hidden;white-space:nowrap;padding:6px 6px 0}.common-gantt .gantt-right .gantt-chart .gantt-date{display:flex;align-items:center;position:absolute;top:26px;left:0;right:0;bottom:0;z-index:2;cursor:move}.common-gantt .gantt-right .gantt-chart .gantt-date:before{content:"";position:absolute;top:0;left:0;right:0;height:50px;background-color:#f9fafb}.common-gantt .gantt-right .gantt-chart .gantt-date>li{flex-grow:0;flex-shrink:0;height:100%;position:relative;overflow:hidden}.common-gantt .gantt-right .gantt-chart .gantt-date>li:after{content:"";position:absolute;top:0;right:0;width:1px;height:100%;background-color:#edf1f2bf}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format{overflow:hidden;white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:center;height:44px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-day{line-height:28px;font-size:18px}.common-gantt .gantt-right .gantt-chart .gantt-date>li .date-format .format-week{line-height:16px;font-weight:300;font-size:13px}.common-gantt .gantt-right .gantt-chart .gantt-timeline{position:absolute;top:76px;left:0;right:0;bottom:0;z-index:3;overflow-x:hidden;overflow-y:auto}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li{cursor:default;height:40px;border-bottom:1px solid rgba(237,241,242,.75);position:relative}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item{position:absolute;top:0;touch-action:none;pointer-events:auto;padding:4px;margin-top:4px;background:#e74c3c;border-radius:18px;color:#fff;display:flex;align-items:center;will-change:contents;height:32px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-title{touch-action:none;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:4px;margin-right:10px}.common-gantt .gantt-right .gantt-chart .gantt-timeline>li .timeline-item .timeline-resizer{height:22px;touch-action:none;width:8px;background:rgba(255,255,255,.1);cursor:ew-resize;flex-shrink:0;will-change:visibility;position:absolute;top:5px;right:5px}.img-upload-modal .ivu-modal-mask{z-index:1001}.img-upload-modal .ivu-modal-no-mask{background-color:#37373733}.img-upload-modal .ivu-modal-wrap{z-index:1001}.imgcomp-upload-list{display:inline-block;width:60px;height:60px;text-align:center;line-height:60px;border:1px solid transparent;border-radius:4px;overflow:hidden;background:#fff;position:relative;box-shadow:0 1px 1px #0003;margin-right:4px;vertical-align:top}.imgcomp-upload-list .imgcomp-upload-img{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-size:cover}.imgcomp-upload-list .imgcomp-upload-list-cover{display:none;position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.6)}.imgcomp-upload-list .imgcomp-upload-list-cover i{color:#fff;font-size:24px;cursor:pointer;vertical-align:middle;margin:0;transition:all .2s}.imgcomp-upload-list .imgcomp-upload-list-cover i:hover{font-size:28px}.imgcomp-upload-list .ivu-progress{height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer{background-color:#000000ad;height:100%}.imgcomp-upload-list .ivu-progress .ivu-progress-outer .ivu-progress-inner{width:88%;margin:0 auto}.imgcomp-upload-list:hover .imgcomp-upload-list-cover{display:block}.img-upload-foot{display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input{flex:1;text-align:left;display:flex;align-items:center;justify-content:flex-end}.img-upload-foot .img-upload-foot-input .img-upload-foot-httptitle{cursor:pointer;padding-left:3px;margin-right:22px}.add-box{width:60px;height:60px;line-height:60px;display:inline-block;background:#fff;border:1px dashed #dddee1;border-radius:4px;text-align:center;position:relative;overflow:hidden;vertical-align:top}.add-box .add-box-icon i{vertical-align:middle;padding-bottom:2px}.add-box .add-box-upload{display:none;position:absolute;top:0;left:0;height:100%;width:100%;color:#fff;padding-top:9px;background:rgba(0,0,0,.6)}.add-box .add-box-upload .add-box-item{height:22px;line-height:22px;cursor:pointer}.add-box .add-box-upload .add-box-item .ivu-upload-drag,.add-box .add-box-upload .add-box-item .ivu-upload-drag:hover{background:transparent;border:0;border-radius:0}.add-box .add-box-upload .add-box-item span{transition:all .2s;font-size:12px}.add-box .add-box-upload .add-box-item:hover span{font-size:14px}.add-box em{font-style:normal}.add-box:hover{border-color:#0009}.add-box:hover .add-box-upload{display:block}.callback-add-box{display:block;width:auto;height:25px;line-height:25px;border:0;background:transparent}.callback-add-box .add-box-icon{display:none}.callback-add-box .add-box-upload{display:block;width:auto;background:transparent;color:#333;padding:0}.callback-add-box .add-box-upload>div{display:inline-block;padding-right:10px}.browse-load{display:flex;align-items:center;justify-content:center;min-height:110px}.browse-list{max-height:540px;overflow:auto}.browse-list .browse-item{margin:10px 15px;display:inline-block;text-align:center;cursor:pointer;position:relative}.browse-list .browse-item .browse-img{width:64px;height:64px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAABxCAAAAABg5GeyAAACW0lEQVR4Ae3XVRLjMBAE0L3/rSwKM3OcSNPyLVYOLvM6UD0Bd03LVe9XH+RlhlRSSSWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkl9WyqppJJKKqmkkgpURP17xngOAR5NxW5wlJ9MaLQh83F4NHWmd/gZtdVBaOldfDB1bq5UpJFbFOC6LKnYrkRO209PAw+hIuzWB8Ep5es8HvYo4z4tE1X8UeRwlMM2D5Bzkc7kj6Bi3VTKDDwEeUcrMxrUvGDXTnHa6kK69SDN9sgq1clxKSbNHqqnYmdri81Q9QHf1JPt1Frncaib2XbiTKL2GkHaurnY9LOulMV0O7G6Kw+g9sw2ohhm62KezVJaaufjWC1TnOkr1exilJ7Ji0vxCCqO9V4UwV4PYr9+apouhGYLKfnahdpqegjmeoXOpXgANe70pKT6Zhu19qkY2nC0PZS527lQOyInqr8Uvc5jqfUb1X+PGh5IhW90S2quh3FQC2XRcF66TUkTXPcLKm5FtdR9RJq+2hWII7UpFtmsQLEyzsdJtkxxpr6gLotbUSlV9yeT0Trmzk2XPdUThLYarUbWOY9j04xXQ2u+pMZLYSumGmNUH3HbM9qOAwSHodN2Pks25F2j3aI7+IxqNsB+YLWb16ukSjiW4xNB0gMoMfApBS/XZQgi3p9/5RsiKNKZEOwYFVIF5VyTyD19sbyjIJiNJRZxpNbx2S8sGKvGZNHJBniBu9Wy5WxjGuQFqIAcBHiRGyt4ua5gSCWVVFJJJZVUUkkllVRSSSWVVFJJJZVUUkkllVRSSSWVVFI/AgO0SXIVYHeGAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat;background-size:cover}.browse-list .browse-item .browse-title{display:block;width:64px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.browse-list .browse-item .browse-icon{position:absolute;top:0;left:0;width:100%;height:64px;font-size:36px;padding-top:15px;color:#fff;background-color:#00000080;z-index:1}.browse-list-disabled{position:relative}.browse-list-disabled:after{position:absolute;content:"";top:0;left:0;width:100%;height:100%;background-color:#ffffffe6;z-index:1}.common-loading{transform-origin:center center;width:30px;height:30px;max-width:100%;max-height:100%;margin:auto;overflow:hidden;animation:loading-rotate 2s linear infinite}.common-loading .common-path{fill:none;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:path-dash 1.5s ease-in-out infinite,path-color 6s ease-in-out infinite}.common-pureing{width:30px;height:30px;border:3px solid #eeeeee;border-bottom-color:#84c56a;border-radius:50%;display:inline-block;box-sizing:border-box;animation:pureing-rotation .75s linear infinite}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes path-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}@keyframes path-color{0%,to{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}@keyframes pureing-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mobile-tabbar{display:none;flex-direction:column;justify-content:flex-end;position:fixed;left:0;bottom:0;right:0;z-index:99;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mobile-tabbar .common-network-exception{position:fixed;bottom:72px;width:100%}.mobile-tabbar .common-network-exception .ivu-alert{margin:0 12px}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-with-icon .ivu-alert-icon{top:50%;transform:translateY(-50%)}.mobile-tabbar .common-network-exception .ivu-alert.ivu-alert-error{background-color:#fff0e7f2}.mobile-tabbar .tabbar-box{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;padding:0;margin:0;height:60px;background-color:#f8f8f8;box-shadow:0 0 1px #1c222b26}.mobile-tabbar .tabbar-box>li{flex:1;width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;list-style:none;padding:0;margin:0;color:#606266;position:relative}.mobile-tabbar .tabbar-box>li .taskfont{font-size:24px;line-height:34px}.mobile-tabbar .tabbar-box>li .tabbar-title{font-size:12px;line-height:18px;max-width:92%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mobile-tabbar .tabbar-box>li .tabbar-badge{position:absolute;top:0;left:50%;transform:scale(.8)}.mobile-tabbar .tabbar-box>li .tabbar-badge .ivu-badge-count{font-size:14px}.mobile-tabbar .tabbar-box>li.active{color:#84c56a}.mobile-back{display:none}.mobile-back .back-semicircle{position:fixed;top:200px;left:-50px;width:500px;height:500px;background-color:#0000001a;z-index:9999;border-radius:50%;transform:translate(-460px,-50%);animation:mobile-back-animation .2s forwards}@keyframes mobile-back-animation{0%{left:-50px}to{left:0}}.mobile-notification{position:fixed;left:50%;top:20px;z-index:9998;padding:12px;border-radius:8px;border:1px solid #ebeef5;background-color:#fff;box-shadow:0 2px 12px #0000001a;width:90%;max-width:320px;transform:translate(-50%)}.mobile-notification .common-avatar.avatar-wrapper{align-items:flex-start}.mobile-notification .common-avatar.avatar-wrapper .avatar-name{flex:1;width:0;margin-left:12px}.mobile-notification .common-avatar.avatar-wrapper .avatar-name>span{font-weight:700}.mobile-notification .notification-desc{float:left;margin-top:-18px;margin-left:52px;font-size:13px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mobile-fade-enter-active{animation:mobile-fade-enter-animation .2s forwards}.mobile-fade-leave-active{animation:mobile-fade-leave-animation .2s backwards}@keyframes mobile-fade-enter-animation{0%{opacity:0}to{opacity:1}}@keyframes mobile-fade-leave-animation{0%{opacity:1}to{opacity:0}}.mobile-slide-enter-active{animation:mobile-slide-enter-animation .2s forwards}.mobile-slide-leave-active{animation:mobile-slide-leave-animation .2s backwards}@keyframes mobile-slide-enter-animation{0%{transform:translateY(15%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes mobile-slide-leave-animation{0%{transform:translate(0);opacity:1}to{transform:translateY(15%);opacity:0}}.mobile-notify-enter-active{animation:mobile-notify-enter-animation .3s forwards}.mobile-notify-leave-active{animation:mobile-notify-leave-animation .3s backwards}@keyframes mobile-notify-enter-animation{0%{transform:translate3d(-50%,-100%,0);opacity:0}to{transform:translate3d(-50%,0,0);opacity:1}}@keyframes mobile-notify-leave-animation{0%{transform:translate3d(-50%,0,0);opacity:1}to{transform:translate3d(-50%,-100%,0);opacity:0}}.mobile-dialog-enter-active{animation:mobile-dialog-enter-animation .3s forwards}.mobile-dialog-leave-active{animation:mobile-dialog-leave-animation .3s backwards}.mobile-dialog-leave-active .ql-editor{caret-color:transparent}@keyframes mobile-dialog-enter-animation{0%{transform:translate3d(100%,0,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes mobile-dialog-leave-animation{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(100%,0,0);opacity:0}}.mobile-send-enter-active{animation:mobile-send-enter-animation .3s forwards}.mobile-send-leave-active{animation:mobile-send-leave-animation .3s backwards}@keyframes mobile-send-enter-animation{0%{transform:translate(-50%,-50%) scale(0);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes mobile-send-leave-animation{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-50%) scale(0);opacity:0}}body.window-touch .mobile-back{display:block}body.window-touch input,body.window-touch textarea,body.window-touch .ql-editor{caret-color:#0bc037}body.window-portrait .mobile-tabbar{display:flex}body.window-portrait .mobile-notification{top:12px;width:94%;max-width:none}@media (max-height: 400px){body.window-portrait .mobile-tabbar,body.window-portrait .messenger-menu{display:none!important}body.window-portrait .page-manage.show-tabbar .manage-box-main{margin-bottom:0!important}}.app-scroller-y{position:absolute;top:0;left:0;right:0;bottom:0;overflow-x:hidden;overflow-y:auto;overflow-y:overlay}.app-scroller-y .app-scroller-bottom{height:0;margin:0;padding:0}.app-scroller-y.static{position:static;flex:1}.teditor-box .tox.tox-silver-sink,.teditor-transfer .tox.tox-silver-sink{z-index:13000}.teditor-box{position:relative;min-height:22px}.teditor-box .icon-inline{color:#bbb;position:absolute;left:0;top:0}.teditor-box textarea{opacity:0}.teditor-box .tox-checklist{padding-inline-start:26px}.teditor-box .tox-tinymce{box-shadow:none;box-sizing:border-box;border-color:#dddee1;border-radius:4px;overflow:hidden}.teditor-box .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-box .tox-tinymce .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teditor-box .tox-tinymce .tox-tbtn--bespoke .tox-tbtn__select-label{width:auto}.teditor-transfer{background-color:#fff}.teditor-transfer .tox-toolbar>div:last-child>button:last-child{margin-right:64px}.teditor-transfer .ivu-modal-header{display:none}.teditor-transfer .ivu-modal-close{top:7px;z-index:2}.teditor-transfer .teditor-transfer-body{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0}.teditor-transfer .teditor-transfer-body textarea{opacity:0}.teditor-transfer .teditor-transfer-body .tox-tinymce{border:0}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-statusbar span.tox-statusbar__branding a{display:none}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teditor-transfer .teditor-transfer-body .tox-tinymce .tox-tbtn--bespoke .tox-tbtn__select-label{width:auto}.teditor-loadstyle{width:100%;height:180px;overflow:hidden;position:relative}.teditor-loadedstyle{width:100%;max-height:inherit;overflow:inherit;position:relative}.upload-control{display:none;width:0;height:0;overflow:hidden}.tox-tinymce-inline{z-index:100000}.quick-edit{display:flex;align-items:center;max-width:100%}.quick-edit .quick-input{flex:1;max-width:100%;position:relative}.quick-edit .quick-input .quick-loading{position:absolute;top:0;right:8px;bottom:0;display:flex;align-items:center}.quick-edit .quick-input .quick-loading .common-loading{margin:0;width:14px;height:14px}.quick-edit .quick-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}.quick-edit .quick-icon{display:none;font-size:16px;cursor:pointer}.quick-edit.quick-always .quick-icon{display:inline-block;opacity:.3;transition:opacity .2s}.quick-edit:hover .quick-icon,.ivu-table-row-hover .quick-edit .quick-icon{display:inline-block;opacity:1}.common-tag-input{display:inline-block;width:100%;min-height:32px;padding:2px 7px;border:1px solid #dddee1;border-radius:4px;color:#495060;background:#fff;position:relative;cursor:text;vertical-align:middle;line-height:normal;transition:all .2s}.common-tag-input:hover{border-color:#a2d98d}.common-tag-input.focus{border-color:#a2d98d;box-shadow:0 0 0 2px #8bcf7033}.common-tag-input .tags-item,.common-tag-input .tags-input{position:relative;float:left;color:#495060;background-color:#f1f8ff;border-radius:3px;line-height:22px;margin:2px 6px 2px 0;padding:0 20px 0 6px}.common-tag-input .tags-item .tags-content,.common-tag-input .tags-input .tags-content{line-height:22px}.common-tag-input .tags-item .tags-del,.common-tag-input .tags-input .tags-del{width:20px;height:22px;text-align:center;cursor:pointer;position:absolute;top:-1px;right:0}.common-tag-input .tags-input{max-width:80%;padding:0;background-color:inherit;border:none;color:inherit;height:22px;line-height:22px;-webkit-appearance:none;outline:none;resize:none;overflow:hidden}.common-tag-input .tags-input::-moz-placeholder{color:#bbb}.common-tag-input .tags-input::placeholder{color:#bbb}.common-tag-input .tags-placeholder{position:absolute;left:0;top:0;z-index:-1;color:#fff0}.common-tag-input:after{content:"";display:block;height:0;clear:both}.ivu-form-item-error .common-tag-input,.ivu-form-item-error .common-tag-input:hover{border-color:#ed4014}.ivu-form-item-error .common-tag-input.focus{border-color:#ed4014;box-shadow:0 0 0 2px #ed401433}.common-avatar{position:relative}.common-avatar.avatar-wrapper{display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box{position:relative;border-radius:50%;display:flex;align-items:center}.common-avatar.avatar-wrapper .avatar-box .avatar-default{background-color:transparent}.common-avatar.avatar-wrapper .avatar-box .avatar-text{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box .avatar-char{display:inline-block;font-size:15px;line-height:inherit}.common-avatar.avatar-wrapper .avatar-box .el-avatar>img{margin:0 auto;pointer-events:none;-webkit-touch-callout:none}.common-avatar.avatar-wrapper .avatar-box>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.common-avatar.avatar-wrapper .avatar-box.online>em{background-color:#84c56a}.common-avatar.avatar-wrapper .avatar-box.disabled:after,.common-avatar.avatar-wrapper .avatar-box.deleted:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJpb25pY29uIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPkJhbjwvdGl0bGU+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9IiNjY2NjY2MiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSI0OCIgY3g9IjI1NiIgY3k9IjI1NiIgcj0iMjAwIi8+PHBhdGggc3Ryb2tlPSIjY2NjY2NjIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iNDgiIGQ9Ik0xMTQuNTggMTE0LjU4bDI4Mi44NCAyODIuODQiLz48L3N2Zz4=);background-color:#ffffff80;opacity:.8;border-radius:50%}.common-avatar.avatar-wrapper .avatar-box.disabled>em,.common-avatar.avatar-wrapper .avatar-box.deleted>em{background-color:#ccc}.common-avatar.avatar-wrapper .avatar-box.deleted:after{transform:rotate(-45deg)}.common-avatar.avatar-wrapper .avatar-bot{margin-right:-4px;padding-left:6px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name{display:flex;align-items:center;margin-left:6px;line-height:normal}.common-avatar.avatar-wrapper .avatar-name .bot{flex-shrink:0;margin-right:3px;font-size:16px;color:#84c56a}.common-avatar.avatar-wrapper .avatar-name>span{flex:1;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar.avatar-pointer{cursor:pointer}.common-avatar-transfer{padding:4px 2px;line-height:1.5}.common-avatar-transfer>p{padding:1px 2px}.common-avatar-transfer>p.department-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-avatar-transfer>p>em{font-style:normal}.common-avatar-transfer>p>em.disabled,.common-avatar-transfer>p>em.deleted{display:inline-block;margin-left:2px;white-space:nowrap;font-size:12px;height:20px;line-height:20px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#ed4014}.common-avatar-transfer .avatar-icons{margin-top:12px;border-top:1px solid rgba(244,244,245,.5);padding:8px 0 0;display:flex;align-items:center}.common-avatar-transfer .avatar-icons>i{cursor:pointer;font-size:22px;margin-right:12px;color:#f4f4f5}.common-avatar-transfer .avatar-icons>i:last-child{margin-right:0}.common-avatar-transfer .avatar-icons>i:hover{color:#fff}.common-user-select.select-module{display:none}.common-user-select.select-border{border:1px solid #e8e8e8;border-radius:4px;padding:0 6px}.common-user-select>ul{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start}.common-user-select>ul>li{list-style:none;padding:0;margin:3px 6px 3px 0;cursor:pointer}.common-user-select>ul>li:last-child{margin-right:0}.common-user-select>ul>li.add-icon{width:26px;height:26px;background:#F2F3F5 url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjg2NjIxNjA3NDE0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik04NzQuNjY2NjY3IDQ3My42aC0zMjQuMjY2NjY3VjE0OS4zMzMzMzNjMC0yMS4zMzMzMzMtMTcuMDY2NjY3LTM4LjQtMzguNC0zOC40cy0zOC40IDE3LjA2NjY2Ny0zOC40IDM4LjR2MzI0LjI2NjY2N0gxNDkuMzMzMzMzYy0yMS4zMzMzMzMgMC0zOC40IDE3LjA2NjY2Ny0zOC40IDM4LjRzMTcuMDY2NjY3IDM4LjQgMzguNCAzOC40aDMyNC4yNjY2Njd2MzI0LjI2NjY2N2MwIDIxLjMzMzMzMyAxNy4wNjY2NjcgMzguNCAzOC40IDM4LjRzMzguNC0xNy4wNjY2NjcgMzguNC0zOC40di0zMjQuMjY2NjY3aDMyNC4yNjY2NjdjMjEuMzMzMzMzIDAgMzguNC0xNy4wNjY2NjcgMzguNC0zOC40cy0xNy4wNjY2NjctMzguNC0zOC40LTM4LjR6IiAgZmlsbD0iIzYwNjI2NiI+PC9wYXRoPjwvc3ZnPg==) no-repeat center;background-size:50%;border-radius:50%}.common-user-select-modal .ivu-modal{max-width:90%}.common-user-select-modal .ivu-modal .user-modal-header{height:100%;display:flex;align-items:center;justify-content:space-between;position:relative;font-weight:500}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-close{padding:0 24px;color:#606266}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title{position:absolute;top:0;bottom:0;left:100px;right:100px;display:flex;justify-content:center;align-items:center}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title>span{font-size:16px;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-submit{padding:0 24px;color:#84c56a;display:flex;align-items:center}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-submit .submit-loading{width:14px;height:14px;margin-right:6px}.common-user-select-modal .ivu-modal .ivu-modal-body{padding:0!important;display:flex;flex-direction:column}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search{flex-shrink:0;display:flex;align-items:center;margin:0 24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected{flex:none;height:auto;flex-shrink:0;max-width:60%;margin-right:12px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul{display:flex;align-items:center;cursor:pointer}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li{list-style:none;margin-right:6px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li:last-child{margin-right:0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:20px;background-color:#61b2f9;color:#fff}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar.department,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar.department{background-color:#5bc7b0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar.project,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar.project{background-color:#6e99eb}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar.task,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar.task{background-color:#9b96df;font-size:24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .img-avatar>img,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar>img{width:100%;height:100%}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input{flex:1;display:flex;align-items:center;justify-content:center;background-color:#f4f5f7;border-radius:6px;height:36px;padding:0 6px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .search-pre .common-loading{width:14px;height:14px;margin:0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .ivu-input{border-color:transparent;background-color:transparent}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .ivu-input:hover,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-input .ivu-input:focus{box-shadow:none}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-switch{display:flex;flex-direction:row;align-items:center;margin:12px 24px 0;border-radius:4px;background:#F4F5F7}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-switch>li{flex:1;list-style:none;color:#606266;border-radius:2px;margin:2px;padding:4px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-switch>li.active{font-weight:500;color:#303133;background:#ffffff}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list{flex:1;display:flex;flex-direction:column;max-height:400px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul{padding:16px 24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul.user-modal-project>li:last-child .user-modal-avatar .project-name:before{display:none}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li{list-style:none;margin:0;padding:16px 0 0;height:46px;box-sizing:content-box;display:flex;align-items:center;cursor:pointer}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li:first-child{padding-top:0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.selected .user-modal-icon{color:#84c56a}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.selected .user-modal-avatar .project-name .subtitle>em.all{display:inline-block}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.somed .user-modal-icon{color:#84c56a}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.somed .user-modal-avatar .project-name .subtitle>em.some{display:inline-block}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.disabled,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li.disabled:hover{color:#c5c8ce;cursor:not-allowed}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-icon{flex-shrink:0;font-size:22px;margin-right:10px;color:#909399b3}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-all{font-size:15px;font-weight:500}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar{flex:1;display:flex;align-items:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar{flex-shrink:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar.department,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar.department{background-color:#5bc7b0}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar.project,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar.project{background-color:#6e99eb}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar.task,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar.task{background-color:#9b96df;font-size:24px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .img-avatar>img,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar>img{width:100%;height:100%}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .avatar-name,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name{flex:1;width:0;margin-left:12px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .avatar-name>span,.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .avatar-name{display:flex;align-items:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name{display:flex;flex-direction:column;position:relative}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name:before{content:"";position:absolute;left:0;right:0;bottom:-9px;height:1px;background-color:#f2f2f2}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name .label{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name .subtitle{padding-top:2px;font-size:12px;color:#909399;display:flex;align-items:center}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .project-name .subtitle>em{display:none;font-style:normal;padding-left:4px;color:#84c56a}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 36px 20px;min-height:200px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty .empty-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty .empty-icon .ivu-icon{color:#d1d8dd;font-size:46px}.common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-empty .empty-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.common-user-select-modal .ivu-modal .ivu-modal-footer{border-top:1px solid #f2f2f2!important;padding:12px 0!important;margin:0 24px!important}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen{max-width:none}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-content{margin-top:46px;border-top-left-radius:18px!important;border-top-right-radius:18px!important}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-header{border-bottom:1px solid #f2f2f2;padding:0;height:56px}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body{top:60px}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-search{padding-top:12px}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-list{max-height:none}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-list ul{padding-bottom:0}.common-user-select-modal .ivu-modal.ivu-modal-fullscreen .ivu-modal-body .user-modal-list ul>li:last-child{padding-bottom:16px}.report{height:100%;padding:20px}.report .report-list-wrap{position:absolute;top:0;width:100%;height:100%;padding-top:53px;display:flex;flex-direction:column}.report .report-list-wrap .table-page-box{flex:1;height:0}.report .manage-box-report{margin-left:4px;transform:scale(.8);vertical-align:top}.report .ivu-tabs{height:100%;position:relative}.report .ivu-tabs .ivu-tabs-bar{position:relative;z-index:2;background:#fff}.report .ivu-tabs .ivu-tabs-content{height:100%;width:100%;margin-top:-53px;padding-top:53px}.report-table-avatar{display:flex;align-items:center;justify-content:center}.report-table-avatar .common-avatar{margin:0 1px}.report-table-avatar .more-avatar{padding-left:3px;font-size:12px}.report-detail{display:flex;flex-direction:column;height:100%}.report-detail .report-title{flex-shrink:0;font-size:16px;font-weight:700;padding:20px 24px;border-bottom:1px solid #eeeeee}@media (max-width: 500px){.report-detail .report-title{padding-right:50px}}.report-detail .report-detail-context{flex:1;height:0;padding:24px;display:flex;flex-direction:column;overflow:auto}.report-detail .report-form.auto-form{display:flex;margin-bottom:12px}.report-detail .report-form.auto-form .ivu-form-item{flex:1;flex-shrink:0}.report-detail .report-form.auto-form .ivu-form-item .ivu-form-item-label{padding-top:8px}.report-detail .report-form .ivu-form-item .ivu-form-item-label{opacity:.8}.report-detail .report-form .ivu-form-item .ivu-form-item-content{line-height:30px;display:flex;align-items:center}.report-detail .report-form .ivu-form-item .ivu-form-item-content .common-avatar{margin-right:6px}.report-detail .report-content{width:100%}.report-detail .report-content h2{margin-bottom:10px}.report-detail .report-content ol{margin-bottom:20px;padding-left:18px}.report-detail .report-content ol li{font-size:14px;line-height:24px}.report-detail .report-content img{max-width:100%}.report-edit{position:absolute;top:0;left:0;right:0;bottom:0;padding:24px;overflow:auto;display:flex;flex-direction:column}.report-edit .ivu-input[disabled]{color:#606266}.report-edit .ivu-form-item-content{white-space:nowrap}.report-edit .report-content{flex:1 1 auto;overflow-y:auto}.report-edit .report-users{display:flex;align-items:center}.report-edit .report-users .common-user-select{margin-right:12px}.report-edit .report-users .report-user-link{flex-shrink:0;display:flex;align-items:center}.report-edit .report-users .report-user-link>i{font-size:16px;margin-right:2px;transform:rotate(-90deg)}.report-edit .report-radiogroup{background:#F4F5F7!important;padding:2px!important;border-radius:4px!important}.report-edit .report-radiogroup .ivu-radio-wrapper{padding:0 30px!important;background:#F4F5F7!important;color:#515a6e!important;box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper.ivu-radio-wrapper-disabled{color:#c6c6c6!important}.report-edit .report-radiogroup .ivu-radio-wrapper:before{width:0!important}.report-edit .report-radiogroup .ivu-radio-wrapper:after{width:0!important}.report-edit .report-radiogroup .ivu-radio-focus{box-shadow:none!important;border:none!important}.report-edit .report-radiogroup .ivu-radio-focus:after{background:none!important}.report-edit .report-radiogroup .ivu-radio-wrapper-checked:not(.ivu-radio-wrapper-disabled){background:#fff!important;color:#84c56a!important;box-shadow:none!important;border:none!important;border-radius:4px!important}.report-edit .report-buttongroup{margin-left:20px;background:#F4F5F7!important;border-radius:4px}.report-edit .report-buttongroup .report-buttongroup-vertical{position:absolute;left:50%;width:1px;height:15px;background-color:#e9e9e9;top:50%;transform:translate(-50%,-50%);z-index:9}.report-edit .report-buttongroup .ivu-btn-primary{background:#F4F5F7!important;box-shadow:none!important;border:none!important;color:#84c56a!important;height:36px;line-height:34px}.report-edit .report-buttongroup .ivu-btn-primary[disabled]{color:#c6c6c6!important}.report-edit .report-content-editor{flex:1}.report-edit .report-content-editor .ivu-form-item-content{display:flex;height:100%}.report-edit .report-content-editor .ivu-form-item-content .teditor-wrapper{display:flex;flex:1;min-height:380px;min-width:380px;margin-right:-24px;padding-right:24px}.report-edit .report-foot{margin-bottom:0}.report-edit .report-foot .report-bottom{height:38px;line-height:36px;min-width:120px}.component-resize-line{cursor:col-resize}.component-resize-line.resizing:after{content:"";position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999;cursor:col-resize}.component-resize-line.bottom{cursor:row-resize}.component-resize-line.bottom:after{cursor:row-resize}body.window-portrait .component-resize-line{display:none}.common-right-bottom{position:absolute;bottom:22px;right:26px;z-index:1;display:flex;flex-direction:column;align-items:flex-end;transition:bottom .3s}.common-right-bottom .common-right-bottom-link{display:inline-block;cursor:pointer;line-height:32px;height:32px;padding:0 15px;margin:4px 0;font-size:14px;border-radius:4px;color:#fff;background-color:#84c56a;border-color:#84c56a}.common-right-bottom .common-right-bottom-link:hover{color:#fff;opacity:.9}.common-right-bottom-notification .ivu-modal-header{padding-bottom:8px!important}.common-right-bottom-notification .notification-head{display:flex;align-items:center}.common-right-bottom-notification .notification-head .notification-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.common-right-bottom-notification .notification-body{max-height:210px;margin-bottom:16px}.common-right-bottom-notification .notification-body .markdown-preview{margin:-20px -12px}.common-right-bottom-notification .notification-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.common-right-bottom-notification .notification-body .markdown-preview h1:first-child{padding-top:0}.common-right-bottom-notification .notification-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.common-right-bottom-notification .notification-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.common-right-bottom-notification .notification-tip{display:inline-block;color:#909399;line-height:22px;padding-top:4px;font-size:12px}.common-right-bottom-notification .notification-link{margin-top:20px;text-align:right}.common-right-bottom-notification .notification-link>button+button{margin-left:6px}body.window-portrait .common-right-bottom{bottom:20px;right:auto;left:50%;transform:translate(-50%);align-items:center}body.window-portrait .common-right-bottom .common-right-bottom-link{color:#606266!important;background-color:transparent;border-color:transparent}@media (max-height: 640px){.common-right-bottom{display:none}}.common-guide{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999999;background-color:#000000de;padding:5px 10px}.common-guide>div{text-align:center}.common-guide>div button{padding:0 45px}body{overflow:hidden}body .form-tip{color:#909399;line-height:22px;padding:5px 0;word-break:break-all}body .form-tip.red{color:#ed4014}body .form-list ol li,body .form-list ul li{list-style-type:none}body .form-list ol li:before,body .form-list ul li:before{display:inline-block;white-space:nowrap;width:1.2em;text-align:left;margin-right:.2em}body .form-list ul li:before{content:"\2022";font-weight:900}body .form-list ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}body .form-list ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}body .ivu-badge-count{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif}body .input-number-box{display:flex;align-items:center;border:1px solid #dcdee2;border-radius:4px}body .input-number-box .ivu-input-number{width:72px;margin:0;border:0}body .input-number-box>label{color:#515a6e;text-align:center;background-color:#f8f8f9;padding:0 7px;font-weight:400;white-space:nowrap}body .input-number-box>label:first-child{border-left:1px solid transparent;border-right:1px solid #dcdee2;border-radius:4px 0 0 4px}body .input-number-box>label:last-child{border-left:1px solid #dcdee2;border-right:1px solid transparent;border-radius:0 4px 4px 0}body .ivu-input,body .ivu-select-selection{border-color:#e8e8e8}body .ivu-select-dropdown{-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:360px}body .ivu-select-dropdown.select-node .ivu-select-item{display:flex;align-items:center;justify-content:space-between}body .ivu-select-dropdown.select-node .ivu-select-item .option-title{flex:1}body .ivu-select-dropdown.select-node .ivu-select-item .ivu-tag{flex-shrink:0;margin-left:18px;margin-right:0;transform:scale(.9);transform-origin:right center}body .ivu-tooltip-popper .ivu-tooltip-inner{white-space:normal}body .ivu-table table{width:100%!important}body .ivu-table table .ivu-table-cell{padding-left:12px;padding-right:12px}body .ivu-table table .ivu-table-cell .common-avatar .avatar-name{width:0;flex:1}body .ivu-table table thead .ivu-table-cell{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell{display:flex;align-items:center}body .ivu-table table tbody .tree-icon-loading .ivu-table-cell .ivu-table-cell-tree{margin-right:6px}body .ivu-table .td-ellipsis{display:flex;align-items:center;max-width:100%}body .ivu-table .td-ellipsis .remark-text{overflow:hidden;text-overflow:ellipsis;align-items:center;white-space:nowrap;height:20px;line-height:20px;margin-right:6px}body .ivu-table .td-ellipsis .remark-icon{display:none;font-size:16px;cursor:pointer}body .ivu-table .td-ellipsis .remark-tag{display:inline-block;height:22px;line-height:22px;margin:2px 4px 2px 0;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;opacity:1;color:#606266;padding:0 4px;white-space:nowrap;overflow:visible}body .ivu-table .td-ellipsis .remark-tag.pointer-tag{cursor:pointer;color:#1890ff;background:#e6f7ff;border-color:#91d5ff}body .ivu-table .td-ellipsis .icon-tooltip .ivu-tooltip-rel{display:flex;align-items:center}body .ivu-table .td-action{max-width:100%;display:flex;align-items:center;justify-content:center}body .ivu-table .td-action .td-action-container{flex-shrink:0}body .ivu-table .td-action .td-action-container a{font-size:12px;padding:0 5px}body .ivu-table .td-action .td-action-container.td-action-menu{display:flex;align-items:center}body .ivu-table .td-action .td-action-container.td-action-menu .menu-dropdown{display:flex}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon{cursor:pointer;font-size:21px;padding:0 6px}body .ivu-table .td-action .td-action-container.td-action-menu .menu-icon.ivu-icon{font-size:16px}body .ivu-table .ivu-table-row-hover:hover .td-ellipsis .remark-icon{display:inline-block}body .ivu-table:before{background-color:#efefef}body .ivu-modal-wrap{overflow:overlay}body .ivu-modal-wrap .ivu-modal{top:100px;padding-bottom:100px}@media (max-height: 900px){body .ivu-modal-wrap .ivu-modal{top:35px;padding-bottom:35px}}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen{top:0}body .ivu-modal-wrap .ivu-modal.ivu-modal-fullscreen .ivu-modal-content{border-radius:0}body .ivu-modal-wrap .ivu-modal .ivu-modal-header,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{border-color:transparent}body .ivu-modal-wrap .ivu-modal .ivu-modal-header{padding:22px 24px 20px}body .ivu-modal-wrap .ivu-modal .ivu-modal-header .ivu-modal-header-inner{font-size:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body{padding:16px 32px 2px}body .ivu-modal-wrap .ivu-modal .ivu-modal-body .ivu-table-body,body .ivu-modal-wrap .ivu-modal .ivu-modal-body .project-log{overscroll-behavior:none}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer{padding:20px 30px 22px}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .ivu-btn{height:34px;line-height:32px;min-width:94px}@media (max-width: 576px){body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption{display:flex;align-items:center;overflow-x:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn{height:38px;line-height:36px;min-width:auto}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{flex:1}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-btn-group,body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip{display:flex;align-items:center}body .ivu-modal-wrap .ivu-modal .ivu-modal-footer .adaption .ivu-poptip .ivu-poptip-rel{flex:1;display:flex;align-items:center}}body .ivu-modal-wrap .ivu-modal .ivu-modal-content{border-radius:18px}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}body .ivu-modal-wrap .ivu-modal .ivu-modal-content .ivu-modal-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}body .ivu-modal-wrap .ivu-modal-confirm{padding:6px 0 20px}body .ivu-modal-wrap .ivu-modal-confirm .ivu-modal-confirm-body>div{word-break:break-all}body .ivu-modal-wrap .form-network-add-tabs .ivu-tabs-tabpane{padding:10px 6px 0}body .ivu-modal-wrap .form-network-add-in-out{padding:0 6px}body .ivu-modal-wrap .form-network-add-in-out .select-in-type span.ivu-radio{display:none}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item-checked{color:#84c56a;border:1px solid #84C56A!important}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item{display:flex;align-items:center;min-width:90px;border:1px solid #E8EBEE;border-radius:4px;padding:0 12px;margin:0 8px 0 0}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item>span{flex:1}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item:hover{cursor:pointer}body .ivu-modal-wrap .form-network-add-in-out .select-in-type .select-in-type-item .select-in-type-icon{margin-left:12px}body .ivu-modal-wrap .form-network-add-in-out .select-in-node{margin-top:18px}body .ivu-progress,body .ivu-progress .ivu-progress-outer{display:flex;align-items:center}body .ivu-progress.ivu-progress-show-info .ivu-progress-outer{margin:0;padding:0}body .ivu-progress.ivu-progress-show-info .ivu-progress-text{flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .ivu-drawer-right .ivu-drawer-content{border-radius:18px 0 0 18px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header{padding-top:16px;padding-bottom:6px;border-bottom:1px solid transparent}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-header .ivu-drawer-header-inner{font-size:18px;padding:0 4px;height:32px;line-height:32px}body .ivu-drawer-right .ivu-drawer-content .ivu-drawer-body{padding:10px 20px}body .ivu-drawer-bottom .ivu-drawer-content{border-radius:18px 18px 0 0}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close{top:-40px}body .ivu-drawer-bottom .ivu-drawer-content .ivu-drawer-close .ivu-icon{font-size:40px;color:#fff}body .ivu-tabs-nav-next,body .ivu-tabs-nav-prev{padding-top:3px}*[hidden=hidden]{display:none!important}.clearfix{zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}.table-page-box{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper{flex:1}.table-page-box .ivu-table-wrapper .ivu-table{display:flex;flex-direction:column}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-header{flex-shrink:0}.table-page-box .ivu-table-wrapper .ivu-table .ivu-table-body{flex:1;overflow:auto}.table-page-box .ivu-page{flex-shrink:0;text-align:center;margin-top:20px}.table-page-box .table-attach{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-top:20px}.table-page-box .table-attach .select-box{margin-right:12px}.table-page-box .table-attach .select-box .ivu-select{width:auto;max-width:200px;margin-right:3px}.table-page-box .table-attach .ivu-page{padding:0;margin-top:0;margin-left:12px}.page-container{text-align:center;padding:20px 0}.search-container{margin-bottom:12px}.search-container>ul{display:flex;align-items:flex-end;flex-wrap:wrap}.search-container>ul>li{flex:1;flex-shrink:0;margin-right:12px;margin-bottom:12px;list-style:none;display:flex;flex-direction:column}.search-container>ul>li:last-child{margin-right:0}.search-container>ul>li .search-label{font-weight:600}.search-container>ul>li .search-content{margin-top:6px}.search-container>ul>li.search-button{flex:none;display:flex;align-items:center;flex-direction:row}.search-container>ul>li.search-button>button+button{margin-left:8px}.search-container.lr>ul>li:not(.search-button){flex:none;flex-direction:row;align-items:center;margin-right:18px}.search-container.lr>ul>li:not(.search-button) .search-label{flex-shrink:0}.search-container.lr>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.lr>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.lr>ul>li:not(.search-button) .search-content .ivu-select{width:168px;max-width:100%}.search-container.auto>ul>li:not(.search-button){flex:none}.search-container.auto>ul>li:not(.search-button) .search-content{margin-top:0;margin-left:6px}.search-container.auto>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-select{width:150px;max-width:100%}@media (max-width: 576px){.search-container.lr>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.lr>ul>li:not(.search-button) .search-content .ivu-select,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-input-wrapper,.search-container.auto>ul>li:not(.search-button) .search-content .ivu-select{width:auto}}.search-expand{display:flex;align-items:flex-end}.search-expand .search-container{flex:1}.search-expand .expand-button-group{flex-shrink:0;margin-left:24px;margin-bottom:24px}.search-button-clear .ivu-tooltip-inner{padding:0;display:flex;align-items:center}.search-button-clear .ivu-tooltip-inner .ivu-btn{min-width:80px;font-size:13px}.icon-loading{animation:animation-icon-loading .6s infinite linear}@keyframes animation-icon-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.common-shake{animation:animation-common-shake .6s ease-in-out;animation-delay:.2s}@keyframes animation-common-shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}50%{transform:translate3d(-4px,0,0)}}.login-mode-enter-active{transition:all .3s ease}.login-mode-leave-active{position:absolute;z-index:-1;display:none}.login-mode-enter,.login-mode-leave-to{transform:translate(100%);opacity:0}body .ivu-modal-wrap.common-drawer-overlay{overflow:hidden}body .ivu-modal-wrap.common-drawer-modal .ivu-modal-body{padding:0!important}body .ivu-modal-wrap.common-drawer-modal .ivu-modal-close{z-index:3}.common-nav-back{cursor:pointer;padding-right:8px}.common-nav-back.portrait{display:none}.common-nav-back .taskfont{font-size:26px}body.window-portrait .common-nav-back{display:block}.page-calendar{display:flex;flex-direction:column}.page-calendar .calendar-head{flex-shrink:0;display:flex;align-items:flex-start;margin:32px 20px 16px;border-bottom:1px solid #F4F4F5}.page-calendar .calendar-head .calendar-titbox{flex:1;display:flex;align-items:center;margin-bottom:16px}.page-calendar .calendar-head .calendar-titbox .calendar-title{display:flex;align-items:center;margin-right:36px}.page-calendar .calendar-head .calendar-titbox .calendar-title>h1{color:#303133;font-size:28px;font-weight:600}.page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-right:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button{color:#888;font-size:12px}.page-calendar .calendar-head .calendar-titbox .calendar-arrow>button:focus{box-shadow:none}.page-calendar .calendar-head .calendar-titbox .calendar-view{flex:1;display:flex;justify-content:flex-end}.page-calendar .calendar-head .calendar-titbox .calendar-view>button:focus{box-shadow:none}.page-calendar .calendar-box{flex:1;display:flex;flex-direction:column;padding:0 48px 6px;overflow:hidden}.page-calendar .calendar-menu{position:absolute;top:2px;right:2px;z-index:-1;opacity:0}body.window-portrait .page-calendar .calendar-head{margin:24px 16px 16px}body.window-portrait .page-calendar .calendar-head .calendar-titbox .calendar-title{flex:1}body.window-portrait .page-calendar .calendar-head .calendar-titbox .calendar-arrow{margin-left:12px;margin-right:0}body.window-portrait .page-calendar .calendar-head .calendar-titbox .calendar-view{display:none}body.window-portrait .page-calendar .calendar-box{padding:0 24px 5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup{font-weight:400}body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-icon{width:14px;height:14px;background-size:14px}body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-content{font-size:14px}@media (max-width: 640px){body.window-portrait .page-calendar .calendar-box .calendar-wrapper .tui-full-calendar-popup-arrow{display:none}}.page-dashboard{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#fff}.page-dashboard .dashboard-warning{border-top:0;border-top-left-radius:0;border-top-right-radius:0;padding-right:14px;position:fixed;top:0;z-index:2}.page-dashboard .dashboard-warning>span{cursor:pointer}.page-dashboard .dashboard-wrapper{width:100%;height:auto;max-height:100%;display:flex;flex-direction:column;align-items:center}.page-dashboard .dashboard-wrapper .dashboard-hello,.page-dashboard .dashboard-wrapper .dashboard-desc,.page-dashboard .dashboard-wrapper .dashboard-block,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{width:660px;max-width:80%;margin:0 auto}.page-dashboard .dashboard-wrapper .dashboard-hello{padding:6% 12px 0;color:#303133;font-size:24px;font-weight:600;word-wrap:break-word}.page-dashboard .dashboard-wrapper .dashboard-desc{display:flex;align-items:center;margin-top:18px;padding:0 12px;color:#888;font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-desc .dashboard-load{display:flex;align-items:center;justify-content:center;width:14px;height:14px;margin:0 0 0 4px}.page-dashboard .dashboard-wrapper .dashboard-block{margin-top:18px;padding:0 12px;display:flex}.page-dashboard .dashboard-wrapper .dashboard-block>li{flex:1;flex-shrink:0;list-style:none;margin-right:24px;border-radius:8px;padding:16px 24px;background-color:#fa8e8c;display:flex;flex-direction:column;justify-content:center;cursor:pointer;transition:transform .3s ease-out 0s,box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-block>li:first-child{background-color:#6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:last-child{background-color:#98de6e;margin-right:0}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover{transform:translateY(-3px);box-shadow:0 2px 10px #fa8e8c}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:first-child{box-shadow:0 2px 10px #6f9ef6}.page-dashboard .dashboard-wrapper .dashboard-block>li:hover:last-child{box-shadow:0 2px 10px #98de6e}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#fff9;font-size:12px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data{display:flex;align-items:center;padding-top:10px;line-height:1}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{flex:1;color:#fff;font-weight:600;font-size:32px}.page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#ffffffb3;font-size:20px}.page-dashboard .dashboard-wrapper .dashboard-list{width:100%;margin-top:48px;padding-bottom:6%}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ref{height:0}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title{position:sticky;top:0;z-index:1;margin:0 auto;padding:0 12px;height:46px;line-height:46px;font-weight:600;font-size:15px;background-color:#fff}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin:0 auto 18px;padding:6px 12px 0;overflow:hidden}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li{position:relative;list-style:none;display:flex;background:#F9FAFB;padding:12px;margin-bottom:8px;border-radius:6px;cursor:pointer;transition:box-shadow .3s ease-out 0s}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li:hover{box-shadow:0 0 6px #dfdfdf}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-title{opacity:.5;text-decoration:line-through}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li.complete .item-icon{display:none}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .priority-color{position:absolute;top:50%;transform:translateY(-50%);left:0;height:12px;width:2px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select{flex-shrink:0;width:22px;height:22px;line-height:22px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-select .taskfont{color:#bbb;font-size:18px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title{flex:1;padding-left:6px;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon{display:flex;align-items:center;font-size:13px;margin-left:16px;height:22px;color:#aaa;cursor:pointer}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon .taskfont{font-size:13px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon>em{font-style:normal;margin-left:4px}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.overdue{color:#ed4014}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.today{color:#f90}.page-dashboard .nopage{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-dashboard .nopage .nopage-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-dashboard .nopage .nopage-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-dashboard .nopage .nopage-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.dashboard-load-enter-active{transition:opacity .3s ease;transition-delay:1s}.dashboard-load-leave-active{transition:opacity .2s ease;transition-delay:0s}.dashboard-load-enter,.dashboard-load-leave-to{opacity:0}body.window-touch .page-messenger .messenger-wrapper .messenger-select .messenger-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-dashboard .dashboard-wrapper{display:block}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-hello,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-desc,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-block,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title,body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{max-width:96%}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-block{display:block;margin-top:10px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-block>li{margin:0 0 10px;padding:8px 12px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list{height:auto;padding-bottom:2px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .scrollbar-content{overflow:visible}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin-bottom:36px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-file{width:100%;height:100%;display:flex;flex-direction:column}.page-file .file-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-file .file-wrapper .file-head .file-nav{flex:1;display:flex;align-items:center}.page-file .file-wrapper .file-head .file-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-file .file-wrapper .file-head .file-nav .file-refresh{display:none;cursor:pointer;margin-left:12px}.page-file .file-wrapper .file-head .file-nav .file-refresh>i{font-size:18px}.page-file .file-wrapper .file-head .file-nav:hover .file-refresh{display:block}.page-file .file-wrapper .file-head .file-status{flex-shrink:0;margin-left:22px;display:flex;align-items:center;cursor:pointer}.page-file .file-wrapper .file-head .file-status>button{color:#fff;background:#84C56A;border-color:#84c56a}.page-file .file-wrapper .file-head .file-search{flex-shrink:0;margin-left:22px;cursor:pointer}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper{width:auto;transform:translateZ(0)}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input{border-color:#dcdee2;width:0;padding-left:0;padding-right:30px;border-radius:16px;transition:all .3s}.page-file .file-wrapper .file-head .file-search .ivu-input-wrapper .ivu-input-suffix i{color:#606266}.page-file .file-wrapper .file-head .file-search.has-value .ivu-input-wrapper .ivu-input,.page-file .file-wrapper .file-head .file-search:hover .ivu-input-wrapper .ivu-input{width:160px;padding-left:14px}.page-file .file-wrapper .file-head .file-add{flex-shrink:0;margin-left:18px;cursor:pointer}.page-file .file-wrapper .file-head .file-add .taskfont{font-size:18px}.page-file .file-wrapper .file-navigator{display:flex;align-items:center;height:24px;line-height:24px;margin:0 32px}.page-file .file-wrapper .file-navigator>ul{display:flex;align-items:center;overflow:auto}.page-file .file-wrapper .file-navigator>ul>li{display:flex;list-style:none;align-items:center;padding-left:8px;font-size:14px;color:#84c56a;cursor:pointer}.page-file .file-wrapper .file-navigator>ul>li:last-child{color:#606266;cursor:default}.page-file .file-wrapper .file-navigator>ul>li+li:before{content:"\203a";margin-top:-2px;padding-right:8px;color:#606266;line-height:1;font-size:16px;font-weight:500;font-family:system-ui,sans-serif}.page-file .file-wrapper .file-navigator>ul>li .taskfont{padding-right:2px}.page-file .file-wrapper .file-navigator>ul>li>span{display:inline-block;max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator>ul>li>span.readonly{transform:scale(.8);transform-origin:right center;border-radius:2px;line-height:20px;font-size:12px;padding:0 5px;color:#606266;background:#f7f7f7;border:1px solid #e8eaec}.page-file .file-wrapper .file-navigator .nav-load{margin-left:8px;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.page-file .file-wrapper .file-navigator .nav-load .common-loading{width:12px;height:12px}.page-file .file-wrapper .file-navigator .nav-refresh{margin-left:8px}.page-file .file-wrapper .file-navigator .ivu-btn{font-size:12px;margin-left:12px}.page-file .file-wrapper .file-navigator .ivu-btn .tool-box{display:flex;align-items:center}.page-file .file-wrapper .file-navigator .ivu-btn .tool-box>i{font-size:14px}.page-file .file-wrapper .file-navigator .ivu-btn .tool-box>span{margin-left:2px}.page-file .file-wrapper .file-navigator .file-shear{display:flex;align-items:center}.page-file .file-wrapper .file-navigator .file-shear>span{padding-right:3px}.page-file .file-wrapper .file-navigator .file-shear>em{display:inline-block;max-width:120px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file .file-wrapper .file-navigator .flex-full{flex:1;margin-right:24px}.page-file .file-wrapper .file-navigator .only-checkbox{flex-shrink:0;display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.page-file .file-wrapper .file-navigator .only-checkbox .ivu-checkbox-focus{box-shadow:none}.page-file .file-wrapper .file-navigator .switch-button{flex-shrink:0;display:flex;align-items:center;background-color:#fff;border-radius:6px;position:relative;transition:box-shadow .2s}.page-file .file-wrapper .file-navigator .switch-button:hover{box-shadow:0 0 10px #e6ecfa}.page-file .file-wrapper .file-navigator .switch-button:before{content:"";position:absolute;top:0;left:0;width:50%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.page-file .file-wrapper .file-navigator .switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.page-file .file-wrapper .file-navigator .switch-button>div>i{font-size:17px}.page-file .file-wrapper .file-navigator .switch-button>div:first-child{color:#84c56a}.page-file .file-wrapper .file-navigator .switch-button.table:before{left:50%}.page-file .file-wrapper .file-navigator .switch-button.table>div:first-child{color:#606266}.page-file .file-wrapper .file-navigator .switch-button.table>div:last-child{color:#84c56a}.page-file .file-wrapper .file-drag{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-file .file-wrapper .file-drag .file-no{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:5%;opacity:.8}.page-file .file-wrapper .file-drag .file-no>i{font-size:64px}.page-file .file-wrapper .file-drag .file-no>p{margin-top:18px;font-size:14px;font-weight:500;line-height:1}.page-file .file-wrapper .file-drag .file-table{flex:1;cursor:default;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .file-table .ivu-table:before{display:none}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip{opacity:.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span{font-size:14px;font-weight:500;line-height:1.8}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-tip span:before{display:block;content:"\e60b";font-family:taskfont,"serif"!important;font-size:64px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px}.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowY,.page-file .file-wrapper .file-drag .file-table .ivu-table .ivu-table-overflowX{-webkit-overflow-scrolling:touch}.page-file .file-wrapper .file-drag .file-table .file-nbox{display:flex;align-items:center;position:relative}.page-file .file-wrapper .file-drag .file-table .file-nbox.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name{flex:1;width:0;display:flex;align-items:center;position:relative;margin-right:46px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name:before{flex-shrink:0;content:"";width:22px;height:22px;margin-right:8px}.page-file .file-wrapper .file-drag .file-table .file-nbox .file-name .quick-edit{width:98%}.page-file .file-wrapper .file-drag .file-table .file-nbox .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-table .file-nbox .taskfont{color:#aaa;font-size:16px;margin:0 3px}.page-file .file-wrapper .file-drag .file-list{flex:1;padding:0 20px 20px;margin-top:16px;overflow:auto}.page-file .file-wrapper .file-drag .file-list>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,100px);row-gap:2px;-moz-column-gap:12px;column-gap:12px}.page-file .file-wrapper .file-drag .file-list>ul>li{list-style:none;width:100px;height:124px}.page-file .file-wrapper .file-drag .file-list>ul .file-item{position:relative;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;cursor:pointer}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input{margin:11px 4px 4px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input input{margin:0;padding:1px 5px;font-size:13px}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input .file-load{position:absolute;top:0;right:6px;bottom:0;display:flex}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-input .file-load .common-loading{width:10px;height:10px}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-name{display:block;width:100%;line-height:16px;color:#606266;font-size:12px;text-align:center;margin:11px 0 5px;padding:0 4px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-check{opacity:0;position:absolute;top:1px;left:4px;transition:opacity .2s}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-check.file-checked{opacity:1}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-menu{opacity:0;position:absolute;top:2px;right:2px;transition:opacity .2s;display:flex}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-menu .ivu-icon{font-size:16px;color:#aaa;transition:color .2s;padding:2px 5px}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-menu .ivu-icon:hover{color:#606266}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon{flex-shrink:0;display:inline-block;width:64px;height:64px;margin-top:12px;position:relative}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon:before{position:absolute;top:0;left:0;right:0;bottom:0}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-icon,.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-avatar{position:absolute;right:0;bottom:0;background-color:#9acd7b;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;transform:scale(.9)}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-icon .taskfont,.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .share-avatar .taskfont{font-size:18px;color:#fff}.page-file .file-wrapper .file-drag .file-list>ul .file-item .file-icon .avatar-char{font-size:18px}.page-file .file-wrapper .file-drag .file-list>ul .file-item.shear{opacity:.38}.page-file .file-wrapper .file-drag .file-list>ul .file-item.highlight{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul .file-item.operate,.page-file .file-wrapper .file-drag .file-list>ul .file-item:hover{background-color:#f4f5f7}.page-file .file-wrapper .file-drag .file-list>ul .file-item.operate .file-menu,.page-file .file-wrapper .file-drag .file-list>ul .file-item.operate .file-check,.page-file .file-wrapper .file-drag .file-list>ul .file-item:hover .file-menu,.page-file .file-wrapper .file-drag .file-list>ul .file-item:hover .file-check{opacity:1}.page-file .file-wrapper .file-drag .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center;margin:16px 32px 32px}.page-file .file-wrapper .file-drag .drag-over:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.page-file .file-wrapper .file-drag .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.page-file .file-wrapper .file-menu{position:absolute}.page-file .file-upload-list{display:flex;width:380px;padding:14px 26px;border-radius:8px;border:1px solid #ebeef5;position:fixed;right:16px;bottom:16px;z-index:1;background-color:#fff;box-shadow:0 2px 12px #0000001a;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s;overflow:hidden}.page-file .file-upload-list .upload-wrap{flex:1;width:100%}.page-file .file-upload-list .upload-wrap .title{font-weight:700;font-size:16px;color:#303133;margin:0}.page-file .file-upload-list .upload-wrap .title>em{padding-left:4px;font-style:normal;cursor:pointer;color:#2b85e4;font-size:12px;font-weight:400}.page-file .file-upload-list .upload-wrap .content{font-size:14px;line-height:21px;margin:12px 0 0;color:#606266;max-height:500px;max-width:100%;overflow-x:hidden;overflow-y:auto}.page-file .file-upload-list .upload-wrap .content>li{cursor:pointer;list-style:none;padding:4px 0;position:relative}.page-file .file-upload-list .upload-wrap .content>li .file-name{line-height:18px;padding-right:16px}.page-file .file-upload-list .upload-wrap .content>li .file-name .overwrite{font-style:normal;color:#0bc037}.page-file .file-upload-list .upload-wrap .content>li .file-error{font-size:12px;color:red}.page-file .file-upload-list .upload-wrap .content>li .file-close{position:absolute;font-size:14px;top:7px;right:-1px;display:none;cursor:pointer}.page-file .file-upload-list .upload-wrap .content>li:hover .file-close{display:block}.page-file .file-upload-list .upload-wrap .close{position:absolute;top:18px;right:15px;cursor:pointer;color:#909399;font-size:16px}.page-file-dropdown-menu{max-height:none!important}.page-file-dropdown-menu .ivu-dropdown{width:100%}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item{display:flex;align-items:center;justify-content:space-between;margin-right:-6px;min-width:90px}.page-file-dropdown-menu .ivu-dropdown .arrow-forward-item .ivu-icon{opacity:.7}.page-file-dropdown-menu .file-item{display:flex;align-items:center;position:relative}.page-file-dropdown-menu .file-item:before{flex-shrink:0;content:"";width:20px;height:20px;margin-right:8px}.page-file-dropdown-menu .ivu-dropdown-menu .item-open{display:flex;align-items:center}.page-file-dropdown-menu .ivu-dropdown-menu .item-open .open-name{padding-left:4px;max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-file-share-form{display:flex;align-items:flex-end;margin-bottom:12px}.page-file-share-form .share-userid{flex:1}.page-file-share-form .share-userid .common-user-select{margin-top:10px}.page-file-share-form>div{flex-shrink:0}.page-file-share-form>div:last-child{margin-right:0}.page-file-share-items{border-top:1px solid #eee;margin-top:-12px;padding-top:24px}.page-file-share-title{margin-top:-8px;margin-bottom:14px;padding:0 2px}.page-file-share-list{max-height:500px;margin-bottom:26px;overflow:auto}.page-file-share-list>li{display:flex;align-items:center;margin-bottom:12px}.page-file-share-list>li .common-avatar{flex:1}.page-file-share-list>li .all-avatar{flex:1;display:flex;align-items:center}.page-file-share-list>li .all-avatar .avatar-text{width:32px;height:32px;line-height:32px}.page-file-share-list>li .all-avatar .avatar-name{margin-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-file-share-list>li .ivu-select{width:auto;flex-shrink:0}.page-file-share-list>li .delete{color:red}.page-file-drawer .overlay-content{border-radius:20px 20px 0 0!important}body.window-portrait .page-file .file-wrapper .file-head{margin:24px 16px 16px}body.window-portrait .page-file .file-wrapper .file-navigator{margin:0 24px}body.window-portrait .page-file .file-wrapper .file-navigator .flex-full{margin-right:10px}body.window-portrait .page-file .file-wrapper .file-navigator .only-checkbox{margin-right:0}body.window-portrait .page-file .file-wrapper .file-drag .file-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul{grid-template-columns:repeat(auto-fill,80px);grid-gap:4px}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li{width:80px}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li .file-check,body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li .file-menu{display:none}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li:hover{background-color:transparent}body.window-portrait .page-file .file-wrapper .file-drag .file-list>ul>li.operate:hover{background-color:#f4f5f7}body.window-portrait .page-file .file-wrapper .file-drag .file-table{margin:16px 0 0}body.window-portrait .page-file .file-upload-list{bottom:86px}body.window-portrait .page-file-dropdown-menu .ivu-dropdown-menu .ivu-dropdown-item:hover{background:transparent}body.window-touch .page-file .file-wrapper .file-drag .file-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-login{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#f8f8f8}.page-login .login-body{display:flex;flex-direction:column;align-items:center;padding:32px 0;width:100%;max-height:100%;overflow:auto}.page-login .login-body .login-logo{flex-shrink:0;width:84px;height:84px;background:url(/js/build/logo.060180f3.svg) no-repeat center center;background-size:contain}.page-login .login-body .login-logo.can-click{cursor:pointer}.page-login .login-body .login-box{flex-shrink:0;position:relative;margin-top:36px;width:400px;max-width:90%;border-radius:12px;background-color:#fff;box-shadow:0 0 10px #e6ecfa;overflow:hidden}.page-login .login-body .login-box .login-mode-switch{position:absolute;top:4px;right:4px;z-index:1;border-radius:8px;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box{width:80px;height:80px;transform:translate(40px,-40px) rotate(45deg);cursor:pointer;background-color:#84c56acc;transition:background-color .3s;overflow:hidden}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box:hover{background-color:#84c56a}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon{position:absolute;font-size:32px;width:50px;height:50px;color:#fff;bottom:-20px;left:16px;transform:rotate(-45deg);display:flex;align-items:flex-start;justify-content:flex-start}.page-login .login-body .login-box .login-mode-switch .login-mode-switch-box .login-mode-switch-icon>svg{width:32px;height:32px;margin-left:13px;margin-top:3px}.page-login .login-body .login-box .login-title{font-size:24px;font-weight:600;text-align:center;margin-top:46px}.page-login .login-body .login-box .login-subtitle{font-size:14px;text-align:center;margin-top:12px;padding:0 12px;color:#aaa}.page-login .login-body .login-box .login-qrcode{display:flex;align-items:center;justify-content:center;margin:50px auto 51px}.page-login .login-body .login-box .login-access{margin:26px 40px 30px}.page-login .login-body .login-box .login-access>*{margin-top:26px}.page-login .login-body .login-box .login-access .ivu-input{border-color:#f1f1f1}.page-login .login-body .login-box .login-access .ivu-input[readonly=readonly]{background-color:#f5f5f5}.page-login .login-body .login-box .login-access .ivu-input-large{font-size:15px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:16px;background:transparent;border-color:#f1f1f1}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend>span,.page-login .login-body .login-box .login-access .login-code .ivu-input-group-append>span{font-size:14px}.page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-right:0}.page-login .login-body .login-box .login-access .login-code .ivu-input{border-left-color:transparent;box-shadow:none}.page-login .login-body .login-box .login-access .login-code .login-code-end{margin:-6px -7px;height:38px;overflow:hidden;cursor:pointer}.page-login .login-body .login-box .login-access .login-code .login-code-end .code-load,.page-login .login-body .login-box .login-access .login-code .login-code-end .code-error{height:100%;display:flex;align-items:center;justify-content:center;width:20px;margin:0 20px}.page-login .login-body .login-box .login-access .login-code .login-code-end .code-error{width:auto;font-size:14px;opacity:.8}.page-login .login-body .login-box .login-access .login-code .login-code-end img{height:100%;min-width:60px}.page-login .login-body .login-box .login-access .login-switch{color:#aaa}.page-login .login-body .login-box .login-access>.ivu-poptip{width:100%}.page-login .login-body .login-box .login-access>.ivu-poptip>.ivu-poptip-rel{width:100%}.page-login .login-body .login-bottom{margin-top:18px;display:flex;align-items:center;width:388px;max-width:90%}.page-login .login-body .login-bottom .login-setting{flex-shrink:0;display:flex;align-items:center;cursor:pointer;color:#606266}.page-login .login-body .login-bottom .login-setting .taskfont{margin-top:1px;margin-left:3px;transform:scale(.8);font-size:12px}.page-login .login-body .login-bottom .login-setting-menu{display:flex;flex-direction:column}.page-login .login-body .login-bottom .login-setting-item{display:flex;align-items:center;justify-content:space-between}.page-login .login-body .login-bottom .login-setting-item .ivu-icon{color:#606266;padding-left:6px;margin-right:-6px}.page-login .login-body .login-bottom .login-forgot{flex:1;padding-left:24px;color:#aaa;text-align:right}.privacy-content{margin-bottom:12px;line-height:26px;font-size:16px}.privacy-content>p{text-indent:2rem}body.window-portrait .page-login .login-body{padding:0 0 110px}body.window-portrait .page-login .login-body .login-logo{margin-top:24px;width:76px;height:76px}body.window-portrait .page-login .login-body .login-box{margin-top:0;width:100%;max-width:460px;border-radius:12px;background-color:transparent;box-shadow:none}body.window-portrait .page-login .login-body .login-box .login-mode-switch{display:none}body.window-portrait .page-login .login-body .login-box .login-title{font-size:26px}body.window-portrait .page-login .login-body .login-box .login-subtitle{margin-top:4px}body.window-portrait .page-login .login-body .login-box .login-access{margin:20px 36px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-large{height:44px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-with-prefix{padding-left:40px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-prefix,body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-suffix{width:44px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-prefix i,body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-suffix i{font-size:20px;line-height:44px}body.window-portrait .page-login .login-body .login-box .login-access .ivu-input-wrapper-large .ivu-input-icon{height:44px;line-height:44px}body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend,body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-append{font-size:18px;background:#ffffff}body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend .login-code-end,body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-append .login-code-end{height:42px}body.window-portrait .page-login .login-body .login-box .login-access .login-code .ivu-input-group-prepend{padding-left:12px;padding-right:2px}body.window-portrait .page-login .login-body .login-bottom{margin-top:8px;width:100%;max-width:460px;padding:0 36px}.page-manage{position:absolute;top:0;left:0;right:0;bottom:0;display:flex}.page-manage.not-logged .manage-box-menu,.page-manage.not-logged .manage-box-main{display:none}.page-manage .manage-box-menu{position:relative;flex-grow:0;flex-shrink:0;width:255px;height:100%;background:#F4F5F7;display:flex;flex-direction:column;align-items:center;transition:all .2s}.page-manage .manage-box-menu .scrollbar-container{flex:1;width:100%;margin-top:16px;display:flex;flex-direction:column}.page-manage .manage-box-menu .menu-base{position:sticky;top:0;z-index:1;margin:0 auto;width:80%;background:#F4F5F7}.page-manage .manage-box-menu .menu-base ul{flex:1;width:100%;display:flex;flex-direction:column}.page-manage .manage-box-menu .menu-base ul>li{flex-shrink:0;display:flex;align-items:center;height:36px;color:#6b6e72;cursor:pointer;position:relative;width:100%;margin:5px auto;padding:0 4%;border-radius:4px}.page-manage .manage-box-menu .menu-base ul>li>i{opacity:.3;font-size:20px;margin-right:10px}.page-manage .manage-box-menu .menu-base ul>li .menu-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-manage .manage-box-menu .menu-base ul>li .menu-badge{margin-left:12px;transform:scale(.9)}.page-manage .manage-box-menu .menu-base ul>li:first-child{margin-top:12px}.page-manage .manage-box-menu .menu-base ul>li.active{background-color:#fff}.page-manage .manage-box-menu .menu-project{flex:1;display:flex;flex-direction:column;align-items:center;padding:12px 0 0;cursor:default;margin:0 auto;width:80%}.page-manage .manage-box-menu .menu-project>ul{width:100%}.page-manage .manage-box-menu .menu-project>ul>li{display:flex;flex-direction:column;list-style:none;cursor:pointer;width:100%;margin:2px auto;border:2px solid transparent}.page-manage .manage-box-menu .menu-project>ul>li .project-h1{position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 28px;border-radius:4px}.page-manage .manage-box-menu .menu-project>ul>li .project-h1>em{position:absolute;top:50%;left:2px;width:24px;height:24px;cursor:pointer;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .menu-project>ul>li .project-h1>em:before{content:"";width:12px;height:12px;background:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIyMzkwODExNTQxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0OTk3IiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxwYXRoIGQ9Ik0zNjYuMTgyNCAxMDguMjM2OEw4MTIuMDMyIDQyOC4wMzJhMTAyLjQgMTAyLjQgMCAwIDEgMCAxNjYuNTAyNEwzNjYuMTgyNCA5MTQuMzI5NmExMDIuNCAxMDIuNCAwIDAgMS0xNjIuMDk5Mi04My4yNTEyVjE5MS40ODhhMTAyLjQgMTAyLjQgMCAwIDEgMTYyLjA5OTItODMuMjUxMnoiIHAtaWQ9IjI0OTk4IiBmaWxsPSIjOTk5OTk5Ij48L3BhdGg+PC9zdmc+) no-repeat center center;background-size:contain;transition:transform .2s}.page-manage .manage-box-menu .menu-project>ul>li .project-h1 .title{flex:1;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:38px;line-height:38px}.page-manage .manage-box-menu .menu-project>ul>li .project-h1 .icon-top{padding-left:8px;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.page-manage .manage-box-menu .menu-project>ul>li .project-h1 .num{padding-left:8px;font-size:12px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2{display:none;margin:16px 4px;padding:0 8px 0 24px;cursor:default}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p{display:flex;align-items:center;padding:4px 0;height:36px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p em,.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p span{font-style:normal;font-size:12px;flex-shrink:0;padding-right:6px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p .ivu-progress{margin-right:-18px}.page-manage .manage-box-menu .menu-project>ul>li .project-h2>p .ivu-progress .ivu-progress-inner{background-color:#e4e4e4}.page-manage .manage-box-menu .menu-project>ul>li.active .project-h1{background-color:#fff}.page-manage .manage-box-menu .menu-project>ul>li.open-menu .project-h1>em:before{transform:rotate(90deg)}.page-manage .manage-box-menu .menu-project>ul>li.open-menu .project-h2{display:block}.page-manage .manage-box-menu .menu-project>ul>li.operate{border-color:#84c56a}.page-manage .manage-box-menu .menu-project>ul>li.loading{display:flex;align-items:center;justify-content:center;padding:6px}.page-manage .manage-box-menu .menu-project>ul>li.loading .common-loading{margin:6px;width:22px;height:22px}.page-manage .manage-box-menu .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-manage .manage-box-menu .manage-project-search{width:80%;padding:0 6px;margin:8px 0 -2px;border-radius:12px;background-color:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .manage-project-search .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.page-manage .manage-box-menu .manage-project-search .search-pre .common-loading{width:14px;height:14px;margin:0}.page-manage .manage-box-menu .manage-project-search .ivu-input{border-color:transparent;background-color:transparent}.page-manage .manage-box-menu .manage-project-search .ivu-input:hover,.page-manage .manage-box-menu .manage-project-search .ivu-input:focus{box-shadow:none}.page-manage .manage-box-menu .manage-box-new-group{width:80%;margin-top:16px;margin-bottom:20px;display:flex;align-items:center}.page-manage .manage-box-menu .manage-box-new-group .manage-box-new{flex:1}.page-manage .manage-box-menu .manage-box-new-group .ivu-btn{height:38px}.page-manage .manage-box-menu .manage-box-new-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}.page-manage .manage-box-main{flex:1;position:relative}.page-manage .manage-box-main .manage-box-view{position:absolute;top:0;left:0;right:0;bottom:0;overflow:auto}.page-manage-menu-dropdown{flex-shrink:0}.page-manage-menu-dropdown.main-menu{width:86%}.page-manage-menu-dropdown .ivu-select-dropdown{padding:7px 0}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item{padding:9px 16px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided{margin-top:7px}.page-manage-menu-dropdown .ivu-select-dropdown .ivu-dropdown-item-divided:before{top:-9px}.page-manage-menu-dropdown .manage-box-title{display:flex;align-items:center;flex-shrink:0;padding:6px 10px;margin-top:27px;border-radius:8px;background-color:#fff;cursor:pointer;transition:box-shadow .3s}.page-manage-menu-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #0003}.page-manage-menu-dropdown .manage-box-title .manage-box-avatar{width:36px;height:36px}.page-manage-menu-dropdown .manage-box-title>span{flex:1;padding-left:12px;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-left:16px;padding-right:2px}.page-manage-menu-dropdown .manage-box-title .manage-box-arrow>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report{overflow:unset;margin-right:-6px;align-items:center;flex-direction:column;justify-content:center;flex:0 0 auto}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report>i{font-size:12px;margin:-1px}.page-manage-menu-dropdown .manage-box-title .manage-box-top-report .ivu-badge-dot{margin-right:4px}.page-manage-menu-dropdown .manage-menu-report-badge{margin-left:6px;transform:scale(.9);vertical-align:top}.page-manage-menu-dropdown .manage-menu-flex{display:flex;align-items:center;justify-content:space-between}.page-manage-menu-dropdown .manage-menu-flex .ivu-icon{color:#606266}.page-manage-menu-dropdown .task-title{max-width:600px;display:flex;align-items:center}.page-manage-menu-dropdown .task-title>span{flex-shrink:0;font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:6px}.page-manage-menu-dropdown .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.page-manage-menu-dropdown .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.page-manage-menu-dropdown .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.page-manage-menu-dropdown .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.page-manage-menu-dropdown .task-title .task-title-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-manage-add-task-button-group{margin-left:8px!important}.page-manage-add-task-button-group .ivu-dropdown .ivu-btn{min-width:auto!important;padding:0 4px;border-radius:0 4px 4px 0}@media (max-height: 640px){.page-manage .manage-box-menu .menu-base{position:relative}}body.window-touch .page-manage .manage-box-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-manage.show-tabbar .manage-box-main{margin-bottom:60px}body.window-portrait .page-manage .manage-box-menu{position:fixed;z-index:49;left:0;top:0;bottom:0;width:100%;transform:translate(-120%)}body.window-portrait .page-manage .manage-box-menu.show-mobile-menu{transform:translate(0)}.page-messenger{display:flex}.page-messenger .messenger-wrapper{flex:1;display:flex;align-items:flex-start;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select{position:relative;height:100%;width:30%;min-width:240px;max-width:320px;flex-shrink:0;display:flex;flex-direction:column}.page-messenger .messenger-wrapper .messenger-select:after{content:"";position:absolute;top:0;right:0;height:100%;width:1px;background-color:#f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-search{display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{flex:1;background-color:#f7f7f7;padding:0 6px;margin:0 4px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:hover,.page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper .ivu-input:focus{box-shadow:none}.page-messenger .messenger-wrapper .messenger-select .messenger-nav{display:flex;align-items:center;padding:2px 10px 12px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div{flex:1;flex-shrink:0;display:flex;align-items:center;justify-content:center;line-height:1;padding:0 6px;color:#888;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.nav-menu{max-width:46px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.nav-menu .nav-icon{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.nav-menu .nav-icon>i{font-size:16px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title{position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title>em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div .nav-title .nav-num{position:absolute;top:-12px;right:-8px;transform:scale(.7)}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div.active{color:#555;font-weight:500}.page-messenger .messenger-wrapper .messenger-select .messenger-nav>div:hover{color:#777}.page-messenger .messenger-wrapper .messenger-select .messenger-notify-permission{position:sticky;display:flex;align-items:center;padding:6px 12px;justify-content:space-between;background-color:#fef7ee;border:1px solid #FAE0B5;margin:8px 12px;border-radius:6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list{flex:1;height:0;width:100%;overflow-x:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul>li.nothing{margin:0!important;padding:24px!important;text-align:center;justify-content:center;height:100%;border-radius:0;line-height:22px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li{display:flex;flex-direction:row;align-items:flex-start;padding:16px 12px;position:relative;cursor:pointer;list-style:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .img-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .user-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar{width:42px;height:42px;margin:2px;flex-grow:0;flex-shrink:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .img-avatar{display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .img-avatar>img{width:100%;height:100%}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar.department{background-color:#5bc7b0}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar.project{background-color:#6e99eb}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar.task{background-color:#9b96df;font-size:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box{flex:1;width:0;display:flex;flex-direction:column;padding-left:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;line-height:24px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .todo,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .mention,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .bot{color:red;background-color:transparent;font-weight:600;flex-shrink:0;margin-right:4px;padding:0;height:auto;width:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .bot{color:#84c56a;font-size:16px;font-weight:400}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .ivu-tag{margin:0 4px 0 0;padding:0 5px;box-sizing:content-box}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title .ivu-tag.ivu-tag-success{padding:0 6px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>span{flex:1;color:#303133;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>i{flex-shrink:0;margin-left:8px;transform:scale(.9);font-size:12px;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>i.completed{font-size:18px;margin:0 4px 0 0;transform:scale(1)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-title>em{flex-shrink:0;margin-left:8px;font-style:normal;color:#909399;font-size:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text{color:#909399;font-size:12px;min-height:24px;line-height:24px;display:flex;align-items:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-self{flex-shrink:0;padding-right:4px;margin-right:4px;position:relative;overflow:hidden}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft:after,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar:after,.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-self:after{content:":";position:absolute;top:50%;transform:translateY(-50%);right:0}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft{color:red}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-draft:after{color:#909399}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar{flex-shrink:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .common-avatar .avatar-name{max-width:100%}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-text{flex:1;display:flex;align-items:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-text>em{flex-shrink:0;background-color:#90939940;height:20px;width:26px;line-height:20px;text-align:center;border-radius:10px;font-size:14px;font-style:normal;margin-right:4px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-text>span{flex:1;width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text .last-silence{font-size:15px;padding-left:4px;color:#90939980}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-num{position:absolute;top:10px;left:58px;transform:scale(.8) translate(-100%)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-line{display:none;position:absolute;bottom:0;right:0;left:68px;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.top{background-color:#f4f5f7}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.active{background-color:#eeeff1}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.operate:before{display:block}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;bottom:0;right:12px;font-size:28px;color:#19be6b;opacity:.2;z-index:1}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li.completed .dialog-box .dialog-text{padding-right:36px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li{list-style:none;margin-left:24px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li .label{padding-left:4px;margin-top:6px;margin-bottom:6px;height:34px;line-height:34px;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li .label:after{content:"";position:absolute;bottom:0;right:0;left:0;height:1px;background-color:#f2f2f2;transform:scaleY(.5)}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li.loaded{margin:0;height:52px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li{list-style:none;display:flex;flex-direction:row;align-items:center;height:52px;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .avatar{flex-grow:0;flex-shrink:0;width:30px;height:30px}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname{flex:1;width:0;padding-left:12px;font-size:14px;display:flex;align-items:center;justify-content:space-between;flex-flow:row wrap;align-content:flex-start}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname>em{padding-right:12px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname .tags{padding-right:12px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#909399}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .nickname .tags>span+span:before{content:", "}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .loading{margin-right:12px;width:16px;height:16px;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-list .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-menu{display:flex;align-items:center;justify-content:center;height:52px;flex-shrink:0;border-top:1px solid #f4f5f5}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon{height:100%;display:flex;align-items:center;position:relative}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon .menu-num{position:absolute;top:4px;left:50%;margin-left:3px;transform:scale(.8)}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i{cursor:pointer;font-size:24px;margin:0 24px;color:#aaa;opacity:.9}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i.active{opacity:1;color:#84c56a}.page-messenger .messenger-wrapper .messenger-select .messenger-menu .menu-icon>i:hover{opacity:1}.page-messenger .messenger-wrapper .messenger-msg{flex:1;width:0;height:100%;display:flex;position:relative}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon{background-color:#f4f5f7;padding:20px;border-radius:50%}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-icon .ivu-icon{color:#d1d8dd;font-size:46px}.page-messenger .messenger-wrapper .messenger-msg .msg-dialog-bg .msg-dialog-bg-text{margin-top:16px;color:#bec6cc;background-color:#f4f5f7;padding:4px 15px;border-radius:14px}.messenger-nav-menu .messenger-nav-item{display:flex;align-items:center;min-width:80px}.messenger-nav-menu .messenger-nav-item.active .nav-title{font-weight:700}.messenger-nav-menu .messenger-nav-item .nav-title{flex:1;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}.messenger-nav-menu .messenger-nav-item .nav-num{transform:scale(.7);transform-origin:center right}.messenger-dialog-operation .ivu-dropdown-item-divided:before{transform:scaleY(.5)}.messenger-dialog-operation .item{display:flex;align-items:center;justify-content:space-between}.messenger-dialog-operation .item>i{flex-shrink:0;width:18px;height:18px;line-height:18px;font-size:18px;margin-left:16px;opacity:.7}.messenger-dialog-operation .item>i.color{opacity:1}body.window-touch .page-messenger .messenger-wrapper .messenger-select .messenger-list{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:#fff;z-index:48}body.window-portrait .page-messenger .messenger-wrapper .messenger-select:after{display:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-search{background-color:#f8f8f8}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-search .search-wrapper{background-color:#fff}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-nav{background-color:#f8f8f8}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-menu{border-top:0;height:60px;opacity:0}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .user-avatar .common-avatar:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-line{display:block}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li:last-child .dialog-line{display:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-messenger .messenger-wrapper .messenger-msg{display:none}body.window-portrait .messenger-nav-menu .messenger-nav-item{min-width:100px}.page-project{flex:1;display:flex;align-items:flex-start}.page-project .project-panel{flex:1;width:0;height:100%;background-color:#fafafa}.page-project .project-dialog{position:relative;height:100%;width:35%;min-width:320px;max-width:520px;flex-shrink:0}@media (max-height: 700px){.page-project .project-panel{height:auto;min-height:100%}.page-project .project-panel.gantt{height:100%}}.page-setting{display:flex;flex-direction:column}.page-setting .setting-head{display:flex;align-items:center;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.page-setting .setting-head .setting-titbox{flex:1;margin-bottom:16px}.page-setting .setting-head .setting-titbox .setting-title{display:flex;align-items:center}.page-setting .setting-head .setting-titbox .setting-title>h1{flex:1;width:0;color:#303133;font-size:28px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-head .setting-titbox .setting-title .setting-more{display:none}.page-setting .setting-box{flex:1;height:0;display:flex;padding-bottom:16px}.page-setting .setting-box .mobile-nav-box{display:none}.page-setting .setting-box .setting-menu{width:200px;flex-shrink:0;border-right:1px solid #F4F4F5;overflow:auto}.page-setting .setting-box .setting-menu>ul{padding:12px 0 0 32px}.page-setting .setting-box .setting-menu>ul>li{cursor:pointer;color:#6b6e72;list-style:none;line-height:42px;padding:0 20px;margin:5px 0;position:relative;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-box .setting-menu>ul>li.flex{display:flex;align-items:center}.page-setting .setting-box .setting-menu>ul>li .ivu-badge{transform:scale(.8);transform-origin:right center}.page-setting .setting-box .setting-menu>ul>li.active,.page-setting .setting-box .setting-menu>ul>li:hover{background-color:#f4f5f7}.page-setting .setting-box .setting-menu>ul>li.divided{position:relative;margin-top:10px;padding-top:10px}.page-setting .setting-box .setting-menu>ul>li.divided:before{content:"";position:absolute;top:0;left:0;right:0;z-index:1;height:1px;background-color:#f4f4f5}.page-setting .setting-box .setting-menu>ul>li.divided:after{content:"";position:absolute;top:1px;left:0;right:0;z-index:2;height:9px;background-color:#fff}.page-setting .setting-box .setting-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.page-setting .setting-box .setting-content .setting-content-title{font-size:20px;font-weight:500;padding:12px 32px}.page-setting .setting-box .setting-content .setting-content-view{flex:1;position:relative}.page-setting .setting-box .setting-content .setting-content-view .setting-router-view{padding:24px 40px}.page-setting .setting-item .ivu-input,.page-setting .setting-item .ivu-select-default{max-width:460px}.page-setting .setting-item .ivu-form{overflow:auto}.page-setting .setting-item .setting-color,.page-setting .setting-item .setting-template{min-width:400px;max-width:600px;margin-bottom:12px}.page-setting .setting-item .setting-color>div,.page-setting .setting-item .setting-template>div{text-align:center;padding-right:12px}.page-setting .setting-item .setting-color>div:first-child,.page-setting .setting-item .setting-template>div:first-child{text-align:left}.page-setting .setting-item .setting-color>div:last-child,.page-setting .setting-item .setting-template>div:last-child{padding-right:0;width:60px;flex:auto;flex-shrink:0}.page-setting .setting-item .setting-color>div .ivu-color-picker,.page-setting .setting-item .setting-template>div .ivu-color-picker{width:100%}.page-setting .setting-item .setting-color .information,.page-setting .setting-item .setting-template .information{color:#909399}.page-setting .setting-item .setting-color.color-label-box .el-tooltip{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.page-setting .setting-item .setting-template>div{flex-shrink:0;text-align:left}.page-setting .setting-item .setting-template>div:last-child{flex:1;width:auto;max-width:none}.page-setting .setting-item .setting-footer{display:flex;align-items:center}.page-setting .setting-item .setting-footer>button{display:flex;align-items:center;justify-content:center;height:34px;line-height:32px;min-width:94px}.page-setting .setting-item .setting-footer>button>span{margin-left:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-setting .setting-item .setting-auto-day{display:block;width:110px;margin-top:12px;line-height:32px;margin-bottom:-10px}.page-setting .setting-item .setting-checkin-load{margin-bottom:12px}.page-setting .setting-item .setting-checkin-load .common-loading{width:20px;height:20px}.page-setting .setting-item .setting-checkin-lately>li{padding-bottom:8px}.page-setting .setting-item .setting-checkin-lately>li .time{font-weight:700}.page-setting .setting-item .setting-checkin-lately>li .content{font-size:13px;opacity:.7}.page-setting .setting-item .setting-checkin-row{overflow:auto}.page-setting .setting-item .setting-checkin-button{padding-bottom:4px;cursor:pointer;color:#2b85e4}.page-setting .setting-item .setting-checkin-button:hover{text-decoration:underline}.page-setting .setting-item.submit{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding:0!important}.page-setting .setting-item.submit .ivu-form{flex:1;padding:24px 40px 0;overflow:auto}.page-setting .setting-item.submit .ivu-tabs{flex:1;padding:16px 32px 0;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content{flex:1;height:0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane{position:relative}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item{position:absolute;top:0;left:0;right:0;bottom:0;flex:1;display:flex;flex-direction:column}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding:8px 12px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0 -32px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box{position:relative;padding:44px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box:hover{box-shadow:0 0 10px #e6ecfa}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .form-box{overflow:auto}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .block-setting-placeholder{height:8px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data{margin-top:6px}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p:hover{text-decoration:underline}.page-setting .setting-item.submit .setting-footer{flex-shrink:0;position:static;padding:16px 24px 0;border-top:1px solid #F4F4F5}.page-setting .setting-item.submit .setting-input,.page-setting .setting-item.submit .setting-send-input{max-width:460px}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append{background-color:#ededed!important;border:1px solid #EDEDED!important;color:#999!important}.page-setting .setting-item.submit .setting-send-input .ivu-input-group-append:before{background:#EDEDED}.page-setting .setting-item.submit .setting-button{margin-left:8px}.page-setting-delete-box .big-text{font-size:16px;font-weight:500;color:red}.page-setting-delete-box .small-text{margin-top:15px}.page-setting-delete-box .small-text>div{margin:10px 0}.page-setting-delete-box .button-box{text-align:center}body.window-portrait .page-setting{background-color:#f8f8f8}body.window-portrait .page-setting .setting-head{display:none}body.window-portrait .page-setting .setting-box{position:relative}body.window-portrait .page-setting .setting-box .mobile-nav-box{display:flex;position:sticky;top:0;z-index:3;background-color:#f8f8f8}body.window-portrait .page-setting .setting-box .setting-menu{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}body.window-portrait .page-setting .setting-box .setting-menu>ul{padding:0 0 20px}body.window-portrait .page-setting .setting-box .setting-menu>ul>li{position:relative;padding:0 32px;line-height:48px;margin:0;background-color:#fff}body.window-portrait .page-setting .setting-box .setting-menu>ul>li:after{content:"";position:absolute;top:0;left:32px;right:0;z-index:1;height:1px;transform:scaleY(.5);background-color:#f4f4f5}body.window-portrait .page-setting .setting-box .setting-menu>ul>li:first-child:after{display:none}body.window-portrait .page-setting .setting-box .setting-menu>ul>li.divided{margin-top:20px}body.window-portrait .page-setting .setting-box .setting-menu>ul>li.divided:before,body.window-portrait .page-setting .setting-box .setting-menu>ul>li.divided:after{display:none}body.window-portrait .page-setting .setting-box .setting-content{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;background-color:#fff}body.window-portrait .page-setting .setting-box .setting-content .setting-content-title{display:none}body.window-portrait .page-setting .setting-item .setting-footer>button{flex:1;height:40px;line-height:38px}body.window-portrait .page-setting .setting-item.submit .ivu-tabs{padding:0}body.window-portrait .page-setting .setting-item.submit .ivu-tabs .ivu-tabs-bar{margin-bottom:0}body.window-portrait .page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding-top:16px}body.window-portrait .page-setting .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0}body.window-portrait .page-setting .setting-item.submit .setting-footer{padding:16px 24px}.page-approve{width:100%;height:100%;display:flex;flex-direction:column}.page-approve .approve-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative}.page-approve .approve-wrapper .approve-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 20px 5px;border-bottom:1px solid #F4F4F5;gap:16px}.page-approve .approve-wrapper .approve-head .approve-nav{flex:1;display:flex;align-items:center}.page-approve .approve-wrapper .approve-head .approve-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-approve .approve-wrapper .approve-main-search{display:flex;justify-content:space-between;margin:0 5px 10px}.page-approve .approve-wrapper .approve-main-search>div{display:flex;gap:10px;overflow:hidden}.page-approve .approve-wrapper .approve-main-search>div .ivu-select{width:150px}.page-approve .approve-wrapper .approve-main-search>div .ivu-dropdown{margin-right:8px}.page-approve .approve-wrapper .approve-main-search>div .load{font-size:12px;width:20px;height:32px;overflow:hidden}.page-approve .approve-wrapper .approve-main-search .ivu-input-wrapper{max-width:200px}@media (max-width: 515px){.page-approve .approve-wrapper .approve-main-search .ivu-btn{min-width:45px}}.page-approve .approve-wrapper .approve-load{text-align:center;padding-top:20px}.page-approve .approve-wrapper .noData{text-align:center;line-height:150px}.page-approve .approve-wrapper .page-approve-tabs{margin:0 20px;height:100%}.page-approve .approve-wrapper .approve-mains{display:flex;flex:1 1 auto;height:calc(100vh - 190px);position:relative}.page-approve .approve-wrapper .approve-mains .approve-main-left{display:flex;flex-direction:column;flex:0 0 auto;position:absolute;left:0;top:0;bottom:12px;max-width:360px;width:100%}@media (max-width: 1010px){.page-approve .approve-wrapper .approve-mains .approve-main-left{max-width:100%}}.page-approve .approve-wrapper .approve-mains .approve-main-left .load{text-align:center}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list{display:flex;flex-direction:column;flex:1 1 auto;overflow:scroll}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list{margin-bottom:8px;padding:12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s;cursor:pointer}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list:hover{box-shadow:0 0 10px #e6ecfa}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>h2{display:flex;align-items:center;justify-content:space-between}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>h2>.list-name{font-size:14px;font-weight:700}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>p{font-size:14px;margin-top:5px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list>p>span{color:#303133}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list .list-member{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list .list-member>span{display:flex;align-items:center;font-size:12px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list .list-member>span .ivu-avatar{margin-right:8px}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list-active{border:1px solid #8bcf70}@media (max-width: 1010px){.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list .approve-list-active{border:1px solid #eeeeee}}.page-approve .approve-wrapper .approve-mains .approve-main-left .approve-main-list::-webkit-scrollbar{display:none}.page-approve .approve-wrapper .approve-mains .approve-main-right{position:absolute;left:360px;top:0;right:0;bottom:0;flex:1 1 auto;display:flex;margin:0 0 12px 12px}@media (max-width: 1010px){.page-approve .approve-wrapper .approve-mains .approve-main-right{display:none}}.approve-details{flex:1 1 auto;display:flex;flex-direction:column;border:1px solid #eeeeee;background:#fff}.approve-details .approve-details-nav{height:52px;padding:0 8px;text-align:center;line-height:52px;background-color:#f8f8f8;display:none}@media (max-width: 425px){.approve-details .approve-details-nav{display:block}}.approve-details .approve-details-nav .common-nav-back{float:left}.approve-details .approve-details-nav h2{font-size:17px;font-weight:600}.approve-details .approve-details-box{flex:1 1 auto;padding:24px;overflow-y:scroll}.approve-details .approve-details-box .approve-details-title{display:flex;align-items:center}.approve-details .approve-details-box .approve-details-title .ivu-tag{margin-left:8px}.approve-details .approve-details-box .approve-details-subtitle{margin-top:8px;display:flex}.approve-details .approve-details-box .approve-details-subtitle .ivu-avatar{margin-right:8px}.approve-details .approve-details-box .approve-details-subtitle>span{font-size:14px}.approve-details .approve-details-box .timeline-title{font-weight:700;padding-bottom:10px}.approve-details .approve-details-box .approve-details-text{margin-bottom:12px}.approve-details .approve-details-box .approve-details-text>h4{color:#999}.approve-details .approve-details-box .approve-details-text>p{font-size:14px;margin-top:2px;font-weight:500}.approve-details .approve-details-box .approve-details-text .img-body{display:flex;gap:10px;margin-top:3px}.approve-details .approve-details-box .approve-details-text .time-text>span+span{padding-left:4px}.approve-details .approve-details-box .approve-record-timeline{margin-top:20px}.approve-details .approve-details-box .approve-record-timeline .timeline-body{display:flex}.approve-details .approve-details-box .approve-record-timeline .approve-process-state{font-size:12px;color:#19be6b;height:21px}.approve-details .approve-details-box .approve-record-timeline .approve-process-left{margin-left:10px;flex:1;width:0}.approve-details .approve-details-box .approve-record-timeline .approve-process-left .approve-process-desc{font-size:12px;max-width:100%;overflow:auto;word-break:break-all}.approve-details .approve-details-box .approve-record-timeline .approve-process-right{text-align:right}.approve-details .approve-details-box .approve-record-timeline>li:last-child{padding-bottom:0}.approve-details .approve-details-box .approve-record-timeline .finish .ivu-timeline-item-content{padding-bottom:0}.approve-details .approve-details-box .approve-record-comment{padding:10px 10px 0}.approve-details .approve-details-box .approve-record-comment .ivu-list-item>div:first-child{width:100%}.approve-details .approve-details-box .approve-record-comment .top{display:flex;gap:8px;width:100%}.approve-details .approve-details-box .approve-record-comment .top>div{flex:1}.approve-details .approve-details-box .approve-record-comment .time{font-size:12px;color:#a2a2a2}.approve-details .approve-details-box .approve-record-comment .content{margin-top:3px;padding-left:45px}.approve-details .approve-details-box .approve-record-comment .ivu-list-items>li:last-child{padding-bottom:0}.approve-details .approve-details-box .approve-details-text:nth-last-child(1){margin-bottom:0}.approve-details .approve-details-box .img-view{display:flex;max-width:60px;border-radius:5px}.approve-details .approve-details-box .approve-copy{margin-top:8px;display:flex}.approve-details .approve-details-box .approve-copy .approve-copy-member{display:flex;align-items:center;background:#F4F4F5;padding:2px 8px;border-radius:20px}.approve-details .approve-details-box .approve-copy .approve-copy-member .ivu-avatar{margin-right:4px}.approve-details .approve-details-box::-webkit-scrollbar{display:none}.approve-details .approve-operation{flex:0 0 auto;padding:0 24px;border-top:1px solid #F4F4F5;display:flex;align-items:center;justify-content:flex-end}.approve-details .approve-operation button{margin:10px 0 10px 10px}.approve-details .approve-load{position:absolute;top:1px;left:1px;right:1px;bottom:1px;display:flex;z-index:9;background:rgba(0,0,0,.0196078431)}.approve-details .comment{margin-top:5px;margin-left:45px;font-size:12px}.approve-details .comment span{background-color:#eaeaea;border-radius:5px;padding:3px 10px;display:inline-block}.page-approve-setting .approve-row{padding:24px;overflow:auto;margin:0!important}.page-approve-setting .approve-row .ivu-col{margin-bottom:16px}.page-approve-setting .approve-row .ivu-col .approve-col-box{border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s;cursor:pointer}.page-approve-setting .approve-row .ivu-col .approve-col-box:hover{box-shadow:0 0 10px #e6ecfa}.page-approve-setting .approve-row .ivu-col .approve-col-add{height:100%;font-size:48px;display:flex;justify-content:center;align-items:center;color:#ededed;min-height:95px}.page-approve-setting .approve-row .ivu-col .approve-col-for{padding:16px 16px 13px;display:flex;flex-direction:column}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-name{font-weight:500;color:#135de6}.page-approve-setting .approve-row .ivu-col .approve-col-for .divider{margin:12px 0 9px}.page-approve-setting .approve-row .ivu-col .approve-col-for .icon-warp{position:relative}.page-approve-setting .approve-row .ivu-col .approve-col-for>p{display:flex;align-items:center}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-button-box{display:flex;justify-content:space-between;align-items:center}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-button-box>p{display:flex;align-items:center}.page-approve-setting .approve-row .ivu-col .approve-col-for .approve-button-box>p>i{font-size:16px;margin-left:8px;color:#606266}body.window-portrait .page-approve .approve-head{margin:24px 16px 6px}.page-microapp .microapp-load{align-items:center;display:flex;justify-content:center;height:90%}.electron-single-micro-apps .page-microapp .microapp-load{margin-top:25%}.page-apply{width:100%;height:100%;display:flex;flex-direction:column}.page-apply .apply-wrapper{flex:1;height:0;display:flex;flex-direction:column;position:relative;background-color:#fafafa}.page-apply .apply-wrapper .apply-head{display:flex;align-items:center;padding-bottom:16px;margin:32px 32px 0;border-bottom:1px solid #f6f6f6}.page-apply .apply-wrapper .apply-head .apply-nav{flex:1;display:flex;align-items:center}.page-apply .apply-wrapper .apply-head .apply-nav>h1{color:#303133;font-size:28px;font-weight:600}.page-apply .apply-wrapper .apply-content{flex:1;padding:16px 30px;overflow:auto}.page-apply .apply-wrapper .apply-content .apply-row-title{margin-bottom:16px}.page-apply .apply-wrapper .apply-content>div.apply-row-title:nth-last-child(2){margin-top:22px!important}.page-apply .apply-wrapper .apply-content .apply-col{margin-bottom:16px}.page-apply .apply-wrapper .apply-content .apply-col>div{font-size:14px;font-weight:400;background:#FFFFFF;color:#333;border-radius:8px;padding:12px;display:flex;align-items:center;gap:10px;cursor:pointer;position:relative;border:1px solid #f1f1f1}.page-apply .apply-wrapper .apply-content .apply-col>div>.logo{width:40px;height:40px;display:inline-block}.page-apply .apply-wrapper .apply-content .apply-col>div>p{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.page-apply .apply-wrapper .apply-content .apply-col>div .apply-box-top-report{position:absolute;right:-16px;top:-16px;padding:8px}@media (max-width: 510px){.page-apply .apply-wrapper{background-color:#fff}.page-apply .apply-wrapper .apply-row-title{margin-bottom:8px!important}.page-apply .apply-wrapper .apply-content .ivu-row{margin-left:-12px!important;margin-right:-12px!important}.page-apply .apply-wrapper .apply-content .apply-col{margin-bottom:6px}.page-apply .apply-wrapper .apply-content .apply-col>div{display:block;text-align:center;padding:12px 0;background:none;border-color:#fff}.page-apply .apply-wrapper .apply-content .apply-col>div .logo{margin-bottom:8px;position:relative}.page-apply .apply-wrapper .apply-content .apply-col>div>p{-webkit-line-clamp:1}.page-apply .apply-wrapper .apply-content .apply-col>div .apply-box-top-report{right:-20px;top:-20px}}.apply-icon{width:40px;height:40px;background-repeat:no-repeat;background-size:contain;background-position:center center}.apply-icon.approve{background-image:url(/js/build/approve.c0c85d70.svg)}.apply-icon.add-project{background-image:url(/js/build/add-project.a5c9a747.svg)}.apply-icon.add-task{background-image:url(/js/build/add-task.45a04438.svg)}.apply-icon.all-user{background-image:url(/js/build/all-user.1d203f3c.svg)}.apply-icon.app-push{background-image:url(/js/build/app-push.d5e56edc.svg)}.apply-icon.approve{background-image:url(/js/build/approve.c0c85d70.svg)}.apply-icon.calendar{background-image:url(/js/build/calendar.972f5520.svg)}.apply-icon.file{background-image:url(/js/build/file.aa23b4ce.svg)}.apply-icon.ldap{background-image:url(/js/build/ldap.6937bf6c.svg)}.apply-icon.mail{background-image:url(/js/build/mail.8f60e67c.svg)}.apply-icon.meeting{background-image:url(/js/build/meeting-create.41663ea5.svg)}.apply-icon.meeting-create{background-image:url(/js/build/meeting-create.41663ea5.svg)}.apply-icon.meeting-join{background-image:url(/js/build/meeting-join.ebeac42f.svg)}.apply-icon.okr{background-image:url(/js/build/okr.3e2b21c4.svg)}.apply-icon.okr-analyze{background-image:url(/js/build/okr-analyze.90c08797.svg)}.apply-icon.report{background-image:url(/js/build/report.e6a77cec.svg)}.apply-icon.robot{background-image:url(/js/build/robot.d890987e.svg)}.apply-icon.scan{background-image:url(/js/build/scan.e98df126.svg)}.apply-icon.setting{background-image:url(/js/build/setting.678a0338.svg)}.apply-icon.signin{background-image:url(/js/build/signin.017d48dc.svg)}.apply-icon.vote{background-image:url(/js/build/vote.f1407634.svg)}.apply-icon.word-chain{background-image:url(/js/build/word-chain.84645558.svg)}.ivu-modal-wrap-apply{position:relative;height:100%;display:flex;flex-direction:column;max-width:100vw;overflow:auto}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-title{line-height:40px;font-size:20px;font-weight:500;padding:12px 30px;color:#303133}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-title>p{float:right;cursor:pointer;color:#2b85e4;font-size:14px}@media (max-width: 500px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-title{margin-right:28px}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body{position:relative;flex:1;padding:8px 30px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item{position:absolute;top:0;left:0;right:0;bottom:0;flex:1;display:flex;flex-direction:column}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form{padding:8px 30px;overflow:auto;flex:1}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form .ivu-form-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form .ivu-form-item{padding:12px 0 0}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content{display:flex}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content>.ivu-form,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item>.ivu-form .ivu-form-item .ivu-form-item .ivu-form-item-content>.ivu-form{margin-bottom:8px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box{position:relative;padding:24px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}@media (max-width: 420px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-advance>.ivu-form-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-advance>.ivu-form-item{display:flex;flex-direction:column}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-advance>.ivu-form-item .ivu-form-item-label,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-advance>.ivu-form-item .ivu-form-item-label{text-align:left}}@media (max-width: 460px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-msg-unread>.ivu-form-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-msg-unread>.ivu-form-item{display:flex;flex-direction:column}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box .block-setting-msg-unread>.ivu-form-item .ivu-form-item-label,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box .block-setting-msg-unread>.ivu-form-item .ivu-form-item-label{text-align:left}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .block-setting-box h3,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .block-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template{margin-bottom:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template>div,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template>div{padding-right:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .export-data>p,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .export-data>p{cursor:pointer;color:#2b85e4}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-footer,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer{flex-shrink:0;position:static;padding:16px 26px;border-top:1px solid #F4F4F5;display:flex;align-items:center;gap:8px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer .ivu-btn{min-width:120px;height:38px;line-height:36px}@media (max-width: 500px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer .ivu-btn{width:50%}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-tabs{display:flex;flex-direction:column;height:100%;margin:0 -30px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-tabs .ivu-tabs-bar{padding:0 10px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-tabs .ivu-tabs-content{height:100%;flex:1}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul{list-style-type:none;overflow:hidden;border-radius:3px;margin-right:-10px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li{float:left;width:calc(50% - 10px);border:1px solid #eeeeee;box-sizing:border-box;padding:28px 20px;position:relative;text-align:center;margin-right:10px;margin-bottom:10px;border-radius:5px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .apply-icon{display:block;width:50px;height:50px;border-radius:16px;margin:0 auto 12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li h4{word-break:break-all;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-style:normal;max-width:100%;font-size:16px;font-weight:500;color:#1b1b1b;line-height:24px;text-align:center;padding:0 12px;margin-bottom:6px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li p{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}@media (max-width: 510px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li p{-webkit-line-clamp:2}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .desc{cursor:pointer;height:84px}@media (max-width: 510px){.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .desc{height:42px}}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .btn{color:#2b85e4;margin:20px auto 0;cursor:pointer;padding:5px 0}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ivu-modal-wrap-ul li .load{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(151,151,151,.1098039216);line-height:300px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .aibot-warp{position:relative;height:100%}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .aibot-warp .ivu-form{overflow:hidden;padding:0;margin:0 30px}.mobile-scan-login-box{margin:2px 0 12px}.mobile-scan-login-box .mobile-scan-login-title{font-size:20px}.mobile-scan-login-box .mobile-scan-login-subtitle{padding-top:8px}body.window-portrait .page-apply .apply-head{margin:24px 24px 0}body.window-portrait .page-apply .apply-content{padding:16px 20px}body.window-portrait .page-apply .apply-content .apply-col>div{font-size:12px;font-weight:500}.chat-input-box{display:inline-block;width:100%}.chat-input-box.record-ready .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .6s ease;transform:translate(-50%,-50%) scale(2)}.chat-input-box.record-progress .chat-input-wrapper .ql-container{opacity:0}.chat-input-box.record-progress .chat-input-wrapper .chat-toolbar>li.chat-send:before{transition:all .3s ease;transform:translate(-50%,-50%) scale(2.5)}.chat-input-box.record-progress .chat-input-wrapper .chat-record{visibility:visible;opacity:1;z-index:1}.chat-input-box.show-menu .chat-input-wrapper .chat-cover,.chat-input-box.show-more .chat-input-wrapper .chat-cover,.chat-input-box.show-emoji .chat-input-wrapper .chat-cover{display:block}.chat-input-box .chat-input-quick-emoji{position:absolute;top:4px;right:24px;width:0;height:0;visibility:hidden;z-index:-1}.chat-input-box .chat-input-wrapper{position:relative;display:inline-block;vertical-align:middle;width:100%}.chat-input-box .chat-input-wrapper .chat-quote{position:relative;padding:0 48px 8px 24px}.chat-input-box .chat-input-wrapper .chat-quote:after{content:"";position:absolute;top:0;left:12px;bottom:8px;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.chat-input-box .chat-input-wrapper .chat-quote .quote-label,.chat-input-box .chat-input-wrapper .chat-quote .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.chat-input-box .chat-input-wrapper .chat-quote .quote-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.chat-input-box .chat-input-wrapper .chat-quote i.taskfont{position:absolute;right:0;top:0;bottom:8px;z-index:1;font-size:16px;width:48px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .3s ease}.chat-input-box .chat-input-wrapper .chat-quote i.taskfont:hover{transform:rotate(-90deg);color:#303133}.chat-input-box .chat-input-wrapper .ql-container{display:block;float:left;width:auto;max-width:100%;min-width:calc(100% - 170px);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-input-box .chat-input-wrapper .ql-container.ql-bubble:not(.ql-disabled) a{white-space:normal}.chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:14px;max-height:200px;padding:0;margin:4px 7px;line-height:22px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor::-webkit-scrollbar{display:none}.chat-input-box .chat-input-wrapper .ql-container .ql-editor img{max-width:150px;max-height:150px}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul{padding-left:0}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{color:#08f;text-align:left;margin-right:.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ul li:before{font-weight:900}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li:before{width:auto;min-width:1.2em}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=checked]>.ql-ui:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=unchecked]>.ql-ui:before{font-family:taskfont,"serif"!important;font-size:14px;content:"\e6ed";font-weight:400;transform:scale(1.12)}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=unchecked]>.ql-ui:before{content:"\e6f1"}.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:before,.chat-input-box .chat-input-wrapper .ql-container .ql-editor a:after{display:none}.chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:7px;right:7px;color:#ccc;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention{color:#0bc037;background-color:transparent;margin-right:0;-webkit-user-select:auto}.chat-input-box .chat-input-wrapper .ql-container .ql-editor .mention>span{margin:0 2px}.chat-input-box .chat-input-wrapper .ql-bubble .ql-tooltip{z-index:1}.chat-input-box .chat-input-wrapper .ql-bubble .ql-tooltip .ql-formats{display:flex;align-items:center}.chat-input-box .chat-input-wrapper .chat-space{float:right;width:170px;height:30px}.chat-input-box .chat-input-wrapper .chat-space .space-input{border:none;outline:none;box-shadow:none;background:transparent;height:1px;width:1px;overflow:hidden}.chat-input-box .chat-input-wrapper .chat-space .space-input:focus,.chat-input-box .chat-input-wrapper .chat-space .space-input:active{border:none;outline:none;box-shadow:none}.chat-input-box .chat-input-wrapper .chat-toolbar{position:absolute;right:2px;bottom:8px;display:flex;align-items:center;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-input-box .chat-input-wrapper .chat-toolbar>li{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont{display:inline-block;font-size:22px;line-height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li .taskfont.disabled{opacity:.5}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send{width:48px;position:relative}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send:before{content:"";position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%) scale(1);border-radius:50%;background-color:#84c56a;width:36px;height:36px;transition:all .3s ease;opacity:1}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .el-tooltip{height:30px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);transition:all .3s ease;color:#fff;font-size:20px}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load{position:absolute;top:50%;left:50%;z-index:3;transform:translate(-50%,-50%) scale(1);display:flex;align-items:center;justify-content:center}.chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .chat-load .common-loading{width:20px;height:20px}.chat-input-box .chat-input-wrapper .chat-record{position:absolute;top:0;left:0;z-index:-1;height:100%;width:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;pointer-events:none;visibility:hidden;opacity:0}.chat-input-box .chat-input-wrapper .chat-record>div{flex:1;width:100%;max-height:46px;display:flex;flex-direction:column;justify-content:flex-end}.chat-input-box .chat-input-wrapper .chat-cover{display:none;position:absolute;top:0;left:0;right:48px;bottom:0;z-index:4}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul{width:auto;padding:8px 2px}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul:after{content:"";flex:auto}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul>li>img{transition:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-box ul>li:hover>img{transform:none}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu{width:100%;padding:3px 0;border-radius:8px}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li{position:relative}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li:before{display:none;content:"";position:absolute;top:50%;left:50%;width:36px;height:36px;border-radius:8px;transform:translate(-50%,-50%);background-color:#fff;z-index:1}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>span,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>img,.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li>i{position:static;z-index:2}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:transparent}.chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{display:block}.chat-emoji-wrapper{display:flex;flex-direction:column;position:relative}.chat-emoji-wrapper .chat-emoji-emosearch{flex-shrink:0;padding:8px 8px 0}.chat-emoji-wrapper .chat-emoji-nav{flex-shrink:0;display:flex;align-items:center;overflow:auto;background:#f8f8f8}.chat-emoji-wrapper .chat-emoji-nav>div{position:relative;width:46px;height:40px;margin:auto;color:#5e6d82}.chat-emoji-wrapper .chat-emoji-nav>div.active{color:#84c56a}.chat-emoji-wrapper .chat-emoji-nav>div.active:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:#ffffff;border-top-left-radius:4px;border-top-right-radius:4px;z-index:1}.chat-emoji-wrapper .chat-emoji-nav>div>svg{fill:currentColor;position:absolute;top:50%;left:50%;width:18px;height:18px;transform:translate(-50%,-50%);z-index:2}.chat-emoji-wrapper .chat-emoji-box{display:flex;flex-direction:column;height:280px}.chat-emoji-wrapper .chat-emoji-box ul{flex:1;width:360px;height:0;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,40px);padding:8px;flex-wrap:wrap;word-break:break-all;box-sizing:content-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.chat-emoji-wrapper .chat-emoji-box ul>li{width:40px;height:40px;line-height:40px;font-size:22px;text-align:center;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-emoji-wrapper .chat-emoji-box ul>li>img{max-width:100%;max-height:100%;pointer-events:none;-webkit-touch-callout:none;transition:transform .3s}.chat-emoji-wrapper .chat-emoji-box ul>li:hover>img{transform:scale(1.4)}.chat-emoji-wrapper .chat-emoji-box ul.emoji>li:active{background-color:#eee;border-radius:8px}.chat-emoji-wrapper .chat-emoji-box ul.emosearch,.chat-emoji-wrapper .chat-emoji-box ul.emoticon{grid-template-columns:repeat(auto-fill,72px)}.chat-emoji-wrapper .chat-emoji-box ul.emosearch>li,.chat-emoji-wrapper .chat-emoji-box ul.emoticon>li{width:72px;height:72px;padding:8px}.chat-emoji-wrapper .chat-emoji-menu{width:376px;height:40px;line-height:40px;background-color:#f2f4f7;display:flex;align-items:center;overflow:auto}.chat-emoji-wrapper .chat-emoji-menu::-webkit-scrollbar{display:none}.chat-emoji-wrapper .chat-emoji-menu>li{list-style:none;cursor:pointer;display:flex;align-items:center;height:100%}.chat-emoji-wrapper .chat-emoji-menu>li.active{background-color:#fff}.chat-emoji-wrapper .chat-emoji-menu>li>span{padding:0 13px;font-size:22px}.chat-emoji-wrapper .chat-emoji-menu>li>i{width:48px;font-size:18px;text-align:center}.chat-emoji-wrapper .chat-emoji-menu>li>img{width:24px;height:24px;padding:0 12px;box-sizing:content-box}.chat-emoji-wrapper .chat-emoji-menu .left-btn,.chat-emoji-wrapper .chat-emoji-menu .right-btn{position:absolute!important;height:40px;background:#f2f4f7!important;width:34px;z-index:3}.chat-emoji-wrapper .chat-emoji-menu .left-btn{left:0;box-shadow:10px 0 10px -10px #00000080}.chat-emoji-wrapper .chat-emoji-menu .right-btn{right:0;box-shadow:-10px 0 10px -10px #00000080}.chat-input-emoji-popover{padding:0;overflow:hidden}.chat-quick-emoji-popover{padding:0;overflow:hidden;min-width:100px}.chat-quick-emoji-wrapper{display:flex;overflow-y:hidden;overflow-x:auto}.chat-quick-emoji-wrapper>li{flex-shrink:0;width:90px;height:90px;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-quick-emoji-wrapper>li>img{width:72%;height:72%}.chat-input-more-popover{min-width:100px;padding:8px}.chat-input-more-popover .chat-input-popover-item{display:flex;align-items:center;font-size:14px;cursor:pointer;line-height:36px;padding:0 8px;border-radius:4px}.chat-input-more-popover .chat-input-popover-item:hover{background-color:#ecf5ff}.chat-input-more-popover .chat-input-popover-item .taskfont{font-size:20px;margin-right:8px}.chat-input-record-transfer{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;padding:14px 26px;color:#303133;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .3s ease}.chat-input-record-transfer .record-duration{font-size:20px;line-height:30px}.chat-input-record-transfer .record-loading{display:flex;align-items:center;justify-content:center;height:30px}.chat-input-record-transfer .record-loading .common-pureing{width:24px;height:24px;margin:0;padding:0}.chat-input-record-transfer .record-cancel{margin-top:6px;opacity:.6}.chat-input-record-transfer.cancel{background-color:#ff6565;color:#fff}.chat-input-full-input .ivu-modal .ivu-modal-content{margin-top:46px;border-top-left-radius:18px!important;border-top-right-radius:18px!important}.chat-input-full-input .ivu-modal .ivu-modal-content .ivu-modal-body{overflow:visible;padding:24px!important}.chat-input-full-input .ivu-modal .ivu-modal-content .ivu-modal-close>i{top:3px;right:2px;font-size:24px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;background-color:#fff;border-radius:50%;color:#999}.chat-input-full-input .chat-input-box,.chat-input-full-input .chat-input-box .chat-input-wrapper{height:100%}.chat-input-full-input .chat-input-box .chat-input-wrapper .ql-container{height:100%;width:100%}.chat-input-full-input .chat-input-box .chat-input-wrapper .ql-container .ql-editor{max-height:none}.ql-mention-list-container{width:auto;min-width:220px;max-width:280px;max-height:360px;overflow-x:hidden;overflow-y:auto}.ql-mention-list-container.task-mention .ql-mention-list>li:first-child{margin-top:0}.ql-mention-list-container.task-mention .ql-mention-list-item{line-height:36px}.ql-mention-list-container.task-mention .ql-mention-list-item .mention-item-disabled{padding:8px 4px 0}.ql-mention-list-container .ql-mention-list>li:first-child{margin-top:8px}.ql-mention-list-container .ql-mention-list>li:last-child{margin-bottom:8px}.ql-mention-list-container .ql-mention-list-item{padding:0 8px;display:flex;align-items:center;margin:0 8px}.ql-mention-list-container .ql-mention-list-item.selected{border-radius:4px}.ql-mention-list-container .ql-mention-list-item .mention-item-at{flex-shrink:0;width:28px;height:28px;line-height:28px;border-radius:50%;text-align:center;color:#fff;background-color:#84c56a;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img{flex-shrink:0;position:relative;display:flex;align-items:center;justify-content:center}.ql-mention-list-container .ql-mention-list-item .mention-item-img>img{width:28px;height:28px;border-radius:50%;overflow:hidden}.ql-mention-list-container .ql-mention-list-item .mention-item-img>em{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background-color:#f90;border:1px solid #ffffff;transform-origin:right bottom;z-index:1}.ql-mention-list-container .ql-mention-list-item .mention-item-img.online>em{background-color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-bot{font-size:16px;margin-left:8px;margin-right:-5px;color:#84c56a}.ql-mention-list-container .ql-mention-list-item .mention-item-name{flex:1;padding:0 8px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-tip{flex-shrink:0;text-align:right;color:#8f8f8e;font-size:12px;font-style:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ql-mention-list-container .ql-mention-list-item .mention-item-disabled{flex-shrink:0;color:#aaa;font-size:12px;padding:0 4px;line-height:40px}.chat-emoji-one-modal .ivu-modal-content{background:transparent;box-shadow:none}.chat-emoji-one-modal .ivu-modal-content .ivu-modal-close{display:none}.chat-emoji-one-modal .ivu-modal-content .ivu-modal-body .chat-emoji-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:94%;max-height:94%;background:rgb(255,255,255);border-radius:8px;overflow:hidden}body.window-portrait .chat-input-box .chat-input-quick-emoji{right:10px}body.window-portrait .chat-input-box .chat-input-wrapper{padding-left:6px;padding-right:6px;background-color:#fff}body.window-portrait .chat-input-box .chat-input-wrapper .ql-container .ql-editor{font-size:16px;color:#303133}body.window-portrait .chat-input-box .chat-emoji-wrapper{margin-top:8px;background-color:#fff}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box{height:246px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul{grid-template-columns:repeat(auto-fill,50px)}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul>li{width:50px;height:50px;line-height:50px;font-size:28px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emosearch,body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emoticon{grid-template-columns:repeat(auto-fill,80px)}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emosearch>li,body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-box ul.emoticon>li{width:80px;height:80px;padding:8px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu{border-radius:0;background-color:#f8f8f8;padding:4px;width:100%;height:48px}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu>li.active:before{background-color:#e1e1e1}body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu .left-btn,body.window-portrait .chat-input-box .chat-emoji-wrapper .chat-emoji-menu .right-btn{background:#f8f8f8!important}.dialog-group-info{display:flex;flex-direction:column;position:absolute;top:10px;left:0;right:0;bottom:0}.dialog-group-info .group-info-title{color:#b7b1b1;margin:18px 24px 0}.dialog-group-info .group-info-value{margin:4px 24px 0;line-height:34px}.dialog-group-info .group-info-value .quick-text{padding:6px 0;height:auto;line-height:20px;box-sizing:content-box;overflow:visible;white-space:normal}.dialog-group-info .group-info-value .quick-input{display:flex;flex-direction:column}.dialog-group-info .group-info-search{margin:24px 24px 0}.dialog-group-info .group-info-button{display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-group-info .group-info-button>button{margin:0 8px}.dialog-group-info .group-info-user{flex:1;overflow:auto;margin-top:12px;padding:0 12px}.dialog-group-info .group-info-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;height:56px;border-radius:6px}.dialog-group-info .group-info-user>ul>li:hover{background-color:#9093991a}.dialog-group-info .group-info-user>ul>li:hover .user-exit{opacity:1;transform:translate(0)}.dialog-group-info .group-info-user>ul>li.no{justify-content:center;color:#999}.dialog-group-info .group-info-user>ul>li.no:hover{background-color:transparent}.dialog-group-info .group-info-user>ul>li.no .common-loading{width:16px;height:16px}.dialog-group-info .group-info-user>ul>li .common-avatar{width:0;flex:1}.dialog-group-info .group-info-user>ul>li .common-avatar .avatar-name{margin-left:8px}.dialog-group-info .group-info-user>ul>li .user-tag{margin-left:4px;height:22px;line-height:22px;padding:0 6px;border-radius:3px;transform:scale(.9);transform-origin:right center;color:#fff;background-color:#84c56a}.dialog-group-info .group-info-user>ul>li .user-exit{display:flex;align-items:center;justify-content:flex-end;cursor:pointer;height:100%;width:32px;opacity:0;transform:translate(50%);transition:all .2s}.dialog-group-info .group-info-user>ul>li .user-exit:hover>i{color:#606266}.dialog-group-info .group-info-user>ul>li .user-exit>i{display:flex;align-items:center;justify-content:center;width:22px;height:22px;font-size:12px;color:#909399;border:1px solid #dddddd;border-radius:50%}body.window-portrait .dialog-group-info .group-info-user>ul>li:hover{background-color:transparent}body.window-portrait .dialog-group-info .group-info-user>ul>li .user-exit{opacity:1;transform:translate(0)}.dialog-respond{display:flex;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0}.dialog-respond .respond-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center}.dialog-respond .respond-title>em{font-style:normal;font-size:22px;margin-right:8px}.dialog-respond .respond-user{flex:1;overflow:auto;padding:6px}.dialog-respond .respond-user>ul>li{display:flex;align-items:center;list-style:none;padding:12px;border-radius:6px}.dialog-respond .respond-user>ul>li:hover{background-color:#9093991a}.dialog-respond .respond-user>ul>li .common-avatar{width:0;flex:1}.dialog-respond .respond-user>ul>li .common-avatar .avatar-name{margin-left:8px}body.window-portrait .dialog-respond .respond-user>ul>li:hover{background-color:transparent}.dialog-wrapper-dialogids .ivu-select-arrow{display:none!important}.dialog-wrapper-forward .forward-option{max-width:100%;display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar{display:flex;align-items:center}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar{width:26px;height:26px;flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;background-color:#61b2f9;color:#fff}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper-forward .forward-option .forward-avatar .icon-avatar.task{background-color:#9b96df;font-size:16px}.dialog-wrapper-forward .forward-option .forward-name{margin-left:10px;flex:1;width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dialog-wrapper-forward .ivu-select-item.ivu-select-item-selected:after{top:8px}.dialog-wrapper-forward .forward-drop-prepend{text-align:center;color:#c5c8ce;line-height:20px;padding-bottom:5px;font-size:12px;border-bottom:1px solid #f1f1f1;margin-bottom:5px}.dialog-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;background-color:#fff;z-index:1}.dialog-wrapper.record-ready{overflow:hidden}.dialog-wrapper.inde-list{border-radius:18px 0 0 18px;overflow:hidden}.dialog-wrapper.inde-list .dialog-nav .drawer-title{text-align:center;height:56px;line-height:56px;border-bottom:1px solid #eeeeee;font-size:16px;font-weight:500}.dialog-wrapper.inde-list .dialog-scroller{padding:16px 20px 0}.dialog-wrapper.inde-list .dialog-scroller .reply-item{border-bottom:1px solid #eeeeee;margin-bottom:16px}.dialog-wrapper.inde-list .dialog-scroller .original-button{display:block;margin:0 auto 16px;box-shadow:none}.dialog-wrapper.inde-list .dialog-scroller .dialog-scroller-item{border-bottom:1px solid #eeeeee;margin-bottom:16px}.dialog-wrapper.inde-list .dialog-scroller .dialog-scroller-item .reply-item{border-bottom:none;margin-bottom:0}.dialog-wrapper.inde-list .dialog-scroller .dialog-scroller-item .original-button-warp{display:flex;margin-bottom:16px}.dialog-wrapper.inde-list .todo-button{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-wrapper.inde-list .todo-button>button{margin:0 8px}.dialog-wrapper .vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:overlay}.dialog-wrapper .dialog-nav{width:100%}.dialog-wrapper .dialog-nav .nav-wrapper{display:flex;align-items:center;padding:0 22px;height:68px;position:relative}.dialog-wrapper .dialog-nav .nav-wrapper:before{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background-color:#f4f5f5}.dialog-wrapper .dialog-nav .nav-wrapper.completed:after{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:50%;right:52px;transform:translateY(-50%);font-size:40px;color:#19be6b;opacity:.2;z-index:1}.dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:52px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{flex:1;width:0;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{flex-shrink:0;margin-right:12px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .user-avatar,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{width:42px;height:42px;margin-right:2px;flex-grow:0;flex-shrink:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar{display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .img-avatar>img{width:100%;height:100%}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:26px;background-color:#61b2f9;color:#fff}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.department{background-color:#5bc7b0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.project{background-color:#6e99eb}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar.task{background-color:#9b96df;font-size:24px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:1;width:0;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{display:flex;align-items:center;line-height:22px;max-width:100%}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag{flex-shrink:0;margin:0 6px 0 0;padding:0 5px;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.ivu-tag-success{padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.after{margin:0 0 0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-tag.pointer{cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon{font-size:18px;margin-right:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .ivu-icon.completed{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>em{display:inline-block;flex-shrink:0;font-style:normal;font-size:17px;font-weight:500;margin-left:6px;cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title .load .common-loading{width:16px;height:16px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:none;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li{font-size:12px;list-style:none;line-height:16px;padding-top:2px;color:#aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;transform:scale(.9)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc>li.online{color:#84c56a}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{font-size:12px;list-style:none;line-height:24px;margin-top:4px;margin-right:6px;margin-bottom:-6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;display:flex;align-items:center;padding:0 6px;color:#303133;border-radius:5px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{flex-shrink:0;width:14px;height:14px;line-height:14px;font-size:14px;margin-right:4px;background-repeat:no-repeat;background-size:contain;background-position:center center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.file i{background-image:url(/js/build/file.3e98845a.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.image i{background-image:url(/js/build/image.d3eec0cd.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.link i{background-image:url(/js/build/link.5b1cd276.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.msg i{background-image:url(/js/build/msg.d43597ba.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.tag i{background-image:url(/js/build/tag.d5e85a3b.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.todo i{background-image:url(/js/build/todo.31b54029.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.project i{background-image:url(/js/build/project.91434d04.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.task i{background-image:url(/js/build/task.19dff412.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.okr i{background-image:url(/js/build/task.19dff412.svg)}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li.active{font-weight:500;color:#84c56a;background-color:#84c56a2e}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{margin-right:-22px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{cursor:pointer;margin:0 22px;font-size:22px;color:#606266}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{display:none;cursor:pointer}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search{position:absolute;top:0;left:0;right:0;bottom:1px;z-index:2;background-color:#fff;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-location{margin-left:14px;display:flex;align-items:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-location>i{cursor:pointer;font-size:18px;padding:0 6px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input{flex:1;padding:0 6px;margin-left:12px;border-radius:12px;background-color:#f7f7f7;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .search-pre .common-loading{width:14px;height:14px;margin:0}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .ivu-input{border-color:transparent;background-color:transparent}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .ivu-input:hover,.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .ivu-input:focus{box-shadow:none}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-input .search-total{padding-right:12px}.dialog-wrapper .dialog-nav .nav-wrapper .dialog-search .search-cancel{cursor:pointer;padding:0 18px;color:#84c56a}.dialog-wrapper .dialog-top-message{background:white}.dialog-wrapper .dialog-top-message .dialog-top-message-warp{padding:10px 5px;position:relative;display:flex;margin:10px 16px 0;cursor:pointer;border-radius:10px;border:1px solid #ebebeb;box-shadow:0 0 5px #cdcdcd80}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content{flex:1;overflow:hidden}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;gap:4px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.content{margin-bottom:2px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.content>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.personnel{font-size:12px;color:#afafaf}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-content p.personnel .avatar-name{color:#84c56a;margin-left:10px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-font{line-height:42px;text-align:center;padding:0 10px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-font .taskfont{font-size:16px;padding:5px;border-radius:50%;background-color:#ff821a;color:#fff}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-btn{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 10px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-btn .taskfont{border-radius:3px;font-size:18px;padding:4px}.dialog-wrapper .dialog-top-message .dialog-top-message-warp .dialog-top-message-btn .common-pureing{width:18px;height:18px;margin:4px;border-width:2px}.dialog-wrapper .dialog-msgs{flex:1;position:relative;overflow:hidden}.dialog-wrapper .dialog-position{position:absolute;top:24px;right:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;opacity:0;transform:translate(100%);animation:position-in-animation .2s ease-out forwards;animation-delay:.3s}.dialog-wrapper .dialog-position .position-label{display:flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:18px 0 0 18px;color:#fff;background-color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-position .position-label>i{margin-right:4px;width:14px;height:14px;font-size:14px;line-height:14px}.dialog-wrapper .dialog-scroller{position:absolute;left:0;bottom:0;width:100%;height:100%;padding:16px 32px 0}.dialog-wrapper .dialog-scroller.scrollbar-virtual{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.dialog-wrapper .dialog-scroller .item-leave pre,.dialog-wrapper .dialog-scroller .item-leave code,.dialog-wrapper .dialog-scroller .item-leave .markdown-body{visibility:hidden}.dialog-wrapper .dialog-scroller .dialog-item{display:flex;flex-direction:row;align-items:flex-start;list-style:none;padding-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-top,.dialog-wrapper .dialog-scroller .dialog-item .dialog-notice{font-size:12px;max-width:80%;margin:0 auto;padding:4px 8px;border-radius:8px;color:#909399;background-color:#efefef;word-wrap:break-word}.dialog-wrapper .dialog-scroller .dialog-item .dialog-top,.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-top .tag-user,.dialog-wrapper .dialog-scroller .dialog-item .dialog-tag .tag-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div{padding-left:8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-users>div+div:before{content:"\3001";position:absolute;left:0;bottom:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-todo .todo-user{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-avatar{position:relative;margin-bottom:20px;flex-shrink:0;width:30px;height:30px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 0 8px;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:70%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-action .dialog-head{box-shadow:0 1px 6px #0003}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-username{max-width:100%;height:22px;margin-bottom:6px;opacity:.8}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{display:flex;flex-direction:column;background-color:#f4f5f7;padding:8px;min-width:32px;border-radius:2px 8px 8px;transition:box-shadow .3s ease;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head.transparent{background-color:transparent!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply{position:relative;padding-left:9px;margin-bottom:4px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;border-radius:2px;transform:scaleX(.8);transform-origin:left center;background-color:#84c56ab3}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-avatar{height:20px;line-height:20px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-avatar .common-avatar{font-weight:500;font-size:13px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc{font-size:13px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc .image-preview{max-width:40px;max-height:40px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content{display:flex;align-items:flex-start;position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content a,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content img{-webkit-user-drag:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.an-emoji .content-text>pre{font-size:72px!important;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.two-emoji .content-text>pre{font-size:52px!important;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content.three-emoji .content-text>pre{font-size:32px!important;line-height:1;letter-spacing:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text{color:#303133;padding:2px;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text .no-size-image-box{display:inline-block;max-width:220px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text .markdown-body{min-height:20px;line-height:20px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{display:block;margin:0;padding:0;line-height:20px;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#436ff6}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li{list-style-type:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{display:inline-block;white-space:nowrap;width:1.2em;color:#08f;text-align:left;margin-right:.2em}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li:before{content:"\2022";font-weight:900}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li:before{width:auto;min-width:1.2em;content:counter(list-0,decimal) ". "}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=bullet]:before{content:"\2022";font-weight:900;text-align:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=checked]:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=unchecked]:before{font-family:taskfont,"serif"!important;font-size:14px;content:"\e6ed";font-weight:400;transform:scale(1.12)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li[data-list=unchecked]:before{content:"\e6f1"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre pre{white-space:pre-wrap;margin:5px 0;padding:5px 10px;border-radius:3px;background-color:#23241f;color:#f8f8f2;overflow:visible}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img{cursor:pointer;max-width:100%;max-height:220px;vertical-align:bottom}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre img.emoticon{max-width:100%;max-height:150px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#0bc037;background-color:transparent;-webkit-user-select:inherit;-moz-user-select:inherit;user-select:inherit;padding:0;margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention>span{margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.task,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.okr{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#436ff6!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.user{white-space:nowrap}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:13px;font-weight:600;padding:3px 4px;color:#fff;white-space:nowrap;background-color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details{width:260px;display:inline-block;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause{border-bottom:1px solid #e3e3e3;border-top:1px solid #e3e3e3;padding-bottom:10px;margin-top:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause>span:first-child{display:inline-block;padding:15px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause>b{display:inline-block;margin-bottom:5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .cause>span{display:inline-block;margin-bottom:3px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw{display:flex;text-align:center;padding:12px 0 5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw>button.ivu-btn{flex:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw>button.ivu-btn-primary{margin-right:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre .open-approve-details .btn-raw>button.ivu-btn-small{height:32px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file{position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file .file-percentage{position:absolute;left:2px;right:2px;bottom:2px;height:2px;border-radius:3px;overflow:hidden}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file .file-percentage>span{position:absolute;top:0;left:0;bottom:0;width:0;background-color:#0bc037}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{background-color:#fff;display:flex;align-items:center;padding:10px 14px;border-radius:3px;width:220px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-thumb{width:36px;flex-shrink:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info{margin-left:12px;display:flex;flex-direction:column;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-name{color:#303133;font-size:14px;line-height:18px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box .file-info .file-size{padding-top:4px;color:#606266;font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img{padding:0;display:flex;max-width:220px;max-height:220px;border-radius:6px;overflow:hidden}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.img .file-img{display:flex;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record{display:flex;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-content:center;line-height:24px;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 0 0 4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(180deg) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon:before{content:"\e793"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record .dialog-record.playing .record-icon:before{animation:record-playing 1s infinite}@keyframes record-playing{0%{content:"\e793"}33%{content:"\e791"}66%{content:"\e792"}to{content:"\e793"}}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{padding:4px 6px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting{min-width:220px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting.meeting-end{opacity:.7}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting.meeting-end>li.meeting-operation{justify-content:center;cursor:default}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li{list-style:none;display:flex;flex-direction:column;align-items:flex-start;margin-bottom:16px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation{margin-bottom:0;padding:12px 0 0;display:flex;flex-direction:row;align-items:center;font-size:12px;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:hover .taskfont{padding-left:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#cccc;transform:scaleY(.5)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation .taskfont{font-size:12px;padding-left:2px;transform:scale(.8);transition:all .2s}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li>em{font-style:normal;font-weight:700;padding-bottom:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading{display:flex;align-items:center;height:24px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading>i{font-size:20px;margin:2px;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-loading .common-loading{width:20px;height:20px;margin:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-unknown{text-decoration:underline;color:#303133}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul{list-style-type:none;margin-top:20px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li{margin-top:5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li .expand{cursor:pointer;color:#0bc037}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li .shrink{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li.participate{display:flex;align-items:center;cursor:pointer;margin-top:10px;color:#0bc037}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li.participate>i{font-size:12px;padding-left:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul.expand .expand,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li:nth-last-child(2) .expand{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul.expand .shrink,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-chain ul li:nth-last-child(2) .shrink{display:block}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote{min-width:200px;max-width:260px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head{display:flex;align-items:center;margin-bottom:8px;color:#0bc037;line-height:18px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head em{font-style:normal;font-weight:700;padding:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head span{padding:2px 4px;border-radius:3px;background-color:#dee2fa;margin:0 4px;font-size:12px;color:#7076e4}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group{margin-top:10px;width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-checkbox-wrapper,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-radio-wrapper,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-checkbox-wrapper,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-radio-wrapper{display:block;width:100%;height:34px;line-height:34px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-checkbox-wrapper .ivu-checkbox-inner,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-checkbox-group .ivu-radio-wrapper .ivu-checkbox-inner,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-checkbox-wrapper .ivu-checkbox-inner,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .ivu-radio-group .ivu-radio-wrapper .ivu-checkbox-inner{border-radius:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body{font-size:12px;margin-top:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul{list-style-type:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li{margin-bottom:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .vote-option-title{margin-bottom:3px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .ivu-progress-inner{background-color:#e2e2e2}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .avatar-row{gap:2px;display:flex;overflow:auto;margin-top:4px;padding-bottom:4px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .avatar-row::-webkit-scrollbar{background:none;width:6px;height:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li .avatar-row::-webkit-scrollbar-thumb{background:#d4d4d4;border-radius:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body ul li:last-child{margin-bottom:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body>span,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .vote-result-body .ticket-num span{margin-right:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .btn-row{display:flex;text-align:center;padding:10px 0 5px;gap:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-word-vote .btn-row .ivu-btn{flex:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{list-style:none;display:flex;align-items:flex-start;padding:2px 8px;margin-top:6px;margin-right:8px;border-radius:14px;line-height:22px;cursor:pointer;background-color:#e1e1e180}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#e1e1e1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:16px;transition:transform .3s}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol:hover{transform:scale(1.5)}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users{position:relative;padding-left:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul{display:flex;flex-wrap:wrap;align-items:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{display:flex;align-items:center;list-style:none;color:#818181;font-size:12px;height:22px;line-height:22px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li.bold{font-weight:600}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:after{content:"\3001"}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li:last-child:after{display:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot{display:flex;align-items:center;padding-top:4px;height:21px;line-height:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error{cursor:pointer;color:#ed4014}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .error>i{font-size:14px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .common-loading{margin:0 2px;width:10px;height:10px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .popover-reference{position:absolute;left:65%;bottom:0;width:0;height:100%;pointer-events:none}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .top,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify{display:flex;align-items:center;margin-right:6px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .tag>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .top>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .modify>i{font-size:13px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo{position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .todo .common-loading{margin:0 3px 0 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply{font-size:12px;color:#84c56a;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .reply>i{padding-right:2px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .time{color:#bbb;font-size:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .done{display:none;margin-left:4px;transform:scale(.9);font-size:12px;color:#84c56a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot .percent{display:none;margin-left:4px;align-items:center;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action{align-self:flex-start;display:flex;align-items:flex-start;height:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-action>*{margin:0 5px}.dialog-wrapper .dialog-scroller .dialog-item.head-box{height:36px;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item.head-box .loading>span{width:8px;height:8px;border-radius:50%;display:block;margin:0 auto;position:relative;background:#e3e3e3;box-sizing:border-box;animation:head-box-loading-animation .5s linear infinite alternate}.dialog-wrapper .dialog-scroller .dialog-item.head-box .describe{color:#909399}.dialog-wrapper .dialog-scroller .dialog-item.head-box .filled{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.dialog-wrapper .dialog-scroller .dialog-item.unread-start{position:relative;padding-top:44px}.dialog-wrapper .dialog-scroller .dialog-item.unread-start .dialog-unread-label{position:absolute;top:4px;left:0;right:0;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item.unread-start .dialog-unread-label>em{height:1px;background-color:#e9e9e9;flex:1;margin:0 12px;max-width:80px}.dialog-wrapper .dialog-scroller .dialog-item.unread-start .dialog-unread-label>span{font-size:12px;color:#909399}.dialog-wrapper .dialog-scroller .dialog-item.self{flex-direction:row-reverse}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view{align-items:flex-end;margin:0 8px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a;border-radius:8px 2px 8px 8px}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply:after{background-color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .reply-avatar .bot,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-reply .reply-avatar .common-avatar,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#303133}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.me{font-size:inherit;font-weight:inherit;padding:inherit;background-color:inherit}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record{flex-direction:row}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-time{padding:0 4px 0 0}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-record .dialog-record .record-icon{transform:rotate(0) scale(.9)}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-meeting .dialog-meeting>li.meeting-operation:before{background-color:#fffc}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-loading>i{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-unknown{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-word-chain ul li.participate,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-word-chain ul li .expand,.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-word-vote .vote-msg-head{color:#23241f}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#5ba93c80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#5ba93c}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#ffffff80}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .done{display:inline-block}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-foot .percent{display:flex}.dialog-wrapper .dialog-float-loading{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#fffc}.dialog-wrapper .dialog-footer{position:relative;padding:0 24px;margin-bottom:16px}.dialog-wrapper .dialog-footer .dialog-goto{position:absolute;top:-48px;right:30px;z-index:2;width:40px;height:40px;border-radius:50%;color:#606266;box-shadow:0 0 4px #60626633;background-color:#fff;border:1px solid #eeeeee;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;align-content:center;justify-content:center;animation:dialog-goto-animation .2s ease-out forwards}.dialog-wrapper .dialog-footer .dialog-goto .ivu-badge{display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-footer .dialog-goto .ivu-badge .ivu-badge-count{right:unset;transform:unset;border:none;box-shadow:none;display:flex;justify-content:center;align-items:center}.dialog-wrapper .dialog-footer .dialog-goto .taskfont{font-size:24px}.dialog-wrapper .dialog-footer .chat-upload{display:none;width:0;height:0;overflow:hidden}.dialog-wrapper .dialog-footer .chat-bottom-menu{display:flex;align-items:center;padding:8px 0}.dialog-wrapper .dialog-footer .chat-bottom-menu .bottom-menu-label{flex-shrink:0;padding-right:8px}.dialog-wrapper .dialog-footer .chat-bottom-menu>ul{flex:1;display:flex;align-items:center;overflow-x:auto}.dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li{flex-shrink:0;list-style:none;margin-right:8px;background-color:#f0f1f3;padding:0 12px;border-radius:13px;line-height:26px;font-size:13px;cursor:pointer;display:flex;align-items:center}.dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li .bottom-menu-desc{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper .dialog-footer .chat-mute{color:#909399;background-color:#f4f5f7;padding:8px 12px;border-radius:10px;text-align:center}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#f4f5f7;padding:8px 2px;border-radius:10px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor{margin:4px 12px}.dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{left:12px;right:12px}.dialog-wrapper .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.dialog-wrapper .drag-over:before{content:"";position:absolute;top:16px;left:16px;right:16px;bottom:16px;border:2px dashed #7b7b7b;border-radius:12px}.dialog-wrapper .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.dialog-wrapper .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar{width:6px;background-color:transparent}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar:hover{width:16px;background-color:#f0f0f0}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar-thumb{border-radius:6px;background-color:#c8c8c9}body:not(.window-touch) .dialog-wrapper .dialog-scroller::-webkit-scrollbar-thumb:hover{background-color:#a2a2a2}.dialog-forward-message-modal .ivu-modal{margin:10px auto}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search{padding-bottom:16px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected{max-width:100%}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search .user-modal-avatar{display:flex;align-items:center;gap:5px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .user-modal-search .user-modal-avatar .avatar-name{max-width:90%}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend{margin:0 24px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper{position:relative}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper.inde-list{border-radius:0}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller{position:relative;padding:0}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view{width:100%;max-width:100%;margin:0}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{width:100%;border-radius:8px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file,.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{width:100%}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-foot,.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .dialog-wrapper .dialog-scroller .dialog-item .dialog-avatar{display:none}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .leave-message{padding-bottom:16px}.dialog-forward-message-modal .ivu-modal .ivu-modal-body .twice-affirm-body-extend .dialog-wrapper-forward-body .leave-message textarea{background:#f7f7f7}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer{display:flex;justify-content:flex-end;gap:20px}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer .dialog-wrapper-forward-footer{display:flex;line-height:34px;cursor:pointer}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer .dialog-wrapper-forward-footer .user-modal-icon{flex-shrink:0;font-size:22px;margin-right:5px;color:#909399b3;margin-top:6px}.dialog-forward-message-modal .ivu-modal .ivu-modal-footer .dialog-wrapper-forward-footer.selected .user-modal-icon{color:#84c56a}.dialog-wrapper-read-poptip{width:360px;max-width:72%}.dialog-wrapper-read-poptip .read-poptip-content{display:flex;position:relative}.dialog-wrapper-read-poptip .read-poptip-content .read,.dialog-wrapper-read-poptip .read-poptip-content .unread{flex:1;max-height:300px}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title,.dialog-wrapper-read-poptip .read-poptip-content .read ul>li,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li{padding-bottom:12px}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title{position:sticky;top:0;z-index:10;background:#ffffff}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title>em,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title>em{font-size:18px;font-weight:600;font-style:normal;padding-right:6px}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li{min-height:26px;list-style:none}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li .common-avatar,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li .common-avatar{width:100%}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li .common-avatar .avatar-name,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li .common-avatar .avatar-name{margin-left:6px}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li:last-child,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li:last-child{padding-bottom:6px}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li.read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li.read-title{min-height:auto}.dialog-wrapper-read-poptip .read-poptip-content .read ul>li.read-title>em,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li.read-title>em{font-size:18px;font-weight:600;font-style:normal;padding-right:6px}.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title,.dialog-wrapper-read-poptip .read-poptip-content .unread ul>li{padding-left:16px}.dialog-wrapper-read-poptip .read-poptip-content:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background-color:#f4f4f5}.dialog-wrapper-paste{display:flex;flex-direction:column;align-items:center;justify-content:center}.dialog-wrapper-paste.multiple{display:block}.dialog-wrapper-paste>li{list-style:none}.dialog-wrapper-paste>li img{max-width:100%;max-height:500px}.dialog-wrapper-paste>li>div,.dialog-wrapper-paste>li>img{display:flex;flex-direction:column;padding:0}.dialog-wrapper-paste>li+li{margin-top:20px}.dialog-wrapper-todo{display:inline-block}.dialog-wrapper-todo>div{display:flex;align-items:center}.dialog-wrapper-todo>div .ivu-tag{display:flex;align-items:center;margin-left:4px;height:20px;line-height:20px;padding:0 5px}.dialog-wrapper-operate .ivu-dropdown-item{padding:0}.dialog-wrapper-operate .ivu-dropdown-item:hover{background-color:transparent}.dialog-wrapper-operate .dropdown-emoji{position:relative}.dialog-wrapper-operate .dropdown-emoji:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:#f4f5f5}.dialog-wrapper-operate .operate-action{width:316px;padding:8px;margin-bottom:-8px;display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,60px)}.dialog-wrapper-operate .operate-action.cancel{display:flex;align-items:center;justify-content:center;width:auto;margin-top:2px;margin-bottom:-14px}.dialog-wrapper-operate .operate-action>li{list-style:none;width:60px;height:52px;margin-bottom:14px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.dialog-wrapper-operate .operate-action>li .taskfont{font-size:22px}.dialog-wrapper-operate .operate-action>li>span{padding:0 1px;font-size:12px;max-width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-wrapper-operate .operate-action-top{width:auto}.dialog-wrapper-operate .operate-action-top>li{margin-bottom:0}.dialog-wrapper-operate .operate-emoji{width:316px;padding:8px 4px 2px;display:flex;align-items:center;overflow:auto}.dialog-wrapper-operate .operate-emoji>li{list-style:none;width:44px;height:30px;line-height:30px;box-sizing:content-box;display:flex;flex-shrink:0;font-size:22px;justify-content:center;align-items:center}.dialog-wrapper-operate .operate-emoji>li.more-emoji{position:absolute;right:0;top:8px;bottom:0;width:54px;background-image:linear-gradient(to right,rgba(255,255,255,0) 0%,#ffffff 20%)}.dialog-wrapper-operate .operate-emoji>li.more-emoji>i{font-size:24px;color:#5e6d82}.dialog-wrapper-drawer-list{position:absolute!important;overflow:hidden!important}@keyframes head-box-loading-animation{0%{box-shadow:0 0,0 0;color:#e3e3e333}to{box-shadow:-12px 0,12px 0;color:#e3e3e3cc}}body.window-touch .dialog-wrapper .dialog-scroller{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-touch .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box{position:relative}body.window-touch .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-box:before{content:"";position:absolute;top:0;left:0;width:60px;height:100%;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-touch .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content{-webkit-user-select:text;-moz-user-select:text;user-select:text}body.window-portrait .dialog-wrapper{background-color:#f8f8f8}body.window-portrait .dialog-wrapper.inde-list .dialog-nav .drawer-title{height:52px;line-height:52px;border-bottom:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper{height:52px;padding:0;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper:before{display:none}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper.completed:after{font-size:36px;right:40px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper.completed .dialog-title{padding-right:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper.tagged{margin-bottom:34px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back,body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu{position:absolute;top:0;bottom:0;right:0;width:52px;display:flex;align-items:center;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu,body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-menu .dialog-menu-icon{margin:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back{padding-right:6px;right:auto;left:0}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back>i{font-size:26px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-back .back-num{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;position:absolute;top:50%;left:32px;background:#e6ebf1;color:#303133;transform:translateY(-50%);font-weight:500;font-size:14px;border-radius:12px;min-width:24px;height:24px;line-height:24px;text-align:center;padding:0 6px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block{margin:0 80px;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar{display:none}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title{flex:unset;width:unset;overflow:hidden;text-align:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title{justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-desc{display:flex;justify-content:center}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags{position:absolute;left:0;right:0;top:48px;z-index:1;padding:0 8px;background-color:#f8f8f8;height:32px;align-items:flex-start;overflow-x:auto}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li{flex-shrink:0;line-height:28px;padding:0 8px;font-size:14px}body.window-portrait .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .title-tags>li>i{width:16px;height:16px;line-height:16px;font-size:16px;margin-right:3px}body.window-portrait .dialog-wrapper .dialog-scroller{padding-right:14px;padding-left:14px;overscroll-behavior:none;background-color:#fff}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.text{max-width:calc(100% - 80px)}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content a,body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content img{-webkit-touch-callout:none}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre{font-size:15px}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol{font-size:14px;margin-right:-1px;transition:none}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li .emoji-symbol:hover{transform:none}body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content a,body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.operate-enter .dialog-head .dialog-content img{-webkit-touch-callout:default}body.window-portrait .dialog-wrapper .dialog-footer{background-color:#f8f8f8;padding:8px 10px;margin-bottom:0}body.window-portrait .dialog-wrapper .dialog-footer .chat-bottom-menu{padding-top:0}body.window-portrait .dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li{background-color:#fff}body.window-portrait .dialog-wrapper .dialog-footer .chat-bottom-menu>ul>li .bottom-menu-desc{max-width:120px}body.window-portrait .dialog-wrapper .dialog-footer .chat-mute,body.window-portrait .dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper{background-color:#fff}body.window-portrait .dialog-wrapper .dialog-footer .chat-input-box .chat-input-wrapper .chat-record{margin-left:-10px;width:calc(100% + 20px);background-color:#f8f8f8}body.window-portrait .dialog-wrapper .dialog-footer .chat-input-box .chat-emoji-wrapper{margin-left:-10px;margin-bottom:-8px;width:calc(100% + 20px)}body.window-portrait .dialog-wrapper .dialog-footer .dialog-goto{right:16px}body.window-portrait .dialog-wrapper-operate .operate-emoji>li{font-size:24px}@media (max-width: 768px) and (min-width: 390px){body.window-portrait .dialog-wrapper-operate .operate-action{width:376px}body.window-portrait .dialog-wrapper-operate .operate-action.cancel{width:auto}body.window-portrait .dialog-wrapper-operate .operate-emoji{width:376px}body.window-portrait .dialog-wrapper-operate .operate-emoji>li{width:46px}}@keyframes dialog-goto-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes position-in-animation{0%{transform:translate3d(100%,0,0);opacity:0}to{transform:translateZ(0);opacity:1}}.file-content,.file-preview{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;flex-direction:column;border-radius:18px 18px 0 0;overflow:hidden;transform:translateZ(0)}.file-content .preview-iframe,.file-preview .preview-iframe{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;border:0;float:none;max-width:none;margin:0;padding:0;outline:0}.file-content .office-header,.file-preview .office-header{position:absolute;top:0;left:0;z-index:-1;opacity:0}.file-content .edit-header,.file-preview .edit-header{display:flex;flex-direction:row;align-items:center;width:100%;height:42px;background-color:#fff;box-shadow:0 1px 5px #0000000d;position:relative;z-index:99}.file-content .edit-header .header-title,.file-preview .edit-header .header-title{flex:1;color:#303133;padding-left:24px;padding-right:24px;line-height:24px;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-content .edit-header .header-title .file-unsave-tip,.file-preview .edit-header .header-title .file-unsave-tip{color:#303133;padding-right:6px;font-weight:500;cursor:pointer;transition:color .3s}.file-content .edit-header .header-title .file-unsave-tip:hover,.file-preview .edit-header .header-title .file-unsave-tip:hover{color:#000}.file-content .edit-header .header-user,.file-preview .edit-header .header-user{margin-right:24px}.file-content .edit-header .header-user>ul,.file-preview .edit-header .header-user>ul{display:flex;align-items:center}.file-content .edit-header .header-user>ul>li,.file-preview .edit-header .header-user>ul>li{list-style:none;margin-right:-4px}.file-content .edit-header .header-user>ul>li.more,.file-preview .edit-header .header-user>ul>li.more{width:28px;height:28px;text-align:center;line-height:24px;font-size:12px;border:2px solid #ffffff;background-color:#84c56a;color:#fff;z-index:1;border-radius:50%}.file-content .edit-header .header-hint,.file-preview .edit-header .header-hint{padding-right:22px;font-size:12px;color:#666;white-space:nowrap}.file-content .edit-header .header-hint .ivu-btn,.file-preview .edit-header .header-hint .ivu-btn{font-size:12px;padding:0 10px}.file-content .edit-header .header-hint .ivu-dropdown-item,.file-preview .edit-header .header-hint .ivu-dropdown-item{font-size:12px!important}.file-content .edit-header .header-icons,.file-preview .edit-header .header-icons{margin-left:-4px;margin-right:16px;display:flex;align-items:center;justify-content:center}.file-content .edit-header .header-icons .header-icon,.file-preview .edit-header .header-icons .header-icon{display:flex;align-items:center;justify-content:center;width:44px;height:100%;color:#777;cursor:pointer}.file-content .edit-header .header-icons .header-icon>i,.file-preview .edit-header .header-icons .header-icon>i{font-size:20px}.file-content .edit-header .header-button,.file-preview .edit-header .header-button{font-size:12px;margin-right:24px}.file-content .content-body,.file-preview .content-body{flex:1;display:flex;position:relative}.file-content .content-body .teditor-wrapper,.file-content .content-body .mdeditor-wrapper,.file-preview .content-body .teditor-wrapper,.file-preview .content-body .mdeditor-wrapper{flex:1;display:flex}.file-content .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling,.file-preview .content-body .teditor-wrapper .tox-editor-header .tox-toolbar--scrolling{flex-wrap:wrap}.file-content .content-body .mdeditor-box,.file-preview .content-body .mdeditor-box{position:relative;width:100%}.file-content .content-body .mdeditor-box .markdown,.file-preview .content-body .mdeditor-box .markdown{position:absolute;top:0;left:0;bottom:0;right:0;overflow:auto;transform:translateZ(0)}.file-content .content-body .mdeditor-box .markdown .markdown-toolbars,.file-preview .content-body .mdeditor-box .markdown .markdown-toolbars{border-bottom:1px solid #eeeeee}.file-content .content-body .mdeditor-box .markdown.border,.file-preview .content-body .mdeditor-box .markdown.border{border:0!important}.file-content .content-body .teditor-loadedstyle,.file-preview .content-body .teditor-loadedstyle{height:100%}.file-content .content-body .teditor-loadedstyle .tox-tinymce,.file-preview .content-body .teditor-loadedstyle .tox-tinymce{border:0;border-radius:0}.file-content .content-body .teditor-loadedstyle .tox-mbtn,.file-preview .content-body .teditor-loadedstyle .tox-mbtn{height:36px}.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0 12%;background:#ffffff}.file-content .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-content .content-body .teditor-loadedstyle .tox-toolbar__primary,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__overflow,.file-preview .content-body .teditor-loadedstyle .tox-toolbar__primary{background:none!important;border-top:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{border-bottom:1px solid #E9E9E9!important}.file-content .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type),.file-preview .content-body .teditor-loadedstyle .tox-toolbar__group:not(:last-of-type){border-right:1px solid #eaeaea!important}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:22px 12%;border:1px solid #e8e8e8;border-radius:2px;box-shadow:0 4px 8px #00000014}.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area,.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap .tox-edit-area{border-top:0}.file-content .content-body .teditor-loadedstyle .tox-statusbar,.file-preview .content-body .teditor-loadedstyle .tox-statusbar{border-top:1px solid #E9E9E9}.file-content .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle,.file-preview .content-body .teditor-loadedstyle .tox-statusbar .tox-statusbar__resize-handle{display:none}.file-content .content-body .content-mask,.file-preview .content-body .content-mask{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2}.file-content .content-load,.file-preview .content-load{display:flex;align-items:center;justify-content:center;position:absolute;top:42px;left:0;right:0;bottom:0;z-index:1000}.file-content .content-load .common-loading,.file-preview .content-load .common-loading{margin:0}.file-preview .edit-header .header-title{display:flex;align-items:center}.file-preview .edit-header .header-title .title-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-preview .edit-header .header-title .ivu-tag{flex-shrink:0;margin-left:6px;padding:0 6px;line-height:20px}.file-preview .edit-header .header-title .refresh{display:flex;align-items:center;margin-left:6px}.file-preview .edit-header .header-title .refresh .common-loading{margin:2px;width:16px;height:16px}.file-preview .edit-header .header-title .refresh>i{opacity:.6;font-size:20px;cursor:pointer;transition:all .2s}.file-preview .edit-header .header-title .refresh>i:hover{opacity:1}.file-preview .content-body{overflow:hidden}.file-preview .content-body .teditor-wrapper .tox-editor-header,.file-preview .content-body .teditor-wrapper .tox-statusbar{display:none}.file-preview .content-body .teditor-loadedstyle .tox-menubar,.file-preview .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0;border:0}.file-preview .content-body .markdown-preview-warp{flex:1;overflow:auto}@media (max-width: 1200px){.file-content{overflow:auto}.file-content .edit-header,.file-content .content-body{min-width:375px;overflow-x:auto}.file-content .edit-header .teditor-loadedstyle .tox-menubar,.file-content .edit-header .teditor-loadedstyle .tox-toolbar-overlord,.file-content .content-body .teditor-loadedstyle .tox-menubar,.file-content .content-body .teditor-loadedstyle .tox-toolbar-overlord{padding:0}.file-content .edit-header .teditor-loadedstyle .tox-sidebar-wrap,.file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap{margin:0}}body.window-portrait .file-preview .edit-header .header-hint{display:none}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content{border-radius:0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body{padding:16px 24px 0}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fill,220px);grid-gap:24px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{list-style:none;position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player{position:relative}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:220px;height:220px;border-radius:12px;position:relative;z-index:1;overflow:hidden;background-color:#e1e1e1;background-size:136%;background-position:center;background-repeat:no-repeat}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state{position:absolute;top:4px;right:8px;z-index:2;display:flex;align-items:center}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player-state .taskfont{color:red;font-size:18px;margin-left:8px}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .meeting-avatar{position:absolute;bottom:-8px;right:-8px;z-index:2}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .avatar-box em{transform:scale(1.0625)}body .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .avatar-box .el-avatar--circle{border:1px solid #FFFFFF}body .ivu-modal-wrap.meeting-hidden{display:none}body.window-portrait .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul{grid-template-columns:none;grid-gap:12px;display:flex;flex-wrap:wrap;justify-content:flex-start}body.window-portrait .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li{width:calc(50% - 6px);max-width:180px}body.window-portrait .ivu-modal-wrap.meeting-manager .ivu-modal .ivu-modal-content .ivu-modal-body>ul>li .meeting-player .player{width:100%;height:176px}.meeting-drag-ball{position:relative;background-color:#fff;padding:6px 12px;white-space:nowrap;border-radius:4px;box-shadow:0 0 3px #2d2d2d4d;cursor:pointer;display:flex;align-items:center}.meeting-drag-ball>i{font-size:20px;height:24px;line-height:24px;margin-right:5px}.meeting-drag-ball>em{font-style:normal;padding-left:4px}.meeting-button-group{display:flex;justify-content:flex-end}.meeting-button-group .taskfont{font-size:20px}.meeting-button-group .ivu-btn{display:flex;align-items:center;justify-content:center}.meeting-button-group .ivu-btn>span{display:flex;align-items:center;justify-content:center}.project-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-archived .archived-title .title-icon>i{cursor:pointer}.project-archived .table-page-box{flex:1;height:0}.project-dialog{display:flex;flex-direction:column;background-color:#fff;border-left:1px solid #f4f5f5;z-index:1;position:relative}.project-dialog .dialog-user{margin-top:26px}.project-dialog .dialog-user .member-head{display:flex;align-items:center;padding:0 22px}.project-dialog .dialog-user .member-head .member-title{flex:1;font-size:18px;font-weight:600}.project-dialog .dialog-user .member-head .member-title>span{padding-left:6px;color:#84c56a;cursor:pointer}.project-dialog .dialog-user .member-head .member-close{cursor:pointer}.project-dialog .dialog-user .member-head .member-close .ivu-icon-ios-close{font-size:38px;top:3px;right:2px;transition:all .2s}.project-dialog .dialog-user .member-head .member-close:hover .ivu-icon-ios-close{transform:rotate(-90deg)}.project-dialog .dialog-user .member-list{display:flex;align-items:center;margin-top:12px;padding:0 22px;overflow:auto}.project-dialog .dialog-user .member-list::-webkit-scrollbar{display:none}.project-dialog .dialog-user .member-list>li{position:relative;list-style:none;margin-right:10px;margin-bottom:8px}.project-dialog .dialog-user .member-list.member-all{display:block}.project-dialog .dialog-user .member-list.member-all>li{display:inline-block;overflow:hidden}.project-dialog .dialog-nav .nav-wrapper{padding:0 20px}.project-gstc-gantt{position:absolute;top:15px;left:15px;right:15px;bottom:15px;z-index:1;transform:translateZ(0);background-color:#fdfdfd;border-radius:3px;overflow:hidden}.project-gstc-gantt .project-gstc-dropdown-filtr{position:absolute;top:38px;left:222px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon{cursor:pointer;color:#999;font-size:20px}.project-gstc-gantt .project-gstc-dropdown-filtr .project-gstc-dropdown-icon.filtr{color:#058ce4}.project-gstc-gantt .project-gstc-close{position:absolute;top:8px;left:12px;cursor:pointer}.project-gstc-gantt .project-gstc-close:hover i{transform:scale(1) rotate(45deg)}.project-gstc-gantt .project-gstc-close i{color:#606266;font-size:28px;transform:scale(.92);transition:all .2s}.project-gstc-gantt .project-gstc-edit{position:absolute;bottom:6px;right:6px;background:#ffffff;border-radius:4px;opacity:0;transform:translate(120%);transition:all .2s}.project-gstc-gantt .project-gstc-edit.visible{opacity:1;transform:translate(0)}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-info{display:block}.project-gstc-gantt .project-gstc-edit.info .project-gstc-edit-small{display:none}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info{display:none;border:1px solid #e4e4e4;background:#ffffff;padding:6px;border-radius:4px;width:500px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns{margin:12px 6px 4px;display:flex;align-items:center;justify-content:flex-end}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .ivu-btn{margin-right:8px;font-size:13px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom{font-size:20px;color:#444;cursor:pointer}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-info .project-gstc-edit-btns .zoom:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small{border:1px solid #e4e4e4;background:#ffffff;padding:6px 12px;display:flex;align-items:center}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text{cursor:pointer;text-decoration:underline;color:#444;margin-right:8px}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .project-gstc-edit-text:hover{color:#57a3f3}.project-gstc-gantt .project-gstc-edit .project-gstc-edit-small .ivu-btn{margin-left:4px;font-size:13px}.project-gstc-gantt .ivu-dropdown-item.dropdown-active{color:#058ce4}.project-list{flex:1;height:100%;display:flex;flex-direction:column;align-items:flex-start}.project-list .list-search{width:100%;flex-shrink:0;display:flex;align-items:center;justify-content:center;height:54px;padding:0 12px;background-color:#f8f8f8}.project-list .list-search .search-wrapper{flex:1;background-color:#fff;padding:0 6px;margin:0 4px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}.project-list .list-search .search-wrapper .search-pre{flex-shrink:0;width:32px;height:32px;margin-right:-6px;font-size:16px;color:#808695;display:flex;align-items:center;justify-content:center}.project-list .list-search .search-wrapper .search-pre .common-loading{width:14px;height:14px;margin:0}.project-list .list-search .search-wrapper .ivu-input{border-color:transparent;background-color:transparent}.project-list .list-search .search-wrapper .ivu-input:hover,.project-list .list-search .search-wrapper .ivu-input:focus{box-shadow:none}.project-list>ul{flex:1;height:0;width:100%;overflow:auto;background-color:#f8f8f8;-webkit-user-select:none;-moz-user-select:none;user-select:none}.project-list>ul>li{padding:16px;margin:16px;border-radius:12px;background-color:#fff;list-style:none;position:relative}.project-list>ul>li:before{display:none;position:absolute;content:"";top:0;left:0;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none;border-radius:12px}.project-list>ul>li.nothing,.project-list>ul>li.loading{text-align:center;height:100%;margin:0;padding:24px;border-radius:0;line-height:22px}.project-list>ul>li.loading{display:flex;align-items:flex-start;justify-content:center}.project-list>ul>li.loading .common-loading{width:20px;height:20px;margin:1px}.project-list>ul>li.operate:before{display:block}.project-list>ul>li .project-item{display:flex;align-items:center}.project-list>ul>li .project-item .item-left{flex:1;width:0}.project-list>ul>li .project-item .item-left .project-h1{display:flex;align-items:flex-start}.project-list>ul>li .project-item .item-left .project-h1 .project-name{font-size:14px;line-height:22px;color:#303133;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.project-list>ul>li .project-item .item-left .project-h1 .icon-top{margin-top:4px;margin-left:6px;flex-shrink:0;width:14px;height:14px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiCiAgICAgeT0iMHB4IgogICAgIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojOEJDRjcwO30KPC9zdHlsZT4wCiAgICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjAuNyw4LjFjLTEuNS0xLjUtNC40LTQuNC00LjQtNC40Yy0xLjItMS4yLTIuNS0xLjQtMy40LTAuN2MtMC41LDAuNC0wLjcsMC45LTAuOCwxLjRjLTAuMSwwLjUtMC40LDEtMC44LDEuMwoJbC0wLjEsMC4xYy0yLDEuNS00LjMsMi44LTYuOCwzLjJDMy45LDkuMiwzLjMsOS41LDMsMTBjLTAuNiwwLjktMC40LDIuMSwwLjMsMi45bDMuNCwzLjRjMCwwLDAsMCwwLDBsLTMuMSwzLjEKCWMtMC4zLDAuMy0wLjMsMC44LDAsMS4xYzAuMSwwLjEsMC4zLDAuMiwwLjUsMC4yYzAuMiwwLDAuNC0wLjEsMC41LTAuMmwzLjEtMy4xYzAsMCwwLDAsMCwwbDIuOSwyLjljMS4zLDEuMywyLjUsMS41LDMuNCwwLjkKCWMwLjQtMC4zLDAuNy0wLjcsMC45LTEuMmMwLjYtMi4zLDEuNC00LjYsMi44LTYuNWwwLjUtMC43YzAuMy0wLjQsMC44LTAuOCwxLjMtMC44YzAuNS0wLjEsMS4xLTAuMywxLjQtMC44CglDMjEuNywxMC4yLDIxLjUsOC45LDIwLjcsOC4xeiIvPgo8L3N2Zz4K) no-repeat center center;background-size:contain}.project-list>ul>li .project-item .item-left .project-h1 .num{margin-top:1px;margin-left:6px;flex-shrink:0;font-style:normal;display:inline-block;background-color:#fd9c9b26;color:#ff7559;padding:0 5px;min-width:10px;height:20px;line-height:20px;text-align:center;border-radius:10px;box-sizing:content-box;font-weight:500;font-size:14px;white-space:nowrap}.project-list>ul>li .project-item .item-left .project-h2{margin-top:4px;line-height:20px;font-size:12px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#909399}.project-list>ul>li .project-item .item-right{flex-shrink:0;display:flex;align-items:center;margin-left:28px}.project-list>ul>li .project-item .item-right .ivu-chart-circle .ivu-icon{font-size:40px;font-weight:900;color:#84c56a33}.project-list>ul>li .project-item .item-right .ivu-chart-circle .percent-text{color:#84c56a;font-weight:500}.project-list .operate-position{position:fixed;top:0;left:0;width:1px;opacity:0;visibility:hidden;pointer-events:none}.project-log .log-title{display:none}.project-log.is-drawer{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;overflow:auto}.project-log.is-drawer .log-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px}.project-log .logs-activity{position:relative;word-break:break-all;padding:12px}.project-log .logs-activity>li{list-style:none;padding-top:0}.project-log .logs-activity>li.logs-loading,.project-log .logs-activity>li.logs-more,.project-log .logs-activity>li.logs-none{height:22px;line-height:22px}.project-log .logs-activity>li.logs-loading{display:flex}.project-log .logs-activity>li.logs-loading .common-loading{margin:0}.project-log .logs-activity>li.logs-more{cursor:pointer}.project-log .logs-activity>li.logs-more:hover{color:#048be0}.project-log .logs-activity>li.logs-none{cursor:pointer;color:#bbb}.project-log .logs-activity>li .logs-date{color:#0000005c;padding-bottom:14px}.project-log .logs-activity>li .logs-section{margin:4px}.project-log .logs-activity>li .logs-section .ivu-timeline>li{padding-bottom:8px}.project-log .logs-activity>li .logs-section .ivu-timeline>li:last-child{padding-bottom:0}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-head-custom{position:static;left:auto;margin-top:8px;margin-left:-13px;margin-right:6px;width:auto;min-width:40px}.project-log .logs-activity>li .logs-section .ivu-timeline>li .ivu-timeline-item-content{padding-left:20px;margin-top:-5px}.project-log .logs-activity>li .logs-dot{width:auto;height:18px;margin-left:10px;display:flex}.project-log .logs-activity>li .logs-dot .avatar-name.auto{color:#9599a1}.project-log .logs-activity>li .log-summary{position:relative;padding:4px 0 4px 12px}.project-log .logs-activity>li .log-summary>span,.project-log .logs-activity>li .log-summary>a{padding-right:6px;word-wrap:break-word;word-break:break-word}.project-log .logs-activity>li .log-summary .log-text{display:inline-block;color:#000000b8}.project-log .logs-activity>li .log-summary .log-text .change-value:hover{border-bottom:1px dotted rgba(0,0,0,.3)}.project-log .logs-activity>li .log-summary .log-text .detail-user{display:inline-block;vertical-align:top}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap{display:flex}.project-log .logs-activity>li .log-summary .log-text .detail-user .detail-user-wrap .common-avatar{margin:0 2px}.project-log .logs-activity>li .log-summary .log-operation>button{font-size:12px}.project-log .logs-activity>li .log-summary .log-operation>button+button{margin-left:4px}.project-log .logs-activity>li .log-summary .log-time{color:#0000004d;font-size:12px}.project-log .logs-activity>li .log-task{margin-left:12px;margin-bottom:6px;opacity:.6;cursor:pointer}.project-log .logs-activity>li .log-task:hover{opacity:1}.project-log .logs-activity>li .log-task:hover>em{color:#84c56a}.project-log .logs-activity>li .log-task>em{display:inline-block;font-style:normal;font-size:12px;line-height:18px;height:18px;max-width:100%;color:#909399;border-radius:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.project-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.project-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-management .management-title .title-icon>i{cursor:pointer}.project-management .project-name{display:flex;align-items:center}.project-management .project-name .ivu-tag{height:18px;line-height:18px;padding:0 4px;transform:scale(.8);transform-origin:right center;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-management .project-percent{line-height:1}.project-management .project-percent .ivu-progress{margin-top:2px}.project-management .table-page-box{flex:1;height:0}.project-panel{display:flex!important;flex-direction:column}.project-panel .project-titbox{width:100%;padding:32px 32px 4px}.project-panel .project-titbox .project-title{float:left;display:flex;align-items:center;margin-bottom:8px}.project-panel .project-titbox .project-title .project-back{display:none}.project-panel .project-titbox .project-title>h1{color:#303133;font-size:28px;font-weight:600}.project-panel .project-titbox .project-title .project-load{display:flex;align-items:center;margin-left:18px}.project-panel .project-titbox .project-title .project-load .common-loading{width:22px;height:22px}.project-panel .project-titbox .project-icons{float:right;display:flex;align-items:center;margin-top:3px;margin-bottom:8px}.project-panel .project-titbox .project-icons>li{list-style:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;position:relative;margin-left:16px;cursor:pointer;transition:box-shadow .3s}.project-panel .project-titbox .project-icons>li:hover{box-shadow:0 0 6px #ccc}.project-panel .project-titbox .project-icons>li.cursor-default{cursor:default}.project-panel .project-titbox .project-icons>li.project-avatar{width:auto;min-width:36px}.project-panel .project-titbox .project-icons>li.project-avatar:hover{box-shadow:none}.project-panel .project-titbox .project-icons>li.project-avatar>ul{display:flex;align-items:center}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li{list-style:none;margin-left:-6px;transition:transform .2s}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li .ivu-badge{position:absolute;top:-5px;left:23px;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:hover{transform:scale(1.05)}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li:first-child{margin-left:0}.project-panel .project-titbox .project-icons>li.project-avatar>ul>li.more{display:flex;align-items:center;justify-content:center;font-size:17px;width:30px;height:32px;color:#aaa;background-color:transparent;border-color:transparent;transform:scale(1)!important;z-index:1}.project-panel .project-titbox .project-icons>li.project-icon{border-radius:50%;background-color:#f2f3f5}.project-panel .project-titbox .project-icons>li.project-icon .menu-icon{font-size:20px;width:36px;height:36px;line-height:36px}.project-panel .project-titbox .project-icons>li.project-icon .menu-badge{position:absolute;top:-6px;left:20px;z-index:1;transform:scale(.8)}.project-panel .project-titbox .project-icons>li.project-icon .search-input{margin:2px 0;width:170px}.project-panel .project-titbox .project-icons>li.project-icon.active{color:#fff;background-color:#84c56a}.project-panel .project-subbox{width:100%;padding:0 32px}.project-panel .project-subbox .project-subtitle{float:left;color:#909399;line-height:1.5;margin:8px 0 7px;max-height:220px;overflow:auto}.project-panel .project-subbox .project-switch{float:right;margin:3px 0 3px 32px;display:flex;align-items:flex-end}.project-panel .project-subbox .project-switch .project-checkbox{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-checkbox .ivu-checkbox-focus{box-shadow:none}.project-panel .project-subbox .project-switch .project-select{display:flex;align-items:center;margin-right:14px;opacity:.9;height:30px}.project-panel .project-subbox .project-switch .project-select .project-flow{font-size:13px;height:28px;line-height:26px;padding:0 8px;border-radius:4px;background:#f7f7f7;border:1px solid #e8eaec;display:flex;align-items:center;justify-content:center;cursor:pointer}.project-panel .project-subbox .project-switch .project-select .project-flow.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-subbox .project-switch .project-select .project-flow.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-subbox .project-switch .project-select .project-flow.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-subbox .project-switch .project-select .project-flow.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-subbox .project-switch .project-switch-button{display:flex;align-items:center;background-color:#fff;border-radius:6px;height:30px;position:relative;transition:all .2s}.project-panel .project-subbox .project-switch .project-switch-button .active{color:#84c56a}.project-panel .project-subbox .project-switch .project-switch-button .slider{position:absolute;top:0;left:0;width:33.3%;height:100%;z-index:0;color:#84c56a;border-radius:6px;border:1px solid #84C56A;background-color:#84c56a1a;transition:left .2s}.project-panel .project-subbox .project-switch .project-switch-button:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-subbox .project-switch .project-switch-button>div{z-index:1;width:32px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#606266}.project-panel .project-subbox .project-switch .project-switch-button>div>i{font-size:17px}.project-panel .project-column{display:flex;height:100%;padding-top:15px;overflow-x:auto;overflow-y:hidden}.project-panel .project-column>ul{display:inline-flex;justify-content:space-between;align-items:flex-start}.project-panel .project-column>ul>li{flex-shrink:0;list-style:none;width:300px;height:100%;display:flex;flex-direction:column}.project-panel .project-column>ul>li:first-child{margin-left:22px}.project-panel .project-column>ul>li:last-child{margin-right:22px}.project-panel .project-column>ul>li.add-column{height:36px;color:#888;cursor:pointer;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li.add-column .add-column-text{display:flex;flex-direction:row;align-items:center;line-height:36px;padding:0 12px}.project-panel .project-column>ul>li.add-column .add-column-text>i{font-size:16px;padding-right:8px}.project-panel .project-column>ul>li.add-column .add-column-text:hover{color:#777}.project-panel .project-column>ul>li.add-column .add-column-input{display:none;align-items:center;height:36px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input{height:36px;padding:4px 10px}.project-panel .project-column>ul>li.add-column .add-column-input .ivu-input-icon{width:36px;height:36px;line-height:36px}.project-panel .project-column>ul>li.add-column.show-input .add-column-text{display:none}.project-panel .project-column>ul>li.add-column.show-input .add-column-input{display:flex}.project-panel .project-column>ul>li .column-head{display:flex;align-items:center;padding:7px 10px;margin:0 10px;background-color:#f2f3f5;border-radius:4px}.project-panel .project-column>ul>li .column-head .column-head-title{flex:1;width:0;display:flex;align-items:center;font-weight:500}.project-panel .project-column>ul>li .column-head .column-head-title>span{font-size:15px}.project-panel .project-column>ul>li .column-head .column-head-title>em{color:#888;font-style:normal;font-size:14px;padding-left:6px}.project-panel .project-column>ul>li .column-head .column-head-icon{display:flex;align-items:center;margin-left:16px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding-right:8px}.project-panel .project-column>ul>li .column-head .column-head-icon .loading .common-loading,.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon{cursor:pointer;font-size:16px;color:#aaa;font-weight:600;transition:color .3s}.project-panel .project-column>ul>li .column-head .column-head-icon .ivu-icon:hover{color:#888}.project-panel .project-column>ul>li .column-head .column-head-icon .last{padding-right:0}.project-panel .project-column>ul>li .column-head.custom-color{color:#fff}.project-panel .project-column>ul>li .column-head.custom-color .column-head-title>em{color:#fff9}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon{color:#ffffff80}.project-panel .project-column>ul>li .column-head.custom-color .ivu-icon:hover{color:#ffffffe6}.project-panel .project-column>ul>li .column-task{flex:1;display:flex;flex-direction:column}.project-panel .project-column>ul>li .column-task .task-list>div:last-child{margin-bottom:16px}.project-panel .project-column>ul>li .column-task .task-item{cursor:pointer;margin:16px 10px 0;background-color:#fff;border-radius:12px;padding:12px;transition:box-shadow .3s,opacity .3s;position:relative}.project-panel .project-column>ul>li .column-task .task-item:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-column>ul>li .column-task .task-item .task-head{display:flex;align-items:flex-start}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title{flex:1;padding-top:1px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span{float:left;font-size:12px;height:20px;line-height:18px;padding:0 3px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;margin-right:4px;text-align:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-title>pre{display:block;margin:0;padding:0;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;word-break:break-word}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu{margin-left:8px;width:22px;height:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .loading .common-loading,.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon .common-loading{width:16px;height:16px;margin:0}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon{font-size:22px}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete{color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-head .task-menu .ivu-icon.uncomplete:hover{color:#555}.project-panel .project-column>ul>li .column-task .task-item .task-head.has-desc .task-title{font-weight:600}.project-panel .project-column>ul>li .column-task .task-item .task-desc>pre{color:#909399;padding:0;margin:10px 0 0;line-height:20px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-panel .project-column>ul>li .column-task .task-item .task-tags{margin-top:10px}.project-panel .project-column>ul>li .column-task .task-item .task-users{margin-top:10px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul{flex:1;width:0;display:flex;align-items:center;overflow:auto;margin-right:24px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul::-webkit-scrollbar{display:none}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li{list-style:none;margin-left:-6px;width:32px;height:32px}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li:first-child{margin-left:0}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner{width:auto}.project-panel .project-column>ul>li .column-task .task-item .task-users>ul>li.no-owner .ivu-btn-small{font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon{margin-left:6px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .task-users .task-icon .ivu-icon{margin-left:1px;font-size:14px}.project-panel .project-column>ul>li .column-task .task-item .task-progress{margin-top:10px;display:flex;align-items:center;justify-content:flex-end}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-sub-num{font-size:12px;margin-right:8px;color:#777}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time{flex-shrink:0;color:#777;background-color:#eaedf2;border:1px solid #EAEDF2;padding:0 3px;margin-left:18px;font-size:12px;border-radius:3px;display:flex;align-items:center}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue,.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#fff}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time .taskfont{margin-right:3px;font-size:12px}.project-panel .project-column>ul>li .column-task .task-item .priority-color{position:absolute;top:12px;left:0;width:3px;height:42px;max-height:50%;border-radius:2px}.project-panel .project-column>ul>li .column-task .task-item.additem{cursor:default;padding:0}.project-panel .project-column>ul>li .column-task .task-item.complete{opacity:.5}.project-panel .project-column>ul>li .column-task .task-item.complete:hover{opacity:.8}.project-panel .project-column>ul>li .column-task .task-item.complete .task-head .task-title{text-decoration:line-through}.project-panel .project-column>ul>li .column-task .task-item.hidden{display:none}.project-panel .project-table{height:100%;margin-top:18px}.project-panel .project-table .task-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.project-panel .project-table .task-row>div{display:flex;align-items:center;padding:8px 12px;border-right:1px solid #F4F4F5}.project-panel .project-table .task-row>div:first-child{padding-left:32px}.project-panel .project-table .task-row>div:last-child{border-right:0}.project-panel .project-table .task-row>div.complete .item-title{color:#aaa;text-decoration:line-through}.project-panel .project-table .task-row .priority-color{position:absolute;top:0;left:0;bottom:-1px;width:3px}.project-panel .project-table .project-table-head,.project-panel .project-table .project-table-body{min-width:800px;margin:0 32px 12px;border-radius:5px;border:1px solid #F4F4F5;border-bottom:0;overflow:hidden}.project-panel .project-table .project-table-head.project-table-hide .task-rows,.project-panel .project-table .project-table-body.project-table-hide .task-rows{display:none}.project-panel .project-table .project-table-head.project-table-hide .row-title .taskfont,.project-panel .project-table .project-table-body.project-table-hide .row-title .taskfont{transform:rotate(-90deg)}.project-panel .project-table .project-table-head .task-row>div{color:#888;font-size:13px;font-weight:500}.project-panel .project-table .project-table-head .task-row>div .sort{display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-head .task-row>div .head-title{white-space:nowrap}.project-panel .project-table .project-table-head .task-row>div .task-sort{display:inline-block;width:14px;height:12px;margin-top:-1px;margin-left:1px;vertical-align:middle;overflow:hidden;cursor:pointer;position:relative}.project-panel .project-table .project-table-head .task-row>div .task-sort>i{display:block;height:6px;line-height:6px;overflow:hidden;position:absolute;color:#c5c8ce;transition:color .2s ease-in-out;font-size:16px}.project-panel .project-table .project-table-head .task-row>div .task-sort>i.on{color:#84c56a}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:hover{color:inherit}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:first-child{top:0}.project-panel .project-table .project-table-head .task-row>div .task-sort>i:last-child{bottom:0}.project-panel .project-table .project-table-body{transition:box-shadow .3s}.project-panel .project-table .project-table-body:hover{box-shadow:0 0 10px #e6ecfa}.project-panel .project-table .project-table-body .task-row>div{padding:10px 12px}.project-panel .project-table .project-table-body .task-row>div.row-title{font-size:14px;font-weight:500;color:#303133;padding-left:14px}.project-panel .project-table .project-table-body .task-row>div.row-title .taskfont{cursor:pointer;transition:transform .3s;font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-h1{padding-left:18px}.project-panel .project-table .project-table-body .task-row>div.row-title .row-num{color:#909399;padding-left:6px}.project-panel .project-table .project-table-body .task-row>div.row-name{align-items:flex-start;padding:12px 12px 12px 34px;line-height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .loading{height:24px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon{cursor:pointer;font-size:16px}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon{font-size:16px;width:16px;height:16px;margin-top:4px;margin-left:-20px;margin-right:4px;color:#cfcfcf;transition:transform .2s}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.sub-icon.active{transform:rotate(90deg)}.project-panel .project-table .project-table-body .task-row>div.row-name .ivu-icon.uncomplete{color:#ccc}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title{flex:1;padding:0 22px 0 8px;cursor:pointer;word-break:break-all}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:3px;margin-right:3px;text-align:center}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-panel .project-table .project-table-body .task-row>div.row-name .item-title>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons{display:flex;align-items:center;margin-left:4px;flex-shrink:0}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon{display:flex;font-size:12px;margin-left:16px;color:#aaa;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon .taskfont{font-size:12px}.project-panel .project-table .project-table-body .task-row>div.row-name .item-icons .item-icon>em{font-style:normal;margin-left:4px}.project-panel .project-table .project-table-body .task-row>div.row-column .el-dropdown,.project-panel .project-table .project-table-body .task-row>div.row-priority .el-dropdown{display:flex;align-items:center;overflow:hidden}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column,.project-panel .project-table .project-table-body .task-row>div.row-column .task-priority,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-column,.project-panel .project-table .project-table-body .task-row>div.row-priority .task-priority{cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-column .task-column{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-panel .project-table .project-table-body .task-row>div.row-user{padding:8px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul{height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li{max-width:100%;list-style:none;display:inline-block;margin-left:-6px}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li:first-child{margin-left:0}.project-panel .project-table .project-table-body .task-row>div.row-user>ul>li.no-owner{height:32px;display:flex;align-items:center}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue,.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#fff;padding:0 4px;border:1px solid transparent;font-size:13px;border-radius:3px}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{font-weight:500;background-color:#f90;border-color:#f90}.project-panel .project-table .project-table-body .task-rows .task-rows{position:relative;overflow:hidden}.project-panel .project-table .project-table-body .task-rows .task-rows:before{content:"";position:absolute;top:0;left:0;right:0;box-shadow:#00000014 0 0 8px 1px;z-index:1}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row .priority-color{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name{padding-left:56px}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-name .item-title{color:#6b6e72}.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-column>div,.project-panel .project-table .project-table-body .task-rows .task-rows .task-row>div.row-priority>div{display:none}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row{background-color:#fcfcfd}.project-panel .project-table .project-table-body .task-rows .task-rows .task-add-row>div.row-add{padding-left:56px}.project-panel .project-gantt{height:100%;position:relative}.project-panel-more-dropdown-menu>li .item{display:flex;align-items:center}.project-panel-more-dropdown-menu>li .item>i{width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.project-panel-more-dropdown-menu>li .item>i.ivu-icon{font-size:16px}.project-panel-wait-remove{margin-top:6px}.project-panel-wait-remove>li{display:flex;align-items:center;list-style:none;line-height:26px}.project-panel-wait-remove>li:first-child{font-weight:600}.project-panel-flow-cascader{max-height:none!important}.project-panel-flow-cascader .ivu-cascader-menu{height:auto;max-height:360px;overflow:auto}.project-panel-flow-cascader .ivu-cascader-menu-item{color:#606266!important}.project-panel-flow-cascader .ivu-cascader-menu-item.start{color:#ff7070!important}.project-panel-flow-cascader .ivu-cascader-menu-item.progress{color:#fc984b!important}.project-panel-flow-cascader .ivu-cascader-menu-item.test{color:#2f99ec!important}.project-panel-flow-cascader .ivu-cascader-menu-item.end{color:#0bc037!important}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0{margin-top:12px;position:relative}.project-panel-flow-cascader .ivu-cascader-menu-item.user-0:before{content:"";position:absolute;top:-6px;left:0;right:0;border-top:1px solid #EBEEF5}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.start,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.start{background-color:#ff70701a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.progress,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.progress{background-color:#fc984b1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.test,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.test{background-color:#2f99ec1a}.project-panel-flow-cascader .ivu-cascader-menu-item:hover.project-panel-flow-cascader-item.end,.project-panel-flow-cascader .ivu-cascader-menu-item.ivu-cascader-menu-item-active.project-panel-flow-cascader-item.end{background-color:#0bc0371a}body.window-portrait .project-panel .project-titbox{position:sticky;top:0;z-index:2;background-color:#fafafa;padding:12px 16px 4px}body.window-portrait .project-panel .project-titbox .project-title{float:left;max-width:100%}body.window-portrait .project-panel .project-titbox .project-title .project-back{flex-shrink:0;display:flex;align-items:center;justify-content:center;margin-left:-16px;width:52px}body.window-portrait .project-panel .project-titbox .project-title .project-back>i{font-size:26px}body.window-portrait .project-panel .project-titbox .project-title>h1{font-size:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}body.window-portrait .project-panel .project-titbox .project-icons{float:right;margin-left:24px;margin-top:4px;justify-content:flex-end}body.window-portrait .project-panel .project-subbox{padding:0 16px}body.window-portrait .project-panel .project-subbox .project-subtitle{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}body.window-portrait .project-panel .project-subbox .project-switch{margin-left:0;justify-content:flex-end}body.window-portrait .project-panel .project-column::-webkit-scrollbar{display:none}body.window-portrait .project-panel .project-column>ul>li{width:320px}body.window-portrait .project-panel .project-column>ul>li:first-child{margin-left:10px}body.window-portrait .project-panel .project-column>ul>li:last-child{margin-right:10px}body.window-portrait .project-panel .project-table .project-table-head,body.window-portrait .project-panel .project-table .project-table-body{min-width:720px;margin:0 24px 12px}.project-workflow{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.project-workflow .workflow-title{color:#303133;font-size:20px;font-weight:500;line-height:1;padding:20px 20px 24px;display:flex;align-items:center}.project-workflow .workflow-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-workflow .workflow-title .title-icon>i{cursor:pointer}.project-workflow .workflow-content{flex:1;padding:0 20px;overflow:auto;margin-bottom:20px;height:100%}.project-workflow .workflow-content .ivu-collapse{min-width:700px;height:100%}.project-workflow .workflow-content .ivu-collapse .ivu-collapse-item{height:100%}.project-workflow .workflow-content .ivu-collapse .ivu-collapse-item .ivu-collapse-content{height:calc(100% - 38px);overflow:auto}.project-workflow .workflow-content .ivu-collapse-header{display:flex;align-items:center}.project-workflow .workflow-content .workflow-item{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-name{flex-shrink:0;margin-right:24px}.project-workflow .workflow-content .workflow-item .workflow-status{flex:1;display:flex;align-items:center}.project-workflow .workflow-content .workflow-item .workflow-status>div{height:24px;line-height:22px;margin-right:8px;padding:0 8px;border:1px solid #e8eaec;border-radius:3px;background:#f7f7f7;font-size:12px;vertical-align:middle;overflow:hidden}.project-workflow .workflow-content .workflow-item .workflow-status>div.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.project-workflow .workflow-content .workflow-item .workflow-status>div.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.project-workflow .workflow-content .workflow-item .workflow-status>div.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.project-workflow .workflow-content .workflow-item .workflow-status>div.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.project-workflow .workflow-content .workflow-item .workflow-save{margin:0 8px;flex-shrink:0}.project-workflow .workflow-content .workflow-item .workflow-save>button{height:26px;line-height:24px;padding:0 13px;font-size:13px;margin-right:4px}.project-workflow .workflow-no{flex:1;padding:0 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999}.project-workflow .workflow-no>button{margin-top:18px}.project-workflow .taskflow-config{display:flex;max-height:100%}.project-workflow .taskflow-config .taskflow-config-table{display:flex;width:100%;border-radius:4px;box-shadow:1px 0 3px #0000001a}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container{position:relative;flex-shrink:0;width:246px;padding-top:16px;padding-bottom:16px;overflow-x:scroll;-ms-overflow-style:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-left-container:after{content:"";position:absolute;top:0;right:0;bottom:0;z-index:1;border-right:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header{position:absolute;top:0;left:0;right:0;height:58px;padding:0 20px;font-size:16px;font-weight:700;line-height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-header.left-header{top:16px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-column-body{margin-top:58px;height:calc(100% - 58px)}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block{width:100%;padding:12px 0}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr{position:relative}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block.hr:after{content:"";position:absolute;top:0;left:0;right:0;z-index:1;border-top:1px solid #f4f4f5}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-title{padding:0 20px;height:40px;color:#8c8c8c;line-height:40px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-radio-group .ivu-radio-group-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group{display:block;text-align:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .ivu-checkbox-group .ivu-checkbox-group-item,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;padding:0 20px;height:58px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.with-indicator:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:20px;width:4px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .title{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .subtitle{margin-top:2px;font-size:12px;color:#8c8c8c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.center{align-items:center}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item.radio-item>span{display:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-block .taskflow-config-table-block-item .transform-status-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{flex-grow:1;flex-direction:row;padding-top:16px;padding-bottom:16px;overflow-x:auto;overflow-y:hidden}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-list-wrapper,.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-right-container{display:flex}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column{position:relative;flex-shrink:0;width:210px;height:100%;margin-bottom:16px;margin-right:16px;border-radius:4px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:first-child{margin-left:20px}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column:hover .status-label-with-menu .more{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #d9d9d9;cursor:pointer;color:#8c8c8c}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.addnew:hover{color:#777;border-color:#bfbfbf}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.column-border{border-width:1px;border-style:solid}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start{border-color:#ff707033}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start:hover{border-color:#ff7070b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-checked .ivu-radio-inner{border-color:#ff7070;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-radio-inner:after{background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.start .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#ff7070;background-color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress{border-color:#fc984b33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress:hover{border-color:#fc984bb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-checked .ivu-radio-inner{border-color:#fc984b;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-radio-inner:after{background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.progress .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#fc984b;background-color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test{border-color:#2f99ec33}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test:hover{border-color:#2f99ecb3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-checked .ivu-radio-inner{border-color:#2f99ec;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-radio-inner:after{background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.test .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#2f99ec;background-color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end{border-color:#0bc03733}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end:hover{border-color:#0bc037b3}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-checked .ivu-radio-inner{border-color:#0bc037;box-shadow:none}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-radio-inner:after{background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column.end .ivu-checkbox-checked .ivu-checkbox-inner{border-color:#0bc037;background-color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-column .ivu-checkbox-disabled.ivu-checkbox-checked .ivu-checkbox-inner{background-color:#f3f3f3!important;border-color:#dcdee2!important}.project-workflow .taskflow-config .taskflow-config-table .taskflow-config-table-status-item{display:flex;align-items:center;padding:8px;height:58px;line-height:58px;cursor:move}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu{max-width:100%;display:inline-flex;align-items:center;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;padding:0 32px;width:200px;height:36px;line-height:32px;font-size:14px;font-weight:400;justify-content:center}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu:hover{font-weight:700}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.start{background-color:#ff70701a;color:#ff7070}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.progress{background-color:#fc984b1a;color:#fc984b}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.test{background-color:#2f99ec1a;color:#2f99ec}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu.end{background-color:#0bc0371a;color:#0bc037}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more{cursor:pointer;position:absolute;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;width:38px;font-size:18px;font-weight:400!important;opacity:.2;transition:opacity,transform .3s}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more.opacity{opacity:1}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more:hover{transform:scale(1.1)}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more .more-icon{display:flex;align-items:center}.project-workflow .taskflow-config .taskflow-config-table .status-label-with-menu .more .more-icon .ivu-badge-dot{top:4px;right:-6px;width:6px;height:6px}.workflow-setting-box{position:relative;padding:44px 24px 4px;margin:24px 0 12px;border-radius:8px;border:1px solid #eeeeee;transition:box-shadow .3s}.workflow-setting-box:hover{box-shadow:0 0 10px #e6ecfa}.workflow-setting-box h3{position:absolute;top:0;left:24px;padding:4px 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500;transform:translateY(-50%)}.workflow-setting-box .form-box{overflow:auto}.workflow-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.workflow-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.workflow-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .users{display:flex;padding:6px 0;margin:0 -8px;overflow:auto}.taskflow-config-more-dropdown-menu .users .common-avatar{max-width:100%;margin-right:-5px}.taskflow-config-more-dropdown-menu .item{display:flex;align-items:center}.taskflow-config-more-dropdown-menu .item .ivu-badge-dot{top:4px}.taskflow-config-more-dropdown-menu .delete{color:red}.project-permission{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.project-permission .permission-title{color:#303133;font-size:20px;font-weight:500;line-height:1;padding:20px 20px 24px;display:flex;align-items:center}.project-permission .permission-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.project-permission .permission-title .title-icon>i{cursor:pointer}.project-permission .permission-content{flex:1;padding:0 25px;overflow:auto;margin-bottom:20px;height:100%;position:relative}.project-permission .permission-content .project-permission-title{font-weight:500;padding:20px 0 10px}.project-permission .permission-content .ivu-form-item{margin-bottom:5px}.project-permission .permission-content .form-placeholder{font-size:12px;color:#999}.project-permission .project-permission-footer{flex-shrink:0;position:static;padding:16px 26px;border-top:1px solid #F4F4F5;display:flex;align-items:center;gap:16px}.project-permission .project-permission-footer button{min-width:120px;height:38px;line-height:36px}body.window-portrait .project-permission .project-permission-footer button{width:50%}.task-add{position:relative}.task-add .head{display:flex;align-items:center;padding:8px 0;margin-bottom:20px;position:relative}.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (max-width: 600px){.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:200px}}@media (max-width: 400px){.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:160px}}@media (max-width: 320px){.task-add .head .ivu-cascader .ivu-cascader-menu-item{max-width:100px}}.task-add .head .ivu-cascader .ivu-cascader-label{width:auto;padding:0;font-size:15px;display:flex;align-items:center}.task-add .head .ivu-cascader .ivu-cascader-label:after{transition:all .2s;padding:6px;font-family:Ionicons,serif;content:"\f116";opacity:1}.task-add .head .ivu-cascader .ivu-cascader-arrow{display:none}.task-add .head .ivu-cascader .ivu-input{padding:4px 0;border:0;box-shadow:none;font-size:15px}.task-add .head .ivu-cascader .ivu-cascader-not-found-tip{padding:6px 12px}.task-add .head.empty .ivu-cascader .ivu-cascader-label:after{opacity:0}.task-add .head.visible .ivu-cascader .ivu-cascader-label:after{transform:rotate(180deg)}.task-add .task-add-form .calculate-dropdown,.task-add .task-add-advanced .calculate-dropdown{position:absolute;top:0;left:0;right:0;bottom:0;width:0;height:0;z-index:-1;pointer-events:none}.task-add .task-add-form .title .ivu-input,.task-add .task-add-advanced .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-add .task-add-form .title .ivu-input:focus,.task-add .task-add-advanced .title .ivu-input:focus{box-shadow:none}.task-add .task-add-form .desc,.task-add .task-add-advanced .desc{margin-top:24px}.task-add .task-add-form .desc div[contenteditable=true],.task-add .task-add-advanced .desc div[contenteditable=true]{outline:none}.task-add .task-add-form .desc .mce-content-body img,.task-add .task-add-advanced .desc .mce-content-body img{max-width:100%}.task-add .task-add-form .desc .mce-content-body pre,.task-add .task-add-advanced .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-add .task-add-form .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before,.task-add .task-add-advanced .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-add .task-add-form .advanced-option,.task-add .task-add-advanced .advanced-option{padding-top:42px;z-index:1;display:flex;align-items:center}.task-add .task-add-form .advanced-option.advanced-open>button,.task-add .task-add-advanced .advanced-option.advanced-open>button{margin-left:24px}.task-add .task-add-form .advanced-option>button,.task-add .task-add-advanced .advanced-option>button{transition:margin .2s}.task-add .task-add-form .advanced-option>button:focus,.task-add .task-add-advanced .advanced-option>button:focus{box-shadow:none}.task-add .task-add-form .advanced-option .advanced-priority,.task-add .task-add-advanced .advanced-option .advanced-priority{display:flex;align-items:center;margin-left:24px;height:34px;overflow-y:hidden;overflow-x:auto}.task-add .task-add-form .advanced-option .advanced-priority::-webkit-scrollbar,.task-add .task-add-advanced .advanced-option .advanced-priority::-webkit-scrollbar{display:none}.task-add .task-add-form .advanced-option .advanced-priority>li,.task-add .task-add-advanced .advanced-option .advanced-priority>li{list-style:none;margin-left:3px}.task-add .task-add-form .advanced-option .advanced-priority>li .taskfont,.task-add .task-add-advanced .advanced-option .advanced-priority>li .taskfont{font-size:34px;cursor:pointer}.task-add .task-add-form .advanced-option .advanced-time,.task-add .task-add-advanced .advanced-option .advanced-time{display:flex;align-items:center;margin-left:20px;position:relative;cursor:pointer;transition:margin .2s}.task-add .task-add-form .advanced-option .advanced-time .ivu-icon,.task-add .task-add-advanced .advanced-option .advanced-time .ivu-icon{font-size:32px}.task-add .task-add-form .advanced-option .advanced-time>em,.task-add .task-add-advanced .advanced-option .advanced-time>em{position:absolute;top:-5px;left:16px;font-family:Monospaced Number,"serif";transform:scale(.8);height:20px;min-width:20px;line-height:20px;border-radius:10px;background:#84C56A;color:#fff;text-align:center;padding:0 6px;font-size:12px;font-style:normal;white-space:nowrap;box-shadow:0 0 0 1px #fff}.task-add .task-add-form .visibility-text,.task-add .task-add-advanced .visibility-text{cursor:pointer}.task-add .task-add-form .visibility-text.color,.task-add .task-add-advanced .visibility-text.color{color:#bbb}.task-add .task-add-form .visibility-text .taskfont,.task-add .task-add-advanced .visibility-text .taskfont{display:inline-block;transform:scale(.9);opacity:.8;font-size:12px;margin-right:0}.task-add .task-add-form .task-add-visibility,.task-add .task-add-advanced .task-add-visibility{cursor:pointer;color:#909399b3}.task-add .task-add-advanced{margin:-16px 0 0;padding:46px 32px 6px;border-radius:8px;border:1px solid #e8e8e8}.task-add .task-add-advanced .subtasks{margin-bottom:24px;padding:12px 16px;border-radius:6px;background-color:#f8f8f8}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input{background:transparent;border-color:transparent}.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:hover,.task-add .task-add-advanced .subtasks .enter-input.empty .ivu-input:focus{box-shadow:none}.task-add .task-add-advanced .subtasks .sublist .ivu-row{margin-bottom:12px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div{padding-right:7px}.task-add .task-add-advanced .subtasks .sublist .ivu-row>div:last-child{padding-right:0}.task-add .task-add-advanced .ivu-date-picker{width:100%}.task-add .ivu-modal-footer{padding:26px 0 22px!important}body.window-portrait .task-add .task-add-form .advanced-option,body.window-portrait .task-add .task-add-advanced .advanced-option{width:calc(100% + 8px);padding-right:8px;justify-content:space-between}body.window-portrait .task-add .task-add-form .advanced-option.advanced-open>button,body.window-portrait .task-add .task-add-advanced .advanced-option.advanced-open>button{margin-left:8px}body.window-portrait .task-add .task-add-form .advanced-option.advanced-open .advanced-time,body.window-portrait .task-add .task-add-advanced .advanced-option.advanced-open .advanced-time{margin-right:4px}body.window-portrait .task-add .task-add-form .advanced-option .advanced-priority,body.window-portrait .task-add .task-add-advanced .advanced-option .advanced-priority{margin-left:8px}body.window-portrait .task-add .task-add-form .advanced-option .advanced-time,body.window-portrait .task-add .task-add-advanced .advanced-option .advanced-time{margin-left:4px}.task-add-simple{padding:12px}.task-add-simple .ivu-input-wrapper{display:none}.task-add-simple .add-placeholder{cursor:pointer;color:#888;margin:-12px;padding:12px}.task-add-simple .add-placeholder .ivu-icon{margin-right:4px}.task-add-simple .add-placeholder:hover{color:#606266}.task-add-simple .priority{display:none;align-items:center;min-height:22px;margin-top:10px;margin-bottom:-3px}.task-add-simple .priority>ul{flex:1;display:flex;align-items:center}.task-add-simple .priority>ul>li{list-style:none;margin-right:3px}.task-add-simple .priority>ul>li .taskfont{font-size:22px;cursor:pointer}.task-add-simple .priority .ivu-icon{cursor:pointer;font-size:16px}.task-add-simple.active .ivu-input-wrapper{display:block}.task-add-simple.active .add-placeholder{display:none}.task-add-simple.active .priority{display:flex}.task-add-row{background-color:#fff;border-bottom:1px solid #F4F4F5;position:relative}.task-add-row>div{display:flex;padding:8px 12px;border-right:1px solid #F4F4F5}.task-add-row>div:last-child{border-right:0}.task-add-row>div.row-add{display:flex;flex-direction:column;justify-content:center;min-height:48px;padding-left:34px}.task-add-row>div.row-add .add-btn{display:block;cursor:pointer;opacity:.5;transition:opacity .3s}.task-add-row>div.row-add .add-btn .add-icon{font-size:16px;margin-right:8px}.task-add-row>div.row-add .add-btn:hover{opacity:1}.task-add-row>div.row-add .add-input{display:none;align-items:flex-start;border:1px solid #dcdee2;border-radius:4px;color:#606266;background-color:#fff}.task-add-row>div.row-add .add-input:hover{border-color:#57a3f3}.task-add-row>div.row-add .add-input textarea{border-color:transparent;resize:none}.task-add-row>div.row-add .add-input textarea:focus{box-shadow:none}.task-add-row>div.row-add .add-input .priority{margin:0 4px;display:flex;align-items:center;height:31px}.task-add-row>div.row-add .add-input .priority>ul{flex:1;display:flex;align-items:center}.task-add-row>div.row-add .add-input .priority>ul>li{list-style:none;margin-right:4px}.task-add-row>div.row-add .add-input .priority>ul>li .taskfont{font-size:17px;cursor:pointer}.task-add-row>div.row-add .add-input .priority .ivu-icon{cursor:pointer;font-size:15px;margin:0 5px 0 3px}.task-add-row>div.row-add.active{padding-top:7px;padding-bottom:7px}.task-add-row>div.row-add.active .add-btn{display:none}.task-add-row>div.row-add.active .add-input{display:flex}.task-archived{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-archived .archived-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-archived .archived-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-archived .archived-title .title-icon>i{cursor:pointer}.task-archived .table-page-box{flex:1;height:0}.task-deleted{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column}.task-deleted .deleted-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.task-deleted .deleted-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.task-deleted .deleted-title .title-icon>i{cursor:pointer}.task-deleted .table-page-box{flex:1;height:0}.task-detail{display:flex;flex-direction:column;margin:0 -32px 12px -15px;padding:0 22px 10px 0;min-height:120px}.task-detail .task-info{flex:3;display:flex;flex-direction:column;position:relative;z-index:1}.task-detail .task-info .head{display:flex;align-items:center;height:42px;margin-left:5px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-info .head:before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-info .head .task-menu-icon{margin-right:18px;display:flex;align-items:center}.task-detail .task-info .head .task-menu-icon .ivu-icon{font-size:18px}.task-detail .task-info .head .task-menu-icon .loading{width:18px;height:18px}.task-detail .task-info .head .task-menu-icon .loading .common-loading{width:16px;height:16px}.task-detail .task-info .head .task-menu-icon .uncomplete{color:#888}.task-detail .task-info .head .flow{display:flex;align-items:center;margin-right:10px}.task-detail .task-info .head .flow>span{font-size:14px;height:26px;line-height:24px;padding:0 8px;border-radius:4px;color:#84c56a;border:1px solid #84C56A;display:inline-block;text-align:center;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.task-detail .task-info .head .flow>span.archived{background-color:#7f7f7f1a;border-color:#7f7f7f1a;color:#7f7f7f}.task-detail .task-info .head .flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .head .flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .head .flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .head .flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .head .nav{flex:1;display:flex;align-items:center;font-size:12px;width:0;height:40px;overflow:auto}.task-detail .task-info .head .nav::-webkit-scrollbar{display:none}.task-detail .task-info .head .nav>p{display:flex;align-items:center;padding-right:5px}.task-detail .task-info .head .nav>p>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-detail .task-info .head .nav>p:after{content:"/";padding-left:5px}.task-detail .task-info .head .nav>p:last-child:after{display:none}.task-detail .task-info .head .function{display:flex;align-items:center;margin:0 32px}.task-detail .task-info .head .function .pick{margin-left:12px;margin-right:10px}.task-detail .task-info .head .function .open{margin-top:-2px;margin-left:12px;font-size:22px;cursor:pointer}.task-detail .task-info .head .function .menu{margin-left:12px;display:flex;align-items:center}.task-detail .task-info .head .function .menu .task-menu-icon{margin-right:0}.task-detail .task-info .head .function .menu .ivu-icon{font-size:22px;color:#606266}.task-detail .task-info .scroller{margin-right:-5px}.task-detail .task-info .scroller .scrollbar-content{padding:0 5px}.task-detail .task-info .scroller .title{margin-top:18px}.task-detail .task-info .scroller .title .ivu-input{font-weight:500;font-size:24px;padding:4px 0;line-height:1.4;resize:none;border-color:transparent}.task-detail .task-info .scroller .title .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .desc{margin-top:10px}.task-detail .task-info .scroller .desc div[contenteditable=true]{outline:none}.task-detail .task-info .scroller .desc .mce-content-body img{max-width:100%}.task-detail .task-info .scroller .desc .mce-content-body pre{padding:14px;margin:7px 0;overflow:auto;background:#f5f2f0;border-radius:5px}.task-detail .task-info .scroller .desc .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#bbb}.task-detail .task-info .scroller .items{margin-top:12px}.task-detail .task-info .scroller .items .ivu-form-item{margin-bottom:10px}.task-detail .task-info .scroller .items .item-label{display:flex;align-items:center;color:#bbb}.task-detail .task-info .scroller .items .item-label .taskfont{margin-right:4px}.task-detail .task-info .scroller .items .item-content{margin-top:5px;margin-left:12px}.task-detail .task-info .scroller .items .item-content>li{display:flex;align-items:center;list-style:none;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .el-dropdown{display:flex;cursor:pointer}.task-detail .task-info .scroller .items .item-content>li .task-priority{padding:0 7px}.task-detail .task-info .scroller .items .item-content>li .picker-time{display:flex;align-items:center;flex-wrap:wrap;line-height:26px}.task-detail .task-info .scroller .items .item-content>li .picker-time .time{cursor:pointer;margin-right:10px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag{flex-shrink:0;margin-right:10px;padding:0 4px;height:20px;line-height:18px}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text{display:flex;align-items:center}.task-detail .task-info .scroller .items .item-content>li .picker-time .ivu-tag .ivu-tag-text .taskfont{transform:scale(.9);font-size:14px;padding-right:3px}.task-detail .task-info .scroller .items .item-content.user{margin-top:1px}.task-detail .task-info .scroller .items .item-content.file{margin-bottom:-3px}.task-detail .task-info .scroller .items .item-content.file>li{margin-bottom:2px}.task-detail .task-info .scroller .items .item-content.file>li.tip{color:#999}.task-detail .task-info .scroller .items .item-content.file>li .file-load{margin:0;padding:2px;width:16px;height:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-ext{width:16px}.task-detail .task-info .scroller .items .item-content.file>li .file-name{color:#606266;padding-left:8px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.task-detail .task-info .scroller .items .item-content.file>li .file-size{flex-shrink:0;padding-left:10px;height:24px;font-size:12px;color:#bbb}.task-detail .task-info .scroller .items .item-content.file>li .file-menu{display:flex;align-items:center;opacity:0;transition:all .3s;padding-left:12px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu.show{opacity:1}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i{font-size:14px;color:#aaa;transition:color .3s;cursor:pointer;padding:0 4px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i:hover{color:#777}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del{font-size:13px}.task-detail .task-info .scroller .items .item-content.file>li .file-menu i.del:hover{color:red}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-name{color:#303133}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-menu{opacity:1}.task-detail .task-info .scroller .items .item-content.subtask>li{align-items:flex-start;margin-bottom:4px}.task-detail .task-info .scroller .items .item-content.subtask>li:last-child{margin-bottom:-6px}.task-detail .task-info .scroller .items .item-content.subtask>li:hover .subtask-time .clock{transform:translate(0);opacity:.7}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-icon{padding-top:1px;width:16px;height:26px;line-height:26px;margin-right:6px;display:flex;align-items:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span{white-space:nowrap;font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;margin-right:3px;text-align:center;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name{flex:1;margin-right:8px;display:flex}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input{min-width:80px;margin:-2px 0;padding:4px 0;resize:none;border-color:transparent;line-height:20px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-name .ivu-input:focus{box-shadow:none}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time{margin-right:8px}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;height:26px;line-height:26px;cursor:pointer}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.overdue{font-weight:600;color:#ed4014}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .time.today{font-weight:500;color:#f90}.task-detail .task-info .scroller .items .item-content.subtask>li .subtask-time .clock{margin:3px 2px;font-size:20px;transition:all .2s;transform:translate(50%);opacity:0}.task-detail .task-info .scroller .items .item-content.subtask>li .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .items .item-content.nosub{margin-top:0}.task-detail .task-info .scroller .items .item-content.nosub>li .add-input,.task-detail .task-info .scroller .items .item-content.nosub>li .add-button{margin-top:-2px}.task-detail .task-info .scroller .items .visibility-text{cursor:pointer}.task-detail .task-info .scroller .items .visibility-text.color{color:#bbb}.task-detail .task-info .scroller .items .visibility-text .taskfont{display:inline-block;transform:scale(.9);font-size:12px;margin-right:0}.task-detail .task-info .scroller .add{margin-top:12px;margin-bottom:10px}.task-detail .task-info .scroller .add .el-dropdown{max-width:100%}.task-detail .task-info .scroller .add .el-dropdown .add-button>em{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.task-detail .task-info .scroller .add-input{margin-top:6px}.task-detail .task-info .scroller .add-input.loading .ivu-icon-ios-loading{animation:animation-icon-loading .6s infinite linear}.task-detail .task-info .scroller .add-button{cursor:pointer;color:#bbb;display:flex;align-items:center;margin-top:6px;height:32px}.task-detail .task-info .scroller .add-button>i{font-size:14px;padding-right:8px}.task-detail .task-info .scroller .add-button>span{white-space:nowrap}.task-detail .task-info .scroller .add-button>em{font-style:normal;padding-left:4px}.task-detail .task-info .scroller .add-button>em:after{content:"/";padding-left:4px}.task-detail .task-info .scroller .add-button>em:last-child:after{display:none}.task-detail .task-info .scroller .add-button:hover{color:#909399}.task-detail .task-info .scroller .calculate-dropdown{position:absolute;top:0;left:0;right:0;bottom:0;width:0;height:0;z-index:-1;pointer-events:none}.task-detail .task-info .scroller .calculate-dropdown .calculate-content{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%}.task-detail .task-info .upload{display:none}.task-detail .task-dialog{flex:2;flex-shrink:0;display:flex;flex-direction:column;justify-content:flex-end;margin-top:22px;position:relative;z-index:1}.task-detail .task-dialog .head{display:flex;align-items:center;height:42px;margin-left:5px;padding-bottom:10px;color:#888;position:relative}.task-detail .task-dialog .head:before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background-color:#f4f5f5}.task-detail .task-dialog .head .icon{width:18px;font-size:18px}.task-detail .task-dialog .head .nav{flex:1;display:flex;align-items:center;padding-left:18px;font-weight:500;color:#606266}.task-detail .task-dialog .head .nav>p{display:flex;align-items:center;margin-right:24px;cursor:pointer}.task-detail .task-dialog .head .nav>p.active{margin-top:-2px;font-size:16px;font-weight:600;color:#555;cursor:default}.task-detail .task-dialog .head .nav .refresh{display:flex;align-items:center;margin-left:-18px}.task-detail .task-dialog .head .nav .refresh>i{font-size:18px;cursor:pointer;opacity:.8;transition:opacity .2s}.task-detail .task-dialog .head .nav .refresh>i:hover{opacity:1}.task-detail .task-dialog .head .nav .refresh .common-loading{margin:3px;width:12px;height:12px}.task-detail .task-dialog .head .menu .menu-item{display:flex;align-items:center;line-height:24px}.task-detail .task-dialog .head .menu .menu-item .menu-load{margin-right:8px;width:14px;height:14px;display:flex}.task-detail .task-dialog .head .menu .menu-item>em{font-style:normal;padding-left:1px}.task-detail .task-dialog .head .menu .menu-item>i{margin-left:4px;font-size:14px}.task-detail .task-dialog .no-dialog{flex:1;display:flex;flex-direction:column;position:relative}.task-detail .task-dialog .no-dialog .no-tip{flex:1;display:none;margin-left:5px}.task-detail .task-dialog .no-dialog .no-input{position:relative;margin:22px 0 0 5px;background-color:#f4f5f7;padding:10px 0;border-radius:10px}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-quick-emoji{right:0}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper{padding:0 4px 0 6px;background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper .chat-toolbar{right:4px;bottom:0}.task-detail .task-dialog .no-dialog .no-input .chat-input-box .chat-input-wrapper .chat-record{background-color:#f4f5f7}.task-detail .task-dialog .no-dialog .drag-over{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;background-color:#ffffffc7;display:flex;align-items:center;justify-content:center}.task-detail .task-dialog .no-dialog .drag-over:before{content:"";position:absolute;top:0;left:5px;right:0;bottom:0;border:2px dashed #7b7b7b;border-radius:12px}.task-detail .task-dialog .no-dialog .drag-over .drag-text{padding:12px;font-size:18px;color:#606266}.task-detail .task-dialog .project-log{margin-left:5px}.task-detail .task-dialog .project-log .logs-activity{padding:13px 0 0}.task-detail .task-dialog .project-log .logs-activity>li{list-style:none;padding-top:0}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading,.task-detail .task-dialog .project-log .logs-activity>li.logs-more,.task-detail .task-dialog .project-log .logs-activity>li.logs-none{height:59px;line-height:59px}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading{display:flex;align-items:center}.task-detail .task-dialog .project-log .logs-activity>li.logs-loading .common-loading{width:22px;height:22px;margin:0}.task-detail .task-dialog .dialog-wrapper .dialog-scroller{padding-right:16px;padding-left:32px}.task-detail .task-dialog .dialog-wrapper .dialog-footer{padding:0 0 0 24px}.task-detail .task-dialog .dialog-wrapper .dialog-footer .chat-input-box .chat-input-quick-emoji{right:2px}.task-detail .task-load{margin-top:6px;position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%);display:flex}.task-detail .task-load .common-loading{width:32px;height:32px}.task-detail.open-dialog{flex-direction:row}.task-detail.open-dialog .task-info{width:1px}.task-detail.open-dialog .task-info .head .function{margin-right:2px}.task-detail.open-dialog .task-dialog{margin:0 0 0 18px;min-width:220px;max-width:450px;border-left:1px solid #f4f5f5}.task-detail.open-dialog .task-dialog .head:before{left:18px}.task-detail.open-dialog .task-dialog .head .icon:before{display:none}.task-detail.open-dialog .task-dialog .head .nav{padding-left:0}.task-detail.open-dialog .task-dialog .head .nav>p{margin-right:28px}.task-detail.open-dialog .task-dialog .head .nav>p.active{font-size:18px}.task-detail.open-dialog .task-dialog .no-dialog .no-tip{display:flex;align-items:center;justify-content:center;margin-left:18px;color:#909399}.task-detail.open-dialog .task-dialog .no-dialog .no-input{margin:0 0 0 18px}.task-detail.open-dialog .task-dialog .dialog-wrapper{z-index:0}.task-detail.open-dialog .task-dialog .dialog-wrapper .dialog-footer{margin-bottom:0}.task-detail.open-dialog .task-dialog .project-log{position:absolute;top:40px;left:0;right:0;bottom:0;z-index:1;padding:8px;margin-left:8px;background-color:#fff;overflow:auto}.task-detail.open-dialog .task-dialog .project-log .logs-activity{padding:13px 0 0 10px}.task-detail.completed .task-info:before{content:"\f373";font-family:Ionicons,serif;pointer-events:none;position:absolute;top:0;right:13%;font-size:72px;color:#19be6b;opacity:.2;z-index:1}.task-detail-receive{padding:6px 6px 3px}.task-detail-receive .receive-title{font-size:14px}.task-detail-receive .receive-title .ivu-icon{font-size:16px;color:#f90;line-height:18px}.task-detail-receive .receive-time{margin-top:10px}.task-detail-receive .receive-time .ivu-date-picker{width:280px}.task-detail-receive .receive-bottom{text-align:right;margin-top:12px}.task-detail-receive .receive-bottom>button+button{margin-left:4px}.task-detail-delete-file-popover{max-width:200px}.task-detail-delete-file-popover .buttons{text-align:right;margin-top:12px}.task-detail-delete-file-popover .buttons .ivu-btn-small{font-size:12px}.task-detail-loop>li{text-align:center}body.window-portrait .task-detail .task-info .scroller .scrollbar-content{overflow-x:auto}.task-menu-icon{position:relative}.task-menu-icon .loading{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.task-menu-icon .loading .common-loading{margin:0;width:14px;height:14px}.task-menu-icon .ivu-icon{cursor:pointer;font-size:16px;color:#ccc}.task-menu-icon .ivu-icon.completed{color:#84c56a}.task-operation-dropdown{position:absolute;top:0;left:0;width:0;opacity:0;z-index:-1}.task-operation-dropdown .task-operation-icon{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;cursor:pointer}.task-operation-more-dropdown>li.task-operation-more-warp{list-style:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul{max-height:320px;overflow:auto}.task-operation-more-dropdown>li.task-operation-more-warp>ul::-webkit-scrollbar{display:none}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item{display:flex;align-items:center}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i{flex-shrink:0;width:18px;height:18px;line-height:18px;font-size:18px;margin-right:8px;padding:0;color:#bbb}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.ivu-icon{font-size:16px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.movefont{font-size:14px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .item>i.taskfont{text-align:center}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow{padding:4px 0}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i{margin-right:3px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow>i.check{color:#84c56a}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name{border-radius:4px;white-space:nowrap;padding:0 5px;height:20px;line-height:20px;font-size:12px;background:#f4f4f4;color:#595959}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li .flow .flow-name.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow{display:flex;align-items:center;justify-content:center;padding:8px}.task-operation-more-dropdown>li.task-operation-more-warp>ul>li.load-flow .load-flow-warp{width:18px;height:18px}.task-operation-more-dropdown>li.task-operation-more-warp.medium>ul>li .flow .flow-name{height:24px;line-height:24px;padding:0 7px}.task-operation-more-dropdown>li.task-operation-more-warp.large>ul>li .flow .flow-name{font-size:13px;height:30px;line-height:30px;padding:0 8px}.task-priority{font-size:13px;display:inline-block;padding:2px 5px;border-radius:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:1px solid transparent}.task-move .task-move-content{display:flex;gap:10px;margin-top:16px}.task-move .task-move-content>div{flex:1;padding:5px;border-radius:5px}.task-move .task-move-content>div .task-move-title{margin-bottom:10px;font-weight:700}.task-move .task-move-content>div .task-move-row{padding:5px 0;display:flex;line-height:36px}.task-move .task-move-content>div .task-move-row.not-flex{display:block}.task-move .task-move-content>div .task-move-row .label{width:60px;min-width:60px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.task-move .task-move-content>div .task-move-row .task-menu-icon{padding-right:5px}.task-move .task-move-content>div .task-move-row .flow{cursor:pointer}.task-move .task-move-content>div .task-move-row .flow>span{font-size:12px;height:18px;min-width:20px;line-height:16px;padding:0 2px;border-radius:3px;color:#84c56a;border:1px solid #84C56A;display:inline-block;vertical-align:top;margin-top:8px;text-align:center}.task-move .task-move-content>div .task-move-row .flow>span.start{background-color:#ff70701a;border-color:#ff70701a;color:#ff7070}.task-move .task-move-content>div .task-move-row .flow>span.progress{background-color:#fc984b1a;border-color:#fc984b1a;color:#fc984b}.task-move .task-move-content>div .task-move-row .flow>span.test{background-color:#2f99ec1a;border-color:#2f99ec1a;color:#2f99ec}.task-move .task-move-content>div .task-move-row .flow>span.end{background-color:#0bc0371a;border-color:#0bc0371a;color:#0bc037}.task-move .task-move-content>div.task-move-content-old .task-move-row>div{opacity:.5}.task-move .task-move-content>div.task-move-content-old .task-move-row .common-user-select>ul>li,.task-move .task-move-content>div.task-move-content-old .task-move-row .flow{cursor:initial}.task-move .ivu-modal-footer{padding:26px 0 22px!important}body.window-portrait .task-move .ivu-select-dropdown{max-width:100%;overflow:auto}body.window-portrait .task-move .ivu-select-dropdown .ivu-cascader-menu:last-child{margin-right:0}body.window-portrait .task-move .task-move-row .label{width:auto;min-width:50px}.team-management{position:absolute;top:0;left:0;right:0;bottom:0;padding:20px;display:flex;flex-direction:column;overflow:auto}.team-management .management-title{color:#303133;font-size:20px;font-weight:500;line-height:1;margin-bottom:24px;display:flex;align-items:center}.team-management .management-title .title-zoom{display:flex;align-items:center;height:20px;line-height:20px;margin-left:6px}.team-management .management-title .title-zoom>i{cursor:pointer;font-size:24px}.team-management .management-title .title-icon{display:flex;align-items:center;width:14px;height:14px;margin-left:4px;margin-top:2px}.team-management .management-title .title-icon>i{cursor:pointer}.team-management .management-box{flex:1;display:flex;height:0}.team-management .management-box.min-box .management-department{display:none}.team-management .management-box.min-box .management-user{padding-left:0}.team-management .management-box .management-department{width:239px;border-right:1px solid #efefef;flex-shrink:0;display:flex;flex-direction:column}.team-management .management-box .management-department>ul{flex:1;overflow:auto}.team-management .management-box .management-department>ul>li{list-style:none;padding:0;margin:0;height:40px;display:flex;align-items:center;cursor:pointer;overflow:hidden}.team-management .management-box .management-department>ul>li:hover,.team-management .management-box .management-department>ul>li.active{background-color:#ecf5ff}.team-management .management-box .management-department>ul>li.level-1{font-weight:500}.team-management .management-box .management-department>ul>li.level-2{margin-left:24px}.team-management .management-box .management-department>ul>li.level-3{margin-left:48px}.team-management .management-box .management-department>ul>li.level-4{margin-left:72px}.team-management .management-box .management-department>ul>li .department-icon{padding:8px;font-size:16px}.team-management .management-box .management-department>ul>li .department-title{flex:1;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .management-box .management-department>ul>li .department-menu{display:inline-block;padding:12px;font-size:16px;transform:rotate(-90deg)}.team-management .management-box .management-department .department-buttons{margin-top:20px;display:flex;align-items:center;justify-content:center}.team-management .management-box .management-user{flex:1;width:0;display:flex;flex-direction:column;padding-left:20px}.team-management .team-email{display:flex;align-items:center}.team-management .team-email .ivu-icon{color:#84c56a;margin-left:6px;font-size:16px}.team-management .team-email .ivu-tag{height:18px;line-height:18px;padding:0 4px;margin-left:4px;zoom:.8;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-management .table-page-box{flex:1;height:0}.team-department-add-dialog-group{display:flex;align-items:center}.team-department-add-dialog-group .dialog-name{flex:1;width:0;padding-right:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-department-checkin-item{margin-bottom:12px}.team-department-checkin-item>div{padding-right:12px}.team-department-checkin-item>div:last-child{padding-right:0}.team-table-department-warp{display:flex;align-items:center}.team-table-department-warp>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-table-department-warp .department-tag-num{background-color:#515a6e;border-radius:9px;color:#fff;cursor:pointer;flex-shrink:0;font-size:12px;height:18px;line-height:18px;margin-left:4px;min-width:18px;padding:0 5px;text-align:center;transform:scale(.9);transform-origin:right center}.update-log .uplog-head{display:flex;align-items:center}.update-log .uplog-head .uplog-title{display:inline-block;vertical-align:middle;font-size:18px;color:#303133;font-weight:500;margin-right:6px}.update-log .ivu-modal-body{padding:0 32px!important}.update-log .ivu-modal-body .uplog-body{max-height:240px}.update-log .ivu-modal-body .uplog-body .markdown-preview{margin:-20px -12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1{font-size:24px;margin-bottom:12px}.update-log .ivu-modal-body .uplog-body .markdown-preview h1:first-child{padding-top:0}.update-log .ivu-modal-body .uplog-body .markdown-preview h2{font-size:18px!important;padding-top:2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li{padding:2px 0 2px 2px!important}.update-log .ivu-modal-body .uplog-body .markdown-preview ul li:after{top:10px!important;width:6px!important;height:6px!important}.update-log .ivu-modal-fullscreen .ivu-modal-body{padding:0 16px!important;margin:16px 0!important}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body{max-height:none;overflow-x:auto}.update-log .ivu-modal-fullscreen .ivu-modal-body .uplog-body .markdown-preview{margin:0}.task-exist-tips .ivu-modal-body{padding:0 26px 16px!important;max-height:500px;overflow:auto}.task-exist-tips .list-content{flex:1;width:100%}.task-exist-tips .list-task{display:flex;margin-left:34px;margin-right:6px;margin-top:10px}.task-exist-tips .list-task-info{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:12px}.task-exist-tips .list-task-info span:first-child{color:#a7abb5}.calendar-wrapper{flex:1;position:relative}.calendar-wrapper:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background-color:#fff;z-index:1}.calendar-wrapper .tui-full-calendar-popup{box-shadow:none}.calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-section-header .tui-full-calendar-ic-checkbox-checked{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAhFBMVEUAAACLz3CLz3CLz3CKzm6Gy2+Lz3CLz3CL0HCLz3CLz3CLz3CLz3CMz3GLz3CKz3CLz3CL0HCJ0G+KznCN0HCL0HCLz3CKz3CLz3CLz3CLz3CMz3CLz3CLz3GL0XCL0HCN0XKLz3CLz3CMz3CLz3CM0HCM0G+FzHCLz3CKz3CMz3CLz3Bod5CFAAAAK3RSTlMA18RAOQ3s8+Pc0rmyq3tpiUwTgBnovyDMjmNSRjUvJQX5yKB0WisKppuUFLaY7gAAAotJREFUeNrtm+FymkAUhc8KqIAgSkyUtkmsmqa97/9+HWeSudpCd8qZ7E0m+73A9/1gxmXx4IK0nbipvDFTN2lT9JDVToLh6gx/sHQSFLfEFZUEp8IFczFgrv5CTChe/TsxYvfy/IkZy7M/c2KGywDUYkgNIBdDciARUxI0YkqDiZgygRNTHKZiyhRiTAyIATEgBsSAGBADYsAnCJgdmtIywKUAOrsA94QzJyKA95/pbALcPV7piADGryzDB+Rnv3IkAhi/UhMBjF9pQwbk3/A3JRXA+7GjAng/DqEC5v3+dMYE8P6nQsIEzFOPnw7g/QpC+R8K4QJ4f5iAzaA/TMAm6fdvZQgY+wW2fn9A0a66Bee/2xLH8kp/Rr1MB/3jAxaP0ALCPzagzPBCM9r/XcYH3K4BLfD4vw75xwdMbqB4CmaD/vEB2ztc0RD+MQHFg+c85fffDPv9AbPUd6Lz+ydCBDyjh1//6WcCGngK1L8a8lMBJTwFfj8XIC16+SnX7Af9bIDUngLSrwFEwaD/VogA5YheDj7/Wv1MgL9g/8XjpwNk+c8Cyq8BYwqePX46QOkGCmi/BowrqFi/Bvg4wYv6y7e4Kz4Rfj5AnzY/WSlcwHAB5+cD9ivKzwfIbEX4qQA99RB+NkDfO4b5sRAigHjzpP0C6u6D9wuo2z/eL+DvXx8Zv4C4gVd/qABxCeFnApQT5+cDpOP8fICcLv2VxbfjlQZUNh+vU/XbBIj6jQLm9wDWlZgFyOaYHJ3Ix/gDQwyIATEgBsSAGODBfuBgPvEwH7m0YkqLVExJYfsQuPcwdjOf+5kPHoFKjKio0e3Hn90WUCyGt7v3Nf0GsjqXYOR1hh6SJsz8v0mg/AZRXmaRKXtJBwAAAABJRU5ErkJggg==)}.calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-popup-container{word-break:break-all;border:0;box-shadow:0 1px 6px #0003;border-radius:6px}.calendar-wrapper .tui-full-calendar-popup .tui-full-calendar-arrow-top .tui-full-calendar-popup-arrow-border{top:-8px;border-bottom-color:#d9d9d980}.calendar-wrapper .tui-full-calendar-dropdown-menu{border-color:#e8e8e8;width:calc(100% - 14px)}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-title,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-calendar-dot{display:none}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-icon.tui-full-calendar-ic-date{background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5NjcwNjA3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2Mzg4IiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk2MCAxMjhIODMzYzAtNTMtNDMtOTYtOTYtOTZoLTE2Yy01MyAwLTk2IDQzLTk2IDk2SDQwMGMwLTI2LjUtMTAuNy01MC41LTI4LjEtNjcuOUMzNTQuNSA0Mi43IDMzMC41IDMyIDMwNCAzMmgtMTZjLTUzIDAtOTYgNDMtOTYgOTZINjRjLTM1LjMgMC02NCAyOC42LTY0IDY0djczNmMwIDM1LjMgMjguNyA2NCA2NCA2NGg4OTZjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTkyYzAtMzUuNC0yOC43LTY0LTY0LTY0eiBtLTI3MSA4YzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzY5My41IDIzNyA2ODkgMjI3IDY4OSAyMTZ2LTgweiBtLTQzMyAwYzAtMjIuMSAxNy45LTQwIDQwLTQwczQwIDE3LjkgNDAgNDB2ODBjMCAyMi4xLTE3LjkgNDAtNDAgNDAtMTEgMC0yMS00LjUtMjguMy0xMS43QzI2MC41IDIzNyAyNTYgMjI3IDI1NiAyMTZ2LTgweiBtNzA0IDc2MGMwIDE3LjctMTQuMyAzMi0zMiAzMkg5NmMtMTcuNyAwLTMyLTE0LjMtMzItMzJWNDQ4aDg5NnY0NDh6IiBwLWlkPSIxNjM4OSIgZmlsbD0iIzUxNTE1MSI+PC9wYXRoPjwvc3ZnPg==);background-size:contain}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-content{padding-left:0}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section{display:flex;justify-content:space-between;margin-bottom:10px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item{height:36px;line-height:34px;border-color:#e8e8e8;border-radius:4px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-section .tui-full-calendar-popup-section-item input{height:34px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-title input{width:100%}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date{width:210px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-start-date .tui-full-calendar-content,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-end-date .tui-full-calendar-content{padding-left:8px}.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-popup-location,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-private,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-allday,.calendar-wrapper .tui-full-calendar-popup-creation .tui-full-calendar-section-state{display:none}.calendar-wrapper .tui-full-calendar-popup-task .priority{color:#fff;padding:2px 4px;border-radius:4px;margin-right:6px}.calendar-wrapper .tui-full-calendar-popup-task .overdue{color:#f5222d;background:#fff1f0;border:1px solid #ffa39e;padding:1px 3px;border-radius:4px;margin-right:6px}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-calendar-dot,.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-priority{opacity:0}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-edit{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzY4MTg5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjExMTkiIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48cGF0aCBkPSJNODMzLjQyODU3MTY4IDYySDE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzJ2NjQyLjg1NzE0MzM2YTEyOC41NzE0MjgzMiAxMjguNTcxNDI4MzIgMCAwIDAgMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMmg2NDIuODU3MTQzMzZhMTI4LjU3MTQyODMyIDEyOC41NzE0MjgzMiAwIDAgMCAxMjguNTcxNDI4MzItMTI4LjU3MTQyODMyVjE5MC41NzE0MjgzMmExMjguNTcxNDI4MzIgMTI4LjU3MTQyODMyIDAgMCAwLTEyOC41NzE0MjgzMi0xMjguNTcxNDI4MzJ6IG02NC4yODU3MTQxNiA3NzEuNDI4NTcxNjhhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEtNjQuMjg1NzE0MTcgNjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyYTY0LjI4NTcxNDE2IDY0LjI4NTcxNDE2IDAgMCAxLTY0LjI4NTcxNDE2LTY0LjI4NTcxNDE2VjE5MC41NzE0MjgzMmE2NC4yODU3MTQxNiA2NC4yODU3MTQxNiAwIDAgMSA2NC4yODU3MTQxNy02NC4yODU3MTQxNmg2NDIuODU3MTQzMzVhNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTYgMCAwIDEgNjQuMjg1NzE0MTYgNjQuMjg1NzE0MTd6IiBwLWlkPSIxMTIwIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PHBhdGggZD0iTTE5MC41NzE0MjgzMiAyNTQuODU3MTQyNDhoNjQuMjg1NzE0MTZ2NjQuMjg1NzE1MDRIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgMjU0Ljg1NzE0MjQ4aDQ1MHY2NC4yODU3MTUwNEgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA0NDcuNzE0Mjg1ODRoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNDQ3LjcxNDI4NTg0aDQ1MHY2NC4yODU3MTQxNkgzMTkuMTQyODU3NTJ6TTE5MC41NzE0MjgzMiA2NDAuNTcxNDI4MzJoNjQuMjg1NzE0MTZ2NjQuMjg1NzE0MTZIMTkwLjU3MTQyODMyek0zMTkuMTQyODU3NTIgNjQwLjU3MTQyODMyaDMyMS40Mjg1NzA4djY0LjI4NTcxNDE2SDMxOS4xNDI4NTc1MnoiIHAtaWQ9IjExMjEiIGZpbGw9IiM1MTUxNTEiPjwvcGF0aD48L3N2Zz4=)}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-ic-delete{top:-2px;background-image:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjIzODU5MzMwMTc2IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijc5MiIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik04OTIuMjg4IDI1NmgtMTkxLjE2OEEyMDIuMjQgMjAyLjI0IDAgMCAwIDUwOS42MzIgNjIuMDggMjAxLjIxNiAyMDEuMjE2IDAgMCAwIDMxOC44NDggMjU2SDEyOGMtMTguNjg4IDAtNjYuMDQ4LTQuMjI0LTY2LjA0OCAyNC43NjhDNjEuOTUyIDMyNy43NDQgMTA5LjM3NiAzMjAgMTI4IDMyMGg2NHY1MTJhMTQ2LjQ5NiAxNDYuNDk2IDAgMCAwIDEyNy40MjQgMTI4aDM4Mi4yNzJBMTUwLjAxNiAxNTAuMDE2IDAgMCAwIDgzMiA4MzJsLTMuMzkyLTUxMmg2NGMxOC4zNjggMCA2NS4wMjQgMS40NzIgNjUuMDI0LTM5Ljc0NEE3Mi4zODQgNzIuMzg0IDAgMCAwIDg5Mi4yODggMjU2ek01MDkuNjMyIDEyOC41MTJBMTM4LjE3NiAxMzguMTc2IDAgMCAxIDYzNy40NCAyNTZIMzgyLjU5MmExMzcuOTIgMTM3LjkyIDAgMCAxIDEyNy4wNC0xMjcuNDg4ek03NjggODMyYTk3Ljk4NCA5Ny45ODQgMCAwIDEtNjYuODggNjRIMzE4Ljg0OGE5My41NjggOTMuNTY4IDAgMCAxLTY0LTY0VjMyMEg3Njh2NTEyeiBtLTM4NS40MDgtNjRWNTEyYzAtMTguNDk2IDAuOTYtNjAuOTkyIDM2LjczNi02MC45OTIgMjcuMzI4IDAgMjYuNDk2IDQzLjAwOCAyNi45NDQgNjAuOTkydjI1NmMwIDE4LjQ5Ni02LjQgMjAuMDMyLTI0Ljk2IDIwLjAzMnMtMzguNzItMS41MzYtMzguNzItMjAuMDMyeiBtMTkxLjE2OCAwVjUxMmE2NCA2NCAwIDAgMSAyMy44MDgtNjAuOTkyYzQyLjQzMiAwIDM5LjM2IDQzLjAwOCAzOS44NzIgNjAuOTkydjI1NmMwIDE4LjQ5Ni0xOS41ODQgMjAuMDMyLTM3Ljk1MiAyMC4wMzJzLTI1Ljc5Mi0xLjUzNi0yNS43OTItMjAuMDMyeiIgcC1pZD0iNzkzIiBmaWxsPSIjNTE1MTUxIj48L3BhdGg+PC9zdmc+)}.calendar-wrapper .tui-full-calendar-popup-task .tui-full-calendar-popup-detail-item-separate{padding-left:22px}.calendar-wrapper .tui-datepicker{border-color:#e8e8e8}.calendar-wrapper .tui-datepicker .tui-calendar th,.calendar-wrapper .tui-datepicker .tui-calendar td{height:32px}.calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-prev-month.tui-calendar-date,.calendar-wrapper .tui-datepicker .tui-calendar .tui-calendar-next-month.tui-calendar-date{visibility:visible}.calendar-wrapper .tui-datepicker .tui-datepicker-body .tui-timepicker,.calendar-wrapper .tui-datepicker .tui-datepicker-footer .tui-timepicker{padding:16px 46px 16px 47px}.calendar-wrapper .tui-full-calendar-week-container{min-height:100px}body.window-portrait .calendar-wrapper .tui-full-calendar-popup{font-weight:400}body.window-portrait .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-icon{width:14px;height:14px;background-size:14px}body.window-portrait .calendar-wrapper .tui-full-calendar-section-button>button .tui-full-calendar-content{font-size:14px}@media (max-width: 640px){body.window-portrait .calendar-wrapper .tui-full-calendar-popup-arrow{display:none}}.dialog-droup-word-chain .ivu-modal-body{max-height:calc(100vh - 260px);overflow:auto;padding-top:0!important;padding-right:0!important}.dialog-droup-word-chain .chain-modal-header{height:100%;display:flex;align-items:center;justify-content:space-between;position:relative;font-weight:500}.dialog-droup-word-chain .chain-modal-header .chain-modal-close{color:#606266}.dialog-droup-word-chain .chain-modal-header .chain-modal-title{position:absolute;top:0;bottom:0;left:100px;right:100px;display:flex;justify-content:center;align-items:center}.dialog-droup-word-chain .chain-modal-header .chain-modal-title>span{font-size:16px;color:#303133;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-droup-word-chain .chain-modal-header .chain-modal-submit{color:#84c56a;display:flex;align-items:center}.dialog-droup-word-chain .chain-modal-header .chain-modal-submit .submit-loading{width:14px;height:14px;margin-right:6px}.dialog-droup-word-chain .chain-modal-header .chain-modal-submit.disabled{color:#9c9c9c}.dialog-droup-word-chain .word-chain-body{display:flex;flex-direction:column;height:100%;max-height:calc(100vh - 265px)}.dialog-droup-word-chain .word-chain-body .source{margin-right:32px}.dialog-droup-word-chain .word-chain-body .source span{color:#84c56a}.dialog-droup-word-chain .word-chain-body .initiate{gap:5px;white-space:nowrap;text-overflow:ellipsis;overflow-y:auto;min-height:26px;margin:10px 32px 20px 0}.dialog-droup-word-chain .word-chain-body .initiate .ivu-input{border-color:#fff!important}.dialog-droup-word-chain .word-chain-body .initiate .avatar-wrapper{margin:0 4px 4px}.dialog-droup-word-chain .word-chain-body .initiate>span,.dialog-droup-word-chain .word-chain-body .initiate>div{float:left}.dialog-droup-word-chain .word-chain-body .textarea{padding-right:32px}.dialog-droup-word-chain .word-chain-body ul{margin:20px 0;list-style-type:none;flex:1;overflow:auto;padding-right:32px}.dialog-droup-word-chain .word-chain-body ul li{display:flex;gap:10px;padding:5px 0;color:#7f7f7f}.dialog-droup-word-chain .word-chain-body ul li span{min-width:28px;height:28px;line-height:28px;margin-top:2px;background-color:#f2f2f2;border-radius:100%;text-align:center;font-size:12px}.dialog-droup-word-chain .word-chain-body ul li .taskfont{font-size:28px;cursor:pointer;line-height:34px;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:scale(.92)}.dialog-droup-word-chain .word-chain-body ul li .taskfont.disabled{opacity:.5;cursor:no-drop}.dialog-droup-word-chain .word-chain-body ul li.add .taskfont{line-height:32px;transform:scale(1)}.dialog-droup-word-chain .word-chain-body .switch-row{padding:10px 5px;margin:0 32px 0 0;display:flex;border-top:1px solid #f0f0f0}.dialog-droup-word-chain .word-chain-body .switch-row span.label{flex:1}.dialog-droup-word-chain .word-chain-body .switch-row:last-child{border-bottom:1px solid #f0f0f0}body.window-portrait .dialog-droup-word-chain .ivu-modal-fullscreen .ivu-modal-body{padding-top:10px!important;max-height:100%}body.window-portrait .dialog-droup-word-chain .ivu-modal-fullscreen .word-chain-body{max-height:100%}body.window-portrait .dialog-droup-word-chain .ivu-modal-fullscreen .word-chain-body ul{flex:none}body.dark-mode-reverse .ivu-btn-primary,body.dark-mode-reverse .ivu-badge-count,body.dark-mode-reverse .ivu-btn-grey,body.dark-mode-reverse .ivu-btn-error,body.dark-mode-reverse .ivu-btn-warning,body.dark-mode-reverse .common-right-bottom .common-right-bottom-link{color:#000}body.dark-mode-reverse .ivu-btn-grey{background-color:#c7c7c7;border-color:#c7c7c7}body.dark-mode-reverse .ivu-btn-grey:hover{background-color:#d5d5d5;border-color:#d5d5d5}body.dark-mode-reverse .ivu-btn-grey:focus{box-shadow:none}body.dark-mode-reverse .ivu-btn-error{background-color:#ff9d84;border-color:#ff9d84}body.dark-mode-reverse .ivu-btn-error:hover{background-color:#ffbdab;border-color:#ffbdab}body.dark-mode-reverse .ivu-btn-error:focus{box-shadow:none}body.dark-mode-reverse .ivu-modal-mask{background-color:#e6e6e699}body.dark-mode-reverse .ivu-modal-content{box-shadow:0 4px 12px #ffffff26}body.dark-mode-reverse .ivu-message-notice-content{box-shadow:0 1px 6px #fff3;border:1px solid #e3e8ed}body.dark-mode-reverse .ivu-select-dropdown,body.dark-mode-reverse .ivu-notice-notice,body.dark-mode-reverse .ivu-tooltip-inner,body.dark-mode-reverse .ivu-poptip-inner{border:1px solid #e3e8ed;box-shadow:none}body.dark-mode-reverse .el-dropdown-menu{border-color:#e3e8ed;box-shadow:0 2px 12px #ffffff1a}body.dark-mode-reverse .el-tooltip__popper.is-light{border:1px solid #e3e8ed;box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .common-avatar.avatar-wrapper .avatar-box .avatar-char{color:#000}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a{color:#323232}body.dark-mode-reverse .common-drawer-overlay .overlay-body .overlay-close>a:hover{color:#000}body.dark-mode-reverse .file-content .content-body .tox .tox-edit-area__iframe,body.dark-mode-reverse .file-preview .content-body .tox .tox-edit-area__iframe{background-color:#000}body.dark-mode-reverse .file-content .content-body .teditor-loadedstyle .tox-sidebar-wrap,body.dark-mode-reverse .file-preview .content-body .teditor-loadedstyle .tox-sidebar-wrap{box-shadow:none}body.dark-mode-reverse .minder-editor-container .quickbar{border:1px solid #e3e8ed!important;box-shadow:3px 3px 10px #fff3!important}body.dark-mode-reverse .project-panel .project-titbox .project-icons>li.project-icon.active{color:#000}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{color:#ed4014;background-color:transparent}body.dark-mode-reverse .project-panel .project-table .project-table-body .task-row>div.row-time .task-time.today{color:#f90;background-color:transparent}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-avatar .icon-avatar{color:#1c1917}body.dark-mode-reverse .dialog-wrapper .dialog-nav .nav-wrapper .dialog-block .dialog-title .main-title>h2{color:#555}body.dark-mode-reverse .dialog-wrapper .dialog-position .position-label{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head{background-color:#e1e1e1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-reply .reply-desc{color:#fff}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-record,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-meeting{color:#fff!important}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause{border-bottom:1px solid #7f7f7f;border-top:1px solid #7f7f7f}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li{background-color:#f3f3f380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#f3f3f3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head{background-color:#84c56a}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre a{color:#0027a1}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention.file,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-text>pre .mention[data-denotation-char="~"]{color:#0027a1!important}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li{background-color:#b2ff9380}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li.hasme{background-color:#b2ff93}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users:before{background-color:#000000b3}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-emoji>li .emoji-users>ul>li{color:#000}body.dark-mode-reverse .dialog-group-info .group-info-user>ul>li .user-tag{color:#1c1917}body.dark-mode-reverse .file-icon:before{background-image:url(/js/build/other.0cd5a04c.svg)}body.dark-mode-reverse .file-icon.archive:before{background-image:url(/js/build/archive.12fcb5b5.svg)}body.dark-mode-reverse .file-icon.cad:before{background-image:url(/js/build/cad.868e2ca7.svg)}body.dark-mode-reverse .file-icon.code:before{background-image:url(/js/build/code.1f28156e.svg)}body.dark-mode-reverse .file-icon.document:before{background-image:url(/js/build/document.7a75f110.svg)}body.dark-mode-reverse .file-icon.drawio:before{background-image:url(/js/build/drawio.0122e3f0.svg)}body.dark-mode-reverse .file-icon.excel:before{background-image:url(/js/build/excel.03422f0b.svg)}body.dark-mode-reverse .file-icon.flow:before{background-image:url(/js/build/drawio.0122e3f0.svg)}body.dark-mode-reverse .file-icon.folder:before{background-image:url(/js/build/folder.f3036060.svg)}body.dark-mode-reverse .file-icon.folder.share:before{background-image:url(/js/build/folder-share.08f619a2.svg)}body.dark-mode-reverse .file-icon.media:before{background-image:url(/js/build/media.59a8ab73.svg)}body.dark-mode-reverse .file-icon.mind:before{background-image:url(/js/build/mind.8663d6b3.svg)}body.dark-mode-reverse .file-icon.ofd:before{background-image:url(/js/build/ofd.50e43c45.svg)}body.dark-mode-reverse .file-icon.pdf:before{background-image:url(/js/build/pdf.13216727.svg)}body.dark-mode-reverse .file-icon.picture:before{background-image:url(/js/build/picture.7c0acca9.svg)}body.dark-mode-reverse .file-icon.ppt:before{background-image:url(/js/build/ppt.0788eae8.svg)}body.dark-mode-reverse .file-icon.sheet:before{background-image:url(/js/build/sheet.74a69469.svg)}body.dark-mode-reverse .file-icon.tif:before{background-image:url(/js/build/tif.37ae91f2.svg)}body.dark-mode-reverse .file-icon.txt:before{background-image:url(/js/build/txt.13b9241a.svg)}body.dark-mode-reverse .file-icon.updir:before{background-image:url(/js/build/updir.39b387be.svg)}body.dark-mode-reverse .file-icon.upload:before{background-image:url(/js/build/upload.c7a709a7.svg)}body.dark-mode-reverse .file-icon.word:before{background-image:url(/js/build/word.41e80094.svg)}body.dark-mode-reverse .file-icon.wps:before{background-image:url(/js/build/wps.045449a7.svg)}body.dark-mode-reverse .page-login .login-body .login-box{box-shadow:none}body.dark-mode-reverse .page-manage .manage-box-menu .manage-box-dropdown .manage-box-title.menu-visible{box-shadow:0 1px 6px #fff3}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-title{color:#0009;font-size:12px}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .block-num{color:#000}body.dark-mode-reverse .page-dashboard .dashboard-wrapper .dashboard-block>li .block-data .taskfont{color:#000000b3}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .icon-avatar{color:#1c1917}body.dark-mode-reverse .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.dialog>li .dialog-box .dialog-text{color:#555}body.dark-mode-reverse .page-file .file-wrapper .file-navigator .ivu-btn{color:#000}body.dark-mode-reverse .page-index .page-warp{background-color:#efefef}body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-github,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-uplog,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-1 .header-right-1-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-2 .header-right-2-dropdown,body.dark-mode-reverse .page-index .page-warp .page-header .header-nav .header-nav-box .header-right-3,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-title,body.dark-mode-reverse .page-index .page-warp .page-header .header-content .header-tips{color:#000}body.dark-mode-reverse .page-index .page-warp .page-header-bottom{background-color:#efefef}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor{color:#ccc}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .ql-container .ql-editor.ql-blank:before{color:#333}body.dark-mode-reverse .chat-input-box .chat-input-wrapper .chat-toolbar>li.chat-send .taskfont{color:#000}body.dark-mode-reverse .chat-input-record-transfer.cancel,body.dark-mode-reverse .ql-mention-list-container .ql-mention-list-item .mention-item-at{color:#000}body.dark-mode-reverse .common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-search .search-selected ul>li .icon-avatar{color:#1c1917}body.dark-mode-reverse .common-user-select-modal .ivu-modal .ivu-modal-body .user-modal-list ul>li .user-modal-avatar .icon-avatar{color:#1c1917} diff --git a/public/js/build/application.b8116394.js b/public/js/build/application.a386c7fb.js similarity index 97% rename from public/js/build/application.b8116394.js rename to public/js/build/application.a386c7fb.js index 87571a9d5..a04338b18 100644 --- a/public/js/build/application.b8116394.js +++ b/public/js/build/application.a386c7fb.js @@ -1 +1 @@ -import{m as h}from"./vuex.cc7cb26e.js";import{D as v}from"./index.04b74879.js";import{n as r,U as b}from"./app.f8a6fa5e.js";import{C as g,T as $,R as y}from"./CheckinExport.b0d38216.js";import D from"./checkin.343cc0f9.js";import{l as n}from"./le5le-store.bd86c9e9.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.059db614.js";import"./ReportEdit.9f1df008.js";import"./ReportDetail.e430db44.js";var k=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[t.type=="all"||t.type=="ChatGPT"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("ChatGPT")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"openai_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"OpenAI API Key"},model:{value:t.formData.openai_key,callback:function(e){t.$set(t.formData,"openai_key",e)},expression:"formData.openai_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u8BBF\u95EEOpenAI\u7F51\u7AD9\u67E5\u770B"))+": "),a("a",{attrs:{href:"https://platform.openai.com/account/api-keys",target:"_blank"}},[t._v("https://platform.openai.com/account/api-keys")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"openai_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.openai_model,callback:function(e){t.$set(t.formData,"openai_model",e)},expression:"formData.openai_model"}},[a("Option",{attrs:{value:"gpt-3.5-turbo"}},[t._v("gpt-3.5-turbo")]),a("Option",{attrs:{value:"gpt-4"}},[t._v("gpt-4")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://platform.openai.com/docs/models",target:"_blank"}},[t._v("https://platform.openai.com/docs/models")])])],1),a("FormItem",{attrs:{label:t.$L("\u4F7F\u7528\u4EE3\u7406"),prop:"openai_agency"}},[a("Input",{attrs:{maxlength:500,placeholder:t.$L("\u652F\u6301 http \u6216 socks \u4EE3\u7406")},model:{value:t.formData.openai_agency,callback:function(e){t.$set(t.formData,"openai_agency",e)},expression:"formData.openai_agency"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982\uFF1Ahttp://proxy.com \u6216 socks5://proxy.com")))])],1)],1)]):t._e(),t.type=="all"||t.type=="Claude"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("Claude")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"Token",prop:"claude_token"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"Claude Token"},model:{value:t.formData.claude_token,callback:function(e){t.$set(t.formData,"claude_token",e)},expression:"formData.claude_token"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u767B\u5F55"))+" "),a("a",{attrs:{href:"https://claude.ai",target:"_blank"}},[t._v("https://claude.ai")]),t._v(" "+t._s(t.$L("\u67E5\u770B Cookie \u4E2D\u7684 sessionKey \u4FBF\u662F")))])],1),a("FormItem",{attrs:{label:t.$L("\u4F7F\u7528\u4EE3\u7406"),prop:"claude_agency"}},[a("Input",{attrs:{maxlength:500,placeholder:t.$L("\u652F\u6301 http \u6216 socks \u4EE3\u7406")},model:{value:t.formData.claude_agency,callback:function(e){t.$set(t.formData,"claude_agency",e)},expression:"formData.claude_agency"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982\uFF1Ahttp://proxy.com \u6216 socks5://proxy.com")))])],1)],1)]):t._e(),t.type=="all"||t.type=="Wenxin"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("\u6587\u5FC3\u4E00\u8A00 (Wenxin)")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"wenxin_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.wenxin_key,callback:function(e){t.$set(t.formData,"wenxin_key",e)},expression:"formData.wenxin_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3#3-%E8%8E%B7%E5%8F%96%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3")])])],1),a("FormItem",{attrs:{label:"API Secret",prop:"wenxin_secret"}},[a("Input",{attrs:{maxlength:500,type:"password",placeholder:"API Secret"},model:{value:t.formData.wenxin_secret,callback:function(e){t.$set(t.formData,"wenxin_secret",e)},expression:"formData.wenxin_secret"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3#3-%E8%8E%B7%E5%8F%96%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"wenxin_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.wenxin_model,callback:function(e){t.$set(t.formData,"wenxin_model",e)},expression:"formData.wenxin_model"}},[a("Option",{attrs:{value:"completions_pro"}},[t._v("ERNIE-Bot 4.0")]),a("Option",{attrs:{value:"completions"}},[t._v("ERNIE-Bot")]),a("Option",{attrs:{value:"eb-instant"}},[t._v("ERNIE-Bot-turbo")]),a("Option",{attrs:{value:"llama_2_7b"}},[t._v("Llama-2-7b-chat")]),a("Option",{attrs:{value:"llama_2_13b"}},[t._v("Llama-2-13B-Chat")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://cloud.baidu.com/doc/WENXINWORKSHOP/s/vliu6vq7u",target:"_blank"}},[t._v("https://cloud.baidu.com/doc/WENXINWORKSHOP/s/vliu6vq7u")])])],1)],1)]):t._e(),t.type=="all"||t.type=="Qianwen"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("\u901A\u4E49\u5343\u95EE (Qianwen)")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"qianwen_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.qianwen_key,callback:function(e){t.$set(t.formData,"qianwen_key",e)},expression:"formData.qianwen_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://help.aliyun.com/document_detail/611472.html",target:"_blank"}},[t._v("https://help.aliyun.com/document_detail/611472.html")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"qianwen_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.qianwen_model,callback:function(e){t.$set(t.formData,"qianwen_model",e)},expression:"formData.qianwen_model"}},[a("Option",{attrs:{value:"qwen-v1"}},[t._v("qwen-v1")]),a("Option",{attrs:{value:"qwen-plus-v1"}},[t._v("qwen-plus-v1")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://help.aliyun.com/document_detail/2399481.html",target:"_blank"}},[t._v("https://help.aliyun.com/document_detail/2399481.html")])])],1)],1)]):t._e(),t.type=="all"||t.type=="Gemini"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("Gemini")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"gemini_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.gemini_key,callback:function(e){t.$set(t.formData,"gemini_key",e)},expression:"formData.gemini_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://ai.google.dev/tutorials/setup?hl=zh-cn",target:"_blank"}},[t._v("https://ai.google.dev/tutorials/setup?hl=zh-cn")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"gemini_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.gemini_model,callback:function(e){t.$set(t.formData,"gemini_model",e)},expression:"formData.gemini_model"}},[a("Option",{attrs:{value:"gemini-1.0-pro"}},[t._v("gemini-1.0-pro")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://ai.google.dev/models?hl=zh-cn",target:"_blank"}},[t._v("https://ai.google.dev/models?hl=zh-cn")])])],1),a("FormItem",{attrs:{label:t.$L("\u4F7F\u7528\u4EE3\u7406"),prop:"gemini_agency"}},[a("Input",{attrs:{maxlength:500,placeholder:t.$L("\u652F\u6301 http \u6216 socks \u4EE3\u7406")},model:{value:t.formData.gemini_agency,callback:function(e){t.$set(t.formData,"gemini_agency",e)},expression:"formData.gemini_agency"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982\uFF1Ahttp://proxy.com \u6216 socks5://proxy.com")))])],1)],1)]):t._e()]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},L=[];const w={name:"SystemAibot",props:{type:{default:"all"}},data(){return{loadIng:0,formData:{},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/aibot?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},m={};var x=r(w,k,L,!1,C,null,null,null);function C(t){for(let s in m)this[s]=m[s]}var S=function(){return x.exports}(),I=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u7BA1\u7406\u6210\u5458MAC\u5730\u5740")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{staticClass:"block-setting-advance",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740")))])],1),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65B9\u5F0F"),prop:"modes"}},[a("CheckboxGroup",{model:{value:t.formData.modes,callback:function(e){t.$set(t.formData,"modes",e)},expression:"formData.modes"}},[a("Checkbox",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"manual"}},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),t._e()],1),t.formData.modes.includes("auto")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230"))+": "+t._s(t.$L("\u8BE6\u60C5\u770B\u4E0B\u6587\u5B89\u88C5\u8BF4\u660E")))]):t._e(),t.formData.modes.includes("manual")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u6307\u4EE4\u7B7E\u5230")))]):t._e(),t.formData.modes.includes("location")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u4F4D\u7F6E\u7B7E\u5230")))]):t._e()],1)]:t._e()],2)]),t.formData.open==="open"&&t.formData.modes.includes("auto")?[a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("\u81EA\u52A8\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5"))+":")]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mac":""}}):t._e()],1)],1)},A=[];const F={name:"SystemCheckin",components:{CheckinExport:g,TeamManagement:$,DrawerOverlay:v},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:"",modes:[]},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.formData.cmd="",this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s;try{this.formData.cmd=atob(this.formData.cmd)}catch{}this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})}}},c={};var E=r(F,I,A,!1,T,null,null,null);function T(t){for(let s in c)this[s]=c[s]}var R=function(){return E.exports}(),O=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("AgoraIO \u58F0\u7F51")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E")))]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E"))+": "+t._s(t.$L("\u7528\u4E8E\u751F\u6210\u4F1A\u8BAE\u9891\u9053\u3002")))]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+": "),a("a",{attrs:{href:"https://docportal.shengwang.cn/cn/Agora%20Platform/token_server#%E8%8E%B7%E5%8F%96-app-id-%E5%8F%8A-app-%E8%AF%81%E4%B9%A6",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1),a("div",{staticClass:"clearfix"}),a("Divider",{attrs:{orientation:"left"}},[t._v("RESTful Api\uFF08"+t._s(t.$L("\u53EF\u9009"))+"\uFF09")]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v("RESTful Api: "+t._s(t.$L("\u7528\u4E8E\u9891\u9053\u7BA1\u7406\u3002"))+" ("+t._s(t.$L("\u6BD4\u5982"))+": "+t._s(t.$L("\u7ED3\u675F\u4F1A\u8BAE\u5BA4"))+")")]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://doc.shengwang.cn/doc/rtc/restful/get-started/enable-service#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7-id-%E5%92%8C%E5%AE%A2%E6%88%B7%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"key ",prop:"api_key"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.api_key,callback:function(e){t.$set(t.formData,"api_key",e)},expression:"formData.api_key"}})],1),a("FormItem",{attrs:{label:"secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.api_secret,callback:function(e){t.$set(t.formData,"api_secret",e)},expression:"formData.api_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},P=[];const N={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},p={};var B=r(N,O,P,!1,U,null,null,null);function U(t){for(let s in p)this[s]=p[s]}var M=function(){return B.exports}(),G=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("LDAP")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},j=[];const q={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},d={};var z=r(q,G,j,!1,K,null,null,null);function K(t){for(let s in d)this[s]=d[s]}var W=function(){return z.exports}(),J=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E"))+":"),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{staticClass:"block-setting-msg-unread",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u586B\u5199-1\u5219\u4E0D\u901A\u77E5\uFF0C\u8BEF\u5DEE\xB110\u5206\u949F")))])],1):t._e()],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},V=[];const H={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},u={};var Q=r(H,J,V,!1,X,null,null,null);function X(t){for(let s in u)this[s]=u[s]}var Z=function(){return Q.exports}(),Y=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},tt=[];const at={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},_={};var et=r(at,Y,tt,!1,st,null,null,null);function st(t){for(let s in _)this[s]=_[s]}var ot=function(){return et.exports}(),it=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"page-apply"},[a("PageTitle",{attrs:{title:t.$L("\u5E94\u7528")}}),a("div",{staticClass:"apply-wrapper"},[a("div",{staticClass:"apply-head"},[a("div",{staticClass:"apply-nav"},[a("h1",[t._v(t._s(t.$L("\u5E94\u7528")))])])]),a("div",{staticClass:"apply-content"},[t._l(t.applyListTypes,function(e){return[t.isExistAdminList?a("div",{staticClass:"apply-row-title"},[t._v(" "+t._s(e=="base"?t.$L("\u5E38\u7528"):t.$L("\u7BA1\u7406\u5458"))+" ")]):t._e(),a("Row",{attrs:{gutter:16}},t._l(t.applyList,function(o,i){return(e=="base"&&!o.type||o.type==e)&&o.show!==!1?a("Col",{key:i,attrs:{xs:{span:6},sm:{span:6},lg:{span:6},xl:{span:6},xxl:{span:3}}},[a("div",{staticClass:"apply-col"},[a("div",{on:{click:function(l){return t.applyClick(o)}}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",class:t.getLogoClass(o.value)}),a("div",{staticClass:"apply-box-top-report",on:{click:function(l){return l.stopPropagation(),t.applyClick(o,"badge")}}},[t.showBadge(o,"approve")?a("Badge",{attrs:{"overflow-count":999,count:t.approveUnreadNumber}}):t._e(),t.showBadge(o,"report")?a("Badge",{attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),a("p",[t._v(t._s(t.$L(o.label)))])])])]):t._e()}),1)]})],2)]),a("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(e){t.workReportShow=e},expression:"workReportShow"}},[t.workReportShow?a("Report",{on:{"on-read":function(e){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.workReportTabs,callback:function(e){t.workReportTabs=e},expression:"workReportTabs"}}):t._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.aibotShow,callback:function(e){t.aibotShow=e},expression:"aibotShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("AI \u673A\u5668\u4EBA"))+" "),t.userIsAdmin?a("p",{on:{click:function(e){t.aibotType=t.aibotType==1?2:1}}},[t._v(" "+t._s(t.aibotType==1?t.$L("\u673A\u5668\u4EBA\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")]):t._e()]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[t.aibotType==1?a("ul",{staticClass:"ivu-modal-wrap-ul"},t._l(t.aibotList,function(e,o){return a("li",{key:o},[a("img",{staticClass:"apply-icon",attrs:{src:e.src}}),a("h4",[t._v(t._s(e.label))]),a("p",{staticClass:"desc",on:{click:function(i){return t.openDetail(e.desc)}}},[t._v(t._s(e.desc))]),a("p",{staticClass:"btn",on:{click:function(i){return t.onGoToChat(e.value)}}},[t._v(t._s(t.$L("\u5F00\u59CB\u804A\u5929")))]),t.aibotDialogSearchLoad==e.value?a("div",{staticClass:"load"},[a("Loading")],1):t._e()])}),0):a("Tabs",{model:{value:t.aibotTabAction,callback:function(e){t.aibotTabAction=e},expression:"aibotTabAction"}},[a("TabPane",{attrs:{label:"ChatGPT",name:"opanai"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="opanai"?a("SystemAibot",{attrs:{type:"ChatGPT"}}):t._e()],1)]),a("TabPane",{attrs:{label:"Gemini",name:"gemini"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="gemini"?a("SystemAibot",{attrs:{type:"Gemini"}}):t._e()],1)]),a("TabPane",{attrs:{label:"Claude",name:"claude"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="claude"?a("SystemAibot",{attrs:{type:"Claude"}}):t._e()],1)]),a("TabPane",{attrs:{label:t.$L("\u6587\u5FC3\u4E00\u8A00"),name:"wenxin"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="wenxin"?a("SystemAibot",{attrs:{type:"Wenxin"}}):t._e()],1)]),a("TabPane",{attrs:{label:t.$L("\u901A\u4E49\u5343\u95EE"),name:"qianwen"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="qianwen"?a("SystemAibot",{attrs:{type:"Qianwen"}}):t._e()],1)])],1)],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.signInShow,callback:function(e){t.signInShow=e},expression:"signInShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("\u7B7E\u5230\u7BA1\u7406"))+" "),t.userIsAdmin?a("p",{on:{click:function(e){t.signInType=t.signInType==1?2:1}}},[t._v(" "+t._s(t.signInType==1?t.$L("\u7B7E\u5230\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")]):t._e()]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[t.signInType==1?a("Checkin"):a("SystemCheckin")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.meetingShow,callback:function(e){t.meetingShow=e},expression:"meetingShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("\u4F1A\u8BAE"))+" "),a("p",{on:{click:function(e){t.meetingType=t.meetingType==1?2:1}}},[t._v(" "+t._s(t.meetingType==1?t.$L("\u4F1A\u8BAE\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")])]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[t.meetingType==1?a("ul",{staticClass:"ivu-modal-wrap-ul"},[a("li",[a("div",{staticClass:"apply-icon no-dark-content meeting"}),a("h4",[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE")))]),a("p",{staticClass:"desc",on:{click:function(e){return t.openDetail(t.meetingDescs.add)}}},[t._v(" "+t._s(t.meetingDescs.add)+" ")]),a("p",{staticClass:"btn",on:{click:function(e){return t.onMeeting("createMeeting")}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4F1A\u8BAE")))])]),a("li",[a("div",{staticClass:"apply-icon no-dark-content meeting-join"}),a("h4",[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))]),a("p",{staticClass:"desc",on:{click:function(e){return t.openDetail(t.meetingDescs.join)}}},[t._v(t._s(t.meetingDescs.join))]),a("p",{staticClass:"btn",on:{click:function(e){return t.onMeeting("joinMeeting")}}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])])]):a("SystemMeeting")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.ldapShow,callback:function(e){t.ldapShow=e},expression:"ldapShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("LDAP \u8BBE\u7F6E"))+" ")]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemThirdAccess")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.mailShow,callback:function(e){t.mailShow=e},expression:"mailShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("\u90AE\u4EF6\u901A\u77E5"))+" ")]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemEmailSetting")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.appPushShow,callback:function(e){t.appPushShow=e},expression:"appPushShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("APP \u63A8\u9001"))+" ")]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemAppPush")],1)])]),a("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(e){t.scanLoginShow=e},expression:"scanLoginShow"}},[a("div",{staticClass:"mobile-scan-login-box"},[a("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),a("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),a("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)]),a("UserSelect",{ref:"wordChainAndVoteRef",attrs:{"multiple-max":1,title:t.sendType=="vote"?t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u6295\u7968"):t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u63A5\u9F99"),"before-submit":t.goWordChainAndVote,"show-select-all":!1,"only-group":!0,"show-dialog":"",module:""},model:{value:t.sendData,callback:function(e){t.sendData=e},expression:"sendData"}})],1)},rt=[];const lt={components:{UserSelect:b,DrawerOverlay:v,Report:y,SystemAibot:S,SystemCheckin:R,Checkin:D,SystemMeeting:M,SystemThirdAccess:W,SystemEmailSetting:Z,SystemAppPush:ot},data(){return{applyList:[],applyListTypes:["base","admin"],workReportShow:!1,workReportTabs:"my",aibotList:[{value:"openai",label:"ChatGPT",src:$A.mainUrl("images/avatar/default_openai.png"),desc:this.$L("\u6211\u662F\u4E00\u4E2A\u4EBA\u5DE5\u667A\u80FD\u52A9\u624B\uFF0C\u4E3A\u7528\u6237\u63D0\u4F9B\u95EE\u9898\u89E3\u7B54\u548C\u6307\u5BFC\u3002\u6211\u6CA1\u6709\u5177\u4F53\u7684\u8EAB\u4EFD\uFF0C\u53EA\u662F\u4E00\u4E2A\u7A0B\u5E8F\u3002\u60A8\u6709\u4EC0\u4E48\u95EE\u9898\u53EF\u4EE5\u95EE\u6211\u54E6\uFF1F")},{value:"gemini",label:"Gemini",src:$A.mainUrl("images/avatar/default_gemini.png"),desc:`${this.$L("\u6211\u662F\u7531Google\u5F00\u53D1\u7684\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u804A\u5929\u673A\u5668\u4EBA\u3002")}${this.$L("\u5B83\u57FA\u4E8E\u540C\u540D\u7684Gemini\u7CFB\u5217\u5927\u578B\u8BED\u8A00\u6A21\u578B\u3002")}${this.$L("\u662F\u5E94\u5BF9OpenAI\u516C\u53F8\u5F00\u53D1\u7684ChatGPT\u804A\u5929\u673A\u5668\u4EBA\u7684\u5D1B\u8D77\u800C\u5F00\u53D1\u7684\u3002")}`},{value:"claude",label:"Claude",src:$A.mainUrl("images/avatar/default_claude.png"),desc:this.$L("\u6211\u662FClaude,\u4E00\u4E2A\u7531Anthropic\u516C\u53F8\u521B\u9020\u51FA\u6765\u7684AI\u52A9\u624B\u673A\u5668\u4EBA\u3002\u6211\u7684\u5DE5\u4F5C\u662F\u5E2E\u52A9\u4EBA\u7C7B,\u4E0E\u4EBA\u5BF9\u8BDD\u5E76\u7ED9\u51FA\u89E3\u7B54\u3002")},{value:"wenxin",label:"Wenxin",src:$A.mainUrl("avatar/%E6%96%87%E5%BF%83.png"),desc:this.$L("\u6211\u662F\u6587\u5FC3\u4E00\u8A00\uFF0C\u82F1\u6587\u540D\u662FERNIE Bot\u3002\u6211\u80FD\u591F\u4E0E\u4EBA\u5BF9\u8BDD\u4E92\u52A8\uFF0C\u56DE\u7B54\u95EE\u9898\uFF0C\u534F\u52A9\u521B\u4F5C\uFF0C\u9AD8\u6548\u4FBF\u6377\u5730\u5E2E\u52A9\u4EBA\u4EEC\u83B7\u53D6\u4FE1\u606F\u3001\u77E5\u8BC6\u548C\u7075\u611F\u3002")},{value:"qianwen",label:"Qianwen",src:$A.mainUrl("avatar/%E9%80%9A%E4%B9%89%E5%8D%83%E9%97%AE.png"),desc:this.$L("\u6211\u662F\u8FBE\u6469\u9662\u81EA\u4E3B\u7814\u53D1\u7684\u8D85\u5927\u89C4\u6A21\u8BED\u8A00\u6A21\u578B\uFF0C\u80FD\u591F\u56DE\u7B54\u95EE\u9898\u3001\u521B\u4F5C\u6587\u5B57\uFF0C\u8FD8\u80FD\u8868\u8FBE\u89C2\u70B9\u3001\u64B0\u5199\u4EE3\u7801\u3002")}],aibotTabAction:"opanai",aibotShow:!1,aibotType:1,aibotDialogSearchLoad:"",signInShow:!1,signInType:1,meetingShow:!1,meetingType:1,meetingDescs:{add:this.$L("\u521B\u5EFA\u4E00\u4E2A\u5168\u65B0\u7684\u4F1A\u8BAE\u89C6\u9891\u4F1A\u8BAE\uFF0C\u4E0E\u4F1A\u8005\u53EF\u4EE5\u5728\u5B9E\u65F6\u4E2D\u8FDB\u884C\u9762\u5BF9\u9762\u7684\u89C6\u542C\u4EA4\u6D41\u3002")+this.$L("\u901A\u8FC7\u89C6\u9891\u4F1A\u8BAE\u5E73\u53F0\uFF0C\u53C2\u4E0E\u8005\u53EF\u4EE5\u5206\u4EAB\u5C4F\u5E55\u3001\u5171\u4EAB\u6587\u6863\uFF0C\u5E76\u4E0E\u5176\u4ED6\u4E0E\u4F1A\u4EBA\u5458\u8FDB\u884C\u8BA8\u8BBA\u548C\u534F\u3002"),join:this.$L("\u52A0\u5165\u89C6\u9891\u4F1A\u8BAE\uFF0C\u53C2\u4E0E\u5DF2\u7ECF\u521B\u5EFA\u7684\u4F1A\u8BAE\uFF0C\u5728\u4F1A\u8BAE\u8FC7\u7A0B\u4E2D\u4E0E\u5176\u4ED6\u53C2\u4F1A\u4EBA\u5458\u8FDB\u884C\u8FDC\u7A0B\u5B9E\u65F6\u89C6\u542C\u4EA4\u6D41\u548C\u534F\u4F5C\u3002")},ldapShow:!1,mailType:1,mailShow:!1,appPushType:1,appPushShow:!1,scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:"",sendData:[],sendType:""}},activated(){this.initList()},computed:{...h(["userInfo","userIsAdmin","reportUnreadNumber","approveUnreadNumber","cacheDialogs","windowOrientation"]),isExistAdminList(){return this.applyList.map(t=>t.type).indexOf("admin")!==-1}},watch:{windowOrientation(){this.initList()}},methods:{initList(){let t=[{value:"approve",label:"\u5BA1\u6279\u4E2D\u5FC3",sort:3},{value:"report",label:"\u5DE5\u4F5C\u62A5\u544A",sort:5},{value:"okr",label:"OKR \u7BA1\u7406",sort:4},{value:"robot",label:"AI \u673A\u5668\u4EBA",sort:6},{value:"signin",label:"\u7B7E\u5230\u6253\u5361",sort:7},{value:"meeting",label:"\u5728\u7EBF\u4F1A\u8BAE",sort:8},{value:"word-chain",label:"\u7FA4\u63A5\u9F99",sort:9},{value:"vote",label:"\u7FA4\u6295\u7968",sort:10}];this.windowOrientation=="landscape"?t.push({value:"scan",label:"\u626B\u4E00\u626B",show:$A.isEEUiApp,sort:13}):t.push({value:"calendar",label:"\u65E5\u5386",sort:1},{value:"file",label:"\u6587\u4EF6",sort:2},{value:"addProject",label:"\u521B\u5EFA\u9879\u76EE",sort:11},{value:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1",sort:12},{value:"scan",label:"\u626B\u4E00\u626B",show:$A.isEEUiApp,sort:13},{value:"setting",label:"\u8BBE\u7F6E",sort:14});let s=[];this.userIsAdmin?s.push({value:"okrAnalyze",label:"OKR \u7ED3\u679C",sort:15},{value:"ldap",label:"LDAP",sort:16},{value:"mail",label:"\u90AE\u4EF6\u901A\u77E5",sort:17},{value:"appPush",label:"APP \u63A8\u9001",sort:18},{value:"allUser",label:"\u56E2\u961F\u7BA1\u7406",sort:19}):this.userInfo.department_owner&&s.push({value:"okrAnalyze",label:"OKR \u7ED3\u679C",sort:15}),s=s.map(a=>(a.type="admin",a)),this.applyList=[...t,...s].sort((a,e)=>a.sorte.sort?1:0)},getLogoClass(t){return t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t},showBadge(t,s){let a=0;switch(s){case"approve":a=this.approveUnreadNumber;break;case"report":a=this.reportUnreadNumber;break}return t.value==s&&a>0},applyClick(t,s=""){switch(t.value){case"approve":case"calendar":case"file":case"setting":this.goForward({name:"manage-"+t.value});break;case"okr":case"okrAnalyze":this.goForward({path:"/manage/apps/okr/"+(t.value=="okr"?"list":"analysis")});break;case"report":this.workReportTabs=s=="badge"?"receive":"my",this.workReportShow=!0;break;case"robot":this.aibotType=1,this.aibotTabAction="opanai",this.aibotShow=!0;break;case"signin":this.signInType=1,this.signInShow=!0;break;case"meeting":this.meetingType=1,this.meetingShow=!0;break;case"ldap":this.ldapShow=!0;break;case"mail":this.mailType=1,this.mailShow=!0;break;case"appPush":this.appPushType=1,this.appPushShow=!0;break;case"scan":$A.eeuiAppScan(this.scanResult);return;case"word-chain":case"vote":this.sendData=[],this.sendType=t.value,this.$refs.wordChainAndVoteRef.onSelection();return}this.$emit("on-click",t.value)},onGoToChat(t){let s=0,a=`ai-${t}@bot.system`;this.cacheDialogs.map(e=>{e.email==a&&(s=e.id)}),s?(this.windowOrientation=="landscape"?this.goForward({name:"manage-messenger",params:{dialog_id:s}}):this.$store.dispatch("openDialog",s),this.aibotShow=!1):(this.aibotDialogSearchLoad=t,this.$store.dispatch("call",{url:"dialog/search",data:{key:a}}).then(({data:e})=>{var o;if((e==null?void 0:e.length)<1){$A.messageError("\u673A\u5668\u4EBA\u6682\u672A\u5F00\u542F"),this.aibotDialogSearchLoad="";return}this.$store.dispatch("openDialogUserid",(o=e[0])==null?void 0:o.dialog_user.userid).then(i=>{this.windowOrientation=="landscape"&&this.goForward({name:"manage-messenger"}),this.aibotShow=!1}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.aibotDialogSearchLoad=""})}).catch(e=>{this.aibotDialogSearchLoad=""}))},onMeeting(t){switch(t){case"createMeeting":n.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":n.Store.set("addMeeting",{type:"join"});break}this.meetingShow=!1},scanResult(t){const s=(t+"").match(/^https*:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(s){if($A.getDomain(t)!=$A.getDomain($A.mainUrl())){let a=this.$L("\u8BF7\u786E\u8BA4\u626B\u7801\u7684\u670D\u52A1\u5668\u4E0E\u5F53\u524D\u670D\u52A1\u5668\u4E00\u81F4");a+=`
    ${this.$L("\u4E8C\u7EF4\u7801\u670D\u52A1\u5668")}: ${$A.getDomain(t)}`,a+=`
    ${this.$L("\u5F53\u524D\u670D\u52A1\u5668")}: ${$A.getDomain($A.mainUrl())}`,$A.modalWarning({language:!1,title:this.$L("\u626B\u7801\u767B\u5F55"),content:a});return}this.scanLoginCode=s[2],this.scanLoginShow=!0;return}/^https*:\/\//i.test(t)&&this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))},openDetail(t){$A.modalInfo({content:t,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{s(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{a(e)})})})},goWordChainAndVote(){const t=Number(this.sendData[0].replace("d:","")),s=this.sendType=="word-chain"?"dialogDroupWordChain":"dialogGroupVote";this.windowPortrait?this.$store.dispatch("openDialog",t).then(()=>{this.$store.state[s]={type:"create",dialog_id:t}}):this.goForward({name:"manage-messenger",params:{open:this.sendType,dialog_id:t}})}}},f={};var nt=r(lt,it,rt,!1,mt,null,null,null);function mt(t){for(let s in f)this[s]=f[s]}var Zt=function(){return nt.exports}();export{Zt as default}; +import{m as h}from"./vuex.cc7cb26e.js";import{D as v}from"./index.92bfd6b8.js";import{n as r,U as b}from"./app.57070a0d.js";import{C as g,T as $,R as y}from"./CheckinExport.601957c7.js";import D from"./checkin.e5796891.js";import{l as n}from"./le5le-store.b40f9152.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.e9c85d1f.js";import"./ReportEdit.e54407e0.js";import"./ReportDetail.822059d1.js";var k=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[t.type=="all"||t.type=="ChatGPT"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("ChatGPT")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"openai_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"OpenAI API Key"},model:{value:t.formData.openai_key,callback:function(e){t.$set(t.formData,"openai_key",e)},expression:"formData.openai_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u8BBF\u95EEOpenAI\u7F51\u7AD9\u67E5\u770B"))+": "),a("a",{attrs:{href:"https://platform.openai.com/account/api-keys",target:"_blank"}},[t._v("https://platform.openai.com/account/api-keys")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"openai_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.openai_model,callback:function(e){t.$set(t.formData,"openai_model",e)},expression:"formData.openai_model"}},[a("Option",{attrs:{value:"gpt-3.5-turbo"}},[t._v("gpt-3.5-turbo")]),a("Option",{attrs:{value:"gpt-4"}},[t._v("gpt-4")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://platform.openai.com/docs/models",target:"_blank"}},[t._v("https://platform.openai.com/docs/models")])])],1),a("FormItem",{attrs:{label:t.$L("\u4F7F\u7528\u4EE3\u7406"),prop:"openai_agency"}},[a("Input",{attrs:{maxlength:500,placeholder:t.$L("\u652F\u6301 http \u6216 socks \u4EE3\u7406")},model:{value:t.formData.openai_agency,callback:function(e){t.$set(t.formData,"openai_agency",e)},expression:"formData.openai_agency"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982\uFF1Ahttp://proxy.com \u6216 socks5://proxy.com")))])],1)],1)]):t._e(),t.type=="all"||t.type=="Claude"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("Claude")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"Token",prop:"claude_token"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"Claude Token"},model:{value:t.formData.claude_token,callback:function(e){t.$set(t.formData,"claude_token",e)},expression:"formData.claude_token"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u767B\u5F55"))+" "),a("a",{attrs:{href:"https://claude.ai",target:"_blank"}},[t._v("https://claude.ai")]),t._v(" "+t._s(t.$L("\u67E5\u770B Cookie \u4E2D\u7684 sessionKey \u4FBF\u662F")))])],1),a("FormItem",{attrs:{label:t.$L("\u4F7F\u7528\u4EE3\u7406"),prop:"claude_agency"}},[a("Input",{attrs:{maxlength:500,placeholder:t.$L("\u652F\u6301 http \u6216 socks \u4EE3\u7406")},model:{value:t.formData.claude_agency,callback:function(e){t.$set(t.formData,"claude_agency",e)},expression:"formData.claude_agency"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982\uFF1Ahttp://proxy.com \u6216 socks5://proxy.com")))])],1)],1)]):t._e(),t.type=="all"||t.type=="Wenxin"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("\u6587\u5FC3\u4E00\u8A00 (Wenxin)")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"wenxin_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.wenxin_key,callback:function(e){t.$set(t.formData,"wenxin_key",e)},expression:"formData.wenxin_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3#3-%E8%8E%B7%E5%8F%96%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3")])])],1),a("FormItem",{attrs:{label:"API Secret",prop:"wenxin_secret"}},[a("Input",{attrs:{maxlength:500,type:"password",placeholder:"API Secret"},model:{value:t.formData.wenxin_secret,callback:function(e){t.$set(t.formData,"wenxin_secret",e)},expression:"formData.wenxin_secret"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3#3-%E8%8E%B7%E5%8F%96%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjgn3")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"wenxin_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.wenxin_model,callback:function(e){t.$set(t.formData,"wenxin_model",e)},expression:"formData.wenxin_model"}},[a("Option",{attrs:{value:"completions_pro"}},[t._v("ERNIE-Bot 4.0")]),a("Option",{attrs:{value:"completions"}},[t._v("ERNIE-Bot")]),a("Option",{attrs:{value:"eb-instant"}},[t._v("ERNIE-Bot-turbo")]),a("Option",{attrs:{value:"llama_2_7b"}},[t._v("Llama-2-7b-chat")]),a("Option",{attrs:{value:"llama_2_13b"}},[t._v("Llama-2-13B-Chat")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://cloud.baidu.com/doc/WENXINWORKSHOP/s/vliu6vq7u",target:"_blank"}},[t._v("https://cloud.baidu.com/doc/WENXINWORKSHOP/s/vliu6vq7u")])])],1)],1)]):t._e(),t.type=="all"||t.type=="Qianwen"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("\u901A\u4E49\u5343\u95EE (Qianwen)")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"qianwen_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.qianwen_key,callback:function(e){t.$set(t.formData,"qianwen_key",e)},expression:"formData.qianwen_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://help.aliyun.com/document_detail/611472.html",target:"_blank"}},[t._v("https://help.aliyun.com/document_detail/611472.html")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"qianwen_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.qianwen_model,callback:function(e){t.$set(t.formData,"qianwen_model",e)},expression:"formData.qianwen_model"}},[a("Option",{attrs:{value:"qwen-v1"}},[t._v("qwen-v1")]),a("Option",{attrs:{value:"qwen-plus-v1"}},[t._v("qwen-plus-v1")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://help.aliyun.com/document_detail/2399481.html",target:"_blank"}},[t._v("https://help.aliyun.com/document_detail/2399481.html")])])],1)],1)]):t._e(),t.type=="all"||t.type=="Gemini"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("Gemini")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"gemini_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.gemini_key,callback:function(e){t.$set(t.formData,"gemini_key",e)},expression:"formData.gemini_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://ai.google.dev/tutorials/setup?hl=zh-cn",target:"_blank"}},[t._v("https://ai.google.dev/tutorials/setup?hl=zh-cn")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"gemini_model"}},[a("Select",{attrs:{placement:"top"},model:{value:t.formData.gemini_model,callback:function(e){t.$set(t.formData,"gemini_model",e)},expression:"formData.gemini_model"}},[a("Option",{attrs:{value:"gemini-1.0-pro"}},[t._v("gemini-1.0-pro")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://ai.google.dev/models?hl=zh-cn",target:"_blank"}},[t._v("https://ai.google.dev/models?hl=zh-cn")])])],1),a("FormItem",{attrs:{label:t.$L("\u4F7F\u7528\u4EE3\u7406"),prop:"gemini_agency"}},[a("Input",{attrs:{maxlength:500,placeholder:t.$L("\u652F\u6301 http \u6216 socks \u4EE3\u7406")},model:{value:t.formData.gemini_agency,callback:function(e){t.$set(t.formData,"gemini_agency",e)},expression:"formData.gemini_agency"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982\uFF1Ahttp://proxy.com \u6216 socks5://proxy.com")))])],1)],1)]):t._e()]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},L=[];const w={name:"SystemAibot",props:{type:{default:"all"}},data(){return{loadIng:0,formData:{},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/aibot?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},m={};var x=r(w,k,L,!1,C,null,null,null);function C(t){for(let s in m)this[s]=m[s]}var S=function(){return x.exports}(),I=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u7BA1\u7406\u6210\u5458MAC\u5730\u5740")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{staticClass:"block-setting-advance",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740")))])],1),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65B9\u5F0F"),prop:"modes"}},[a("CheckboxGroup",{model:{value:t.formData.modes,callback:function(e){t.$set(t.formData,"modes",e)},expression:"formData.modes"}},[a("Checkbox",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"manual"}},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),t._e()],1),t.formData.modes.includes("auto")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230"))+": "+t._s(t.$L("\u8BE6\u60C5\u770B\u4E0B\u6587\u5B89\u88C5\u8BF4\u660E")))]):t._e(),t.formData.modes.includes("manual")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u6307\u4EE4\u7B7E\u5230")))]):t._e(),t.formData.modes.includes("location")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5B9A\u4F4D\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u5728\u7B7E\u5230\u6253\u5361\u673A\u5668\u4EBA\u53D1\u9001\u4F4D\u7F6E\u7B7E\u5230")))]):t._e()],1)]:t._e()],2)]),t.formData.open==="open"&&t.formData.modes.includes("auto")?[a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("\u81EA\u52A8\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5"))+":")]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mac":""}}):t._e()],1)],1)},A=[];const F={name:"SystemCheckin",components:{CheckinExport:g,TeamManagement:$,DrawerOverlay:v},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:"",modes:[]},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.formData.cmd="",this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s;try{this.formData.cmd=atob(this.formData.cmd)}catch{}this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})}}},c={};var E=r(F,I,A,!1,T,null,null,null);function T(t){for(let s in c)this[s]=c[s]}var R=function(){return E.exports}(),O=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("AgoraIO \u58F0\u7F51")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E")))]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v(t._s(t.$L("\u57FA\u672C\u914D\u7F6E"))+": "+t._s(t.$L("\u7528\u4E8E\u751F\u6210\u4F1A\u8BAE\u9891\u9053\u3002")))]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+": "),a("a",{attrs:{href:"https://docportal.shengwang.cn/cn/Agora%20Platform/token_server#%E8%8E%B7%E5%8F%96-app-id-%E5%8F%8A-app-%E8%AF%81%E4%B9%A6",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1),a("div",{staticClass:"clearfix"}),a("Divider",{attrs:{orientation:"left"}},[t._v("RESTful Api\uFF08"+t._s(t.$L("\u53EF\u9009"))+"\uFF09")]),a("div",{staticClass:"form-tip form-list"},[a("ul",[a("li",[t._v("RESTful Api: "+t._s(t.$L("\u7528\u4E8E\u9891\u9053\u7BA1\u7406\u3002"))+" ("+t._s(t.$L("\u6BD4\u5982"))+": "+t._s(t.$L("\u7ED3\u675F\u4F1A\u8BAE\u5BA4"))+")")]),a("li",[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://doc.shengwang.cn/doc/rtc/restful/get-started/enable-service#%E8%8E%B7%E5%8F%96%E5%AE%A2%E6%88%B7-id-%E5%92%8C%E5%AE%A2%E6%88%B7%E5%AF%86%E9%92%A5",target:"_blank"}},[t._v("Open Link")])])])]),a("FormItem",{attrs:{label:"key ",prop:"api_key"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.api_key,callback:function(e){t.$set(t.formData,"api_key",e)},expression:"formData.api_key"}})],1),a("FormItem",{attrs:{label:"secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.api_secret,callback:function(e){t.$set(t.formData,"api_secret",e)},expression:"formData.api_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},P=[];const N={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},p={};var B=r(N,O,P,!1,U,null,null,null);function U(t){for(let s in p)this[s]=p[s]}var M=function(){return B.exports}(),G=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("LDAP")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},j=[];const q={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},d={};var z=r(q,G,j,!1,K,null,null,null);function K(t){for(let s in d)this[s]=d[s]}var W=function(){return z.exports}(),J=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E"))+":"),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{staticClass:"block-setting-msg-unread",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u586B\u5199-1\u5219\u4E0D\u901A\u77E5\uFF0C\u8BEF\u5DEE\xB110\u5206\u949F")))])],1):t._e()],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},V=[];const H={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},u={};var Q=r(H,J,V,!1,X,null,null,null);function X(t){for(let s in u)this[s]=u[s]}var Z=function(){return Q.exports}(),Y=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},tt=[];const at={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},_={};var et=r(at,Y,tt,!1,st,null,null,null);function st(t){for(let s in _)this[s]=_[s]}var ot=function(){return et.exports}(),it=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"page-apply"},[a("PageTitle",{attrs:{title:t.$L("\u5E94\u7528")}}),a("div",{staticClass:"apply-wrapper"},[a("div",{staticClass:"apply-head"},[a("div",{staticClass:"apply-nav"},[a("h1",[t._v(t._s(t.$L("\u5E94\u7528")))])])]),a("div",{staticClass:"apply-content"},[t._l(t.applyListTypes,function(e){return[t.isExistAdminList?a("div",{staticClass:"apply-row-title"},[t._v(" "+t._s(e=="base"?t.$L("\u5E38\u7528"):t.$L("\u7BA1\u7406\u5458"))+" ")]):t._e(),a("Row",{attrs:{gutter:16}},t._l(t.applyList,function(o,i){return(e=="base"&&!o.type||o.type==e)&&o.show!==!1?a("Col",{key:i,attrs:{xs:{span:6},sm:{span:6},lg:{span:6},xl:{span:6},xxl:{span:3}}},[a("div",{staticClass:"apply-col"},[a("div",{on:{click:function(l){return t.applyClick(o)}}},[a("div",{staticClass:"logo"},[a("div",{staticClass:"apply-icon no-dark-content",class:t.getLogoClass(o.value)}),a("div",{staticClass:"apply-box-top-report",on:{click:function(l){return l.stopPropagation(),t.applyClick(o,"badge")}}},[t.showBadge(o,"approve")?a("Badge",{attrs:{"overflow-count":999,count:t.approveUnreadNumber}}):t._e(),t.showBadge(o,"report")?a("Badge",{attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),a("p",[t._v(t._s(t.$L(o.label)))])])])]):t._e()}),1)]})],2)]),a("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(e){t.workReportShow=e},expression:"workReportShow"}},[t.workReportShow?a("Report",{on:{"on-read":function(e){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.workReportTabs,callback:function(e){t.workReportTabs=e},expression:"workReportTabs"}}):t._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.aibotShow,callback:function(e){t.aibotShow=e},expression:"aibotShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("AI \u673A\u5668\u4EBA"))+" "),t.userIsAdmin?a("p",{on:{click:function(e){t.aibotType=t.aibotType==1?2:1}}},[t._v(" "+t._s(t.aibotType==1?t.$L("\u673A\u5668\u4EBA\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")]):t._e()]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[t.aibotType==1?a("ul",{staticClass:"ivu-modal-wrap-ul"},t._l(t.aibotList,function(e,o){return a("li",{key:o},[a("img",{staticClass:"apply-icon",attrs:{src:e.src}}),a("h4",[t._v(t._s(e.label))]),a("p",{staticClass:"desc",on:{click:function(i){return t.openDetail(e.desc)}}},[t._v(t._s(e.desc))]),a("p",{staticClass:"btn",on:{click:function(i){return t.onGoToChat(e.value)}}},[t._v(t._s(t.$L("\u5F00\u59CB\u804A\u5929")))]),t.aibotDialogSearchLoad==e.value?a("div",{staticClass:"load"},[a("Loading")],1):t._e()])}),0):a("Tabs",{model:{value:t.aibotTabAction,callback:function(e){t.aibotTabAction=e},expression:"aibotTabAction"}},[a("TabPane",{attrs:{label:"ChatGPT",name:"opanai"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="opanai"?a("SystemAibot",{attrs:{type:"ChatGPT"}}):t._e()],1)]),a("TabPane",{attrs:{label:"Gemini",name:"gemini"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="gemini"?a("SystemAibot",{attrs:{type:"Gemini"}}):t._e()],1)]),a("TabPane",{attrs:{label:"Claude",name:"claude"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="claude"?a("SystemAibot",{attrs:{type:"Claude"}}):t._e()],1)]),a("TabPane",{attrs:{label:t.$L("\u6587\u5FC3\u4E00\u8A00"),name:"wenxin"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="wenxin"?a("SystemAibot",{attrs:{type:"Wenxin"}}):t._e()],1)]),a("TabPane",{attrs:{label:t.$L("\u901A\u4E49\u5343\u95EE"),name:"qianwen"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="qianwen"?a("SystemAibot",{attrs:{type:"Qianwen"}}):t._e()],1)])],1)],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.signInShow,callback:function(e){t.signInShow=e},expression:"signInShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("\u7B7E\u5230\u7BA1\u7406"))+" "),t.userIsAdmin?a("p",{on:{click:function(e){t.signInType=t.signInType==1?2:1}}},[t._v(" "+t._s(t.signInType==1?t.$L("\u7B7E\u5230\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")]):t._e()]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[t.signInType==1?a("Checkin"):a("SystemCheckin")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.meetingShow,callback:function(e){t.meetingShow=e},expression:"meetingShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("\u4F1A\u8BAE"))+" "),a("p",{on:{click:function(e){t.meetingType=t.meetingType==1?2:1}}},[t._v(" "+t._s(t.meetingType==1?t.$L("\u4F1A\u8BAE\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")])]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[t.meetingType==1?a("ul",{staticClass:"ivu-modal-wrap-ul"},[a("li",[a("div",{staticClass:"apply-icon no-dark-content meeting"}),a("h4",[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE")))]),a("p",{staticClass:"desc",on:{click:function(e){return t.openDetail(t.meetingDescs.add)}}},[t._v(" "+t._s(t.meetingDescs.add)+" ")]),a("p",{staticClass:"btn",on:{click:function(e){return t.onMeeting("createMeeting")}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4F1A\u8BAE")))])]),a("li",[a("div",{staticClass:"apply-icon no-dark-content meeting-join"}),a("h4",[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))]),a("p",{staticClass:"desc",on:{click:function(e){return t.openDetail(t.meetingDescs.join)}}},[t._v(t._s(t.meetingDescs.join))]),a("p",{staticClass:"btn",on:{click:function(e){return t.onMeeting("joinMeeting")}}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])])]):a("SystemMeeting")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.ldapShow,callback:function(e){t.ldapShow=e},expression:"ldapShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("LDAP \u8BBE\u7F6E"))+" ")]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemThirdAccess")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.mailShow,callback:function(e){t.mailShow=e},expression:"mailShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("\u90AE\u4EF6\u901A\u77E5"))+" ")]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemEmailSetting")],1)])]),a("DrawerOverlay",{attrs:{placement:"right",size:700},model:{value:t.appPushShow,callback:function(e){t.appPushShow=e},expression:"appPushShow"}},[a("div",{staticClass:"ivu-modal-wrap-apply"},[a("div",{staticClass:"ivu-modal-wrap-apply-title"},[t._v(" "+t._s(t.$L("APP \u63A8\u9001"))+" ")]),a("div",{staticClass:"ivu-modal-wrap-apply-body"},[a("SystemAppPush")],1)])]),a("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(e){t.scanLoginShow=e},expression:"scanLoginShow"}},[a("div",{staticClass:"mobile-scan-login-box"},[a("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),a("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),a("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)]),a("UserSelect",{ref:"wordChainAndVoteRef",attrs:{"multiple-max":1,title:t.sendType=="vote"?t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u6295\u7968"):t.$L("\u9009\u62E9\u7FA4\u7EC4\u53D1\u8D77\u63A5\u9F99"),"before-submit":t.goWordChainAndVote,"show-select-all":!1,"only-group":!0,"show-dialog":"",module:""},model:{value:t.sendData,callback:function(e){t.sendData=e},expression:"sendData"}})],1)},rt=[];const lt={components:{UserSelect:b,DrawerOverlay:v,Report:y,SystemAibot:S,SystemCheckin:R,Checkin:D,SystemMeeting:M,SystemThirdAccess:W,SystemEmailSetting:Z,SystemAppPush:ot},data(){return{applyList:[],applyListTypes:["base","admin"],workReportShow:!1,workReportTabs:"my",aibotList:[{value:"openai",label:"ChatGPT",src:$A.mainUrl("images/avatar/default_openai.png"),desc:this.$L("\u6211\u662F\u4E00\u4E2A\u4EBA\u5DE5\u667A\u80FD\u52A9\u624B\uFF0C\u4E3A\u7528\u6237\u63D0\u4F9B\u95EE\u9898\u89E3\u7B54\u548C\u6307\u5BFC\u3002\u6211\u6CA1\u6709\u5177\u4F53\u7684\u8EAB\u4EFD\uFF0C\u53EA\u662F\u4E00\u4E2A\u7A0B\u5E8F\u3002\u60A8\u6709\u4EC0\u4E48\u95EE\u9898\u53EF\u4EE5\u95EE\u6211\u54E6\uFF1F")},{value:"gemini",label:"Gemini",src:$A.mainUrl("images/avatar/default_gemini.png"),desc:`${this.$L("\u6211\u662F\u7531Google\u5F00\u53D1\u7684\u751F\u6210\u5F0F\u4EBA\u5DE5\u667A\u80FD\u804A\u5929\u673A\u5668\u4EBA\u3002")}${this.$L("\u5B83\u57FA\u4E8E\u540C\u540D\u7684Gemini\u7CFB\u5217\u5927\u578B\u8BED\u8A00\u6A21\u578B\u3002")}${this.$L("\u662F\u5E94\u5BF9OpenAI\u516C\u53F8\u5F00\u53D1\u7684ChatGPT\u804A\u5929\u673A\u5668\u4EBA\u7684\u5D1B\u8D77\u800C\u5F00\u53D1\u7684\u3002")}`},{value:"claude",label:"Claude",src:$A.mainUrl("images/avatar/default_claude.png"),desc:this.$L("\u6211\u662FClaude,\u4E00\u4E2A\u7531Anthropic\u516C\u53F8\u521B\u9020\u51FA\u6765\u7684AI\u52A9\u624B\u673A\u5668\u4EBA\u3002\u6211\u7684\u5DE5\u4F5C\u662F\u5E2E\u52A9\u4EBA\u7C7B,\u4E0E\u4EBA\u5BF9\u8BDD\u5E76\u7ED9\u51FA\u89E3\u7B54\u3002")},{value:"wenxin",label:"Wenxin",src:$A.mainUrl("avatar/%E6%96%87%E5%BF%83.png"),desc:this.$L("\u6211\u662F\u6587\u5FC3\u4E00\u8A00\uFF0C\u82F1\u6587\u540D\u662FERNIE Bot\u3002\u6211\u80FD\u591F\u4E0E\u4EBA\u5BF9\u8BDD\u4E92\u52A8\uFF0C\u56DE\u7B54\u95EE\u9898\uFF0C\u534F\u52A9\u521B\u4F5C\uFF0C\u9AD8\u6548\u4FBF\u6377\u5730\u5E2E\u52A9\u4EBA\u4EEC\u83B7\u53D6\u4FE1\u606F\u3001\u77E5\u8BC6\u548C\u7075\u611F\u3002")},{value:"qianwen",label:"Qianwen",src:$A.mainUrl("avatar/%E9%80%9A%E4%B9%89%E5%8D%83%E9%97%AE.png"),desc:this.$L("\u6211\u662F\u8FBE\u6469\u9662\u81EA\u4E3B\u7814\u53D1\u7684\u8D85\u5927\u89C4\u6A21\u8BED\u8A00\u6A21\u578B\uFF0C\u80FD\u591F\u56DE\u7B54\u95EE\u9898\u3001\u521B\u4F5C\u6587\u5B57\uFF0C\u8FD8\u80FD\u8868\u8FBE\u89C2\u70B9\u3001\u64B0\u5199\u4EE3\u7801\u3002")}],aibotTabAction:"opanai",aibotShow:!1,aibotType:1,aibotDialogSearchLoad:"",signInShow:!1,signInType:1,meetingShow:!1,meetingType:1,meetingDescs:{add:this.$L("\u521B\u5EFA\u4E00\u4E2A\u5168\u65B0\u7684\u4F1A\u8BAE\u89C6\u9891\u4F1A\u8BAE\uFF0C\u4E0E\u4F1A\u8005\u53EF\u4EE5\u5728\u5B9E\u65F6\u4E2D\u8FDB\u884C\u9762\u5BF9\u9762\u7684\u89C6\u542C\u4EA4\u6D41\u3002")+this.$L("\u901A\u8FC7\u89C6\u9891\u4F1A\u8BAE\u5E73\u53F0\uFF0C\u53C2\u4E0E\u8005\u53EF\u4EE5\u5206\u4EAB\u5C4F\u5E55\u3001\u5171\u4EAB\u6587\u6863\uFF0C\u5E76\u4E0E\u5176\u4ED6\u4E0E\u4F1A\u4EBA\u5458\u8FDB\u884C\u8BA8\u8BBA\u548C\u534F\u3002"),join:this.$L("\u52A0\u5165\u89C6\u9891\u4F1A\u8BAE\uFF0C\u53C2\u4E0E\u5DF2\u7ECF\u521B\u5EFA\u7684\u4F1A\u8BAE\uFF0C\u5728\u4F1A\u8BAE\u8FC7\u7A0B\u4E2D\u4E0E\u5176\u4ED6\u53C2\u4F1A\u4EBA\u5458\u8FDB\u884C\u8FDC\u7A0B\u5B9E\u65F6\u89C6\u542C\u4EA4\u6D41\u548C\u534F\u4F5C\u3002")},ldapShow:!1,mailType:1,mailShow:!1,appPushType:1,appPushShow:!1,scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:"",sendData:[],sendType:""}},activated(){this.initList()},computed:{...h(["userInfo","userIsAdmin","reportUnreadNumber","approveUnreadNumber","cacheDialogs","windowOrientation"]),isExistAdminList(){return this.applyList.map(t=>t.type).indexOf("admin")!==-1}},watch:{windowOrientation(){this.initList()}},methods:{initList(){let t=[{value:"approve",label:"\u5BA1\u6279\u4E2D\u5FC3",sort:3},{value:"report",label:"\u5DE5\u4F5C\u62A5\u544A",sort:5},{value:"okr",label:"OKR \u7BA1\u7406",sort:4},{value:"robot",label:"AI \u673A\u5668\u4EBA",sort:6},{value:"signin",label:"\u7B7E\u5230\u6253\u5361",sort:7},{value:"meeting",label:"\u5728\u7EBF\u4F1A\u8BAE",sort:8},{value:"word-chain",label:"\u7FA4\u63A5\u9F99",sort:9},{value:"vote",label:"\u7FA4\u6295\u7968",sort:10}];this.windowOrientation=="landscape"?t.push({value:"scan",label:"\u626B\u4E00\u626B",show:$A.isEEUiApp,sort:13}):t.push({value:"calendar",label:"\u65E5\u5386",sort:1},{value:"file",label:"\u6587\u4EF6",sort:2},{value:"addProject",label:"\u521B\u5EFA\u9879\u76EE",sort:11},{value:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1",sort:12},{value:"scan",label:"\u626B\u4E00\u626B",show:$A.isEEUiApp,sort:13},{value:"setting",label:"\u8BBE\u7F6E",sort:14});let s=[];this.userIsAdmin?s.push({value:"okrAnalyze",label:"OKR \u7ED3\u679C",sort:15},{value:"ldap",label:"LDAP",sort:16},{value:"mail",label:"\u90AE\u4EF6\u901A\u77E5",sort:17},{value:"appPush",label:"APP \u63A8\u9001",sort:18},{value:"allUser",label:"\u56E2\u961F\u7BA1\u7406",sort:19}):this.userInfo.department_owner&&s.push({value:"okrAnalyze",label:"OKR \u7ED3\u679C",sort:15}),s=s.map(a=>(a.type="admin",a)),this.applyList=[...t,...s].sort((a,e)=>a.sorte.sort?1:0)},getLogoClass(t){return t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t},showBadge(t,s){let a=0;switch(s){case"approve":a=this.approveUnreadNumber;break;case"report":a=this.reportUnreadNumber;break}return t.value==s&&a>0},applyClick(t,s=""){switch(t.value){case"approve":case"calendar":case"file":case"setting":this.goForward({name:"manage-"+t.value});break;case"okr":case"okrAnalyze":this.goForward({path:"/manage/apps/okr/"+(t.value=="okr"?"list":"analysis")});break;case"report":this.workReportTabs=s=="badge"?"receive":"my",this.workReportShow=!0;break;case"robot":this.aibotType=1,this.aibotTabAction="opanai",this.aibotShow=!0;break;case"signin":this.signInType=1,this.signInShow=!0;break;case"meeting":this.meetingType=1,this.meetingShow=!0;break;case"ldap":this.ldapShow=!0;break;case"mail":this.mailType=1,this.mailShow=!0;break;case"appPush":this.appPushType=1,this.appPushShow=!0;break;case"scan":$A.eeuiAppScan(this.scanResult);return;case"word-chain":case"vote":this.sendData=[],this.sendType=t.value,this.$refs.wordChainAndVoteRef.onSelection();return}this.$emit("on-click",t.value)},onGoToChat(t){let s=0,a=`ai-${t}@bot.system`;this.cacheDialogs.map(e=>{e.email==a&&(s=e.id)}),s?(this.windowOrientation=="landscape"?this.goForward({name:"manage-messenger",params:{dialog_id:s}}):this.$store.dispatch("openDialog",s),this.aibotShow=!1):(this.aibotDialogSearchLoad=t,this.$store.dispatch("call",{url:"dialog/search",data:{key:a}}).then(({data:e})=>{var o;if((e==null?void 0:e.length)<1){$A.messageError("\u673A\u5668\u4EBA\u6682\u672A\u5F00\u542F"),this.aibotDialogSearchLoad="";return}this.$store.dispatch("openDialogUserid",(o=e[0])==null?void 0:o.dialog_user.userid).then(i=>{this.windowOrientation=="landscape"&&this.goForward({name:"manage-messenger"}),this.aibotShow=!1}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.aibotDialogSearchLoad=""})}).catch(e=>{this.aibotDialogSearchLoad=""}))},onMeeting(t){switch(t){case"createMeeting":n.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":n.Store.set("addMeeting",{type:"join"});break}this.meetingShow=!1},scanResult(t){const s=(t+"").match(/^https*:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(s){if($A.getDomain(t)!=$A.getDomain($A.mainUrl())){let a=this.$L("\u8BF7\u786E\u8BA4\u626B\u7801\u7684\u670D\u52A1\u5668\u4E0E\u5F53\u524D\u670D\u52A1\u5668\u4E00\u81F4");a+=`
    ${this.$L("\u4E8C\u7EF4\u7801\u670D\u52A1\u5668")}: ${$A.getDomain(t)}`,a+=`
    ${this.$L("\u5F53\u524D\u670D\u52A1\u5668")}: ${$A.getDomain($A.mainUrl())}`,$A.modalWarning({language:!1,title:this.$L("\u626B\u7801\u767B\u5F55"),content:a});return}this.scanLoginCode=s[2],this.scanLoginShow=!0;return}/^https*:\/\//i.test(t)&&this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))},openDetail(t){$A.modalInfo({content:t,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{s(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{a(e)})})})},goWordChainAndVote(){const t=Number(this.sendData[0].replace("d:","")),s=this.sendType=="word-chain"?"dialogDroupWordChain":"dialogGroupVote";this.windowPortrait?this.$store.dispatch("openDialog",t).then(()=>{this.$store.state[s]={type:"create",dialog_id:t}}):this.goForward({name:"manage-messenger",params:{open:this.sendType,dialog_id:t}})}}},f={};var nt=r(lt,it,rt,!1,mt,null,null,null);function mt(t){for(let s in f)this[s]=f[s]}var Zt=function(){return nt.exports}();export{Zt as default}; diff --git a/public/js/build/apps.5d5342c9.js b/public/js/build/apps.5d5342c9.js new file mode 100644 index 000000000..caac7ee4a --- /dev/null +++ b/public/js/build/apps.5d5342c9.js @@ -0,0 +1 @@ +import{M as p}from"./MicroApps.aa6194e7.js";import{n as m}from"./app.57070a0d.js";import"./vue.eaf71fac.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.4f742dbc.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.92bfd6b8.js";import"./quill-hi.c85eceed.js";import"./quill-delta.72524c38.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.91f4d524.js";import"./lodash.isequal.0dd437dc.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.beaa1617.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.f3f58d09.js";import"./ImgUpload.b233effb.js";import"./view-design-hi.76cbd75d.js";import"./details.663d818a.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.e9c85d1f.js";var e=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"electron-single-micro-apps"},[!t.loading&&t.$route.name=="single-apps"?i("MicroApps",{attrs:{url:t.appUrl,path:t.path}}):t._e()],1)},a=[];const n={components:{MicroApps:p},data(){return{loading:!1,appUrl:"",path:""}},deactivated(){this.loading=!0},watch:{$route:{handler(t){this.loading=!0,t.name=="single-apps"?this.$nextTick(()=>{this.loading=!1,this.appUrl={}.VITE_OKR_WEB_URL||$A.mainUrl("apps/okr"),this.path=this.$route.query.path||""}):this.appUrl=""},immediate:!0}}},o={};var s=m(n,e,a,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var st=function(){return s.exports}();export{st as default}; diff --git a/public/js/build/apps.67109f3f.js b/public/js/build/apps.67109f3f.js deleted file mode 100644 index 388ff6bb1..000000000 --- a/public/js/build/apps.67109f3f.js +++ /dev/null @@ -1 +0,0 @@ -import{M as p}from"./MicroApps.dba2f711.js";import{n as m}from"./app.f8a6fa5e.js";import"./vue.da9c4dc7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.5184c28a.js";import"./le5le-store.bd86c9e9.js";import"./longpress.5305f240.js";import"./index.04b74879.js";import"./quill-hi.a45c8e94.js";import"./quill-delta.a505f2bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.4c06f0f7.js";import"./lodash.isequal.d456a716.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f26fa3cb.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.23b1f28e.js";import"./ImgUpload.d82fa303.js";import"./view-design-hi.afe77d1e.js";import"./details.ef31cd47.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.059db614.js";var a=function(){var t=this,r=t.$createElement,o=t._self._c||r;return!t.loading&&t.$route.name=="manage-apps"?o("MicroApps",{attrs:{url:t.appUrl,path:t.path}}):t._e()},e=[];const n={components:{MicroApps:p},data(){return{loading:!1,appUrl:"",path:""}},deactivated(){this.loading=!0},watch:{$route:{handler(t){this.loading=!0,t.name=="manage-apps"?this.$nextTick(()=>{this.loading=!1,this.appUrl={}.VITE_OKR_WEB_URL||$A.mainUrl("apps/okr"),this.path=this.$route.query.path||""}):this.appUrl=""},immediate:!0}}},i={};var s=m(n,a,e,!1,l,null,null,null);function l(t){for(let r in i)this[r]=i[r]}var lt=function(){return s.exports}();export{lt as default}; diff --git a/public/js/build/apps.9b84818a.js b/public/js/build/apps.9b84818a.js deleted file mode 100644 index 07777e9fd..000000000 --- a/public/js/build/apps.9b84818a.js +++ /dev/null @@ -1 +0,0 @@ -import{M as p}from"./MicroApps.dba2f711.js";import{n as m}from"./app.f8a6fa5e.js";import"./vue.da9c4dc7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.5184c28a.js";import"./le5le-store.bd86c9e9.js";import"./longpress.5305f240.js";import"./index.04b74879.js";import"./quill-hi.a45c8e94.js";import"./quill-delta.a505f2bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.4c06f0f7.js";import"./lodash.isequal.d456a716.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f26fa3cb.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.23b1f28e.js";import"./ImgUpload.d82fa303.js";import"./view-design-hi.afe77d1e.js";import"./details.ef31cd47.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.059db614.js";var e=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"electron-single-micro-apps"},[!t.loading&&t.$route.name=="single-apps"?i("MicroApps",{attrs:{url:t.appUrl,path:t.path}}):t._e()],1)},a=[];const n={components:{MicroApps:p},data(){return{loading:!1,appUrl:"",path:""}},deactivated(){this.loading=!0},watch:{$route:{handler(t){this.loading=!0,t.name=="single-apps"?this.$nextTick(()=>{this.loading=!1,this.appUrl={}.VITE_OKR_WEB_URL||$A.mainUrl("apps/okr"),this.path=this.$route.query.path||""}):this.appUrl=""},immediate:!0}}},o={};var s=m(n,e,a,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var lt=function(){return s.exports}();export{lt as default}; diff --git a/public/js/build/apps.e7732887.js b/public/js/build/apps.e7732887.js new file mode 100644 index 000000000..80e84be8d --- /dev/null +++ b/public/js/build/apps.e7732887.js @@ -0,0 +1 @@ +import{M as p}from"./MicroApps.aa6194e7.js";import{n as m}from"./app.57070a0d.js";import"./vue.eaf71fac.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.4f742dbc.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.92bfd6b8.js";import"./quill-hi.c85eceed.js";import"./quill-delta.72524c38.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.91f4d524.js";import"./lodash.isequal.0dd437dc.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.beaa1617.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.f3f58d09.js";import"./ImgUpload.b233effb.js";import"./view-design-hi.76cbd75d.js";import"./details.663d818a.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.e9c85d1f.js";var a=function(){var t=this,r=t.$createElement,o=t._self._c||r;return!t.loading&&t.$route.name=="manage-apps"?o("MicroApps",{attrs:{url:t.appUrl,path:t.path}}):t._e()},e=[];const n={components:{MicroApps:p},data(){return{loading:!1,appUrl:"",path:""}},deactivated(){this.loading=!0},watch:{$route:{handler(t){this.loading=!0,t.name=="manage-apps"?this.$nextTick(()=>{this.loading=!1,this.appUrl={}.VITE_OKR_WEB_URL||$A.mainUrl("apps/okr"),this.path=this.$route.query.path||""}):this.appUrl=""},immediate:!0}}},i={};var s=m(n,a,e,!1,l,null,null,null);function l(t){for(let r in i)this[r]=i[r]}var st=function(){return s.exports}();export{st as default}; diff --git a/public/js/build/async-validator.e0445182.js b/public/js/build/async-validator.289edf0d.js similarity index 99% rename from public/js/build/async-validator.e0445182.js rename to public/js/build/async-validator.289edf0d.js index f9ae56414..7f2d653c8 100644 --- a/public/js/build/async-validator.e0445182.js +++ b/public/js/build/async-validator.289edf0d.js @@ -1 +1 @@ -import{g as G}from"./@traptitech.4f5fb92a.js";import{_ as x,a as M}from"./babel-runtime.4773988a.js";var H=/%[sdj%]/g;function v(){for(var e=arguments.length,r=Array(e),t=0;t=i)return l;switch(l){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return l}}),p=r[n];n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},N={integer:function(r){return N.number(r)&&parseInt(r,10)===r},float:function(r){return N.number(r)&&!N.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return(typeof r=="undefined"?"undefined":x(r))==="object"&&!N.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&!!r.match(D.email)&&r.length<255},url:function(r){return typeof r=="string"&&!!r.match(D.url)},hex:function(r){return typeof r=="string"&&!!r.match(D.hex)}};function ee(e,r,t,n,f){if(e.required&&r===void 0){B(e,r,t,n,f);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;i.indexOf(a)>-1?N[a](r)||n.push(v(f.messages.types[a],e.fullField,e.type)):a&&(typeof r=="undefined"?"undefined":x(r))!==e.type&&n.push(v(f.messages.types[a],e.fullField,e.type))}function re(e,r,t,n,f){var i=typeof e.len=="number",a=typeof e.min=="number",p=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=r,h=null,b=typeof r=="number",q=typeof r=="string",$=Array.isArray(r);if(b?h="number":q?h="string":$&&(h="array"),!h)return!1;$&&(g=r.length),q&&(g=r.replace(l,"_").length),i?g!==e.len&&n.push(v(f.messages[h].len,e.fullField,e.len)):a&&!p&&ge.max?n.push(v(f.messages[h].max,e.fullField,e.max)):a&&p&&(ge.max)&&n.push(v(f.messages[h].range,e.fullField,e.min,e.max))}var P="enum";function ne(e,r,t,n,f){e[P]=Array.isArray(e[P])?e[P]:[],e[P].indexOf(r)===-1&&n.push(v(f.messages[P],e.fullField,e[P].join(", ")))}function te(e,r,t,n,f){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||n.push(v(f.messages.pattern.mismatch,e.fullField,r,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(r)||n.push(v(f.messages.pattern.mismatch,e.fullField,r,e.pattern))}}}var d={required:B,whitespace:k,type:ee,range:re,enum:ne,pattern:te};function ie(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r,"string")&&!e.required)return t();d.required(e,r,n,i,f,"string"),y(r,"string")||(d.type(e,r,n,i,f),d.range(e,r,n,i,f),d.pattern(e,r,n,i,f),e.whitespace===!0&&d.whitespace(e,r,n,i,f))}t(i)}function fe(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&d.type(e,r,n,i,f)}t(i)}function ae(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function se(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&d.type(e,r,n,i,f)}t(i)}function de(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),y(r)||d.type(e,r,n,i,f)}t(i)}function oe(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function pe(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function ye(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r,"array")&&!e.required)return t();d.required(e,r,n,i,f,"array"),y(r,"array")||(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function ue(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&d.type(e,r,n,i,f)}t(i)}var ge="enum";function me(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r&&d[ge](e,r,n,i,f)}t(i)}function he(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r,"string")&&!e.required)return t();d.required(e,r,n,i,f),y(r,"string")||d.pattern(e,r,n,i,f)}t(i)}function ce(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();if(d.required(e,r,n,i,f),!y(r)){var p=void 0;typeof r=="number"?p=new Date(r):p=r,d.type(e,p,n,i,f),p&&d.range(e,p.getTime(),n,i,f)}}t(i)}function ve(e,r,t,n,f){var i=[],a=Array.isArray(r)?"array":typeof r=="undefined"?"undefined":x(r);d.required(e,r,n,i,f,a),t(i)}function V(e,r,t,n,f){var i=e.type,a=[],p=e.required||!e.required&&n.hasOwnProperty(e.field);if(p){if(y(r,i)&&!e.required)return t();d.required(e,r,n,a,f,i),y(r,i)||d.type(e,r,n,a,f)}t(a)}var _={string:ie,method:fe,number:ae,boolean:se,regexp:de,integer:oe,float:pe,array:ye,object:ue,enum:me,pattern:he,date:ce,url:V,hex:V,email:V,required:ve};function C(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var J=C();function T(e){this.rules=null,this._messages=J,this.define(e)}T.prototype={messages:function(r){return r&&(this._messages=z(C(),r)),this._messages},define:function(r){if(!r)throw new Error("Cannot configure a schema with no rules");if((typeof r=="undefined"?"undefined":x(r))!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in r)r.hasOwnProperty(t)&&(n=r[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(r){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=arguments[2],i=r,a=n,p=f;if(typeof a=="function"&&(p=a,a={}),!this.rules||Object.keys(this.rules).length===0){p&&p();return}function l(o){var m=void 0,s=void 0,c=[],O={};function j(F){Array.isArray(F)?c=c.concat.apply(c,F):c.push(F)}for(m=0;m0&&arguments[0]!==void 0?arguments[0]:[],u=E;if(Array.isArray(u)||(u=[u]),u.length,u.length&&s.message&&(u=[].concat(s.message)),u=u.map(Z(s)),a.first&&u.length)return K[s.field]=1,m(u);if(!c)m(u);else{if(s.required&&!o.value)return s.message?u=[].concat(s.message).map(Z(s)):a.error?u=[a.error(s,v(a.messages.required,s.field))]:u=[],m(u);var w={};if(s.defaultField)for(var L in o.value)o.value.hasOwnProperty(L)&&(w[L]=s.defaultField);w=M({},w,o.rule.fields);for(var A in w)if(w.hasOwnProperty(A)){var Y=Array.isArray(w[A])?w[A]:[w[A]];w[A]=Y.map(O.bind(null,A))}var S=new T(w);S.messages(a.messages),o.rule.options&&(o.rule.options.messages=a.messages,o.rule.options.error=a.error),S.validate(o.value,o.rule.options||a,function(R){m(R&&R.length?u.concat(R):R)})}}var F=s.validator(s,o.value,j,o.source,a);F&&F.then&&F.then(function(){return j()},function(E){return j(E)})},function(o){l(o)})},getType:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!_.hasOwnProperty(r.type))throw new Error(v("Unknown rule type %s",r.type));return r.type||"string"},getValidationMethod:function(r){if(typeof r.validator=="function")return r.validator;var t=Object.keys(r),n=t.indexOf("message");return n!==-1&&t.splice(n,1),t.length===1&&t[0]==="required"?_.required:_[this.getType(r)]||!1}};T.register=function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");_[r]=t};T.messages=J;var qe=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),we=G(qe);export{we as r}; +import{g as G}from"./@traptitech.363dce05.js";import{_ as x,a as M}from"./babel-runtime.4773988a.js";var H=/%[sdj%]/g;function v(){for(var e=arguments.length,r=Array(e),t=0;t=i)return l;switch(l){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return l}}),p=r[n];n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},N={integer:function(r){return N.number(r)&&parseInt(r,10)===r},float:function(r){return N.number(r)&&!N.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return(typeof r=="undefined"?"undefined":x(r))==="object"&&!N.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&!!r.match(D.email)&&r.length<255},url:function(r){return typeof r=="string"&&!!r.match(D.url)},hex:function(r){return typeof r=="string"&&!!r.match(D.hex)}};function ee(e,r,t,n,f){if(e.required&&r===void 0){B(e,r,t,n,f);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;i.indexOf(a)>-1?N[a](r)||n.push(v(f.messages.types[a],e.fullField,e.type)):a&&(typeof r=="undefined"?"undefined":x(r))!==e.type&&n.push(v(f.messages.types[a],e.fullField,e.type))}function re(e,r,t,n,f){var i=typeof e.len=="number",a=typeof e.min=="number",p=typeof e.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=r,h=null,b=typeof r=="number",q=typeof r=="string",$=Array.isArray(r);if(b?h="number":q?h="string":$&&(h="array"),!h)return!1;$&&(g=r.length),q&&(g=r.replace(l,"_").length),i?g!==e.len&&n.push(v(f.messages[h].len,e.fullField,e.len)):a&&!p&&ge.max?n.push(v(f.messages[h].max,e.fullField,e.max)):a&&p&&(ge.max)&&n.push(v(f.messages[h].range,e.fullField,e.min,e.max))}var P="enum";function ne(e,r,t,n,f){e[P]=Array.isArray(e[P])?e[P]:[],e[P].indexOf(r)===-1&&n.push(v(f.messages[P],e.fullField,e[P].join(", ")))}function te(e,r,t,n,f){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||n.push(v(f.messages.pattern.mismatch,e.fullField,r,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(r)||n.push(v(f.messages.pattern.mismatch,e.fullField,r,e.pattern))}}}var d={required:B,whitespace:k,type:ee,range:re,enum:ne,pattern:te};function ie(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r,"string")&&!e.required)return t();d.required(e,r,n,i,f,"string"),y(r,"string")||(d.type(e,r,n,i,f),d.range(e,r,n,i,f),d.pattern(e,r,n,i,f),e.whitespace===!0&&d.whitespace(e,r,n,i,f))}t(i)}function fe(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&d.type(e,r,n,i,f)}t(i)}function ae(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function se(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&d.type(e,r,n,i,f)}t(i)}function de(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),y(r)||d.type(e,r,n,i,f)}t(i)}function oe(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function pe(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function ye(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r,"array")&&!e.required)return t();d.required(e,r,n,i,f,"array"),y(r,"array")||(d.type(e,r,n,i,f),d.range(e,r,n,i,f))}t(i)}function ue(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r!==void 0&&d.type(e,r,n,i,f)}t(i)}var ge="enum";function me(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();d.required(e,r,n,i,f),r&&d[ge](e,r,n,i,f)}t(i)}function he(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r,"string")&&!e.required)return t();d.required(e,r,n,i,f),y(r,"string")||d.pattern(e,r,n,i,f)}t(i)}function ce(e,r,t,n,f){var i=[],a=e.required||!e.required&&n.hasOwnProperty(e.field);if(a){if(y(r)&&!e.required)return t();if(d.required(e,r,n,i,f),!y(r)){var p=void 0;typeof r=="number"?p=new Date(r):p=r,d.type(e,p,n,i,f),p&&d.range(e,p.getTime(),n,i,f)}}t(i)}function ve(e,r,t,n,f){var i=[],a=Array.isArray(r)?"array":typeof r=="undefined"?"undefined":x(r);d.required(e,r,n,i,f,a),t(i)}function V(e,r,t,n,f){var i=e.type,a=[],p=e.required||!e.required&&n.hasOwnProperty(e.field);if(p){if(y(r,i)&&!e.required)return t();d.required(e,r,n,a,f,i),y(r,i)||d.type(e,r,n,a,f)}t(a)}var _={string:ie,method:fe,number:ae,boolean:se,regexp:de,integer:oe,float:pe,array:ye,object:ue,enum:me,pattern:he,date:ce,url:V,hex:V,email:V,required:ve};function C(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var J=C();function T(e){this.rules=null,this._messages=J,this.define(e)}T.prototype={messages:function(r){return r&&(this._messages=z(C(),r)),this._messages},define:function(r){if(!r)throw new Error("Cannot configure a schema with no rules");if((typeof r=="undefined"?"undefined":x(r))!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in r)r.hasOwnProperty(t)&&(n=r[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(r){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=arguments[2],i=r,a=n,p=f;if(typeof a=="function"&&(p=a,a={}),!this.rules||Object.keys(this.rules).length===0){p&&p();return}function l(o){var m=void 0,s=void 0,c=[],O={};function j(F){Array.isArray(F)?c=c.concat.apply(c,F):c.push(F)}for(m=0;m0&&arguments[0]!==void 0?arguments[0]:[],u=E;if(Array.isArray(u)||(u=[u]),u.length,u.length&&s.message&&(u=[].concat(s.message)),u=u.map(Z(s)),a.first&&u.length)return K[s.field]=1,m(u);if(!c)m(u);else{if(s.required&&!o.value)return s.message?u=[].concat(s.message).map(Z(s)):a.error?u=[a.error(s,v(a.messages.required,s.field))]:u=[],m(u);var w={};if(s.defaultField)for(var L in o.value)o.value.hasOwnProperty(L)&&(w[L]=s.defaultField);w=M({},w,o.rule.fields);for(var A in w)if(w.hasOwnProperty(A)){var Y=Array.isArray(w[A])?w[A]:[w[A]];w[A]=Y.map(O.bind(null,A))}var S=new T(w);S.messages(a.messages),o.rule.options&&(o.rule.options.messages=a.messages,o.rule.options.error=a.error),S.validate(o.value,o.rule.options||a,function(R){m(R&&R.length?u.concat(R):R)})}}var F=s.validator(s,o.value,j,o.source,a);F&&F.then&&F.then(function(){return j()},function(E){return j(E)})},function(o){l(o)})},getType:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!_.hasOwnProperty(r.type))throw new Error(v("Unknown rule type %s",r.type));return r.type||"string"},getValidationMethod:function(r){if(typeof r.validator=="function")return r.validator;var t=Object.keys(r),n=t.indexOf("message");return n!==-1&&t.splice(n,1),t.length===1&&t[0]==="required"?_.required:_[this.getType(r)]||!1}};T.register=function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");_[r]=t};T.messages=J;var qe=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),we=G(qe);export{we as r}; diff --git a/public/js/build/calendar.93d27477.js b/public/js/build/calendar.e47babb8.js similarity index 91% rename from public/js/build/calendar.93d27477.js rename to public/js/build/calendar.e47babb8.js index 7d29ffae4..bc763cd93 100644 --- a/public/js/build/calendar.93d27477.js +++ b/public/js/build/calendar.e47babb8.js @@ -1 +1 @@ -import{m,a as f}from"./vuex.cc7cb26e.js";import"./tui-date-picker.f80618c0.js";import"./tui-time-picker.65ec3a74.js";import{C as g}from"./tui-calendar-hi.ed27d4e0.js";import{n as p,T as k,d as $}from"./app.f8a6fa5e.js";import{h as o}from"./moment.620e955d.js";import{l as y}from"./le5le-store.bd86c9e9.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./tui-code-snippet.1ad59ecb.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var _=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{ref:"tuiCalendar",staticClass:"calendar-wrapper"})},w=[];const T={name:"Calendar",props:{calendars:{type:Array,default(){return[]}},schedules:{type:Array,default(){return[]},validator(e){let a=!1;return e.forEach(t=>{a=["start","category"].some(s=>!t.hasOwnProperty(s))}),!a}},view:{type:String,default:"week"},taskView:{type:[Boolean,Array],default:!0},scheduleView:{type:[Boolean,Array],default:!0},theme:{type:Object,default(){return{}}},template:{type:Object,default(){return{}}},week:{type:Object,default(){return{}}},month:{type:Object,default(){return{}}},useCreationPopup:{type:Boolean,default:!0},useDetailPopup:{type:Boolean,default:!0},timezones:{type:Array,default(){return[]}},disableDblClick:{type:Boolean,default:!1},disableClick:{type:Boolean,default:!1},isReadOnly:{type:Boolean,default:!1},usageStatistics:{type:Boolean,default:!0}},data(){return{calendarInstance:null}},watch:{calendars(e){this.calendarInstance.setCalendars(e),this.$nextTick(this.resetRender)},schedules(){this.resetRender()},view(e){this.calendarInstance.changeView(e,!0)},taskView(e){this.calendarInstance.setOptions({taskView:e})},scheduleView(e){this.calendarInstance.setOptions({scheduleView:e})},theme:{handler(e){this.calendarInstance.setTheme($A.cloneJSON(e))},deep:!0},week:{handler(e){const a=this.view!=="week"&&this.view!=="day";this.calendarInstance.setOptions({week:$A.cloneJSON(e)},a)},deep:!0},month:{handler(e){const a=this.view!=="month";this.calendarInstance.setOptions({month:$A.cloneJSON(e)},a)},deep:!0},timezones(e){this.calendarInstance.setOptions({timezones:e})},disableDblClick(e){this.calendarInstance.setOptions({disableDblClick:e})},disableClick(e){this.calendarInstance.setOptions({disableClick:e})},isReadOnly(e){this.calendarInstance.setOptions({isReadOnly:e})},windowPortrait:{handler(e){this.resetRender()},immediate:!0}},mounted(){this.calendarInstance=new g(this.$refs.tuiCalendar,{defaultView:this.view,taskView:this.taskView,scheduleView:this.scheduleView,theme:this.theme,template:this.template,week:this.week,month:this.month,calendars:this.calendars,useCreationPopup:this.useCreationPopup,useDetailPopup:this.useDetailPopup,timezones:this.timezones,disableDblClick:this.disableDblClick,disableClick:this.disableClick,isReadOnly:this.isReadOnly,usageStatistics:this.usageStatistics}),this.addEventListeners(),this.reflectSchedules(),window.addEventListener("resize",this.resetRender)},beforeDestroy(){this.calendarInstance.off(),this.calendarInstance.destroy(),window.removeEventListener("resize",this.resetRender)},methods:{addEventListeners(){for(const e of Object.keys(this.$listeners))this.calendarInstance.on(e,(...a)=>this.$emit(e,...a))},reflectSchedules(){this.schedules.length>0&&this.invoke("createSchedules",this.schedules)},getRootElement(){return this.$refs.tuiCalendar},getInstance(){return this.calendarInstance},resetRender(){this.calendarInstance&&(this.calendarInstance.clear(),this.reflectSchedules())},invoke(e,...a){let t;return this.calendarInstance[e]&&(t=this.calendarInstance[e](...a)),t}}},h={};var v=p(T,_,w,!1,C,null,null,null);function C(e){for(let a in h)this[a]=h[a]}var b=function(){return v.exports}(),S=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"page-calendar"},[t("PageTitle",{attrs:{title:e.$L("\u65E5\u5386")}}),t("div",{staticClass:"calendar-head"},[t("div",{staticClass:"calendar-titbox"},[t("div",{staticClass:"calendar-title"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(s){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.rangeText))])]),t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:e.preMonth}},[t("Icon",{attrs:{type:"ios-arrow-back"}})],1),t("Button",{on:{click:e.afterMonth}},[t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1),t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:e.curMonth}},[e._v(e._s(e.$L("\u4ECA\u5929")))])],1),t("ButtonGroup",{staticClass:"calendar-view"},[t("Button",{attrs:{type:e.calendarView=="day"?"primary":"default"},on:{click:function(s){return e.setView("day")}}},[e._v(e._s(e.$L("\u65E5")))]),t("Button",{attrs:{type:e.calendarView=="week"?"primary":"default"},on:{click:function(s){return e.setView("week")}}},[e._v(e._s(e.$L("\u5468")))]),t("Button",{attrs:{type:e.calendarView=="month"?"primary":"default"},on:{click:function(s){return e.setView("month")}}},[e._v(e._s(e.$L("\u6708")))])],1)],1)]),t("div",{staticClass:"calendar-box"},[t("Calendar",{ref:"cal",attrs:{view:e.calendarView,week:e.calendarWeek,month:e.calendarMonth,theme:e.calendarTheme,template:e.calendarTemplate,schedules:e.list,taskView:!1,useCreationPopup:!1,"disable-click":""},on:{beforeCreateSchedule:e.onBeforeCreateSchedule,beforeClickSchedule:e.onBeforeClickSchedule,beforeUpdateSchedule:e.onBeforeUpdateSchedule}})],1),t("div",{staticClass:"calendar-menu",style:e.calendarMenuStyles},[t("TaskMenu",{ref:"calendarTaskMenu",attrs:{task:e.calendarTask,updateBefore:""}})],1)],1)},D=[];const I={components:{TaskMenu:k,Calendar:b},data(){return{lists:[],rangeText:"Calendar",rangeTime:[],calendarView:"month",calendarWeek:{},calendarMonth:{},calendarTheme:{},calendarTemplate:{},calendarTask:{},calendarMenuStyles:{top:0,left:0},loadIng:0,loadTimeout:null}},created(){$([{key:"{\u65E5}",zh:"\u65E5",general:"Sun"},{key:"{\u4E00}",zh:"\u4E00",general:"Mon"},{key:"{\u4E8C}",zh:"\u4E8C",general:"Tue"},{key:"{\u4E09}",zh:"\u4E09",general:"Wed"},{key:"{\u56DB}",zh:"\u56DB",general:"Thu"},{key:"{\u4E94}",zh:"\u4E94",general:"Fri"},{key:"{\u516D}",zh:"\u516D",general:"Sat"}]);let e=[this.$L("{\u65E5}"),this.$L("{\u4E00}"),this.$L("{\u4E8C}"),this.$L("{\u4E09}"),this.$L("{\u56DB}"),this.$L("{\u4E94}"),this.$L("{\u516D}")];this.calendarWeek={daynames:e},this.calendarMonth={daynames:e},this.calendarTheme={"common.border":"1px solid rgba(0,0,0,0)","month.dayname.fontSize":"14px","month.dayname.borderLeft":"1px solid rgba(0,0,0,0)","month.dayname.height":"50px"},this.windowLandscape&&(this.calendarTheme={"common.border":"1px solid #f4f5f5","month.dayname.fontSize":"14px","month.dayname.borderLeft":"1px solid #f4f5f5","month.dayname.height":"50px"}),this.calendarTemplate={titlePlaceholder:()=>this.$L("\u4EFB\u52A1\u63CF\u8FF0"),popupSave:()=>this.$L("\u4FDD\u5B58"),popupEdit:()=>this.$L("\u8BE6\u60C5"),popupDelete:()=>this.$L("\u5220\u9664")}},activated(){this.$refs.cal.resetRender(),this.setRenderRange()},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...m(["cacheTasks","taskCompleteTemps","wsOpenNum","themeName"]),...f(["transforTasks"]),list(){const{cacheTasks:e,taskCompleteTemps:a}=this,t=(r,i=!0)=>r.archived_at||r.complete_at&&i===!0||!r.end_at?!1:r.owner==1;let s=e.filter(r=>t(r));if(a.length>0){let r=e.filter(i=>a.includes(i.id)&&t(i,!1));r.length>0&&(s=$A.cloneJSON(s),s.push(...r))}return this.transforTasks(s).map(r=>{const i=$A.rightExists(r.start_at,"00:00:00")&&$A.rightExists(r.end_at,"23:59:59"),n={id:r.id,calendarId:String(r.project_id),title:r.name,body:r.desc,isAllDay:i,category:i?"allday":"time",start:$A.Date(r.start_at).toISOString(),end:$A.Date(r.end_at).toISOString(),color:"#515a6e",bgColor:r.color||"#E3EAFD",borderColor:r.p_color,priority:"",preventClick:!0,preventCheckHide:!0,isChecked:!!r.complete_at,complete_at:r.complete_at,start_at:r.start_at,end_at:r.end_at,_time:r._time};if(r.p_name){let l=`background-color:${r.p_color}`;this.themeName==="dark"&&(l=`color:${r.p_color};border:1px solid ${r.p_color};padding:1px 3px;`),n.priority=`${r.p_name}`}return r.sub_my&&r.sub_my.length>0&&(n.title=`[+${r.sub_my.length}] ${n.title}`),r.sub_top===!0&&(n.title=`[${this.$L("\u5B50\u4EFB\u52A1")}] ${n.title}`),r.flow_item_name&&(n.title=`[${r.flow_item_name}] ${n.title}`),r.complete_at?(n.color="#c3c2c2",n.bgColor="#f3f3f3",n.borderColor="#e3e3e3"):r.overdue&&(n.title=`[${this.$L("\u8D85\u671F")}] ${n.title}`,n.color="#f56c6c",n.bgColor=r.color||"#fef0f0",n.priority+=`${this.$L("\u8D85\u671F\u672A\u5B8C\u6210")}`),n.borderColor||(n.borderColor=n.bgColor),n})}},watch:{rangeTime(e){this.getTask(e)},wsOpenNum(e){e<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-calendar"&&this.setRenderRange()},5e3))}},methods:{getTask(e){if(this.loadIng>0){clearTimeout(this.loadTimeout),this.loadTimeout=setTimeout(()=>{this.getTask(e)},100);return}this.loadIng++,this.$store.dispatch("getTasks",{time:e}).finally(a=>{this.loadIng--})},preMonth(){this.$refs.cal.getInstance().prev(),this.setRenderRange()},curMonth(){this.$refs.cal.getInstance().today(),this.setRenderRange()},afterMonth(){this.$refs.cal.getInstance().next(),this.setRenderRange()},setView(e){this.calendarView=e,this.setRenderRange()},setRenderRange(){this.$nextTick(()=>{const e=this.$refs.cal.getInstance();let a=e.getOptions(),t=e.getViewName(),s=[];t==="day"?s.push(this.currentCalendarDate("YYYY.MM.DD")):t==="month"&&(!a.month.visibleWeeksCount||a.month.visibleWeeksCount>4)?s.push(this.currentCalendarDate("YYYY.MM")):(s.push(o(e.getDateRangeStart().getTime()).format("YYYY.MM.DD")),s.push(" ~ "),s.push(o(e.getDateRangeEnd().getTime()).format(" MM.DD"))),this.rangeText=s.join(""),this.rangeTime=[o(e.getDateRangeStart().getTime()).format("YYYY-MM-DD"),o(e.getDateRangeEnd().getTime()).format("YYYY-MM-DD")]})},currentCalendarDate(e){const a=this.$refs.cal.getInstance();return o([a.getDate().getFullYear(),a.getDate().getMonth(),a.getDate().getDate()]).format(e)},onBeforeCreateSchedule({start:e,end:a,isAllDay:t,guide:s}){t||this.calendarView=="month"?(e=$A.date2string(e.toDate(),"Y-m-d 00:00:00"),a=$A.date2string(a.toDate(),"Y-m-d 23:59:59")):(e=$A.date2string(e.toDate(),"Y-m-d H:i:s"),a=$A.date2string(a.toDate(),"Y-m-d H:i:s")),y.Store.set("addTask",{times:[e,a],owner:[this.userId],beforeClose:()=>s.clearGuideElement()})},onBeforeClickSchedule(e){const{type:a,schedule:t}=e;let s=this.cacheTasks.find(({id:r})=>r===t.id);if(!!s)switch(a){case"check":this.calendarMenuStyles={left:`${this.getElementLeft(e.target)}px`,top:`${this.getElementTop(e.target)-8}px`},this.calendarTask=s,this.$nextTick(this.$refs.calendarTaskMenu.show);break;case"edit":this.$store.dispatch("openTask",s);break;case"delete":$A.modalConfirm({title:"\u5220\u9664\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u3010"+s.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((r,i)=>{this.$store.dispatch("removeTask",{task_id:s.id}).then(({msg:n})=>{r(n)}).catch(({msg:n})=>{i(n),this.setRenderRange()})})});break}},onBeforeUpdateSchedule(e){var r,i,n,l;const{changes:a,schedule:t}=e;let s=this.cacheTasks.find(({id:d})=>d===t.id);!s||((r=a==null?void 0:a.start)==null?void 0:r.getTime())==((i=t==null?void 0:t.start)==null?void 0:i.getTime())&&((n=a==null?void 0:a.end)==null?void 0:n.getTime())==((l=t==null?void 0:t.end)==null?void 0:l.getTime())||((a==null?void 0:a.start)||(a==null?void 0:a.end))&&(this.$refs.cal.getInstance().updateSchedule(t.id,t.calendarId,a),this.$store.dispatch("taskUpdate",{task_id:s.id,times:[(a.start||t.start).toDate(),(a.end||t.end).toDate()]}).then(({msg:c})=>{$A.messageSuccess(c)}).catch(({msg:c})=>{$A.modalError(c),this.setRenderRange()}))},getElementLeft(e){let a=e.offsetLeft,t=e.offsetParent;for(;t!==null&&t!=this.$el;)a+=t.offsetLeft+t.clientLeft,t=t.offsetParent;return a},getElementTop(e){let a=e.offsetTop,t=e.offsetParent;for(;t!==null&&t!=this.$el;)a+=t.offsetTop+t.clientTop,t=t.offsetParent;return a}}},u={};var R=p(I,S,D,!1,L,null,null,null);function L(e){for(let a in u)this[a]=u[a]}var $e=function(){return R.exports}();export{$e as default}; +import{m,a as f}from"./vuex.cc7cb26e.js";import"./tui-date-picker.87c69814.js";import"./tui-time-picker.edd3de9f.js";import{C as g}from"./tui-calendar-hi.ae5960be.js";import{n as p,T as k,d as $}from"./app.57070a0d.js";import{h as o}from"./moment.620e955d.js";import{l as y}from"./le5le-store.b40f9152.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./tui-code-snippet.449e7a67.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var _=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{ref:"tuiCalendar",staticClass:"calendar-wrapper"})},w=[];const T={name:"Calendar",props:{calendars:{type:Array,default(){return[]}},schedules:{type:Array,default(){return[]},validator(e){let a=!1;return e.forEach(t=>{a=["start","category"].some(s=>!t.hasOwnProperty(s))}),!a}},view:{type:String,default:"week"},taskView:{type:[Boolean,Array],default:!0},scheduleView:{type:[Boolean,Array],default:!0},theme:{type:Object,default(){return{}}},template:{type:Object,default(){return{}}},week:{type:Object,default(){return{}}},month:{type:Object,default(){return{}}},useCreationPopup:{type:Boolean,default:!0},useDetailPopup:{type:Boolean,default:!0},timezones:{type:Array,default(){return[]}},disableDblClick:{type:Boolean,default:!1},disableClick:{type:Boolean,default:!1},isReadOnly:{type:Boolean,default:!1},usageStatistics:{type:Boolean,default:!0}},data(){return{calendarInstance:null}},watch:{calendars(e){this.calendarInstance.setCalendars(e),this.$nextTick(this.resetRender)},schedules(){this.resetRender()},view(e){this.calendarInstance.changeView(e,!0)},taskView(e){this.calendarInstance.setOptions({taskView:e})},scheduleView(e){this.calendarInstance.setOptions({scheduleView:e})},theme:{handler(e){this.calendarInstance.setTheme($A.cloneJSON(e))},deep:!0},week:{handler(e){const a=this.view!=="week"&&this.view!=="day";this.calendarInstance.setOptions({week:$A.cloneJSON(e)},a)},deep:!0},month:{handler(e){const a=this.view!=="month";this.calendarInstance.setOptions({month:$A.cloneJSON(e)},a)},deep:!0},timezones(e){this.calendarInstance.setOptions({timezones:e})},disableDblClick(e){this.calendarInstance.setOptions({disableDblClick:e})},disableClick(e){this.calendarInstance.setOptions({disableClick:e})},isReadOnly(e){this.calendarInstance.setOptions({isReadOnly:e})},windowPortrait:{handler(e){this.resetRender()},immediate:!0}},mounted(){this.calendarInstance=new g(this.$refs.tuiCalendar,{defaultView:this.view,taskView:this.taskView,scheduleView:this.scheduleView,theme:this.theme,template:this.template,week:this.week,month:this.month,calendars:this.calendars,useCreationPopup:this.useCreationPopup,useDetailPopup:this.useDetailPopup,timezones:this.timezones,disableDblClick:this.disableDblClick,disableClick:this.disableClick,isReadOnly:this.isReadOnly,usageStatistics:this.usageStatistics}),this.addEventListeners(),this.reflectSchedules(),window.addEventListener("resize",this.resetRender)},beforeDestroy(){this.calendarInstance.off(),this.calendarInstance.destroy(),window.removeEventListener("resize",this.resetRender)},methods:{addEventListeners(){for(const e of Object.keys(this.$listeners))this.calendarInstance.on(e,(...a)=>this.$emit(e,...a))},reflectSchedules(){this.schedules.length>0&&this.invoke("createSchedules",this.schedules)},getRootElement(){return this.$refs.tuiCalendar},getInstance(){return this.calendarInstance},resetRender(){this.calendarInstance&&(this.calendarInstance.clear(),this.reflectSchedules())},invoke(e,...a){let t;return this.calendarInstance[e]&&(t=this.calendarInstance[e](...a)),t}}},h={};var v=p(T,_,w,!1,C,null,null,null);function C(e){for(let a in h)this[a]=h[a]}var b=function(){return v.exports}(),S=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"page-calendar"},[t("PageTitle",{attrs:{title:e.$L("\u65E5\u5386")}}),t("div",{staticClass:"calendar-head"},[t("div",{staticClass:"calendar-titbox"},[t("div",{staticClass:"calendar-title"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(s){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.rangeText))])]),t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:e.preMonth}},[t("Icon",{attrs:{type:"ios-arrow-back"}})],1),t("Button",{on:{click:e.afterMonth}},[t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1),t("ButtonGroup",{staticClass:"calendar-arrow",attrs:{size:"small"}},[t("Button",{on:{click:e.curMonth}},[e._v(e._s(e.$L("\u4ECA\u5929")))])],1),t("ButtonGroup",{staticClass:"calendar-view"},[t("Button",{attrs:{type:e.calendarView=="day"?"primary":"default"},on:{click:function(s){return e.setView("day")}}},[e._v(e._s(e.$L("\u65E5")))]),t("Button",{attrs:{type:e.calendarView=="week"?"primary":"default"},on:{click:function(s){return e.setView("week")}}},[e._v(e._s(e.$L("\u5468")))]),t("Button",{attrs:{type:e.calendarView=="month"?"primary":"default"},on:{click:function(s){return e.setView("month")}}},[e._v(e._s(e.$L("\u6708")))])],1)],1)]),t("div",{staticClass:"calendar-box"},[t("Calendar",{ref:"cal",attrs:{view:e.calendarView,week:e.calendarWeek,month:e.calendarMonth,theme:e.calendarTheme,template:e.calendarTemplate,schedules:e.list,taskView:!1,useCreationPopup:!1,"disable-click":""},on:{beforeCreateSchedule:e.onBeforeCreateSchedule,beforeClickSchedule:e.onBeforeClickSchedule,beforeUpdateSchedule:e.onBeforeUpdateSchedule}})],1),t("div",{staticClass:"calendar-menu",style:e.calendarMenuStyles},[t("TaskMenu",{ref:"calendarTaskMenu",attrs:{task:e.calendarTask,updateBefore:""}})],1)],1)},D=[];const I={components:{TaskMenu:k,Calendar:b},data(){return{lists:[],rangeText:"Calendar",rangeTime:[],calendarView:"month",calendarWeek:{},calendarMonth:{},calendarTheme:{},calendarTemplate:{},calendarTask:{},calendarMenuStyles:{top:0,left:0},loadIng:0,loadTimeout:null}},created(){$([{key:"{\u65E5}",zh:"\u65E5",general:"Sun"},{key:"{\u4E00}",zh:"\u4E00",general:"Mon"},{key:"{\u4E8C}",zh:"\u4E8C",general:"Tue"},{key:"{\u4E09}",zh:"\u4E09",general:"Wed"},{key:"{\u56DB}",zh:"\u56DB",general:"Thu"},{key:"{\u4E94}",zh:"\u4E94",general:"Fri"},{key:"{\u516D}",zh:"\u516D",general:"Sat"}]);let e=[this.$L("{\u65E5}"),this.$L("{\u4E00}"),this.$L("{\u4E8C}"),this.$L("{\u4E09}"),this.$L("{\u56DB}"),this.$L("{\u4E94}"),this.$L("{\u516D}")];this.calendarWeek={daynames:e},this.calendarMonth={daynames:e},this.calendarTheme={"common.border":"1px solid rgba(0,0,0,0)","month.dayname.fontSize":"14px","month.dayname.borderLeft":"1px solid rgba(0,0,0,0)","month.dayname.height":"50px"},this.windowLandscape&&(this.calendarTheme={"common.border":"1px solid #f4f5f5","month.dayname.fontSize":"14px","month.dayname.borderLeft":"1px solid #f4f5f5","month.dayname.height":"50px"}),this.calendarTemplate={titlePlaceholder:()=>this.$L("\u4EFB\u52A1\u63CF\u8FF0"),popupSave:()=>this.$L("\u4FDD\u5B58"),popupEdit:()=>this.$L("\u8BE6\u60C5"),popupDelete:()=>this.$L("\u5220\u9664")}},activated(){this.$refs.cal.resetRender(),this.setRenderRange()},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...m(["cacheTasks","taskCompleteTemps","wsOpenNum","themeName"]),...f(["transforTasks"]),list(){const{cacheTasks:e,taskCompleteTemps:a}=this,t=(r,i=!0)=>r.archived_at||r.complete_at&&i===!0||!r.end_at?!1:r.owner==1;let s=e.filter(r=>t(r));if(a.length>0){let r=e.filter(i=>a.includes(i.id)&&t(i,!1));r.length>0&&(s=$A.cloneJSON(s),s.push(...r))}return this.transforTasks(s).map(r=>{const i=$A.rightExists(r.start_at,"00:00:00")&&$A.rightExists(r.end_at,"23:59:59"),n={id:r.id,calendarId:String(r.project_id),title:r.name,body:r.desc,isAllDay:i,category:i?"allday":"time",start:$A.Date(r.start_at).toISOString(),end:$A.Date(r.end_at).toISOString(),color:"#515a6e",bgColor:r.color||"#E3EAFD",borderColor:r.p_color,priority:"",preventClick:!0,preventCheckHide:!0,isChecked:!!r.complete_at,complete_at:r.complete_at,start_at:r.start_at,end_at:r.end_at,_time:r._time};if(r.p_name){let l=`background-color:${r.p_color}`;this.themeName==="dark"&&(l=`color:${r.p_color};border:1px solid ${r.p_color};padding:1px 3px;`),n.priority=`${r.p_name}`}return r.sub_my&&r.sub_my.length>0&&(n.title=`[+${r.sub_my.length}] ${n.title}`),r.sub_top===!0&&(n.title=`[${this.$L("\u5B50\u4EFB\u52A1")}] ${n.title}`),r.flow_item_name&&(n.title=`[${r.flow_item_name}] ${n.title}`),r.complete_at?(n.color="#c3c2c2",n.bgColor="#f3f3f3",n.borderColor="#e3e3e3"):r.overdue&&(n.title=`[${this.$L("\u8D85\u671F")}] ${n.title}`,n.color="#f56c6c",n.bgColor=r.color||"#fef0f0",n.priority+=`${this.$L("\u8D85\u671F\u672A\u5B8C\u6210")}`),n.borderColor||(n.borderColor=n.bgColor),n})}},watch:{rangeTime(e){this.getTask(e)},wsOpenNum(e){e<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-calendar"&&this.setRenderRange()},5e3))}},methods:{getTask(e){if(this.loadIng>0){clearTimeout(this.loadTimeout),this.loadTimeout=setTimeout(()=>{this.getTask(e)},100);return}this.loadIng++,this.$store.dispatch("getTasks",{time:e}).finally(a=>{this.loadIng--})},preMonth(){this.$refs.cal.getInstance().prev(),this.setRenderRange()},curMonth(){this.$refs.cal.getInstance().today(),this.setRenderRange()},afterMonth(){this.$refs.cal.getInstance().next(),this.setRenderRange()},setView(e){this.calendarView=e,this.setRenderRange()},setRenderRange(){this.$nextTick(()=>{const e=this.$refs.cal.getInstance();let a=e.getOptions(),t=e.getViewName(),s=[];t==="day"?s.push(this.currentCalendarDate("YYYY.MM.DD")):t==="month"&&(!a.month.visibleWeeksCount||a.month.visibleWeeksCount>4)?s.push(this.currentCalendarDate("YYYY.MM")):(s.push(o(e.getDateRangeStart().getTime()).format("YYYY.MM.DD")),s.push(" ~ "),s.push(o(e.getDateRangeEnd().getTime()).format(" MM.DD"))),this.rangeText=s.join(""),this.rangeTime=[o(e.getDateRangeStart().getTime()).format("YYYY-MM-DD"),o(e.getDateRangeEnd().getTime()).format("YYYY-MM-DD")]})},currentCalendarDate(e){const a=this.$refs.cal.getInstance();return o([a.getDate().getFullYear(),a.getDate().getMonth(),a.getDate().getDate()]).format(e)},onBeforeCreateSchedule({start:e,end:a,isAllDay:t,guide:s}){t||this.calendarView=="month"?(e=$A.date2string(e.toDate(),"Y-m-d 00:00:00"),a=$A.date2string(a.toDate(),"Y-m-d 23:59:59")):(e=$A.date2string(e.toDate(),"Y-m-d H:i:s"),a=$A.date2string(a.toDate(),"Y-m-d H:i:s")),y.Store.set("addTask",{times:[e,a],owner:[this.userId],beforeClose:()=>s.clearGuideElement()})},onBeforeClickSchedule(e){const{type:a,schedule:t}=e;let s=this.cacheTasks.find(({id:r})=>r===t.id);if(!!s)switch(a){case"check":this.calendarMenuStyles={left:`${this.getElementLeft(e.target)}px`,top:`${this.getElementTop(e.target)-8}px`},this.calendarTask=s,this.$nextTick(this.$refs.calendarTaskMenu.show);break;case"edit":this.$store.dispatch("openTask",s);break;case"delete":$A.modalConfirm({title:"\u5220\u9664\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u3010"+s.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((r,i)=>{this.$store.dispatch("removeTask",{task_id:s.id}).then(({msg:n})=>{r(n)}).catch(({msg:n})=>{i(n),this.setRenderRange()})})});break}},onBeforeUpdateSchedule(e){var r,i,n,l;const{changes:a,schedule:t}=e;let s=this.cacheTasks.find(({id:d})=>d===t.id);!s||((r=a==null?void 0:a.start)==null?void 0:r.getTime())==((i=t==null?void 0:t.start)==null?void 0:i.getTime())&&((n=a==null?void 0:a.end)==null?void 0:n.getTime())==((l=t==null?void 0:t.end)==null?void 0:l.getTime())||((a==null?void 0:a.start)||(a==null?void 0:a.end))&&(this.$refs.cal.getInstance().updateSchedule(t.id,t.calendarId,a),this.$store.dispatch("taskUpdate",{task_id:s.id,times:[(a.start||t.start).toDate(),(a.end||t.end).toDate()]}).then(({msg:c})=>{$A.messageSuccess(c)}).catch(({msg:c})=>{$A.modalError(c),this.setRenderRange()}))},getElementLeft(e){let a=e.offsetLeft,t=e.offsetParent;for(;t!==null&&t!=this.$el;)a+=t.offsetLeft+t.clientLeft,t=t.offsetParent;return a},getElementTop(e){let a=e.offsetTop,t=e.offsetParent;for(;t!==null&&t!=this.$el;)a+=t.offsetTop+t.clientTop,t=t.offsetParent;return a}}},u={};var R=p(I,S,D,!1,L,null,null,null);function L(e){for(let a in u)this[a]=u[a]}var $e=function(){return R.exports}();export{$e as default}; diff --git a/public/js/build/checkin.343cc0f9.js b/public/js/build/checkin.e5796891.js similarity index 90% rename from public/js/build/checkin.343cc0f9.js rename to public/js/build/checkin.e5796891.js index 285459fb5..1f2094a2f 100644 --- a/public/js/build/checkin.343cc0f9.js +++ b/public/js/build/checkin.e5796891.js @@ -1 +1 @@ -import{n as h}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"checkin-calendar"},[e("div",{staticClass:"calendar-header"},[e("div",{staticClass:"calendar-header-menu"},[e("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),e("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?e("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?e("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),e("table",{staticClass:"check-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$L("\u65E5")))]),e("th",[t._v(t._s(t.$L("\u4E00")))]),e("th",[t._v(t._s(t.$L("\u4E8C")))]),e("th",[t._v(t._s(t.$L("\u4E09")))]),e("th",[t._v(t._s(t.$L("\u56DB")))]),e("th",[t._v(t._s(t.$L("\u4E94")))]),e("th",[t._v(t._s(t.$L("\u516D")))])])]),e("tbody",t._l(t.dateArray,function(s){return e("tr",[t._l(s,function(i){return[i.month?e("td",{class:{today:i.today,checkin:t.isCheck(i.date)}},[e("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(i.date)}},[e("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(i.date))},slot:"content"}),e("div",{staticClass:"item-day"},[i.today?e("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):e("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):i.today?e("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):e("td",{staticClass:"disabled"},[e("div",{staticClass:"item-day"},[e("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?e("div",{staticClass:"calendar-loading"},[e("Loading")],1):t._e()])},d=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:a,section:e})=>{a=a.replace(/-0?/g,"/");let s=this.historys.findIndex(i=>i.date==a);s>-1?this.historys.splice(s,1,{date:a,section:e}):this.historys.push({date:a,section:e})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:a}=this;return parseInt(t)!=$A.formatDate("Y")||parseInt(a)<$A.formatDate("m")}},methods:{ym(){return this.year+"-"+(this.month<10?"0"+this.month:this.month)},isCheck(t){return!!this.historys.find(a=>a.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const a=this.historys.find(e=>e.date==t);return a==null?void 0:a.section.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},generateCalendar(){let t=new Date($A.formatDate("Y/m/d")),a=new Date(this.year,this.month-1,1),e=a.getTime()-a.getDay()*86400*1e3,s=[];for(let i=0;i<6;i++){s[i]=[];for(let n=0;n<7;n++){let r=new Date(e),o=r.getMonth()+1;s[i][n]={day:r.getDate(),date:`${r.getFullYear()}/${o}/${r.getDate()}`,today:t.getTime()==r.getTime(),future:t.getTime()0?e("div",{staticClass:"setting-checkin-load"},[e("Loading")],1):e("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,i){return e("TimelineItem",{key:i,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[e("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),e("p",{staticClass:"time"},[t._v(t._s(s.date))]),e("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),e("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),e("Alert",[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),e("div",{staticClass:"setting-checkin-row"},[e("Row",{staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,i){return e("Row",{key:i,staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delDatum(i)}},model:{value:s.mac,callback:function(n){t.$set(s,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(n){t.$set(s,"remark",n)},expression:"item.remark"}})],1)],1)})],2),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[e("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},y=[];const $={name:"ManageCheckin",components:{CheckinCalendar:f},data(){return{loadIng:0,formData:[],nullDatum:{mac:"",remark:""},latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(a=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.length>0?t:[$A.cloneJSON(this.nullDatum)],this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const a=this.formData.filter(e=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(e.mac.trim())).map(e=>({mac:e.mac.trim(),remark:e.remark.trim()}));this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{list:a},method:"post"}).then(({data:e})=>{this.formData=e,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.formatDate("Y-m"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){const a=$A.Time();this.latelyData=[];for(let e=0;e<5;e++){const s=$A.formatDate("Y-m-d",a-e*86400),i=t.find(({date:n})=>n==s)||{date:s,section:[]};this.latelyData.push(i)}},latelySection(t){return t.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(a=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:a})=>{this.$refs.calendar.ym()==t&&(this.calendarData=a,t==$A.formatDate("Y-m")&&this.latelyFormat(a))}).catch(({msg:a})=>{this.calendarData=[],$A.modalError(a)}).finally(a=>{this.calendarLoading--})}}},c={};var g=h($,v,y,!1,D,null,null,null);function D(t){for(let a in c)this[a]=c[a]}var it=function(){return g.exports}();export{it as default}; +import{n as h}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"checkin-calendar"},[e("div",{staticClass:"calendar-header"},[e("div",{staticClass:"calendar-header-menu"},[e("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),e("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?e("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?e("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),e("table",{staticClass:"check-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$L("\u65E5")))]),e("th",[t._v(t._s(t.$L("\u4E00")))]),e("th",[t._v(t._s(t.$L("\u4E8C")))]),e("th",[t._v(t._s(t.$L("\u4E09")))]),e("th",[t._v(t._s(t.$L("\u56DB")))]),e("th",[t._v(t._s(t.$L("\u4E94")))]),e("th",[t._v(t._s(t.$L("\u516D")))])])]),e("tbody",t._l(t.dateArray,function(s){return e("tr",[t._l(s,function(i){return[i.month?e("td",{class:{today:i.today,checkin:t.isCheck(i.date)}},[e("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(i.date)}},[e("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(i.date))},slot:"content"}),e("div",{staticClass:"item-day"},[i.today?e("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):e("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):i.today?e("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):e("td",{staticClass:"disabled"},[e("div",{staticClass:"item-day"},[e("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?e("div",{staticClass:"calendar-loading"},[e("Loading")],1):t._e()])},d=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:a,section:e})=>{a=a.replace(/-0?/g,"/");let s=this.historys.findIndex(i=>i.date==a);s>-1?this.historys.splice(s,1,{date:a,section:e}):this.historys.push({date:a,section:e})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:a}=this;return parseInt(t)!=$A.formatDate("Y")||parseInt(a)<$A.formatDate("m")}},methods:{ym(){return this.year+"-"+(this.month<10?"0"+this.month:this.month)},isCheck(t){return!!this.historys.find(a=>a.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const a=this.historys.find(e=>e.date==t);return a==null?void 0:a.section.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},generateCalendar(){let t=new Date($A.formatDate("Y/m/d")),a=new Date(this.year,this.month-1,1),e=a.getTime()-a.getDay()*86400*1e3,s=[];for(let i=0;i<6;i++){s[i]=[];for(let n=0;n<7;n++){let r=new Date(e),o=r.getMonth()+1;s[i][n]={day:r.getDate(),date:`${r.getFullYear()}/${o}/${r.getDate()}`,today:t.getTime()==r.getTime(),future:t.getTime()0?e("div",{staticClass:"setting-checkin-load"},[e("Loading")],1):e("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,i){return e("TimelineItem",{key:i,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[e("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),e("p",{staticClass:"time"},[t._v(t._s(s.date))]),e("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),e("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),e("Alert",[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),e("div",{staticClass:"setting-checkin-row"},[e("Row",{staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,i){return e("Row",{key:i,staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delDatum(i)}},model:{value:s.mac,callback:function(n){t.$set(s,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(n){t.$set(s,"remark",n)},expression:"item.remark"}})],1)],1)})],2),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[e("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},y=[];const $={name:"ManageCheckin",components:{CheckinCalendar:f},data(){return{loadIng:0,formData:[],nullDatum:{mac:"",remark:""},latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(a=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.length>0?t:[$A.cloneJSON(this.nullDatum)],this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const a=this.formData.filter(e=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(e.mac.trim())).map(e=>({mac:e.mac.trim(),remark:e.remark.trim()}));this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{list:a},method:"post"}).then(({data:e})=>{this.formData=e,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.formatDate("Y-m"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){const a=$A.Time();this.latelyData=[];for(let e=0;e<5;e++){const s=$A.formatDate("Y-m-d",a-e*86400),i=t.find(({date:n})=>n==s)||{date:s,section:[]};this.latelyData.push(i)}},latelySection(t){return t.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(a=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:a})=>{this.$refs.calendar.ym()==t&&(this.calendarData=a,t==$A.formatDate("Y-m")&&this.latelyFormat(a))}).catch(({msg:a})=>{this.calendarData=[],$A.modalError(a)}).finally(a=>{this.calendarLoading--})}}},c={};var g=h($,v,y,!1,D,null,null,null);function D(t){for(let a in c)this[a]=c[a]}var it=function(){return g.exports}();export{it as default}; diff --git a/public/js/build/clipboard.907979fd.js b/public/js/build/clipboard.d74ec60d.js similarity index 99% rename from public/js/build/clipboard.907979fd.js rename to public/js/build/clipboard.d74ec60d.js index 13c5190f8..34f8b88f5 100644 --- a/public/js/build/clipboard.907979fd.js +++ b/public/js/build/clipboard.d74ec60d.js @@ -1,4 +1,4 @@ -import{c as M}from"./@traptitech.4f5fb92a.js";var P={exports:{}};/*! +import{c as M}from"./@traptitech.363dce05.js";var P={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * diff --git a/public/js/build/dashboard.c8b2c3c1.js b/public/js/build/dashboard.3cd7bbf3.js similarity index 85% rename from public/js/build/dashboard.c8b2c3c1.js rename to public/js/build/dashboard.3cd7bbf3.js index bb3ffb4ec..d4e079d12 100644 --- a/public/js/build/dashboard.c8b2c3c1.js +++ b/public/js/build/dashboard.3cd7bbf3.js @@ -1 +1 @@ -import{m as l,a as c}from"./vuex.cc7cb26e.js";import{T as d,n as u}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var _=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page-dashboard"},[s("PageTitle",{attrs:{title:t.$L("\u4EEA\u8868\u76D8")}}),t.warningMsg?s("Alert",{staticClass:"dashboard-warning",attrs:{type:"warning","show-icon":""}},[s("span",{on:{click:function(o){return t.goForward({name:"manage-setting-license"})}}},[t._v(t._s(t.warningMsg))])]):t._e(),s("div",{staticClass:"dashboard-wrapper",style:t.wrapperStyle},[s("div",{staticClass:"dashboard-hello"},[t._v(t._s(t.$L("\u6B22\u8FCE\u60A8\uFF0C"+t.userInfo.nickname)))]),s("div",{staticClass:"dashboard-desc"},[t._v(" "+t._s(t.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E"))+" "),s("transition",{attrs:{name:"dashboard-load"}},[t.loadDashboardTasks?s("div",{staticClass:"dashboard-load"},[s("Loading")],1):t._e()])],1),s("ul",{staticClass:"dashboard-block"},[s("li",{on:{click:function(o){return t.scrollTo("today")}}},[s("div",{staticClass:"block-title"},[t._v(t._s(t.getTitle("today")))]),s("div",{staticClass:"block-data"},[s("div",{staticClass:"block-num"},[t._v(t._s(t.dashboardTask.today_count))]),s("i",{staticClass:"taskfont"},[t._v("\uE6F4")])])]),s("li",{on:{click:function(o){return t.scrollTo("overdue")}}},[s("div",{staticClass:"block-title"},[t._v(t._s(t.getTitle("overdue")))]),s("div",{staticClass:"block-data"},[s("div",{staticClass:"block-num"},[t._v(t._s(t.dashboardTask.overdue_count))]),s("i",{staticClass:"taskfont"},[t._v("\uE603")])])]),s("li",{on:{click:function(o){return t.scrollTo("all")}}},[s("div",{staticClass:"block-title"},[t._v(t._s(t.getTitle("all")))]),s("div",{staticClass:"block-data"},[s("div",{staticClass:"block-num"},[t._v(t._s(t.dashboardTask.all_count))]),s("i",{staticClass:"taskfont"},[t._v("\uE6F9")])])])]),s("Scrollbar",{staticClass:"dashboard-list"},[t._l(t.columns,function(o){return o.list.length>0?[s("div",{ref:`type_${o.type}`,refInFor:!0,staticClass:"dashboard-ref"}),s("div",{staticClass:"dashboard-title"},[t._v(t._s(o.title))]),s("ul",{staticClass:"dashboard-ul"},t._l(o.list,function(a,n){return s("li",{key:n,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(r){return t.openTask(a)}}},[a.p_name?s("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):t._e(),s("div",{staticClass:"item-select",on:{click:function(r){return r.stopPropagation(),t.openMenu(r,a)}}},[s("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(a.complete_at?"":"")}})]),s("div",{staticClass:"item-title"},[a.flow_item_name?s("span",{class:a.flow_item_status,on:{click:function(r){return r.stopPropagation(),t.openMenu(r,a)}}},[t._v(t._s(a.flow_item_name))]):t._e(),a.sub_top===!0?s("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),a.sub_my&&a.sub_my.length>0?s("span",[t._v("+"+t._s(a.sub_my.length))]):t._e(),t._v(" "+t._s(a.name)+" ")]),a.desc?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),a.sub_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71F")]),s("em",[t._v(t._s(a.sub_complete)+"/"+t._s(a.sub_num))])]):t._e(),a.end_at?s("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:a.end_at,placement:"right"}},[s("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[s("i",{staticClass:"taskfont"},[t._v("\uE71D")]),s("em",[t._v(t._s(t.expiresFormat(a.end_at)))])])]):t._e()],1)}),0)]:t._e()})],2)],1)],1)},p=[];const h={components:{TaskMenu:d},data(){return{nowTime:$A.Time(),nowInter:null,licenseTimer:null,loadIng:0,dashboard:"today",warningMsg:""}},activated(){this.$store.dispatch("getTaskForDashboard",600),this.loadInterval(!0),this.loadLicense(!0)},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0),this.loadInterval(!1),this.loadLicense(!1)},computed:{...l(["userInfo","userIsAdmin","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),routeName(){return this.$route.name},columns(){const t=[];return["today","overdue","all"].some(e=>{let s=this.transforTasks(this.dashboardTask[e]);t.push({type:e,title:this.getTitle(e),list:s.sort((o,a)=>$A.Date(o.end_at||"2099-12-31 23:59:59")-$A.Date(a.end_at||"2099-12-31 23:59:59"))})}),t.push({type:"assist",title:this.getTitle("assist"),list:this.assistTask.sort((e,s)=>$A.Date(e.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59"))}),t},total(){const{dashboardTask:t}=this;return t.today_count+t.overdue_count+t.all_count},wrapperStyle({warningMsg:t}){return t?{"max-height":"calc(100% - 50px)"}:null}},watch:{windowActive(t){this.routeName==="manage-dashboard"&&(this.loadInterval(t),this.loadLicense(t),t&&this.$store.dispatch("getTaskForDashboard",600))}},methods:{getTitle(t){switch(t){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(t){let e=this.$refs[`type_${t}`];e&&$A.scrollToView(e[0],{behavior:"smooth",inline:"end"})},openTask(t){this.$store.dispatch("openTask",t)},openMenu(t,e){this.$store.state.taskOperation={event:t,task:e}},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},loadInterval(t){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),t!==!1&&(this.nowInter=setInterval(e=>{this.nowTime=$A.Time()},1e3))},loadLicense(t){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(t===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"system/license",data:{type:"get"}}).then(({data:s})=>{this.warningMsg=s.error.length>0?s.error[0]:""}).catch(s=>{this.warningMsg=""})},1500))}}},i={};var m=u(h,_,p,!1,v,null,null,null);function v(t){for(let e in i)this[e]=i[e]}var Z=function(){return m.exports}();export{Z as default}; +import{m as l,a as c}from"./vuex.cc7cb26e.js";import{T as d,n as u}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var _=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page-dashboard"},[s("PageTitle",{attrs:{title:t.$L("\u4EEA\u8868\u76D8")}}),t.warningMsg?s("Alert",{staticClass:"dashboard-warning",attrs:{type:"warning","show-icon":""}},[s("span",{on:{click:function(o){return t.goForward({name:"manage-setting-license"})}}},[t._v(t._s(t.warningMsg))])]):t._e(),s("div",{staticClass:"dashboard-wrapper",style:t.wrapperStyle},[s("div",{staticClass:"dashboard-hello"},[t._v(t._s(t.$L("\u6B22\u8FCE\u60A8\uFF0C"+t.userInfo.nickname)))]),s("div",{staticClass:"dashboard-desc"},[t._v(" "+t._s(t.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E"))+" "),s("transition",{attrs:{name:"dashboard-load"}},[t.loadDashboardTasks?s("div",{staticClass:"dashboard-load"},[s("Loading")],1):t._e()])],1),s("ul",{staticClass:"dashboard-block"},[s("li",{on:{click:function(o){return t.scrollTo("today")}}},[s("div",{staticClass:"block-title"},[t._v(t._s(t.getTitle("today")))]),s("div",{staticClass:"block-data"},[s("div",{staticClass:"block-num"},[t._v(t._s(t.dashboardTask.today_count))]),s("i",{staticClass:"taskfont"},[t._v("\uE6F4")])])]),s("li",{on:{click:function(o){return t.scrollTo("overdue")}}},[s("div",{staticClass:"block-title"},[t._v(t._s(t.getTitle("overdue")))]),s("div",{staticClass:"block-data"},[s("div",{staticClass:"block-num"},[t._v(t._s(t.dashboardTask.overdue_count))]),s("i",{staticClass:"taskfont"},[t._v("\uE603")])])]),s("li",{on:{click:function(o){return t.scrollTo("all")}}},[s("div",{staticClass:"block-title"},[t._v(t._s(t.getTitle("all")))]),s("div",{staticClass:"block-data"},[s("div",{staticClass:"block-num"},[t._v(t._s(t.dashboardTask.all_count))]),s("i",{staticClass:"taskfont"},[t._v("\uE6F9")])])])]),s("Scrollbar",{staticClass:"dashboard-list"},[t._l(t.columns,function(o){return o.list.length>0?[s("div",{ref:`type_${o.type}`,refInFor:!0,staticClass:"dashboard-ref"}),s("div",{staticClass:"dashboard-title"},[t._v(t._s(o.title))]),s("ul",{staticClass:"dashboard-ul"},t._l(o.list,function(a,n){return s("li",{key:n,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(r){return t.openTask(a)}}},[a.p_name?s("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):t._e(),s("div",{staticClass:"item-select",on:{click:function(r){return r.stopPropagation(),t.openMenu(r,a)}}},[s("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(a.complete_at?"":"")}})]),s("div",{staticClass:"item-title"},[a.flow_item_name?s("span",{class:a.flow_item_status,on:{click:function(r){return r.stopPropagation(),t.openMenu(r,a)}}},[t._v(t._s(a.flow_item_name))]):t._e(),a.sub_top===!0?s("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),a.sub_my&&a.sub_my.length>0?s("span",[t._v("+"+t._s(a.sub_my.length))]):t._e(),t._v(" "+t._s(a.name)+" ")]),a.desc?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),a.sub_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71F")]),s("em",[t._v(t._s(a.sub_complete)+"/"+t._s(a.sub_num))])]):t._e(),a.end_at?s("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:a.end_at,placement:"right"}},[s("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[s("i",{staticClass:"taskfont"},[t._v("\uE71D")]),s("em",[t._v(t._s(t.expiresFormat(a.end_at)))])])]):t._e()],1)}),0)]:t._e()})],2)],1)],1)},p=[];const h={components:{TaskMenu:d},data(){return{nowTime:$A.Time(),nowInter:null,licenseTimer:null,loadIng:0,dashboard:"today",warningMsg:""}},activated(){this.$store.dispatch("getTaskForDashboard",600),this.loadInterval(!0),this.loadLicense(!0)},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0),this.loadInterval(!1),this.loadLicense(!1)},computed:{...l(["userInfo","userIsAdmin","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),routeName(){return this.$route.name},columns(){const t=[];return["today","overdue","all"].some(e=>{let s=this.transforTasks(this.dashboardTask[e]);t.push({type:e,title:this.getTitle(e),list:s.sort((o,a)=>$A.Date(o.end_at||"2099-12-31 23:59:59")-$A.Date(a.end_at||"2099-12-31 23:59:59"))})}),t.push({type:"assist",title:this.getTitle("assist"),list:this.assistTask.sort((e,s)=>$A.Date(e.end_at||"2099-12-31 23:59:59")-$A.Date(s.end_at||"2099-12-31 23:59:59"))}),t},total(){const{dashboardTask:t}=this;return t.today_count+t.overdue_count+t.all_count},wrapperStyle({warningMsg:t}){return t?{"max-height":"calc(100% - 50px)"}:null}},watch:{windowActive(t){this.routeName==="manage-dashboard"&&(this.loadInterval(t),this.loadLicense(t),t&&this.$store.dispatch("getTaskForDashboard",600))}},methods:{getTitle(t){switch(t){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(t){let e=this.$refs[`type_${t}`];e&&$A.scrollToView(e[0],{behavior:"smooth",inline:"end"})},openTask(t){this.$store.dispatch("openTask",t)},openMenu(t,e){this.$store.state.taskOperation={event:t,task:e}},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},loadInterval(t){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),t!==!1&&(this.nowInter=setInterval(e=>{this.nowTime=$A.Time()},1e3))},loadLicense(t){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(t===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"system/license",data:{type:"get"}}).then(({data:s})=>{this.warningMsg=s.error.length>0?s.error[0]:""}).catch(s=>{this.warningMsg=""})},1500))}}},i={};var m=u(h,_,p,!1,v,null,null,null);function v(t){for(let e in i)this[e]=i[e]}var Z=function(){return m.exports}();export{Z as default}; diff --git a/public/js/build/delete.f317d0cc.js b/public/js/build/delete.258f9007.js similarity index 88% rename from public/js/build/delete.f317d0cc.js rename to public/js/build/delete.258f9007.js index cdd43f51d..498800422 100644 --- a/public/js/build/delete.f317d0cc.js +++ b/public/js/build/delete.258f9007.js @@ -1 +1 @@ -import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(i){t.$set(t.formDatum,"password",i)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(i){t.$set(t.formDatum,"reason",i)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L(`\u5220\u9664${t.appTitle}\u5E10\u53F7`)},model:{value:t.warningShow,callback:function(i){t.warningShow=i},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(i){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},m=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,r,e)=>{r.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7\uFF01"))):$A.isEmail(r.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u90AE\u7BB1\u5E10\u53F7\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...s(["userInfo","formLabelPosition","formLabelWidth"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let r=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(r))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(r=>{r&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,d,null,null,null);function d(t){for(let r in o)this[r]=o[r]}var K=function(){return u.exports}();export{K as default}; +import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(i){i.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(i){t.$set(t.formDatum,"password",i)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(i){t.$set(t.formDatum,"reason",i)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L(`\u5220\u9664${t.appTitle}\u5E10\u53F7`)},model:{value:t.warningShow,callback:function(i){t.warningShow=i},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(i){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},m=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,r,e)=>{r.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7\uFF01"))):$A.isEmail(r.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u90AE\u7BB1\u5E10\u53F7\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,r,e)=>{r.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...s(["userInfo","formLabelPosition","formLabelWidth"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let r=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(r))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(r=>{r&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,d,null,null,null);function d(t){for(let r in o)this[r]=o[r]}var K=function(){return u.exports}();export{K as default}; diff --git a/public/js/build/details.ef31cd47.js b/public/js/build/details.663d818a.js similarity index 93% rename from public/js/build/details.ef31cd47.js rename to public/js/build/details.663d818a.js index 4faf01de8..d6525caea 100644 --- a/public/js/build/details.ef31cd47.js +++ b/public/js/build/details.663d818a.js @@ -1 +1 @@ -import{n as S,I as B}from"./app.f8a6fa5e.js";import{I as O}from"./ImgUpload.d82fa303.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var z=function(){var i,a,n,o,r,l,v,_,u,h,$,f,g,y,L,t=this,b=t.$createElement,e=t._self._c||b;return e("div",{staticClass:"approve-details",style:{"z-index":t.modalTransferIndex}},[e("div",{staticClass:"approve-details-nav"},[e("div",{staticClass:"common-nav-back",on:{click:function(s){return t.goBack()}}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])]),e("h2",[t._v(t._s(t.$L("\u5BA1\u6279\u8BE6\u60C5")))])]),e("div",{ref:"approveDetailsBox",staticClass:"approve-details-box"},[e("h2",{staticClass:"approve-details-title"},[e("span",[t._v(t._s(t.$L(t.datas.proc_def_name||"- -")))]),t.datas.state==0?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5F85\u5BA1\u6279")))]):t._e(),t.datas.state==1?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),t.datas.state==2?e("Tag",{attrs:{color:"green"}},[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),t.datas.state==3?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),t.datas.state==4?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()],1),e("h3",{staticClass:"approve-details-subtitle"},[e("Avatar",{attrs:{src:t.datas.userimg,size:"24"}}),e("span",[t._v(t._s(t.datas.start_user_name))])],1),e("h3",{staticClass:"approve-details-subtitle"},[e("span",[t._v(t._s(t.$L("\u63D0\u4EA4\u4E8E"))+" "+t._s(t.datas.start_time))])]),e("Divider"),(t.datas.proc_def_name||"").indexOf("\u8BF7\u5047")!==-1&&(i=t.datas.var)!==null&&i!==void 0&&i.type?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B")))]),e("p",[t._v(t._s(t.$L(((a=t.datas.var)===null||a===void 0?void 0:a.type)||"- -")))])]):t._e(),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4")))]),e("div",{staticClass:"time-text"},[e("span",[t._v(t._s(((n=t.datas.var)===null||n===void 0?void 0:n.start_time)||"- -"))]),(o=t.datas.var)!==null&&o!==void 0&&o.start_time?e("span",[t._v("("+t._s(t.getWeekday((r=t.datas.var)===null||r===void 0?void 0:r.start_time))+")")]):t._e()])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4")))]),e("div",{staticClass:"time-text"},[e("span",[t._v(t._s(((l=t.datas.var)===null||l===void 0?void 0:l.end_time)||"- -"))]),(v=t.datas.var)!==null&&v!==void 0&&v.end_time?e("span",[t._v("("+t._s(t.getWeekday((_=t.datas.var)===null||_===void 0?void 0:_.end_time))+")")]):t._e()])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u65F6\u957F"))+"\uFF08"+t._s(t.getTimeDifference((u=t.datas.var)===null||u===void 0?void 0:u.start_time,(h=t.datas.var)===null||h===void 0?void 0:h.end_time).unit)+"\uFF09")]),e("p",[t._v(t._s(($=t.datas.var)!==null&&$!==void 0&&$.start_time?t.getTimeDifference((f=t.datas.var)===null||f===void 0?void 0:f.start_time,(g=t.datas.var)===null||g===void 0?void 0:g.end_time).time:"- -"))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u4E8B\u7531")))]),e("p",[t._v(t._s(((y=t.datas.var)===null||y===void 0?void 0:y.description)||"- -"))])]),(L=t.datas.var)!==null&&L!==void 0&&L.other?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u56FE\u7247")))]),e("div",{staticClass:"img-body"},t._l(t.datas.var.other.split(","),function(s,d){return e("div",{on:{click:function(c){return t.onViewPicture(s)}}},[e("ImgView",{key:d,staticClass:"img-view",attrs:{src:s}})],1)}),0)]):t._e(),e("Divider"),e("h3",{staticClass:"approve-details-subtitle"},[t._v(t._s(t.$L("\u5BA1\u6279\u8BB0\u5F55")))]),e("Timeline",{staticClass:"approve-record-timeline"},[t._l(t.datas.node_infos,function(s,d){var c,m,p,C,k,w,I,T,x;return[s.type=="starter"?e("TimelineItem",{key:d,attrs:{color:"green"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:t.data.userimg||t.datas.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(t.data.start_user_name||t.datas.start_user_name))]),e("p",{staticClass:"approve-process-state"},[t._v(t._s(t.$L("\u5DF2\u63D0\u4EA4")))])]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))1?"#f03f3f":"green":"#ccc"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u5BA1\u6279")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:s.node_user_list&&((p=s.node_user_list[0])===null||p===void 0?void 0:p.userimg)||s.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(s.approver))]),s.identitylink?t._e():e("p",{staticClass:"approve-process-state",staticStyle:{color:"#6d6d6d"}},[t._v("\u5F85\u5BA1\u6279")]),s.identitylink?e("p",{staticClass:"approve-process-state"},[s.identitylink.state==0?e("span",{staticStyle:{color:"#496dff"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),s.identitylink.state==1?e("span",[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),s.identitylink.state==2?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),s.identitylink.state==3?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()]):t._e()]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))0,ghost:""},on:{click:t.comment}},[t._v("+"+t._s(t.$L("\u6DFB\u52A0\u8BC4\u8BBA")))])],1),t.loadIng>0?e("div",{staticClass:"approve-load"},[e("Loading")],1):t._e(),e("Modal",{staticClass:"page-approve-initiate",attrs:{title:t.$L("\u8BC4\u8BBA"),"mask-closable":!1},model:{value:t.commentShow,callback:function(s){t.commentShow=s},expression:"commentShow"}},[e("Form",{ref:"initiateRef",attrs:{model:t.commentData,rules:t.commentRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"content",label:t.$L("\u5185\u5BB9")}},[e("Input",{attrs:{type:"textarea"},model:{value:t.commentData.content,callback:function(s){t.$set(t.commentData,"content",s)},expression:"commentData.content"}})],1),e("FormItem",{attrs:{prop:"pictures",label:t.$L("\u56FE\u7247")}},[e("ImgUpload",{attrs:{num:3,width:2e3,height:2e3,whcut:0},model:{value:t.commentData.pictures,callback:function(s){t.$set(t.commentData,"pictures",s)},expression:"commentData.pictures"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.commentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.commentLoad>0},on:{click:t.confirmComment}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1)],1)},M=[];const P={name:"ApproveDetails",components:{ImgView:B,ImgUpload:O},props:{data:{type:Object,default(){return{}}}},data(){return{datas:{},loadIng:0,showTimeNum:24,modalTransferIndex:window.modalTransferIndex,commentLoad:0,commentShow:!1,commentData:{content:"",pictures:[]},commentRule:{content:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u5185\u5BB9\uFF01"),trigger:"change"}}}},watch:{$route(i,a){i.name=="manage-approve-details"&&this.init()},data:{handler(i,a){i.id&&this.getInfo()},deep:!0}},computed:{isShowAgreeBtn(){return(this.datas.candidate||"").split(",").indexOf(this.userId+"")!=-1&&!this.datas.is_finished},isShowWarningBtn(){var a;let i=this.userId==this.datas.start_user_id&&((a=this.datas)==null?void 0:a.is_finished)!=!0;return(this.datas.node_infos||[]).map(n=>{var o;n.type!="starter"&&n.is_finished==!0&&((o=n.identitylink)==null?void 0:o.userid)!=this.userId&&(i=!1)}),i}},mounted(){this.init()},methods:{init(){this.modalTransferIndex=window.modalTransferIndex=window.modalTransferIndex+1,this.$route.query.id&&this.getInfo()},getTimeAgo(i,a){const o=(new Date-new Date((i+"").replace(/-/g,"/")))/1e3;if(o<60)return a==2?"0"+this.$L("\u5206\u949F"):this.$L("\u521A\u521A");if(o<3600){const r=Math.floor(o/60);return a==2?`${r}${this.$L("\u5206\u949F")}`:`${r} ${this.$L("\u5206\u949F\u524D")}`}else if(o<3600*24){const r=Math.floor(o/3600);return a==2?`${r}${this.$L("\u5C0F\u65F6")}`:`${r} ${this.$L("\u5C0F\u65F6\u524D")}`}else if(o<3600*24*30){const r=Math.floor(o/3600/24);return a==2?`${r+1}${this.$L("\u5929")}`:`${r+1} ${this.$L("\u5929\u524D")}`}else{const r=Math.floor(o/3600/720);return a==2?`${r+1}${this.$L("\u6708")}`:`${r+1} ${this.$L("\u6708\u524D")}`}},getWeekday(i){return["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][new Date(i).getDay()]},getTimeDifference(i,a){const n=new Date((a+"").replace(/-/g,"/")),o=new Date((i+"").replace(/-/g,"/")),r=(n-o)/1e3;return r<60?{time:r,unit:this.$L("\u79D2")}:r<3600?{time:Math.floor(r/60),unit:this.$L("\u5206\u949F")}:r<3600*24?{time:(n-o)/36e5,unit:this.$L("\u5C0F\u65F6")}:{time:Math.floor(r/3600/24)+1,unit:this.$L("\u5929")}},getInfo(i=!1){this.loadIng++,this.$store.dispatch("call",{method:"get",url:"approve/process/detail",data:{id:this.$route.query.id||this.data.id}}).then(({data:a})=>{var n=!0;a.node_infos=a.node_infos.map(o=>{var r,l;return o._show=n,(((r=o.identitylink)==null?void 0:r.state)==2||((l=o.identitylink)==null?void 0:l.state)==3)&&(n=!1),o}),this.datas=a,i&&this.scrollToBottom()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},approve(i){$A.modalInput({title:"\u5BA1\u6279",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1",type:"textarea",okText:i==1?"\u540C\u610F":"\u62D2\u7EDD",okType:i==1?"primary":"error",onOk:a=>i!=1&&!a?"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1":new Promise((n,o)=>{this.$store.dispatch("call",{url:"approve/task/complete",data:{task_id:this.datas.task_id,pass:i==1,comment:a}}).then(({msg:r})=>{$A.messageSuccess(r),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve"),n()}).catch(({msg:r})=>{o(r)})})})},revocation(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u5417\uFF1F",loading:!0,okType:"warning",onOk:()=>new Promise((i,a)=>{this.$store.dispatch("call",{url:"approve/task/withdraw",data:{task_id:this.datas.task_id,proc_inst_id:this.datas.id}}).then(({msg:n})=>{$A.messageSuccess(n),i(),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("revocation")}).catch(({msg:n})=>{a(n)})})})},comment(){this.commentData.content="",this.commentData.pictures=[],this.commentShow=!0},confirmComment(){this.commentLoad++,this.$refs.initiateRef.validate(i=>{i?this.$store.dispatch("call",{method:"post",url:"approve/process/addGlobalComment",data:{proc_inst_id:this.$route.query.id||this.data.id,content:JSON.stringify({content:this.commentData.content,pictures:this.commentData.pictures.map(a=>a.path)})}}).then(({msg:a})=>{$A.messageSuccess("\u6DFB\u52A0\u6210\u529F"),this.getInfo(!0),this.commentShow=!1}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.commentLoad--}):this.commentLoad--})},scrollToBottom(){this.$nextTick(()=>{const i=this.$refs.approveDetailsBox;i.scrollTo({top:i.scrollHeight+1e3,behavior:"smooth"})})},getContent(i){try{return JSON.parse(i).content||""}catch{return""}},getPictures(i){try{return JSON.parse(i).pictures||[]}catch{return""}},onViewPicture(i){this.$store.dispatch("previewImage",$A.mainUrl(i))}}},D={};var V=S(P,z,M,!1,N,null,null,null);function N(i){for(let a in D)this[a]=D[a]}var Ct=function(){return V.exports}();export{Ct as default}; +import{n as S,I as B}from"./app.57070a0d.js";import{I as O}from"./ImgUpload.b233effb.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var z=function(){var i,a,n,o,r,l,v,_,u,h,$,f,g,y,L,t=this,b=t.$createElement,e=t._self._c||b;return e("div",{staticClass:"approve-details",style:{"z-index":t.modalTransferIndex}},[e("div",{staticClass:"approve-details-nav"},[e("div",{staticClass:"common-nav-back",on:{click:function(s){return t.goBack()}}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])]),e("h2",[t._v(t._s(t.$L("\u5BA1\u6279\u8BE6\u60C5")))])]),e("div",{ref:"approveDetailsBox",staticClass:"approve-details-box"},[e("h2",{staticClass:"approve-details-title"},[e("span",[t._v(t._s(t.$L(t.datas.proc_def_name||"- -")))]),t.datas.state==0?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5F85\u5BA1\u6279")))]):t._e(),t.datas.state==1?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),t.datas.state==2?e("Tag",{attrs:{color:"green"}},[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),t.datas.state==3?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),t.datas.state==4?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()],1),e("h3",{staticClass:"approve-details-subtitle"},[e("Avatar",{attrs:{src:t.datas.userimg,size:"24"}}),e("span",[t._v(t._s(t.datas.start_user_name))])],1),e("h3",{staticClass:"approve-details-subtitle"},[e("span",[t._v(t._s(t.$L("\u63D0\u4EA4\u4E8E"))+" "+t._s(t.datas.start_time))])]),e("Divider"),(t.datas.proc_def_name||"").indexOf("\u8BF7\u5047")!==-1&&(i=t.datas.var)!==null&&i!==void 0&&i.type?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B")))]),e("p",[t._v(t._s(t.$L(((a=t.datas.var)===null||a===void 0?void 0:a.type)||"- -")))])]):t._e(),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4")))]),e("div",{staticClass:"time-text"},[e("span",[t._v(t._s(((n=t.datas.var)===null||n===void 0?void 0:n.start_time)||"- -"))]),(o=t.datas.var)!==null&&o!==void 0&&o.start_time?e("span",[t._v("("+t._s(t.getWeekday((r=t.datas.var)===null||r===void 0?void 0:r.start_time))+")")]):t._e()])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4")))]),e("div",{staticClass:"time-text"},[e("span",[t._v(t._s(((l=t.datas.var)===null||l===void 0?void 0:l.end_time)||"- -"))]),(v=t.datas.var)!==null&&v!==void 0&&v.end_time?e("span",[t._v("("+t._s(t.getWeekday((_=t.datas.var)===null||_===void 0?void 0:_.end_time))+")")]):t._e()])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u65F6\u957F"))+"\uFF08"+t._s(t.getTimeDifference((u=t.datas.var)===null||u===void 0?void 0:u.start_time,(h=t.datas.var)===null||h===void 0?void 0:h.end_time).unit)+"\uFF09")]),e("p",[t._v(t._s(($=t.datas.var)!==null&&$!==void 0&&$.start_time?t.getTimeDifference((f=t.datas.var)===null||f===void 0?void 0:f.start_time,(g=t.datas.var)===null||g===void 0?void 0:g.end_time).time:"- -"))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u4E8B\u7531")))]),e("p",[t._v(t._s(((y=t.datas.var)===null||y===void 0?void 0:y.description)||"- -"))])]),(L=t.datas.var)!==null&&L!==void 0&&L.other?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u56FE\u7247")))]),e("div",{staticClass:"img-body"},t._l(t.datas.var.other.split(","),function(s,d){return e("div",{on:{click:function(c){return t.onViewPicture(s)}}},[e("ImgView",{key:d,staticClass:"img-view",attrs:{src:s}})],1)}),0)]):t._e(),e("Divider"),e("h3",{staticClass:"approve-details-subtitle"},[t._v(t._s(t.$L("\u5BA1\u6279\u8BB0\u5F55")))]),e("Timeline",{staticClass:"approve-record-timeline"},[t._l(t.datas.node_infos,function(s,d){var c,m,p,C,k,w,I,T,x;return[s.type=="starter"?e("TimelineItem",{key:d,attrs:{color:"green"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:t.data.userimg||t.datas.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(t.data.start_user_name||t.datas.start_user_name))]),e("p",{staticClass:"approve-process-state"},[t._v(t._s(t.$L("\u5DF2\u63D0\u4EA4")))])]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))1?"#f03f3f":"green":"#ccc"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u5BA1\u6279")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:s.node_user_list&&((p=s.node_user_list[0])===null||p===void 0?void 0:p.userimg)||s.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(s.approver))]),s.identitylink?t._e():e("p",{staticClass:"approve-process-state",staticStyle:{color:"#6d6d6d"}},[t._v("\u5F85\u5BA1\u6279")]),s.identitylink?e("p",{staticClass:"approve-process-state"},[s.identitylink.state==0?e("span",{staticStyle:{color:"#496dff"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),s.identitylink.state==1?e("span",[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),s.identitylink.state==2?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),s.identitylink.state==3?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()]):t._e()]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))0,ghost:""},on:{click:t.comment}},[t._v("+"+t._s(t.$L("\u6DFB\u52A0\u8BC4\u8BBA")))])],1),t.loadIng>0?e("div",{staticClass:"approve-load"},[e("Loading")],1):t._e(),e("Modal",{staticClass:"page-approve-initiate",attrs:{title:t.$L("\u8BC4\u8BBA"),"mask-closable":!1},model:{value:t.commentShow,callback:function(s){t.commentShow=s},expression:"commentShow"}},[e("Form",{ref:"initiateRef",attrs:{model:t.commentData,rules:t.commentRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"content",label:t.$L("\u5185\u5BB9")}},[e("Input",{attrs:{type:"textarea"},model:{value:t.commentData.content,callback:function(s){t.$set(t.commentData,"content",s)},expression:"commentData.content"}})],1),e("FormItem",{attrs:{prop:"pictures",label:t.$L("\u56FE\u7247")}},[e("ImgUpload",{attrs:{num:3,width:2e3,height:2e3,whcut:0},model:{value:t.commentData.pictures,callback:function(s){t.$set(t.commentData,"pictures",s)},expression:"commentData.pictures"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.commentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.commentLoad>0},on:{click:t.confirmComment}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1)],1)},M=[];const P={name:"ApproveDetails",components:{ImgView:B,ImgUpload:O},props:{data:{type:Object,default(){return{}}}},data(){return{datas:{},loadIng:0,showTimeNum:24,modalTransferIndex:window.modalTransferIndex,commentLoad:0,commentShow:!1,commentData:{content:"",pictures:[]},commentRule:{content:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u5185\u5BB9\uFF01"),trigger:"change"}}}},watch:{$route(i,a){i.name=="manage-approve-details"&&this.init()},data:{handler(i,a){i.id&&this.getInfo()},deep:!0}},computed:{isShowAgreeBtn(){return(this.datas.candidate||"").split(",").indexOf(this.userId+"")!=-1&&!this.datas.is_finished},isShowWarningBtn(){var a;let i=this.userId==this.datas.start_user_id&&((a=this.datas)==null?void 0:a.is_finished)!=!0;return(this.datas.node_infos||[]).map(n=>{var o;n.type!="starter"&&n.is_finished==!0&&((o=n.identitylink)==null?void 0:o.userid)!=this.userId&&(i=!1)}),i}},mounted(){this.init()},methods:{init(){this.modalTransferIndex=window.modalTransferIndex=window.modalTransferIndex+1,this.$route.query.id&&this.getInfo()},getTimeAgo(i,a){const o=(new Date-new Date((i+"").replace(/-/g,"/")))/1e3;if(o<60)return a==2?"0"+this.$L("\u5206\u949F"):this.$L("\u521A\u521A");if(o<3600){const r=Math.floor(o/60);return a==2?`${r}${this.$L("\u5206\u949F")}`:`${r} ${this.$L("\u5206\u949F\u524D")}`}else if(o<3600*24){const r=Math.floor(o/3600);return a==2?`${r}${this.$L("\u5C0F\u65F6")}`:`${r} ${this.$L("\u5C0F\u65F6\u524D")}`}else if(o<3600*24*30){const r=Math.floor(o/3600/24);return a==2?`${r+1}${this.$L("\u5929")}`:`${r+1} ${this.$L("\u5929\u524D")}`}else{const r=Math.floor(o/3600/720);return a==2?`${r+1}${this.$L("\u6708")}`:`${r+1} ${this.$L("\u6708\u524D")}`}},getWeekday(i){return["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][new Date(i).getDay()]},getTimeDifference(i,a){const n=new Date((a+"").replace(/-/g,"/")),o=new Date((i+"").replace(/-/g,"/")),r=(n-o)/1e3;return r<60?{time:r,unit:this.$L("\u79D2")}:r<3600?{time:Math.floor(r/60),unit:this.$L("\u5206\u949F")}:r<3600*24?{time:(n-o)/36e5,unit:this.$L("\u5C0F\u65F6")}:{time:Math.floor(r/3600/24)+1,unit:this.$L("\u5929")}},getInfo(i=!1){this.loadIng++,this.$store.dispatch("call",{method:"get",url:"approve/process/detail",data:{id:this.$route.query.id||this.data.id}}).then(({data:a})=>{var n=!0;a.node_infos=a.node_infos.map(o=>{var r,l;return o._show=n,(((r=o.identitylink)==null?void 0:r.state)==2||((l=o.identitylink)==null?void 0:l.state)==3)&&(n=!1),o}),this.datas=a,i&&this.scrollToBottom()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},approve(i){$A.modalInput({title:"\u5BA1\u6279",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1",type:"textarea",okText:i==1?"\u540C\u610F":"\u62D2\u7EDD",okType:i==1?"primary":"error",onOk:a=>i!=1&&!a?"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1":new Promise((n,o)=>{this.$store.dispatch("call",{url:"approve/task/complete",data:{task_id:this.datas.task_id,pass:i==1,comment:a}}).then(({msg:r})=>{$A.messageSuccess(r),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve"),n()}).catch(({msg:r})=>{o(r)})})})},revocation(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u5417\uFF1F",loading:!0,okType:"warning",onOk:()=>new Promise((i,a)=>{this.$store.dispatch("call",{url:"approve/task/withdraw",data:{task_id:this.datas.task_id,proc_inst_id:this.datas.id}}).then(({msg:n})=>{$A.messageSuccess(n),i(),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("revocation")}).catch(({msg:n})=>{a(n)})})})},comment(){this.commentData.content="",this.commentData.pictures=[],this.commentShow=!0},confirmComment(){this.commentLoad++,this.$refs.initiateRef.validate(i=>{i?this.$store.dispatch("call",{method:"post",url:"approve/process/addGlobalComment",data:{proc_inst_id:this.$route.query.id||this.data.id,content:JSON.stringify({content:this.commentData.content,pictures:this.commentData.pictures.map(a=>a.path)})}}).then(({msg:a})=>{$A.messageSuccess("\u6DFB\u52A0\u6210\u529F"),this.getInfo(!0),this.commentShow=!1}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.commentLoad--}):this.commentLoad--})},scrollToBottom(){this.$nextTick(()=>{const i=this.$refs.approveDetailsBox;i.scrollTo({top:i.scrollHeight+1e3,behavior:"smooth"})})},getContent(i){try{return JSON.parse(i).content||""}catch{return""}},getPictures(i){try{return JSON.parse(i).pictures||[]}catch{return""}},onViewPicture(i){this.$store.dispatch("previewImage",$A.mainUrl(i))}}},D={};var V=S(P,z,M,!1,N,null,null,null);function N(i){for(let a in D)this[a]=D[a]}var Ct=function(){return V.exports}();export{Ct as default}; diff --git a/public/js/build/element-sea.74fd8f4e.js b/public/js/build/element-sea.b954f5d6.js similarity index 99% rename from public/js/build/element-sea.74fd8f4e.js rename to public/js/build/element-sea.b954f5d6.js index d25045d7e..f16843269 100644 --- a/public/js/build/element-sea.74fd8f4e.js +++ b/public/js/build/element-sea.b954f5d6.js @@ -1,4 +1,4 @@ -import{r as We,V as oa}from"./vue.da9c4dc7.js";import{c as gx}from"./deepmerge.cecf392e.js";import{r as _x}from"./resize-observer-polyfill.e0279f38.js";import{t as ph,d as la,a as bx}from"./throttle-debounce.7c3948b2.js";import{b as mh}from"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import{n as yx}from"./normalize-wheel.2a034b9f.js";import{r as Cx}from"./async-validator.e0445182.js";var xx={exports:{}},te={},ua={exports:{}};(function(f){(function(l){var c={},u=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,o="\\d\\d?",h="\\d{3}",y="\\d{4}",I="[^\\s]+",b=/\[([^]*?)\]/gm,A=function(){};function B(C){return C.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function E(C,w){for(var N=[],k=0,P=C.length;k3?0:(w-w%10!==10)*w%10]}};var V={D:function(w){return w.getDay()},DD:function(w){return p(w.getDay())},Do:function(w,N){return N.DoFn(w.getDate())},d:function(w){return w.getDate()},dd:function(w){return p(w.getDate())},ddd:function(w,N){return N.dayNamesShort[w.getDay()]},dddd:function(w,N){return N.dayNames[w.getDay()]},M:function(w){return w.getMonth()+1},MM:function(w){return p(w.getMonth()+1)},MMM:function(w,N){return N.monthNamesShort[w.getMonth()]},MMMM:function(w,N){return N.monthNames[w.getMonth()]},yy:function(w){return p(String(w.getFullYear()),4).substr(2)},yyyy:function(w){return p(w.getFullYear(),4)},h:function(w){return w.getHours()%12||12},hh:function(w){return p(w.getHours()%12||12)},H:function(w){return w.getHours()},HH:function(w){return p(w.getHours())},m:function(w){return w.getMinutes()},mm:function(w){return p(w.getMinutes())},s:function(w){return w.getSeconds()},ss:function(w){return p(w.getSeconds())},S:function(w){return Math.round(w.getMilliseconds()/100)},SS:function(w){return p(Math.round(w.getMilliseconds()/10),2)},SSS:function(w){return p(w.getMilliseconds(),3)},a:function(w,N){return w.getHours()<12?N.amPm[0]:N.amPm[1]},A:function(w,N){return w.getHours()<12?N.amPm[0].toUpperCase():N.amPm[1].toUpperCase()},ZZ:function(w){var N=w.getTimezoneOffset();return(N>0?"-":"+")+p(Math.floor(Math.abs(N)/60)*100+Math.abs(N)%60,4)}},m={d:[o,function(C,w){C.day=w}],Do:[o+I,function(C,w){C.day=parseInt(w,10)}],M:[o,function(C,w){C.month=w-1}],yy:[o,function(C,w){var N=new Date,k=+(""+N.getFullYear()).substr(0,2);C.year=""+(w>68?k-1:k)+w}],h:[o,function(C,w){C.hour=w}],m:[o,function(C,w){C.minute=w}],s:[o,function(C,w){C.second=w}],yyyy:[y,function(C,w){C.year=w}],S:["\\d",function(C,w){C.millisecond=w*100}],SS:["\\d{2}",function(C,w){C.millisecond=w*10}],SSS:[h,function(C,w){C.millisecond=w}],D:[o,A],ddd:[I,A],MMM:[I,H("monthNamesShort")],MMMM:[I,H("monthNames")],a:[I,function(C,w,N){var k=w.toLowerCase();k===N.amPm[0]?C.isPm=!1:k===N.amPm[1]&&(C.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(C,w){var N=(w+"").match(/([+-]|\d\d)/gi),k;N&&(k=+(N[1]*60)+parseInt(N[2],10),C.timezoneOffset=N[0]==="+"?k:-k)}]};m.dd=m.d,m.dddd=m.ddd,m.DD=m.D,m.mm=m.m,m.hh=m.H=m.HH=m.h,m.MM=m.M,m.ss=m.s,m.A=m.a,c.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},c.format=function(C,w,N){var k=N||c.i18n;if(typeof C=="number"&&(C=new Date(C)),Object.prototype.toString.call(C)!=="[object Date]"||isNaN(C.getTime()))throw new Error("Invalid Date in fecha.format");w=c.masks[w]||w||c.masks.default;var P=[];return w=w.replace(b,function(Q,ne){return P.push(ne),"@@@"}),w=w.replace(u,function(Q){return Q in V?V[Q](C,k):Q.slice(1,Q.length-1)}),w.replace(/@@@/g,function(){return P.shift()})},c.parse=function(C,w,N){var k=N||c.i18n;if(typeof w!="string")throw new Error("Invalid format in fecha.parse");if(w=c.masks[w]||w,C.length>1e3)return null;var P={},Q=[],ne=[];w=w.replace(b,function(ke,xe){return ne.push(xe),"@@@"});var re=B(w).replace(u,function(ke){if(m[ke]){var xe=m[ke];return Q.push(xe[1]),"("+xe[0]+")"}return ke});re=re.replace(/@@@/g,function(){return ne.shift()});var de=C.match(new RegExp(re,"i"));if(!de)return null;for(var ie=1;ie0&&arguments[0]!==void 0?arguments[0]:"";return String(l).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var Vx=se.arrayFindIndex=function(l,c){for(var u=0;u!==l.length;++u)if(c(l[u]))return u;return-1};se.arrayFind=function(l,c){var u=Vx(l,c);return u!==-1?l[u]:void 0};se.coerceTruthyValueToArray=function(l){return Array.isArray(l)?l:l?[l]:[]};se.isIE=function(){return!ha.default.prototype.$isServer&&!isNaN(Number(document.documentMode))};se.isEdge=function(){return!ha.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1};se.isFirefox=function(){return!ha.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};se.autoprefixer=function(l){if((typeof l=="undefined"?"undefined":Tx(l))!=="object")return l;var c=["transform","transition","animation"],u=["ms-","webkit-"];return c.forEach(function(o){var h=l[o];o&&h&&u.forEach(function(y){l[y+o]=h})}),l};se.kebabCase=function(l){var c=/([^-])([A-Z])/g;return l.replace(c,"$1-$2").replace(c,"$1-$2").toLowerCase()};se.capitalize=function(l){return(0,na.isString)(l)?l.charAt(0).toUpperCase()+l.slice(1):l};var gh=se.looseEqual=function(l,c){var u=(0,na.isObject)(l),o=(0,na.isObject)(c);return u&&o?JSON.stringify(l)===JSON.stringify(c):!u&&!o?String(l)===String(c):!1},Rx=se.arrayEquals=function(l,c){if(l=l||[],c=c||[],l.length!==c.length)return!1;for(var u=0;u1?u-1:0),h=1;h1&&arguments[1]!==void 0?arguments[1]:1;return new Date(l.getFullYear(),l.getMonth(),l.getDate()-c)};te.nextDate=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+c)};te.getStartDateOfMonth=function(l,c){var u=new Date(l,c,1),o=u.getDay();return o===0?oh(u,7):oh(u,o)};te.getWeekNumber=function(l){if(!bh(l))return null;var c=new Date(l.getTime());c.setHours(0,0,0,0),c.setDate(c.getDate()+3-(c.getDay()+6)%7);var u=new Date(c.getFullYear(),0,4);return 1+Math.round(((c.getTime()-u.getTime())/864e5-3+(u.getDay()+6)%7)/7)};te.getRangeHours=function(l){var c=[],u=[];if((l||[]).forEach(function(y){var I=y.map(function(b){return b.getHours()});u=u.concat(sw(I[0],I[1]))}),u.length)for(var o=0;o<24;o++)c[o]=u.indexOf(o)===-1;else for(var h=0;h<24;h++)c[h]=!1;return c};te.getPrevMonthLastDays=function(l,c){if(c<=0)return[];var u=new Date(l.getTime());u.setDate(0);var o=u.getDate();return yh(c).map(function(h,y){return o-(c-y-1)})};te.getMonthDays=function(l){var c=new Date(l.getFullYear(),l.getMonth()+1,0),u=c.getDate();return yh(u).map(function(o,h){return h+1})};function di(f,l,c,u){for(var o=l;o0?l.forEach(function(o){var h=o[0],y=o[1],I=h.getHours(),b=h.getMinutes(),A=y.getHours(),B=y.getMinutes();I===c&&A!==c?di(u,b,60,!0):I===c&&A===c?di(u,b,B+1,!0):I!==c&&A===c?di(u,0,B+1,!0):Ic&&di(u,0,60,!0)}):di(u,0,60,!0),u};var yh=te.range=function(l){return Array.apply(null,{length:l}).map(function(c,u){return u})},Ch=te.modifyDate=function(l,c,u,o){return new Date(c,u,o,l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds())},cw=te.modifyTime=function(l,c,u,o){return new Date(l.getFullYear(),l.getMonth(),l.getDate(),c,u,o,l.getMilliseconds())};te.modifyWithTimeString=function(l,c){return l==null||!c?l:(c=lw(c,"HH:mm:ss"),cw(l,c.getHours(),c.getMinutes(),c.getSeconds()))};te.clearTime=function(l){return new Date(l.getFullYear(),l.getMonth(),l.getDate())};te.clearMilliseconds=function(l){return new Date(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),0)};var dw=te.limitTimeRange=function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(c.length===0)return l;var o=function(E){return vr.default.parse(vr.default.format(E,u),u)},h=o(l),y=c.map(function(B){return B.map(o)});if(y.some(function(B){return h>=B[0]&&h<=B[1]}))return l;var I=y[0][0],b=y[0][0];y.forEach(function(B){I=new Date(Math.min(B[0],I)),b=new Date(Math.max(B[1],I))});var A=h1&&arguments[1]!==void 0?arguments[1]:1,u=l.getFullYear(),o=l.getMonth();return Wt(l,u-c,o)};te.nextYear=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,u=l.getFullYear(),o=l.getMonth();return Wt(l,u+c,o)};te.extractDateFormat=function(l){return l.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()};te.extractTimeFormat=function(l){return l.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()};te.validateRangeInOneMonth=function(l,c){return l.getMonth()===c.getMonth()&&l.getFullYear()===c.getFullYear()};var ve={};ve.__esModule=!0;ve.isInContainer=ve.getScrollContainer=ve.isScroll=ve.getStyle=ve.once=ve.off=ve.on=void 0;var hw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};ve.hasClass=fa;ve.addClass=Cw;ve.removeClass=xw;ve.setStyle=wh;var fw=We,pw=mw(fw);function mw(f){return f&&f.__esModule?f:{default:f}}var _t=pw.default.prototype.$isServer,vw=/([\:\-\_]+(.))/g,gw=/^moz([A-Z])/,xh=_t?0:Number(document.documentMode),_w=function(l){return(l||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},aa=function(l){return l.replace(vw,function(c,u,o,h){return h?o.toUpperCase():o}).replace(gw,"Moz$1")},bw=ve.on=function(){return!_t&&document.addEventListener?function(f,l,c){f&&l&&c&&f.addEventListener(l,c,!1)}:function(f,l,c){f&&l&&c&&f.attachEvent("on"+l,c)}}(),yw=ve.off=function(){return!_t&&document.removeEventListener?function(f,l,c){f&&l&&f.removeEventListener(l,c,!1)}:function(f,l,c){f&&l&&f.detachEvent("on"+l,c)}}();ve.once=function(l,c,u){var o=function h(){u&&u.apply(this,arguments),yw(l,c,h)};bw(l,c,o)};function fa(f,l){if(!f||!l)return!1;if(l.indexOf(" ")!==-1)throw new Error("className should not contain space.");return f.classList?f.classList.contains(l):(" "+f.className+" ").indexOf(" "+l+" ")>-1}function Cw(f,l){if(!!f){for(var c=f.className,u=(l||"").split(" "),o=0,h=u.length;oo.top&&u.right>o.left&&u.left0){var o=c[c.length-1];if(o.id===l){if(o.modalClass){var h=o.modalClass.trim().split(/\s+/);h.forEach(function(I){return(0,St.removeClass)(u,I)})}c.pop(),c.length>0&&(u.style.zIndex=c[c.length-1].zIndex)}else for(var y=c.length-1;y>=0;y--)if(c[y].id===l){c.splice(y,1);break}}c.length===0&&(this.modalFade&&(0,St.addClass)(u,"v-modal-leave"),setTimeout(function(){c.length===0&&(u.parentNode&&u.parentNode.removeChild(u),u.style.display="none",Ae.modalDom=void 0),(0,St.removeClass)(u,"v-modal-leave")},200))}};Object.defineProperty(Ae,"zIndex",{configurable:!0,get:function(){return lh||(cr=cr||(mi.default.prototype.$ELEMENT||{}).zIndex||2e3,lh=!0),cr},set:function(l){cr=l}});var Ow=function(){if(!mi.default.prototype.$isServer&&Ae.modalStack.length>0){var l=Ae.modalStack[Ae.modalStack.length-1];if(!l)return;var c=Ae.getInstance(l.id);return c}};mi.default.prototype.$isServer||window.addEventListener("keydown",function(f){if(f.keyCode===27){var l=Ow();l&&l.closeOnPressEscape&&(l.handleClose?l.handleClose():l.handleAction?l.handleAction("cancel"):l.close())}});pa.default=Ae;var vi={};vi.__esModule=!0;vi.default=function(){if($w.default.prototype.$isServer)return 0;if(hr!==void 0)return hr;var f=document.createElement("div");f.className="el-scrollbar__wrap",f.style.visibility="hidden",f.style.width="100px",f.style.position="absolute",f.style.top="-9999px",document.body.appendChild(f);var l=f.offsetWidth;f.style.overflow="scroll";var c=document.createElement("div");c.style.width="100%",f.appendChild(c);var u=c.offsetWidth;return f.parentNode.removeChild(f),hr=l-u,hr};var Ew=We,$w=Tw(Ew);function Tw(f){return f&&f.__esModule?f:{default:f}}var hr=void 0;Yt.__esModule=!0;Yt.PopupManager=void 0;var Mw=We,Pw=_r(Mw),Nw=Ut,Iw=_r(Nw),Fw=pa,ut=_r(Fw),jw=vi,Lw=_r(jw),hi=ve;function _r(f){return f&&f.__esModule?f:{default:f}}var Aw=1,ia=void 0;Yt.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+Aw++,ut.default.register(this._popupId,this)},beforeDestroy:function(){ut.default.deregister(this._popupId),ut.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(l){var c=this;if(l){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,Pw.default.nextTick(function(){c.open()}))}else this.close()}},methods:{open:function(l){var c=this;this.rendered||(this.rendered=!0);var u=(0,Iw.default)({},this.$props||this,l);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var o=Number(u.openDelay);o>0?this._openTimer=setTimeout(function(){c._openTimer=null,c.doOpen(u)},o):this.doOpen(u)},doOpen:function(l){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var c=this.$el,u=l.modal,o=l.zIndex;if(o&&(ut.default.zIndex=o),u&&(this._closing&&(ut.default.closeModal(this._popupId),this._closing=!1),ut.default.openModal(this._popupId,ut.default.nextZIndex(),this.modalAppendToBody?void 0:c,l.modalClass,l.modalFade),l.lockScroll)){this.withoutHiddenClass=!(0,hi.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,hi.getStyle)(document.body,"paddingRight"),10)),ia=(0,Lw.default)();var h=document.documentElement.clientHeight0&&(h||y==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+ia+"px"),(0,hi.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(c).position==="static"&&(c.style.position="absolute"),c.style.zIndex=ut.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var l=this;if(!(this.willClose&&!this.willClose())){this._openTimer!==null&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var c=Number(this.closeDelay);c>0?this._closeTimer=setTimeout(function(){l._closeTimer=null,l.doClose()},c):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){ut.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,hi.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}};Yt.PopupManager=ut.default;var Sh={exports:{}};(function(f){var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,u){l(f)==="object"&&f.exports?f.exports=u():c.Popper=u()})(void 0,function(){var c=window,u={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function o(m,C,w){this._reference=m.jquery?m[0]:m,this.state={};var N=typeof C=="undefined"||C===null,k=C&&Object.prototype.toString.call(C)==="[object Object]";return N||k?this._popper=this.parse(k?C:{}):this._popper=C.jquery?C[0]:C,this._options=Object.assign({},u,w),this._options.modifiers=this._options.modifiers.map(function(P){if(this._options.modifiersIgnored.indexOf(P)===-1)return P==="applyStyle"&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[P]||P}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),p(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}o.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[V("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},o.prototype.update=function(){var m={instance:this,styles:{}};m.placement=this._options.placement,m._originalPlacement=this._options.placement,m.offsets=this._getOffsets(this._popper,this._reference,m.placement),m.boundaries=this._getBoundaries(m,this._options.boundariesPadding,this._options.boundariesElement),m=this.runModifiers(m,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(m)},o.prototype.onCreate=function(m){return m(this),this},o.prototype.onUpdate=function(m){return this.state.updateCallback=m,this},o.prototype.parse=function(m){var C={tagName:"div",classNames:["popper"],attributes:[],parent:c.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};m=Object.assign({},C,m);var w=c.document,N=w.createElement(m.tagName);if(Q(N,m.classNames),ne(N,m.attributes),m.contentType==="node"?N.appendChild(m.content.jquery?m.content[0]:m.content):m.contentType==="html"?N.innerHTML=m.content:N.textContent=m.content,m.arrowTagName){var k=w.createElement(m.arrowTagName);Q(k,m.arrowClassNames),ne(k,m.arrowAttributes),N.appendChild(k)}var P=m.parent.jquery?m.parent[0]:m.parent;if(typeof P=="string"){if(P=w.querySelectorAll(m.parent),P.length>1&&console.warn("WARNING: the given `parent` query("+m.parent+") matched more than one element, the first one will be used"),P.length===0)throw"ERROR: the given `parent` doesn't exists!";P=P[0]}return P.length>1&&!(P instanceof Element)&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),P=P[0]),P.appendChild(N),N;function Q(re,de){de.forEach(function(ie){re.classList.add(ie)})}function ne(re,de){de.forEach(function(ie){re.setAttribute(ie.split(":")[0],ie.split(":")[1]||"")})}},o.prototype._getPosition=function(m,C){if(B(C),this._options.forceAbsolute)return"absolute";var w=H(C);return w?"fixed":"absolute"},o.prototype._getOffsets=function(m,C,w){w=w.split("-")[0];var N={};N.position=this.state.position;var k=N.position==="fixed",P=x(C,B(m),k),Q=h(m);return["right","left"].indexOf(w)!==-1?(N.top=P.top+P.height/2-Q.height/2,w==="left"?N.left=P.left-Q.width:N.left=P.right):(N.left=P.left+P.width/2-Q.width/2,w==="top"?N.top=P.top-Q.height:N.top=P.bottom),N.width=Q.width,N.height=Q.height,{popper:N,reference:P}},o.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),c.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var m=E(this._reference);(m===c.document.body||m===c.document.documentElement)&&(m=c),m.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=m}},o.prototype._removeEventListeners=function(){c.removeEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},o.prototype._getBoundaries=function(m,C,w){var N={},k,P;if(w==="window"){var Q=c.document.body,ne=c.document.documentElement;P=Math.max(Q.scrollHeight,Q.offsetHeight,ne.clientHeight,ne.scrollHeight,ne.offsetHeight),k=Math.max(Q.scrollWidth,Q.offsetWidth,ne.clientWidth,ne.scrollWidth,ne.offsetWidth),N={top:0,right:k,bottom:P,left:0}}else if(w==="viewport"){var re=B(this._popper),de=E(this._popper),ie=L(re),Oe=function(be){return be==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):be.scrollTop},me=function(be){return be==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):be.scrollLeft},ke=m.offsets.popper.position==="fixed"?0:Oe(de),xe=m.offsets.popper.position==="fixed"?0:me(de);N={top:0-(ie.top-ke),right:c.document.documentElement.clientWidth-(ie.left-xe),bottom:c.document.documentElement.clientHeight-(ie.top-ke),left:0-(ie.left-xe)}}else B(this._popper)===w?N={top:0,left:0,right:w.clientWidth,bottom:w.clientHeight}:N=L(w);return N.left+=C,N.right-=C,N.top=N.top+C,N.bottom=N.bottom-C,N},o.prototype.runModifiers=function(m,C,w){var N=C.slice();return w!==void 0&&(N=this._options.modifiers.slice(0,b(this._options.modifiers,w))),N.forEach(function(k){g(k)&&(m=k.call(this,m))}.bind(this)),m},o.prototype.isModifierRequired=function(m,C){var w=b(this._options.modifiers,m);return!!this._options.modifiers.slice(0,w).filter(function(N){return N===C}).length},o.prototype.modifiers={},o.prototype.modifiers.applyStyle=function(m){var C={position:m.offsets.popper.position},w=Math.round(m.offsets.popper.left),N=Math.round(m.offsets.popper.top),k;return this._options.gpuAcceleration&&(k=V("transform"))?(C[k]="translate3d("+w+"px, "+N+"px, 0)",C.top=0,C.left=0):(C.left=w,C.top=N),Object.assign(C,m.styles),p(this._popper,C),this._popper.setAttribute("x-placement",m.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&m.offsets.arrow&&p(m.arrowElement,m.offsets.arrow),m},o.prototype.modifiers.shift=function(m){var C=m.placement,w=C.split("-")[0],N=C.split("-")[1];if(N){var k=m.offsets.reference,P=I(m.offsets.popper),Q={y:{start:{top:k.top},end:{top:k.top+k.height-P.height}},x:{start:{left:k.left},end:{left:k.left+k.width-P.width}}},ne=["bottom","top"].indexOf(w)!==-1?"x":"y";m.offsets.popper=Object.assign(P,Q[ne][N])}return m},o.prototype.modifiers.preventOverflow=function(m){var C=this._options.preventOverflowOrder,w=I(m.offsets.popper),N={left:function(){var P=w.left;return w.leftm.boundaries.right&&(P=Math.min(w.left,m.boundaries.right-w.width)),{left:P}},top:function(){var P=w.top;return w.topm.boundaries.bottom&&(P=Math.min(w.top,m.boundaries.bottom-w.height)),{top:P}}};return C.forEach(function(k){m.offsets.popper=Object.assign(w,N[k]())}),m},o.prototype.modifiers.keepTogether=function(m){var C=I(m.offsets.popper),w=m.offsets.reference,N=Math.floor;return C.rightN(w.right)&&(m.offsets.popper.left=N(w.right)),C.bottomN(w.bottom)&&(m.offsets.popper.top=N(w.bottom)),m},o.prototype.modifiers.flip=function(m){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),m;if(m.flipped&&m.placement===m._originalPlacement)return m;var C=m.placement.split("-")[0],w=y(C),N=m.placement.split("-")[1]||"",k=[];return this._options.flipBehavior==="flip"?k=[C,w]:k=this._options.flipBehavior,k.forEach(function(P,Q){if(!(C!==P||k.length===Q+1)){C=m.placement.split("-")[0],w=y(C);var ne=I(m.offsets.popper),re=["right","bottom"].indexOf(C)!==-1;(re&&Math.floor(m.offsets.reference[C])>Math.floor(ne[w])||!re&&Math.floor(m.offsets.reference[C])P[Oe]&&(m.offsets.popper[de]+=Q[de]+me-P[Oe]);var ke=Q[de]+(w||Q[re]/2-me/2),xe=ke-P[de];return xe=Math.max(Math.min(P[re]-me-8,xe),8),N[de]=xe,N[ie]="",m.offsets.arrow=N,m.arrowElement=C,m};function h(m){var C=m.style.display,w=m.style.visibility;m.style.display="block",m.style.visibility="hidden",m.offsetWidth;var N=c.getComputedStyle(m),k=parseFloat(N.marginTop)+parseFloat(N.marginBottom),P=parseFloat(N.marginLeft)+parseFloat(N.marginRight),Q={width:m.offsetWidth+P,height:m.offsetHeight+k};return m.style.display=C,m.style.visibility=w,Q}function y(m){var C={left:"right",right:"left",bottom:"top",top:"bottom"};return m.replace(/left|right|bottom|top/g,function(w){return C[w]})}function I(m){var C=Object.assign({},m);return C.right=C.left+C.width,C.bottom=C.top+C.height,C}function b(m,C){var w=0,N;for(N in m){if(m[N]===C)return w;w++}return null}function A(m,C){var w=c.getComputedStyle(m,null);return w[C]}function B(m){var C=m.offsetParent;return C===c.document.body||!C?c.document.documentElement:C}function E(m){var C=m.parentNode;return C?C===c.document?c.document.body.scrollTop||c.document.body.scrollLeft?c.document.body:c.document.documentElement:["scroll","auto"].indexOf(A(C,"overflow"))!==-1||["scroll","auto"].indexOf(A(C,"overflow-x"))!==-1||["scroll","auto"].indexOf(A(C,"overflow-y"))!==-1?C:E(m.parentNode):m}function H(m){return m===c.document.body?!1:A(m,"position")==="fixed"?!0:m.parentNode?H(m.parentNode):m}function p(m,C){function w(N){return N!==""&&!isNaN(parseFloat(N))&&isFinite(N)}Object.keys(C).forEach(function(N){var k="";["width","height","top","right","bottom","left"].indexOf(N)!==-1&&w(C[N])&&(k="px"),m.style[N]=C[N]+k})}function g(m){var C={};return m&&C.toString.call(m)==="[object Function]"}function L(m){var C={width:m.offsetWidth,height:m.offsetHeight,left:m.offsetLeft,top:m.offsetTop};return C.right=C.left+C.width,C.bottom=C.top+C.height,C}function D(m){var C=m.getBoundingClientRect(),w=navigator.userAgent.indexOf("MSIE")!=-1,N=w&&m.tagName==="HTML"?-m.scrollTop:C.top;return{left:C.left,top:N,right:C.right,bottom:C.bottom,width:C.right-C.left,height:C.bottom-N}}function x(m,C,w){var N=D(m),k=D(C);if(w){var P=E(C);k.top+=P.scrollTop-window.scrollY,k.bottom+=P.scrollTop+window.scrollY,k.left+=P.scrollLeft-window.scrollX,k.right+=P.scrollLeft+window.scrollX}var Q={top:N.top-k.top,left:N.left-k.left,bottom:N.top-k.top+N.height,right:N.left-k.left+N.width,width:N.width,height:N.height};return Q}function V(m){for(var C=["","ms","webkit","moz","o"],w=0;w-1?"center "+u:u+" center"}},appendArrow:function(l){var c=void 0;if(!this.appended){this.appended=!0;for(var u in l.attributes)if(/^_v-/.test(l.attributes[u].name)){c=l.attributes[u].name;break}var o=document.createElement("div");c&&o.setAttribute(c,""),o.setAttribute("x-arrow",""),o.className="popper__arrow",l.appendChild(o)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",dh),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}};var br={exports:{}},yr={};yr.__esModule=!0;yr.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}};var Ot={};Ot.__esModule=!0;Ot.isDef=Hw;Ot.isKorean=Ww;function Hw(f){return f!=null}function Ww(f){var l=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return l.test(f)}(function(f){f.exports=function(l){var c={};function u(o){if(c[o])return c[o].exports;var h=c[o]={i:o,l:!1,exports:{}};return l[o].call(h.exports,h,h.exports,u),h.l=!0,h.exports}return u.m=l,u.c=c,u.d=function(o,h,y){u.o(o,h)||Object.defineProperty(o,h,{enumerable:!0,get:y})},u.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},u.t=function(o,h){if(h&1&&(o=u(o)),h&8||h&4&&typeof o=="object"&&o&&o.__esModule)return o;var y=Object.create(null);if(u.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:o}),h&2&&typeof o!="string")for(var I in o)u.d(y,I,function(b){return o[b]}.bind(null,I));return y},u.n=function(o){var h=o&&o.__esModule?function(){return o.default}:function(){return o};return u.d(h,"a",h),h},u.o=function(o,h){return Object.prototype.hasOwnProperty.call(o,h)},u.p="/dist/",u(u.s=74)}({0:function(l,c,u){u.d(c,"a",function(){return o});function o(h,y,I,b,A,B,E,H){var p=typeof h=="function"?h.options:h;y&&(p.render=y,p.staticRenderFns=I,p._compiled=!0),b&&(p.functional=!0),B&&(p._scopeId="data-v-"+B);var g;if(E?(g=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!x&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(x=__VUE_SSR_CONTEXT__),A&&A.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(E)},p._ssrRegister=g):A&&(g=H?function(){A.call(this,this.$root.$options.shadowRoot)}:A),g)if(p.functional){p._injectStyles=g;var L=p.render;p.render=function(V,m){return g.call(m),L(V,m)}}else{var D=p.beforeCreate;p.beforeCreate=D?[].concat(D,g):[g]}return{exports:h,options:p}}},11:function(l,c){l.exports=yr},21:function(l,c){l.exports=Ot},4:function(l,c){l.exports=pt},74:function(l,c,u){u.r(c);var o=function(){var k=this,P=k.$createElement,Q=k._self._c||P;return Q("div",{class:[k.type==="textarea"?"el-textarea":"el-input",k.inputSize?"el-input--"+k.inputSize:"",{"is-disabled":k.inputDisabled,"is-exceed":k.inputExceed,"el-input-group":k.$slots.prepend||k.$slots.append,"el-input-group--append":k.$slots.append,"el-input-group--prepend":k.$slots.prepend,"el-input--prefix":k.$slots.prefix||k.prefixIcon,"el-input--suffix":k.$slots.suffix||k.suffixIcon||k.clearable||k.showPassword}],on:{mouseenter:function(ne){k.hovering=!0},mouseleave:function(ne){k.hovering=!1}}},[k.type!=="textarea"?[k.$slots.prepend?Q("div",{staticClass:"el-input-group__prepend"},[k._t("prepend")],2):k._e(),k.type!=="textarea"?Q("input",k._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:k.tabindex,type:k.showPassword?k.passwordVisible?"text":"password":k.type,disabled:k.inputDisabled,readonly:k.readonly,autocomplete:k.autoComplete||k.autocomplete,"aria-label":k.label},on:{compositionstart:k.handleCompositionStart,compositionupdate:k.handleCompositionUpdate,compositionend:k.handleCompositionEnd,input:k.handleInput,focus:k.handleFocus,blur:k.handleBlur,change:k.handleChange}},"input",k.$attrs,!1)):k._e(),k.$slots.prefix||k.prefixIcon?Q("span",{staticClass:"el-input__prefix"},[k._t("prefix"),k.prefixIcon?Q("i",{staticClass:"el-input__icon",class:k.prefixIcon}):k._e()],2):k._e(),k.getSuffixVisible()?Q("span",{staticClass:"el-input__suffix"},[Q("span",{staticClass:"el-input__suffix-inner"},[!k.showClear||!k.showPwdVisible||!k.isWordLimitVisible?[k._t("suffix"),k.suffixIcon?Q("i",{staticClass:"el-input__icon",class:k.suffixIcon}):k._e()]:k._e(),k.showClear?Q("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(ne){ne.preventDefault()},click:k.clear}}):k._e(),k.showPwdVisible?Q("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:k.handlePasswordVisible}}):k._e(),k.isWordLimitVisible?Q("span",{staticClass:"el-input__count"},[Q("span",{staticClass:"el-input__count-inner"},[k._v(` +import{r as We,V as oa}from"./vue.eaf71fac.js";import{c as gx}from"./deepmerge.cecf392e.js";import{r as _x}from"./resize-observer-polyfill.e60103ad.js";import{t as ph,d as la,a as bx}from"./throttle-debounce.7c3948b2.js";import{b as mh}from"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import{n as yx}from"./normalize-wheel.2a034b9f.js";import{r as Cx}from"./async-validator.289edf0d.js";var xx={exports:{}},te={},ua={exports:{}};(function(f){(function(l){var c={},u=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,o="\\d\\d?",h="\\d{3}",y="\\d{4}",I="[^\\s]+",b=/\[([^]*?)\]/gm,A=function(){};function B(C){return C.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function E(C,w){for(var N=[],k=0,P=C.length;k3?0:(w-w%10!==10)*w%10]}};var V={D:function(w){return w.getDay()},DD:function(w){return p(w.getDay())},Do:function(w,N){return N.DoFn(w.getDate())},d:function(w){return w.getDate()},dd:function(w){return p(w.getDate())},ddd:function(w,N){return N.dayNamesShort[w.getDay()]},dddd:function(w,N){return N.dayNames[w.getDay()]},M:function(w){return w.getMonth()+1},MM:function(w){return p(w.getMonth()+1)},MMM:function(w,N){return N.monthNamesShort[w.getMonth()]},MMMM:function(w,N){return N.monthNames[w.getMonth()]},yy:function(w){return p(String(w.getFullYear()),4).substr(2)},yyyy:function(w){return p(w.getFullYear(),4)},h:function(w){return w.getHours()%12||12},hh:function(w){return p(w.getHours()%12||12)},H:function(w){return w.getHours()},HH:function(w){return p(w.getHours())},m:function(w){return w.getMinutes()},mm:function(w){return p(w.getMinutes())},s:function(w){return w.getSeconds()},ss:function(w){return p(w.getSeconds())},S:function(w){return Math.round(w.getMilliseconds()/100)},SS:function(w){return p(Math.round(w.getMilliseconds()/10),2)},SSS:function(w){return p(w.getMilliseconds(),3)},a:function(w,N){return w.getHours()<12?N.amPm[0]:N.amPm[1]},A:function(w,N){return w.getHours()<12?N.amPm[0].toUpperCase():N.amPm[1].toUpperCase()},ZZ:function(w){var N=w.getTimezoneOffset();return(N>0?"-":"+")+p(Math.floor(Math.abs(N)/60)*100+Math.abs(N)%60,4)}},m={d:[o,function(C,w){C.day=w}],Do:[o+I,function(C,w){C.day=parseInt(w,10)}],M:[o,function(C,w){C.month=w-1}],yy:[o,function(C,w){var N=new Date,k=+(""+N.getFullYear()).substr(0,2);C.year=""+(w>68?k-1:k)+w}],h:[o,function(C,w){C.hour=w}],m:[o,function(C,w){C.minute=w}],s:[o,function(C,w){C.second=w}],yyyy:[y,function(C,w){C.year=w}],S:["\\d",function(C,w){C.millisecond=w*100}],SS:["\\d{2}",function(C,w){C.millisecond=w*10}],SSS:[h,function(C,w){C.millisecond=w}],D:[o,A],ddd:[I,A],MMM:[I,H("monthNamesShort")],MMMM:[I,H("monthNames")],a:[I,function(C,w,N){var k=w.toLowerCase();k===N.amPm[0]?C.isPm=!1:k===N.amPm[1]&&(C.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(C,w){var N=(w+"").match(/([+-]|\d\d)/gi),k;N&&(k=+(N[1]*60)+parseInt(N[2],10),C.timezoneOffset=N[0]==="+"?k:-k)}]};m.dd=m.d,m.dddd=m.ddd,m.DD=m.D,m.mm=m.m,m.hh=m.H=m.HH=m.h,m.MM=m.M,m.ss=m.s,m.A=m.a,c.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},c.format=function(C,w,N){var k=N||c.i18n;if(typeof C=="number"&&(C=new Date(C)),Object.prototype.toString.call(C)!=="[object Date]"||isNaN(C.getTime()))throw new Error("Invalid Date in fecha.format");w=c.masks[w]||w||c.masks.default;var P=[];return w=w.replace(b,function(Q,ne){return P.push(ne),"@@@"}),w=w.replace(u,function(Q){return Q in V?V[Q](C,k):Q.slice(1,Q.length-1)}),w.replace(/@@@/g,function(){return P.shift()})},c.parse=function(C,w,N){var k=N||c.i18n;if(typeof w!="string")throw new Error("Invalid format in fecha.parse");if(w=c.masks[w]||w,C.length>1e3)return null;var P={},Q=[],ne=[];w=w.replace(b,function(ke,xe){return ne.push(xe),"@@@"});var re=B(w).replace(u,function(ke){if(m[ke]){var xe=m[ke];return Q.push(xe[1]),"("+xe[0]+")"}return ke});re=re.replace(/@@@/g,function(){return ne.shift()});var de=C.match(new RegExp(re,"i"));if(!de)return null;for(var ie=1;ie0&&arguments[0]!==void 0?arguments[0]:"";return String(l).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var Vx=se.arrayFindIndex=function(l,c){for(var u=0;u!==l.length;++u)if(c(l[u]))return u;return-1};se.arrayFind=function(l,c){var u=Vx(l,c);return u!==-1?l[u]:void 0};se.coerceTruthyValueToArray=function(l){return Array.isArray(l)?l:l?[l]:[]};se.isIE=function(){return!ha.default.prototype.$isServer&&!isNaN(Number(document.documentMode))};se.isEdge=function(){return!ha.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1};se.isFirefox=function(){return!ha.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};se.autoprefixer=function(l){if((typeof l=="undefined"?"undefined":Tx(l))!=="object")return l;var c=["transform","transition","animation"],u=["ms-","webkit-"];return c.forEach(function(o){var h=l[o];o&&h&&u.forEach(function(y){l[y+o]=h})}),l};se.kebabCase=function(l){var c=/([^-])([A-Z])/g;return l.replace(c,"$1-$2").replace(c,"$1-$2").toLowerCase()};se.capitalize=function(l){return(0,na.isString)(l)?l.charAt(0).toUpperCase()+l.slice(1):l};var gh=se.looseEqual=function(l,c){var u=(0,na.isObject)(l),o=(0,na.isObject)(c);return u&&o?JSON.stringify(l)===JSON.stringify(c):!u&&!o?String(l)===String(c):!1},Rx=se.arrayEquals=function(l,c){if(l=l||[],c=c||[],l.length!==c.length)return!1;for(var u=0;u1?u-1:0),h=1;h1&&arguments[1]!==void 0?arguments[1]:1;return new Date(l.getFullYear(),l.getMonth(),l.getDate()-c)};te.nextDate=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+c)};te.getStartDateOfMonth=function(l,c){var u=new Date(l,c,1),o=u.getDay();return o===0?oh(u,7):oh(u,o)};te.getWeekNumber=function(l){if(!bh(l))return null;var c=new Date(l.getTime());c.setHours(0,0,0,0),c.setDate(c.getDate()+3-(c.getDay()+6)%7);var u=new Date(c.getFullYear(),0,4);return 1+Math.round(((c.getTime()-u.getTime())/864e5-3+(u.getDay()+6)%7)/7)};te.getRangeHours=function(l){var c=[],u=[];if((l||[]).forEach(function(y){var I=y.map(function(b){return b.getHours()});u=u.concat(sw(I[0],I[1]))}),u.length)for(var o=0;o<24;o++)c[o]=u.indexOf(o)===-1;else for(var h=0;h<24;h++)c[h]=!1;return c};te.getPrevMonthLastDays=function(l,c){if(c<=0)return[];var u=new Date(l.getTime());u.setDate(0);var o=u.getDate();return yh(c).map(function(h,y){return o-(c-y-1)})};te.getMonthDays=function(l){var c=new Date(l.getFullYear(),l.getMonth()+1,0),u=c.getDate();return yh(u).map(function(o,h){return h+1})};function di(f,l,c,u){for(var o=l;o0?l.forEach(function(o){var h=o[0],y=o[1],I=h.getHours(),b=h.getMinutes(),A=y.getHours(),B=y.getMinutes();I===c&&A!==c?di(u,b,60,!0):I===c&&A===c?di(u,b,B+1,!0):I!==c&&A===c?di(u,0,B+1,!0):Ic&&di(u,0,60,!0)}):di(u,0,60,!0),u};var yh=te.range=function(l){return Array.apply(null,{length:l}).map(function(c,u){return u})},Ch=te.modifyDate=function(l,c,u,o){return new Date(c,u,o,l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds())},cw=te.modifyTime=function(l,c,u,o){return new Date(l.getFullYear(),l.getMonth(),l.getDate(),c,u,o,l.getMilliseconds())};te.modifyWithTimeString=function(l,c){return l==null||!c?l:(c=lw(c,"HH:mm:ss"),cw(l,c.getHours(),c.getMinutes(),c.getSeconds()))};te.clearTime=function(l){return new Date(l.getFullYear(),l.getMonth(),l.getDate())};te.clearMilliseconds=function(l){return new Date(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),0)};var dw=te.limitTimeRange=function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"HH:mm:ss";if(c.length===0)return l;var o=function(E){return vr.default.parse(vr.default.format(E,u),u)},h=o(l),y=c.map(function(B){return B.map(o)});if(y.some(function(B){return h>=B[0]&&h<=B[1]}))return l;var I=y[0][0],b=y[0][0];y.forEach(function(B){I=new Date(Math.min(B[0],I)),b=new Date(Math.max(B[1],I))});var A=h1&&arguments[1]!==void 0?arguments[1]:1,u=l.getFullYear(),o=l.getMonth();return Wt(l,u-c,o)};te.nextYear=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,u=l.getFullYear(),o=l.getMonth();return Wt(l,u+c,o)};te.extractDateFormat=function(l){return l.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()};te.extractTimeFormat=function(l){return l.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()};te.validateRangeInOneMonth=function(l,c){return l.getMonth()===c.getMonth()&&l.getFullYear()===c.getFullYear()};var ve={};ve.__esModule=!0;ve.isInContainer=ve.getScrollContainer=ve.isScroll=ve.getStyle=ve.once=ve.off=ve.on=void 0;var hw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};ve.hasClass=fa;ve.addClass=Cw;ve.removeClass=xw;ve.setStyle=wh;var fw=We,pw=mw(fw);function mw(f){return f&&f.__esModule?f:{default:f}}var _t=pw.default.prototype.$isServer,vw=/([\:\-\_]+(.))/g,gw=/^moz([A-Z])/,xh=_t?0:Number(document.documentMode),_w=function(l){return(l||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},aa=function(l){return l.replace(vw,function(c,u,o,h){return h?o.toUpperCase():o}).replace(gw,"Moz$1")},bw=ve.on=function(){return!_t&&document.addEventListener?function(f,l,c){f&&l&&c&&f.addEventListener(l,c,!1)}:function(f,l,c){f&&l&&c&&f.attachEvent("on"+l,c)}}(),yw=ve.off=function(){return!_t&&document.removeEventListener?function(f,l,c){f&&l&&f.removeEventListener(l,c,!1)}:function(f,l,c){f&&l&&f.detachEvent("on"+l,c)}}();ve.once=function(l,c,u){var o=function h(){u&&u.apply(this,arguments),yw(l,c,h)};bw(l,c,o)};function fa(f,l){if(!f||!l)return!1;if(l.indexOf(" ")!==-1)throw new Error("className should not contain space.");return f.classList?f.classList.contains(l):(" "+f.className+" ").indexOf(" "+l+" ")>-1}function Cw(f,l){if(!!f){for(var c=f.className,u=(l||"").split(" "),o=0,h=u.length;oo.top&&u.right>o.left&&u.left0){var o=c[c.length-1];if(o.id===l){if(o.modalClass){var h=o.modalClass.trim().split(/\s+/);h.forEach(function(I){return(0,St.removeClass)(u,I)})}c.pop(),c.length>0&&(u.style.zIndex=c[c.length-1].zIndex)}else for(var y=c.length-1;y>=0;y--)if(c[y].id===l){c.splice(y,1);break}}c.length===0&&(this.modalFade&&(0,St.addClass)(u,"v-modal-leave"),setTimeout(function(){c.length===0&&(u.parentNode&&u.parentNode.removeChild(u),u.style.display="none",Ae.modalDom=void 0),(0,St.removeClass)(u,"v-modal-leave")},200))}};Object.defineProperty(Ae,"zIndex",{configurable:!0,get:function(){return lh||(cr=cr||(mi.default.prototype.$ELEMENT||{}).zIndex||2e3,lh=!0),cr},set:function(l){cr=l}});var Ow=function(){if(!mi.default.prototype.$isServer&&Ae.modalStack.length>0){var l=Ae.modalStack[Ae.modalStack.length-1];if(!l)return;var c=Ae.getInstance(l.id);return c}};mi.default.prototype.$isServer||window.addEventListener("keydown",function(f){if(f.keyCode===27){var l=Ow();l&&l.closeOnPressEscape&&(l.handleClose?l.handleClose():l.handleAction?l.handleAction("cancel"):l.close())}});pa.default=Ae;var vi={};vi.__esModule=!0;vi.default=function(){if($w.default.prototype.$isServer)return 0;if(hr!==void 0)return hr;var f=document.createElement("div");f.className="el-scrollbar__wrap",f.style.visibility="hidden",f.style.width="100px",f.style.position="absolute",f.style.top="-9999px",document.body.appendChild(f);var l=f.offsetWidth;f.style.overflow="scroll";var c=document.createElement("div");c.style.width="100%",f.appendChild(c);var u=c.offsetWidth;return f.parentNode.removeChild(f),hr=l-u,hr};var Ew=We,$w=Tw(Ew);function Tw(f){return f&&f.__esModule?f:{default:f}}var hr=void 0;Yt.__esModule=!0;Yt.PopupManager=void 0;var Mw=We,Pw=_r(Mw),Nw=Ut,Iw=_r(Nw),Fw=pa,ut=_r(Fw),jw=vi,Lw=_r(jw),hi=ve;function _r(f){return f&&f.__esModule?f:{default:f}}var Aw=1,ia=void 0;Yt.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+Aw++,ut.default.register(this._popupId,this)},beforeDestroy:function(){ut.default.deregister(this._popupId),ut.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(l){var c=this;if(l){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,Pw.default.nextTick(function(){c.open()}))}else this.close()}},methods:{open:function(l){var c=this;this.rendered||(this.rendered=!0);var u=(0,Iw.default)({},this.$props||this,l);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var o=Number(u.openDelay);o>0?this._openTimer=setTimeout(function(){c._openTimer=null,c.doOpen(u)},o):this.doOpen(u)},doOpen:function(l){if(!this.$isServer&&!(this.willOpen&&!this.willOpen())&&!this.opened){this._opening=!0;var c=this.$el,u=l.modal,o=l.zIndex;if(o&&(ut.default.zIndex=o),u&&(this._closing&&(ut.default.closeModal(this._popupId),this._closing=!1),ut.default.openModal(this._popupId,ut.default.nextZIndex(),this.modalAppendToBody?void 0:c,l.modalClass,l.modalFade),l.lockScroll)){this.withoutHiddenClass=!(0,hi.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,hi.getStyle)(document.body,"paddingRight"),10)),ia=(0,Lw.default)();var h=document.documentElement.clientHeight0&&(h||y==="scroll")&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+ia+"px"),(0,hi.addClass)(document.body,"el-popup-parent--hidden")}getComputedStyle(c).position==="static"&&(c.style.position="absolute"),c.style.zIndex=ut.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var l=this;if(!(this.willClose&&!this.willClose())){this._openTimer!==null&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var c=Number(this.closeDelay);c>0?this._closeTimer=setTimeout(function(){l._closeTimer=null,l.doClose()},c):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){ut.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,hi.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}};Yt.PopupManager=ut.default;var Sh={exports:{}};(function(f){var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};(function(c,u){l(f)==="object"&&f.exports?f.exports=u():c.Popper=u()})(void 0,function(){var c=window,u={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function o(m,C,w){this._reference=m.jquery?m[0]:m,this.state={};var N=typeof C=="undefined"||C===null,k=C&&Object.prototype.toString.call(C)==="[object Object]";return N||k?this._popper=this.parse(k?C:{}):this._popper=C.jquery?C[0]:C,this._options=Object.assign({},u,w),this._options.modifiers=this._options.modifiers.map(function(P){if(this._options.modifiersIgnored.indexOf(P)===-1)return P==="applyStyle"&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[P]||P}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),p(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}o.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[V("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},o.prototype.update=function(){var m={instance:this,styles:{}};m.placement=this._options.placement,m._originalPlacement=this._options.placement,m.offsets=this._getOffsets(this._popper,this._reference,m.placement),m.boundaries=this._getBoundaries(m,this._options.boundariesPadding,this._options.boundariesElement),m=this.runModifiers(m,this._options.modifiers),typeof this.state.updateCallback=="function"&&this.state.updateCallback(m)},o.prototype.onCreate=function(m){return m(this),this},o.prototype.onUpdate=function(m){return this.state.updateCallback=m,this},o.prototype.parse=function(m){var C={tagName:"div",classNames:["popper"],attributes:[],parent:c.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};m=Object.assign({},C,m);var w=c.document,N=w.createElement(m.tagName);if(Q(N,m.classNames),ne(N,m.attributes),m.contentType==="node"?N.appendChild(m.content.jquery?m.content[0]:m.content):m.contentType==="html"?N.innerHTML=m.content:N.textContent=m.content,m.arrowTagName){var k=w.createElement(m.arrowTagName);Q(k,m.arrowClassNames),ne(k,m.arrowAttributes),N.appendChild(k)}var P=m.parent.jquery?m.parent[0]:m.parent;if(typeof P=="string"){if(P=w.querySelectorAll(m.parent),P.length>1&&console.warn("WARNING: the given `parent` query("+m.parent+") matched more than one element, the first one will be used"),P.length===0)throw"ERROR: the given `parent` doesn't exists!";P=P[0]}return P.length>1&&!(P instanceof Element)&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),P=P[0]),P.appendChild(N),N;function Q(re,de){de.forEach(function(ie){re.classList.add(ie)})}function ne(re,de){de.forEach(function(ie){re.setAttribute(ie.split(":")[0],ie.split(":")[1]||"")})}},o.prototype._getPosition=function(m,C){if(B(C),this._options.forceAbsolute)return"absolute";var w=H(C);return w?"fixed":"absolute"},o.prototype._getOffsets=function(m,C,w){w=w.split("-")[0];var N={};N.position=this.state.position;var k=N.position==="fixed",P=x(C,B(m),k),Q=h(m);return["right","left"].indexOf(w)!==-1?(N.top=P.top+P.height/2-Q.height/2,w==="left"?N.left=P.left-Q.width:N.left=P.right):(N.left=P.left+P.width/2-Q.width/2,w==="top"?N.top=P.top-Q.height:N.top=P.bottom),N.width=Q.width,N.height=Q.height,{popper:N,reference:P}},o.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),c.addEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"){var m=E(this._reference);(m===c.document.body||m===c.document.documentElement)&&(m=c),m.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=m}},o.prototype._removeEventListeners=function(){c.removeEventListener("resize",this.state.updateBound),this._options.boundariesElement!=="window"&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},o.prototype._getBoundaries=function(m,C,w){var N={},k,P;if(w==="window"){var Q=c.document.body,ne=c.document.documentElement;P=Math.max(Q.scrollHeight,Q.offsetHeight,ne.clientHeight,ne.scrollHeight,ne.offsetHeight),k=Math.max(Q.scrollWidth,Q.offsetWidth,ne.clientWidth,ne.scrollWidth,ne.offsetWidth),N={top:0,right:k,bottom:P,left:0}}else if(w==="viewport"){var re=B(this._popper),de=E(this._popper),ie=L(re),Oe=function(be){return be==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):be.scrollTop},me=function(be){return be==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):be.scrollLeft},ke=m.offsets.popper.position==="fixed"?0:Oe(de),xe=m.offsets.popper.position==="fixed"?0:me(de);N={top:0-(ie.top-ke),right:c.document.documentElement.clientWidth-(ie.left-xe),bottom:c.document.documentElement.clientHeight-(ie.top-ke),left:0-(ie.left-xe)}}else B(this._popper)===w?N={top:0,left:0,right:w.clientWidth,bottom:w.clientHeight}:N=L(w);return N.left+=C,N.right-=C,N.top=N.top+C,N.bottom=N.bottom-C,N},o.prototype.runModifiers=function(m,C,w){var N=C.slice();return w!==void 0&&(N=this._options.modifiers.slice(0,b(this._options.modifiers,w))),N.forEach(function(k){g(k)&&(m=k.call(this,m))}.bind(this)),m},o.prototype.isModifierRequired=function(m,C){var w=b(this._options.modifiers,m);return!!this._options.modifiers.slice(0,w).filter(function(N){return N===C}).length},o.prototype.modifiers={},o.prototype.modifiers.applyStyle=function(m){var C={position:m.offsets.popper.position},w=Math.round(m.offsets.popper.left),N=Math.round(m.offsets.popper.top),k;return this._options.gpuAcceleration&&(k=V("transform"))?(C[k]="translate3d("+w+"px, "+N+"px, 0)",C.top=0,C.left=0):(C.left=w,C.top=N),Object.assign(C,m.styles),p(this._popper,C),this._popper.setAttribute("x-placement",m.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&m.offsets.arrow&&p(m.arrowElement,m.offsets.arrow),m},o.prototype.modifiers.shift=function(m){var C=m.placement,w=C.split("-")[0],N=C.split("-")[1];if(N){var k=m.offsets.reference,P=I(m.offsets.popper),Q={y:{start:{top:k.top},end:{top:k.top+k.height-P.height}},x:{start:{left:k.left},end:{left:k.left+k.width-P.width}}},ne=["bottom","top"].indexOf(w)!==-1?"x":"y";m.offsets.popper=Object.assign(P,Q[ne][N])}return m},o.prototype.modifiers.preventOverflow=function(m){var C=this._options.preventOverflowOrder,w=I(m.offsets.popper),N={left:function(){var P=w.left;return w.leftm.boundaries.right&&(P=Math.min(w.left,m.boundaries.right-w.width)),{left:P}},top:function(){var P=w.top;return w.topm.boundaries.bottom&&(P=Math.min(w.top,m.boundaries.bottom-w.height)),{top:P}}};return C.forEach(function(k){m.offsets.popper=Object.assign(w,N[k]())}),m},o.prototype.modifiers.keepTogether=function(m){var C=I(m.offsets.popper),w=m.offsets.reference,N=Math.floor;return C.rightN(w.right)&&(m.offsets.popper.left=N(w.right)),C.bottomN(w.bottom)&&(m.offsets.popper.top=N(w.bottom)),m},o.prototype.modifiers.flip=function(m){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),m;if(m.flipped&&m.placement===m._originalPlacement)return m;var C=m.placement.split("-")[0],w=y(C),N=m.placement.split("-")[1]||"",k=[];return this._options.flipBehavior==="flip"?k=[C,w]:k=this._options.flipBehavior,k.forEach(function(P,Q){if(!(C!==P||k.length===Q+1)){C=m.placement.split("-")[0],w=y(C);var ne=I(m.offsets.popper),re=["right","bottom"].indexOf(C)!==-1;(re&&Math.floor(m.offsets.reference[C])>Math.floor(ne[w])||!re&&Math.floor(m.offsets.reference[C])P[Oe]&&(m.offsets.popper[de]+=Q[de]+me-P[Oe]);var ke=Q[de]+(w||Q[re]/2-me/2),xe=ke-P[de];return xe=Math.max(Math.min(P[re]-me-8,xe),8),N[de]=xe,N[ie]="",m.offsets.arrow=N,m.arrowElement=C,m};function h(m){var C=m.style.display,w=m.style.visibility;m.style.display="block",m.style.visibility="hidden",m.offsetWidth;var N=c.getComputedStyle(m),k=parseFloat(N.marginTop)+parseFloat(N.marginBottom),P=parseFloat(N.marginLeft)+parseFloat(N.marginRight),Q={width:m.offsetWidth+P,height:m.offsetHeight+k};return m.style.display=C,m.style.visibility=w,Q}function y(m){var C={left:"right",right:"left",bottom:"top",top:"bottom"};return m.replace(/left|right|bottom|top/g,function(w){return C[w]})}function I(m){var C=Object.assign({},m);return C.right=C.left+C.width,C.bottom=C.top+C.height,C}function b(m,C){var w=0,N;for(N in m){if(m[N]===C)return w;w++}return null}function A(m,C){var w=c.getComputedStyle(m,null);return w[C]}function B(m){var C=m.offsetParent;return C===c.document.body||!C?c.document.documentElement:C}function E(m){var C=m.parentNode;return C?C===c.document?c.document.body.scrollTop||c.document.body.scrollLeft?c.document.body:c.document.documentElement:["scroll","auto"].indexOf(A(C,"overflow"))!==-1||["scroll","auto"].indexOf(A(C,"overflow-x"))!==-1||["scroll","auto"].indexOf(A(C,"overflow-y"))!==-1?C:E(m.parentNode):m}function H(m){return m===c.document.body?!1:A(m,"position")==="fixed"?!0:m.parentNode?H(m.parentNode):m}function p(m,C){function w(N){return N!==""&&!isNaN(parseFloat(N))&&isFinite(N)}Object.keys(C).forEach(function(N){var k="";["width","height","top","right","bottom","left"].indexOf(N)!==-1&&w(C[N])&&(k="px"),m.style[N]=C[N]+k})}function g(m){var C={};return m&&C.toString.call(m)==="[object Function]"}function L(m){var C={width:m.offsetWidth,height:m.offsetHeight,left:m.offsetLeft,top:m.offsetTop};return C.right=C.left+C.width,C.bottom=C.top+C.height,C}function D(m){var C=m.getBoundingClientRect(),w=navigator.userAgent.indexOf("MSIE")!=-1,N=w&&m.tagName==="HTML"?-m.scrollTop:C.top;return{left:C.left,top:N,right:C.right,bottom:C.bottom,width:C.right-C.left,height:C.bottom-N}}function x(m,C,w){var N=D(m),k=D(C);if(w){var P=E(C);k.top+=P.scrollTop-window.scrollY,k.bottom+=P.scrollTop+window.scrollY,k.left+=P.scrollLeft-window.scrollX,k.right+=P.scrollLeft+window.scrollX}var Q={top:N.top-k.top,left:N.left-k.left,bottom:N.top-k.top+N.height,right:N.left-k.left+N.width,width:N.width,height:N.height};return Q}function V(m){for(var C=["","ms","webkit","moz","o"],w=0;w-1?"center "+u:u+" center"}},appendArrow:function(l){var c=void 0;if(!this.appended){this.appended=!0;for(var u in l.attributes)if(/^_v-/.test(l.attributes[u].name)){c=l.attributes[u].name;break}var o=document.createElement("div");c&&o.setAttribute(c,""),o.setAttribute("x-arrow",""),o.className="popper__arrow",l.appendChild(o)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",dh),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}};var br={exports:{}},yr={};yr.__esModule=!0;yr.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}};var Ot={};Ot.__esModule=!0;Ot.isDef=Hw;Ot.isKorean=Ww;function Hw(f){return f!=null}function Ww(f){var l=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return l.test(f)}(function(f){f.exports=function(l){var c={};function u(o){if(c[o])return c[o].exports;var h=c[o]={i:o,l:!1,exports:{}};return l[o].call(h.exports,h,h.exports,u),h.l=!0,h.exports}return u.m=l,u.c=c,u.d=function(o,h,y){u.o(o,h)||Object.defineProperty(o,h,{enumerable:!0,get:y})},u.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},u.t=function(o,h){if(h&1&&(o=u(o)),h&8||h&4&&typeof o=="object"&&o&&o.__esModule)return o;var y=Object.create(null);if(u.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:o}),h&2&&typeof o!="string")for(var I in o)u.d(y,I,function(b){return o[b]}.bind(null,I));return y},u.n=function(o){var h=o&&o.__esModule?function(){return o.default}:function(){return o};return u.d(h,"a",h),h},u.o=function(o,h){return Object.prototype.hasOwnProperty.call(o,h)},u.p="/dist/",u(u.s=74)}({0:function(l,c,u){u.d(c,"a",function(){return o});function o(h,y,I,b,A,B,E,H){var p=typeof h=="function"?h.options:h;y&&(p.render=y,p.staticRenderFns=I,p._compiled=!0),b&&(p.functional=!0),B&&(p._scopeId="data-v-"+B);var g;if(E?(g=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!x&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(x=__VUE_SSR_CONTEXT__),A&&A.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(E)},p._ssrRegister=g):A&&(g=H?function(){A.call(this,this.$root.$options.shadowRoot)}:A),g)if(p.functional){p._injectStyles=g;var L=p.render;p.render=function(V,m){return g.call(m),L(V,m)}}else{var D=p.beforeCreate;p.beforeCreate=D?[].concat(D,g):[g]}return{exports:h,options:p}}},11:function(l,c){l.exports=yr},21:function(l,c){l.exports=Ot},4:function(l,c){l.exports=pt},74:function(l,c,u){u.r(c);var o=function(){var k=this,P=k.$createElement,Q=k._self._c||P;return Q("div",{class:[k.type==="textarea"?"el-textarea":"el-input",k.inputSize?"el-input--"+k.inputSize:"",{"is-disabled":k.inputDisabled,"is-exceed":k.inputExceed,"el-input-group":k.$slots.prepend||k.$slots.append,"el-input-group--append":k.$slots.append,"el-input-group--prepend":k.$slots.prepend,"el-input--prefix":k.$slots.prefix||k.prefixIcon,"el-input--suffix":k.$slots.suffix||k.suffixIcon||k.clearable||k.showPassword}],on:{mouseenter:function(ne){k.hovering=!0},mouseleave:function(ne){k.hovering=!1}}},[k.type!=="textarea"?[k.$slots.prepend?Q("div",{staticClass:"el-input-group__prepend"},[k._t("prepend")],2):k._e(),k.type!=="textarea"?Q("input",k._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:k.tabindex,type:k.showPassword?k.passwordVisible?"text":"password":k.type,disabled:k.inputDisabled,readonly:k.readonly,autocomplete:k.autoComplete||k.autocomplete,"aria-label":k.label},on:{compositionstart:k.handleCompositionStart,compositionupdate:k.handleCompositionUpdate,compositionend:k.handleCompositionEnd,input:k.handleInput,focus:k.handleFocus,blur:k.handleBlur,change:k.handleChange}},"input",k.$attrs,!1)):k._e(),k.$slots.prefix||k.prefixIcon?Q("span",{staticClass:"el-input__prefix"},[k._t("prefix"),k.prefixIcon?Q("i",{staticClass:"el-input__icon",class:k.prefixIcon}):k._e()],2):k._e(),k.getSuffixVisible()?Q("span",{staticClass:"el-input__suffix"},[Q("span",{staticClass:"el-input__suffix-inner"},[!k.showClear||!k.showPwdVisible||!k.isWordLimitVisible?[k._t("suffix"),k.suffixIcon?Q("i",{staticClass:"el-input__icon",class:k.suffixIcon}):k._e()]:k._e(),k.showClear?Q("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(ne){ne.preventDefault()},click:k.clear}}):k._e(),k.showPwdVisible?Q("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:k.handlePasswordVisible}}):k._e(),k.isWordLimitVisible?Q("span",{staticClass:"el-input__count"},[Q("span",{staticClass:"el-input__count-inner"},[k._v(` `+k._s(k.textLength)+"/"+k._s(k.upperLimit)+` `)])]):k._e()],2),k.validateState?Q("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",k.validateIcon]}):k._e()]):k._e(),k.$slots.append?Q("div",{staticClass:"el-input-group__append"},[k._t("append")],2):k._e()]:Q("textarea",k._b({ref:"textarea",staticClass:"el-textarea__inner",style:k.textareaStyle,attrs:{tabindex:k.tabindex,disabled:k.inputDisabled,readonly:k.readonly,autocomplete:k.autoComplete||k.autocomplete,"aria-label":k.label},on:{compositionstart:k.handleCompositionStart,compositionupdate:k.handleCompositionUpdate,compositionend:k.handleCompositionEnd,input:k.handleInput,focus:k.handleFocus,blur:k.handleBlur,change:k.handleChange}},"textarea",k.$attrs,!1)),k.isWordLimitVisible&&k.type==="textarea"?Q("span",{staticClass:"el-input__count"},[k._v(k._s(k.textLength)+"/"+k._s(k.upperLimit))]):k._e()],2)},h=[];o._withStripped=!0;var y=u(4),I=u.n(y),b=u(11),A=u.n(b),B=void 0,E=` height:0 !important; diff --git a/public/js/build/email.1ede360c.js b/public/js/build/email.533d264e.js similarity index 81% rename from public/js/build/email.1ede360c.js rename to public/js/build/email.533d264e.js index e7f1f350d..90cdb4c17 100644 --- a/public/js/build/email.1ede360c.js +++ b/public/js/build/email.533d264e.js @@ -1 +1 @@ -import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\u5730\u5740")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},m=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,i,e)=>{i.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(i.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...s(["formLabelPosition","formLabelWidth"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let i=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(i))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:i})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",i),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,d,null,null,null);function d(t){for(let i in o)this[i]=o[i]}var K=function(){return u.exports}();export{K as default}; +import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\u5730\u5740")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(r){t.$set(t.formDatum,"newEmail",r)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},m=[];const l={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,i,e)=>{i.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(i.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...s(["formLabelPosition","formLabelWidth"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let i=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(i))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:i})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",i),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,d,null,null,null);function d(t){for(let i in o)this[i]=o[i]}var K=function(){return u.exports}();export{K as default}; diff --git a/public/js/build/eventemitter3.78b735ad.js b/public/js/build/eventemitter3.78b735ad.js deleted file mode 100644 index 036c89353..000000000 --- a/public/js/build/eventemitter3.78b735ad.js +++ /dev/null @@ -1 +0,0 @@ -var w={exports:{}};(function(g){var m=Object.prototype.hasOwnProperty,u="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(u=!1));function b(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function x(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new b(n,r||s,l),o=u?u+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function y(s,t){--s._eventsCount===0?s._events=new h:delete s._events[t]}function f(){this._events=new h,this._eventsCount=0}f.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)m.call(n,r)&&t.push(u?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},f.prototype.listeners=function(t){var n=u?u+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l0?e("Loading"):t.fileInfo?[t.isPreview?e("FilePreview",{attrs:{code:t.code,file:t.fileInfo,historyId:t.historyId,headerShow:!t.$isEEUiApp}}):e("FileContent",{attrs:{file:t.fileInfo},model:{value:t.fileShow,callback:function(r){t.fileShow=r},expression:"fileShow"}})]:t._e()],2)},p=[];const a={components:{FilePreview:l,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowPortrait||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.fileInfo?`${this.fileInfo.name} [${this.fileInfo.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:t}=this.$route.params,i={id:t};if(/^\d+$/.test(t))this.code=null;else if(t)this.code=t;else return;setTimeout(e=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:i}).then(({data:e})=>{this.fileInfo=e}).catch(({msg:e})=>{$A.modalError({content:e,onOk:()=>{window.close()}})}).finally(e=>{this.loadIng--})}}},o={};var f=s(a,m,p,!1,u,"e0fab8f8",null,null);function u(t){for(let i in o)this[i]=o[i]}var Y=function(){return f.exports}();export{Y as default}; +import n from"./FileContent.fefeb44a.js";import l from"./FilePreview.6f0543c4.js";import{n as s}from"./app.57070a0d.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./IFrame.c1a86434.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file"},[e("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?e("Loading"):t.fileInfo?[t.isPreview?e("FilePreview",{attrs:{code:t.code,file:t.fileInfo,historyId:t.historyId,headerShow:!t.$isEEUiApp}}):e("FileContent",{attrs:{file:t.fileInfo},model:{value:t.fileShow,callback:function(r){t.fileShow=r},expression:"fileShow"}})]:t._e()],2)},p=[];const a={components:{FilePreview:l,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowPortrait||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.fileInfo?`${this.fileInfo.name} [${this.fileInfo.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:t}=this.$route.params,i={id:t};if(/^\d+$/.test(t))this.code=null;else if(t)this.code=t;else return;setTimeout(e=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:i}).then(({data:e})=>{this.fileInfo=e}).catch(({msg:e})=>{$A.modalError({content:e,onOk:()=>{window.close()}})}).finally(e=>{this.loadIng--})}}},o={};var f=s(a,m,p,!1,u,"e0fab8f8",null,null);function u(t){for(let i in o)this[i]=o[i]}var Y=function(){return f.exports}();export{Y as default}; diff --git a/public/js/build/file.04024a5d.js b/public/js/build/file.f8d9732d.js similarity index 92% rename from public/js/build/file.04024a5d.js rename to public/js/build/file.f8d9732d.js index ea642f5eb..6c3fc97f1 100644 --- a/public/js/build/file.04024a5d.js +++ b/public/js/build/file.f8d9732d.js @@ -1 +1 @@ -import{_ as u}from"./openpgp_hi.15f91b1d.js";import{m as f}from"./vuex.cc7cb26e.js";import{l as m}from"./lodash.90965718.js";import{D as g}from"./index.04b74879.js";import{U as v,P as $,n as _}from"./app.f8a6fa5e.js";import{l as k}from"./longpress.5305f240.js";import{U as w}from"./tip.059db614.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var I=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"page-file"},[t("PageTitle",{attrs:{title:e.$L("\u6587\u4EF6")}}),t("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[t("div",{staticClass:"file-head"},[t("div",{staticClass:"file-nav"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(s){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.$L("\u6587\u4EF6")))]),e.loadIng==0?t("div",{staticClass:"file-refresh",on:{click:e.getFileList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6AE")])]):e._e()]),e.uploadList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.uploadShow=!0,e.packShow=!1}}},[e.uploadList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-up"}})],1):e._e(),e.packList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.packShow=!0,e.uploadShow=!1}}},[e.packList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-down"}})],1):e._e(),t("div",{class:["file-search",e.searchKey?"has-value":""],on:{click:e.onSearchFocus,mouseenter:e.onSearchFocus}},[t("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:e.$L("\u641C\u7D22\u540D\u79F0")},on:{"on-change":e.onSearchChange},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}})],1),t("div",{staticClass:"file-add"},[t("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(s){return s.stopPropagation(),e.handleRightClick(s,null,!0)}}})],1)]),t("div",{staticClass:"file-navigator"},[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText||!e.selectIds.length&&!e.shearFirst,expression:"showBtnText || (!selectIds.length && !shearFirst)"}],staticClass:"scrollbar-hidden"},[t("li",{on:{click:function(s){return e.browseFolder(0)}}},[t("span",[e._v(e._s(e.$L("\u5168\u90E8\u6587\u4EF6")))])]),e.searchKey?t("li",[e._v(e._s(e.$L("\u641C\u7D22"))+' "'+e._s(e.searchKey)+'"')]):e._l(e.navigator,function(s){return t("li",{ref:`nav_${s.id}`,refInFor:!0,on:{click:function(a){return e.browseFolder(s.id)}}},[s.share?t("i",{staticClass:"taskfont"},[e._v("\uE63F")]):e._e(),t("span",{attrs:{title:s.name}},[e._v(e._s(s.name))]),s.share&&s.permission==0?t("span",{staticClass:"readonly"},[e._v(e._s(e.$L("\u53EA\u8BFB")))]):e._e()])})],2),e.shearFirst?[t("Button",{style:{marginLeft:e.showBtnText?"12px":0},attrs:{disabled:e.shearFirst.pid==e.pid,size:"small",type:"primary"},on:{click:e.shearTo}},[t("div",{staticClass:"file-shear"},[t("span",[e._v(e._s(e.$L("\u7C98\u8D34")))]),[e._v('"'),t("em",[e._v(e._s(e.shearFirst.name))]),e._v('"')],e.shearIds.length>1?t("span",[e._v(e._s(e.$L(`\u7B49${e.shearIds.length}\u4E2A\u6587\u4EF6`)))]):e._e()],2)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearShear}},[e._v(e._s(e.$L("\u53D6\u6D88\u526A\u5207")))])]:e.selectIds.length>0?[t("Button",{style:{marginLeft:e.showBtnText?"12px":0},attrs:{size:"small",type:"info"},on:{click:function(s){return e.handleContextClick("shearSelect")}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-cut"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u526A\u5207")))])],1)]),t("Button",{attrs:{disabled:e.compressedSownloadDisabled,size:"small",type:"info"},on:{click:function(s){return e.downloadZipFile(e.selectIds)}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-download"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))])],1)]),t("Button",{attrs:{size:"small",type:"error"},on:{click:function(s){return e.deleteFile(e.selectIds)}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-trash"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u5220\u9664")))])],1)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearSelect}},[e._v(" "+e._s(e.showBtnText?e.$L("\u53D6\u6D88\u9009\u62E9"):e.$L("\u53D6\u6D88"))+" ")])]:e._e(),e.loadIng>0?t("div",{staticClass:"nav-load"},[t("Loading")],1):e._e(),t("div",{staticClass:"flex-full"}),e.hasShareFile?t("div",{staticClass:"only-checkbox"},[t("Checkbox",{model:{value:e.hideShared,callback:function(s){e.hideShared=s},expression:"hideShared"}},[e._v(" "+e._s(e.showBtnText?e.$L("\u4EC5\u663E\u793A\u6211\u7684"):e.$L("\u4EC5\u6211\u7684"))+" ")])],1):e._e(),t("div",{class:["switch-button",e.tableMode]},[t("div",{on:{click:function(s){e.tableMode="block"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),t("div",{on:{click:function(s){e.tableMode="table"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE66A")])])])],2),t("div",{staticClass:"file-drag",on:{drop:function(s){return s.preventDefault(),e.filePasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),e.fileDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),e.fileDragOver(!1,s)}}},[e.tableMode==="table"?t("div",{staticClass:"file-table",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("Table",{attrs:{columns:e.columns,data:e.fileList,height:e.tableHeight,"no-data-text":e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":e.clickRow,"on-contextmenu":e.handleContextMenu,"on-select":e.handleTableSelect,"on-select-cancel":e.handleTableSelect,"on-select-all-cancel":e.handleTableSelect,"on-select-all":e.handleTableSelect,"on-sort-change":e.handleTableSort}})],1):[e.fileList.length==0&&e.loadIng==0?t("div",{staticClass:"file-no",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60B")]),t("p",[e._v(e._s(e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):t("div",{staticClass:"file-list",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("ul",e._l(e.fileList,function(s){return t("li",[t("div",{directives:[{name:"longpress",rawName:"v-longpress",value:e.handleLongpress,expression:"handleLongpress"}],staticClass:"file-item",class:{shear:e.shearIds.includes(s.id),highlight:e.selectIds.includes(s.id),operate:e.contextMenuVisible&&s.id===e.contextMenuItem.id},attrs:{"data-id":s.id},on:{click:function(a){return e.dropFile(s,"openCheckMenu")}}},[t("div",{staticClass:"file-check",class:{"file-checked":e.selectIds.includes(s.id)},on:{click:function(a){return a.stopPropagation(),e.dropFile(s,"select")}}},[t("Checkbox",{attrs:{value:e.selectIds.includes(s.id)}})],1),t("div",{staticClass:"file-menu",on:{click:function(a){return a.stopPropagation(),e.handleRightClick(a,s)}}},[t("Icon",{attrs:{type:"ios-more"}})],1),t("div",{class:`no-dark-before file-icon ${s.type}${s.share?" share":""}`},[s.share?[s.userid!=e.userId?t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.userid,size:20}},[t("p",[e._v(e._s(e.$L("\u5171\u4EAB\u6743\u9650"))+": "+e._s(e.$L(s.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):t("div",{staticClass:"share-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE757")])])]:e.isParentShare?[t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.created_id,size:20}},[s.created_id!=s.userid?t("p",[t("strong",[e._v(e._s(e.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])]):t("p",[e._v(e._s(e.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])])]:e._e()],2),s._edit?t("div",{staticClass:"file-input"},[t("Input",{ref:"input_"+s.id,refInFor:!0,attrs:{size:"small",disabled:!!s._load,parser:e.onParser},on:{"on-blur":function(a){return e.onBlur(s)},"on-keyup":function(a){return e.onKeyup(a,s)}},model:{value:s.newname,callback:function(a){e.$set(s,"newname",a)},expression:"item.newname"}}),s._load?t("div",{staticClass:"file-load"},[t("Loading")],1):e._e()],1):t("div",{staticClass:"file-name",attrs:{title:s.name}},[e._v(e._s(e.$A.getFileName(s)))])])])}),0)])],e.dialogDrag?t("div",{staticClass:"drag-over",on:{click:function(s){e.dialogDrag=!1}}},[t("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e()],2),t("div",{staticClass:"file-menu",style:e.contextMenuStyles},[t("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":e.handleContextClick,"on-clickoutside":e.handleClickContextMenuOutside,"on-visible-change":e.handleVisibleChangeMenu}},[t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e.contextMenuItem.id?[t("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[e._v(" "+e._s(e.$L("\u6253\u5F00"))+" "),t("div",{staticClass:"open-name"},[e._v("\u201C"+e._s(e.contextMenuItem.name)+"\u201D")])]),e.searchKey?t("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[e._v(" "+e._s(e.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):e._e(),t("DropdownItem",{attrs:{name:"select"}},[e._v(e._s(e.$L(e.selectIds.includes(e.contextMenuItem.id)?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),t("Dropdown",{attrs:{placement:"right-start",transfer:""}},[t("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(s){s.stopPropagation()}}},[t("div",{staticClass:"arrow-forward-item"},[e._v(e._s(e.$L("\u65B0\u5EFA"))),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()}),1)],1),t("DropdownItem",{attrs:{name:"rename",divided:""}},[e._v(e._s(e.$L("\u91CD\u547D\u540D")))]),t("DropdownItem",{attrs:{name:"copy",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u590D\u5236")))]),t("DropdownItem",{attrs:{name:"shear",disabled:e.contextMenuItem.userid!=e.userId}},[e._v(e._s(e.$L("\u526A\u5207")))]),e.contextMenuItem.userid==e.userId?t("DropdownItem",{attrs:{name:"share",divided:""}},[e._v(e._s(e.$L("\u5171\u4EAB")))]):e.contextMenuItem.share?t("DropdownItem",{attrs:{name:"outshare",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u5171\u4EAB")))]):e._e(),t("DropdownItem",{attrs:{name:"send",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u53D1\u9001")))]),t("DropdownItem",{attrs:{name:"link",divided:e.contextMenuItem.userid!=e.userId&&!e.contextMenuItem.share,disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u94FE\u63A5")))]),t("DropdownItem",{attrs:{name:"download",disabled:e.contextMenuItem.ext==""||e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u4E0B\u8F7D")))]),t("DropdownItem",{attrs:{name:"downloadzip",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))]),t("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[e._v(e._s(e.$L("\u5220\u9664")))])]:e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()})],2)],1)],1)]),e.uploadShow&&e.uploadList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+e._s(e.uploadList.length)+") "),e.uploadList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.uploadClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.uploadList,function(s,a){return a<100?t("li",{key:a,on:{click:function(r){return e.uploadClick(s)}}},[t("AutoTip",{staticClass:"file-name"},[t("span",{domProps:{innerHTML:e._s(e.uploadName(s))}})]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.uploadPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return e.uploadList.splice(a,1)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.uploadShow=!1}}})],1)]):e._e(),e.packShow&&e.packList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[t("span",[e._v(e._s(e.$L("\u6253\u5305\u5217\u8868"))+"("+e._s(e.packList.length)+")")]),e.packList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.packClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.packList,function(s,a){return a<100?t("li",{key:a},[t("AutoTip",{staticClass:"file-name"},[s.status!=="finished"?t("span",[e._v(e._s(s.name))]):t("a",{attrs:{href:s.url,target:"_blank"}},[e._v(e._s(s.name))])]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.packPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return e.packList.splice(a,1)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.packShow=!1}}})],1)]):e._e(),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!1,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!0,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Modal",{attrs:{title:e.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:e.shareShow,callback:function(s){e.shareShow=s},expression:"shareShow"}},[t("Form",{staticClass:"page-file-share-form",attrs:{model:e.shareInfo,inline:""},nativeOn:{submit:function(s){s.preventDefault()}}},[t("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[t("RadioGroup",{model:{value:e.shareInfo.type,callback:function(s){e.$set(e.shareInfo,"type",s)},expression:"shareInfo.type"}},[t("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))]),t("Radio",{attrs:{label:"custom"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))])],1),e.shareInfo.type==="custom"?t("UserSelect",{attrs:{disabledChoice:e.shareAlready,"multiple-max":100,placeholder:e.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458"),"avatar-size":24,border:""},model:{value:e.shareInfo.userids,callback:function(s){e.$set(e.shareInfo,"userids",s)},expression:"shareInfo.userids"}}):e._e()],1),t("FormItem",[t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},model:{value:e.shareInfo.permission,callback:function(s){e.$set(e.shareInfo,"permission",s)},expression:"shareInfo.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))])],1)],1),t("FormItem",[t("Button",{attrs:{type:"primary",loading:e.shareLoad>0},on:{click:e.onShare}},[e._v(e._s(e.$L("\u5171\u4EAB")))])],1)],1),e.shareList.length>0?t("div",{staticClass:"page-file-share-items"},[t("div",{staticClass:"page-file-share-title"},[e._v(e._s(e.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),t("ul",{staticClass:"page-file-share-list"},e._l(e.shareList,function(s){return t("li",[s.userid==0?t("div",{staticClass:"all-avatar"},[t("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),t("span",{staticClass:"avatar-name"},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))])],1):t("UserAvatar",{attrs:{size:32,userid:s.userid,showName:""}}),t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},on:{"on-change":function(a){return e.upShare(s)}},model:{value:s.permission,callback:function(a){e.$set(s,"permission",a)},expression:"item.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("Option",{staticClass:"delete",attrs:{value:-1}},[e._v(e._s(e.$L("\u5220\u9664")))])],1)],1)}),0)]):e._e()],1),t("UserSelect",{ref:"sendFile",attrs:{"multiple-max":50,title:e.$L("\u53D1\u9001\u6587\u4EF6"),"before-submit":e.onSendFile,"show-select-all":!1,"show-dialog":"",module:""},model:{value:e.sendData,callback:function(s){e.sendData=s},expression:"sendData"}}),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(s){e.linkShow=s},expression:"linkShow"}},[t("div",[t("div",{staticStyle:{margin:"-10px 0 8px"}},[e._v(e._s(e.$L("\u6587\u4EF6\u540D\u79F0"))+": "+e._s(e.linkData.name))]),t("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(s){e.$set(e.linkData,"url",s)},expression:"linkData.url"}}),t("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[e._v(" "+e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))+" "),t("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(s){return e.linkGet(!0)}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("p",[t("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(s){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),t("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:e.fileBeforeClose,"mask-closable":!1},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}},[e.isPreview?t("FilePreview",{attrs:{file:e.fileInfo}}):t("FileContent",{ref:"fileContent",attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}})],1),t("PreviewImage",{attrs:{index:e.imageIndex,list:e.imageList},model:{value:e.imageShow,callback:function(s){e.imageShow=s},expression:"imageShow"}}),t("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(s){e.pasteShow=s},expression:"pasteShow"}},[t("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(s){return t("li",[s.type=="image"?t("img",{attrs:{src:s.result}}):t("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(s.name)+" ("+e._s(e.$A.bytesToSize(s.size))+")")])])}),0)])],1)},L=[];const x=()=>u(()=>import("./FilePreview.cf87ec8f.js"),["js/build/FilePreview.cf87ec8f.js","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),C=()=>u(()=>import("./FileContent.c3694775.js"),["js/build/FileContent.c3694775.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/IFrame.3b0629c7.js"]),o={sort:null,mode:null,shared:null},b={components:{UserAvatarTip:w,UserSelect:v,PreviewImage:$,FilePreview:x,DrawerOverlay:g,FileContent:C},directives:{longpress:k},data(){return{packList:[],packShow:!1,loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",hideShared:!1,columns:[],shareShow:!1,shareInfo:{id:0,type:"all",userid:0,permission:1},shareList:[],shareLoad:0,sendFileId:0,sendData:[],linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",uploadCover:!1,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},async beforeRouteEnter(e,i,t){o.sort=await $A.IDBJson("cacheFileSort"),o.mode=await $A.IDBString("fileTableMode"),o.shared=await $A.IDBBoolean("fileHideShared"),t()},created(){this.tableMode=o.mode,this.hideShared=o.shared,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(e,{row:i})=>{let t=[];if(!/^\d+$/.test(i.id))return t.push(e("Input",{props:{elementId:"input_"+i.id,value:i.newname,autofocus:!0,disabled:!!i._load,parser:this.onParser},style:{width:"auto"},on:{"on-change":a=>{i.newname=a.target.value},"on-blur":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onBlur(a))},"on-enter":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onEnter(a))}}})),e("div",{class:"file-nbox"},[e("div",{class:`no-dark-before file-name file-icon ${i.type}`},t)]);{t.push(e("QuickEdit",{props:{value:i.name,autoEdit:!!i._edit,clickOutSide:!1,parser:this.onParser},on:{"on-edit-change":n=>{const d=this.fileLists.find(({id:h})=>h==i.id);d&&setTimeout(()=>{this.setEdit(d.id,n)},100)},"on-update":(n,d)=>{const h=this.fileLists.find(({id:p})=>p==i.id);h&&h._edit===!0&&(h.newname=n,this.onEnter(h)),d()}}},[e("AutoTip",{props:{placement:"top"}},$A.getFileName(i))]));const a=[];i.share?i.userid!=this.userId?a.push(e("UserAvatar",{props:{userid:i.userid,size:20}})):a.push(e("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&a.push(e("UserAvatar",{props:{userid:i.created_id,size:20}},[i.created_id!=i.userid?e("p",[e("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+i.created_at)]):e("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+i.created_at)]));const r=this.shearIds.includes(i.id)?" shear":"",l=i.share?" share":"";return e("div",{class:`file-nbox${r}`,attrs:{"data-id":i.id}},[e("div",{class:`no-dark-before file-name file-icon ${i.type}${l}`},t),a])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>i.type=="folder"?e("div","-"):e("AutoTip",$A.bytesToSize(i.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>{let t=this.types.find(({value:s,name:a})=>s==i.type&&a);return t?e("AutoTip",this.$L(t.name)):e("div",(i.ext||i.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(e,{row:i})=>e("UserAvatar",{props:{size:18,userid:i.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(e=>(e.key===o.sort.key&&(e.sortType=o.sort.order),e))},mounted(){this.uploadAccept=this.uploadFormat.map(e=>"."+e).join(",")},activated(){this.getFileList()},computed:{...f(["systemConfig","userIsAdmin","userInfo","fileLists","wsOpenNum","windowWidth","filePackLists"]),pid(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},fid(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid+"&cover="+(this.uploadCover?1:0))},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let e=this.shareList?this.shareList.map(({userid:i})=>i):[];return this.shareInfo.userid&&e.push(this.shareInfo.userid),e},fileList(){const{fileLists:e,searchKey:i,hideShared:t,pid:s,selectIds:a,userId:r}=this;return $A.cloneJSON(m.exports.sortBy(e.filter(n=>t&&n.userid!=r&&n.created_id!=r?!1:i?n.name.indexOf(i)!==-1:n.pid==s),n=>(n.type=="folder"?"a":"b")+n.name)).map(n=>(n._checked=a.includes(n.id),n))},hasShareFile(){const{fileLists:e,userId:i}=this;return e.findIndex(t=>t.share&&t.userid!=i)!==-1},shearFirst(){const{fileLists:e,shearIds:i}=this;return i.length===0?null:e.find(t=>t.id==i[0])},navigator(){let{pid:e,fileLists:i}=this,t=[];for(;e>0;){let s=i.find(({id:a,permission:r})=>a==e&&r>-1);s?(t.unshift(s),e=s.pid):e=0}return t},isPreview(){return this.windowPortrait&&this.fileInfo.type!="document"||this.fileInfo.permission===0},isParentShare(){const{navigator:e}=this;return!!e.find(({share:i})=>i)},pasteTitle(){const{pasteItem:e}=this;let i=e.find(({type:s})=>s=="image"),t=e.find(({type:s})=>s!="image");return i&&t?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":i?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},tableHeight(){return this.windowHeight-150},compressedSownloadDisabled(){var e;return!!((e=this.fileList)!=null&&e.find(i=>i._checked&&i.permission<1))},maxSize(){var e;return(e=this.systemConfig)!=null&&e.file_upload_limit?this.systemConfig.file_upload_limit*1024:1024e3},showBtnText(){return this.windowWidth>600}},watch:{pid(){this.searchKey="",this.selectIds=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(e){$A.IDBSave("fileTableMode",e)},hideShared(e){$A.IDBSave("fileHideShared",e)},fileShow(e){e||(this.browseFile(0),this.windowPortrait&&$A.onBlur(!0))},imageShow(e){e||this.browseFile(0)},navigator:{handler(){this.$nextTick(e=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectIds:{handler(e){e.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(e){e.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum(e){e<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-file"&&this.getFileList()},5e3))},filePackLists:{handler(){this.updatePackProgress()},deep:!0}},methods:{getFileList(){this.$route.name==="manage-file"&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(async()=>{this.loadIng--,this.openFileJudge(),this.shakeFile(this.$route.params.shakeId),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:e})=>{this.loadIng--,$A.modalError({content:e,onOk:()=>{this.browseFolder(0)}})}))},addFile(e){if(e){if(e=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(e=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let i=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:i,type:e,name:"",userid:this.userId,newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(i)},handleLongpress(e,i){const t=$A.getAttr(i,"data-id"),s=this.fileList.find(a=>a.id==t);!s||this.handleRightClick(e,s)},handleContextmenu(e){this.windowLandscape&&this.handleRightClick(e)},handleRightClick(e,i,t){this.contextMenuItem=$A.isJson(i)?i:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const a=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${e.clientX-a.left}px`,top:`${e.clientY-a.top}px`},t===!0&&(this.contextMenuStyles.top=`${e.target.clientHeight+e.target.offsetTop-5}px`),this.contextMenuVisible=!0})},browseFolder(e,i=null){if(e>0){if(this.pid==e&&this.fid==0&&i){this.shakeFile(i);return}this.goForward({name:"manage-file",params:{folderId:e,fileId:null,shakeId:i}})}else this.searchKey="",this.goForward({name:"manage-file"})},browseFile(e){e>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:e}}):this.browseFolder(this.pid)},openFileJudge(){if(this.$route.name!=="manage-file"){this.fileShow=!1,this.imageShow=!1;return}if(this.fid<=0){this.fileShow=!1,this.imageShow=!1;return}const e=this.fileList.find(({id:i})=>i===this.fid);if(!e){this.fileShow=!1,this.imageShow=!1;return}if(e.image_url){const i=this.fileList.filter(({image_url:t})=>!!t);if(i.length>0){this.imageIndex=i.findIndex(({id:t})=>e.id===t),this.imageList=i.map(t=>t.image_width?{src:t.image_url,width:t.image_width,height:t.image_height}:t.image_url),this.imageShow=!0;return}}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(e);return}this.fileInfo=e,this.fileShow=!0},openFileSingle(e){const i=`/single/file/${e.id}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-${e.id}`,path:i,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(e),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:e.type==="drawio"}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:$A.getFileName(e),url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${i}`}}):window.open($A.mainUrl(i.substring(1))),this.browseFile(0)},clickRow(e,i){if(this.contextMenuVisible){this.handleClickContextMenuOutside();return}i.type=="selection"?this.dropFile(e,"select"):this.dropFile(e,"open")},handleContextMenu(e,i){this.handleRightClick(i,this.fileLists.find(({id:t})=>t===e.id)||{})},handleContextClick(e){$A.leftExists(e,"new:")?this.addFile($A.leftDelete(e,"new:")):this.dropFile(this.contextMenuItem,e)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(e){let i=this.fileLists.find(({_highlight:t})=>!!t);i&&this.$set(i,"_highlight",!1),e&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(e,i){switch(i){case"open":case"openCheckMenu":if(i==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(s=>s._edit===!0)>-1||e._load)return;e.type=="folder"?this.browseFolder(e.id):this.browseFile(e.id);break;case"upperFolder":this.searchKey="",this.browseFolder(e.pid,e.id);break;case"select":let t=this.selectIds.findIndex(s=>s==e.id);t>-1?this.selectIds.splice(t,1):this.selectIds.push(e.id);break;case"rename":this.setEdit(e.id,!0),this.autoBlur(e.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:e.id}}).then(({data:s,msg:a})=>{$A.messageSuccess(a),this.$store.dispatch("saveFile",s)}).catch(({msg:s})=>{$A.modalError(s)});break;case"shear":this.shearIds=[e.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendFileId=e.id,this.sendData=[],this.$refs.sendFile.onSelection();break;case"share":this.shareInfo={id:e.id,type:"all",userid:e.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+e.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:e.id}}).then(({msg:r})=>{s(r),this.$store.dispatch("forgetFile",e.id)}).catch(({msg:r})=>{a(r)})})});break;case"link":this.linkData={id:e.id,name:e.name},this.linkShow=!0,this.linkGet();break;case"download":if(!e.ext)return;$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${e.name}.${e.ext} (${$A.bytesToSize(e.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${e.id}&down=yes`))}});break;case"downloadzip":this.downloadZipFile([e.id]);break;case"delete":this.deleteFile([e.id]);break}},onSendFile(){return new Promise((e,i)=>{if(this.sendData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),i();return}const t=this.sendData.filter(a=>$A.leftExists(a,"d:")).map(a=>a.replace("d:","")),s=this.sendData.filter(a=>!$A.leftExists(a,"d:"));this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:{dialogids:t,userids:s,file_id:this.sendFileId}}).then(({data:a,msg:r})=>{this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(r),e()}).catch(({msg:a})=>{$A.modalError(a),i()})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:i})=>{this.linkData=Object.assign(i,{id:this.linkData.id,name:this.linkData.name}),this.linkCopy()}).catch(({msg:i})=>{this.linkShow=!1,$A.modalError(i)}).finally(i=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.copyText(this.linkData.url))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const e=this.fileLists.find(({id:i,share:t})=>t&&this.shearIds.includes(i));if(e){$A.modalError(`${e.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:e,msg:i})=>{$A.messageSuccess(i),this.shearIds=[],this.$store.dispatch("saveFile",e)}).catch(({msg:e})=>{$A.modalError(e)})}},deleteFile(e){if(e.length===0)return;const i=this.fileLists.find(r=>r.id==e[0])||{};let s=!e.find(r=>this.fileLists.find(l=>l.type!="folder"&&l.id==r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;e.length===1&&(a=`\u3010${i.name}\u3011${s}`),$A.modalConfirm({title:"\u5220\u9664"+s,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+a+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((r,l)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:e}}).then(({msg:n})=>{r(n),this.$store.dispatch("forgetFile",e),this.selectIds=this.selectIds.filter(d=>!e.includes(d))}).catch(({msg:n})=>{l(n)})})})},packPercentageParse(e){return parseInt(e,10)},packClear(){this.packList=this.packList.filter(e=>e.status!=="finished"),this.packShow=!1},async startPack(e){this.packList.push(Object.assign(e,{status:"packing",percentage:0})),this.uploadShow=!1,this.packShow=!0},updatePackProgress(){this.packList.forEach(e=>{const i=this.filePackLists.find(({name:t})=>t==e.name);if(i){if(typeof e.percentage=="number"&&e.percentage>=100)return;e.percentage=Math.max(1,i.progress),e.percentage>=100&&(e.status="finished")}})},downloadZipFile(e){if(e.length===0)return;const i=this.fileLists.find(({id:r})=>r===e[0])||{},s=!e.some(r=>this.fileLists.some(({type:l,id:n})=>l!=="folder"&&n===r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=e.length===1?`\u3010${i.name}\u3011${s}`:`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;$A.modalConfirm({title:"\u6253\u5305\u4E0B\u8F7D",content:`\u4F60\u786E\u5B9A\u8981\u6253\u5305\u4E0B\u8F7D${a}\u5417\uFF1F`,okText:"\u786E\u5B9A",onOk:()=>{if(this.packList.find(({status:l})=>l==="packing")){$A.messageWarning("\u8BF7\u7B49\u5F85\u6253\u5305\u5B8C\u6210");return}const r=this.$L(`\u6253\u5305\u4E0B\u8F7D${a}`);this.$store.dispatch("call",{url:"file/download/pack",data:{ids:e,name:r}}).then(({data:l})=>{this.startPack(l)}).catch(({msg:l})=>{$A.modalError(l)})}})},autoBlur(e){this.$nextTick(()=>{if(this.$refs["input_"+e])this.$refs["input_"+e][0].focus({cursor:"all"});else if(document.getElementById("input_"+e)){const i=document.getElementById("input_"+e),t=i.value.length;i.focus(),i.setSelectionRange(0,t)}})},onParser(e){return e.replace(/[\\\/:*?\"<>|]/g,"")},onBlur(e){this.fileLists.find(({id:i,_edit:t})=>i==e.id&&!t)||this.onEnter(e)},onKeyup(e,i){e.keyCode===13?this.onEnter(i):e.keyCode===27&&(!/^\d+$/.test(i.id)?(i.newname="",this.$store.dispatch("forgetFile",i.id)):(this.setLoad(i.id,!1),this.setEdit(i.id,!1)))},onEnter(e){const i=!/^\d+$/.test(e.id);if(!e.newname){i?this.$store.dispatch("forgetFile",e.id):this.setEdit(e.id,!1);return}if(e.newname==e.name){this.setEdit(e.id,!1);return}e._load||(this.setLoad(e.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:i?0:e.id,pid:e.pid,name:e.newname,type:e.type},spinner:2e3}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.setLoad(e.id,!1),this.setEdit(e.id,!1),this.$store.dispatch("saveFile",t),i&&(this.$store.dispatch("forgetFile",e.id),this.shakeFile(t.id))}).catch(({msg:t})=>{$A.modalError(t),this.setLoad(e.id,!1),i&&this.$store.dispatch("forgetFile",e.id)}))},setEdit(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&(this.$set(t,"_edit",i),i&&this.$set(t,"newname",t.name))},setLoad(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&this.$set(t,"_load",i)},onSearchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:e})=>{e.id==this.shareInfo.id&&(this.shareList=e.list.map(i=>(i._permission=i.permission,i)))}).catch(({msg:e})=>{this.shareShow=!1,$A.modalError(e)}).finally(e=>{this.shareLoad--})},onShare(e=!1){if(this.shareInfo.type==="all"&&(this.shareInfo.userids=[0]),this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:e===!0?1:0})}).then(({data:i,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveFile",i),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:i,msg:t})=>{i===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(t)}).finally(i=>{this.shareLoad--})},upShare(e,i=!1){e.loading!==!0&&(e.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[e.userid],permission:e.permission,force:i===!0?1:0}}).then(({data:t,msg:s})=>{if(e.loading=!1,e._permission=e.permission,$A.messageSuccess(s),this.$store.dispatch("saveFile",t),e.permission===-1){let a=this.shareList.findIndex(({userid:r})=>r==e.userid);a>-1&&this.shareList.splice(a,1)}}).catch(({ret:t,msg:s})=>{e.loading=!1,t===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(e,!0)},onCancel:()=>{e.permission=e._permission}}):(e.permission=e._permission,$A.modalError(s))}))},uploadData(e){const i=$A.getObject(e,"response.data");if($A.isArray(i))return i[0];if($A.isJson(i))return i},uploadName(e){const i=this.uploadData(e);if(!i)return e.name;const t=i.full_name||e.name;return i.overwrite?`[${this.$L("\u66FF\u6362")}] ${t}`:t},uploadClick(e){const i=this.uploadData(e);!i||this.browseFolder(i.pid,i.id)},handleTableSort({key:e,order:i}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(i)?{key:e,order:i}:{})},handleTableSelect(e){this.selectIds=e.map(i=>i.id)},clearSelect(){this.selectIds=[]},clearShear(){this.shearIds=[]},shakeFile(e){!e||this.$nextTick(i=>{const t=$A(this.$el).find(`[data-id="${e}"]`);t.length>0&&($A.scrollIntoViewIfNeeded(t[0]),$A(t[0]).addClass("common-shake"),setTimeout(s=>$A(t[0]).removeClass("common-shake"),800))})},pasteDragNext(e,i){let t=i==="drag"?e.dataTransfer.files:e.clipboardData.files;t=Array.prototype.slice.call(t),t.length>0&&(e.preventDefault(),this.pasteFile=[],this.pasteItem=[],t.some(s=>{const a={type:$A.getMiddle(s.type,null,"/"),name:s.name,size:s.size,result:null};if(a.type==="image"){const r=new FileReader;r.readAsDataURL(s),r.onload=({target:l})=>{a.result=l.result,this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}}else this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}))},filePasteDrag(e,i){if(this.dialogDrag=!1,$A.dataHasFolder(i==="drag"?e.dataTransfer:e.clipboardData)){e.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${i==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\uFF0C\u8BF7\u624B\u52A8\u4E0A\u4F20\u6587\u4EF6\u5939\u3002`);return}this.pasteDragNext(e,i)},fileDragOver(e,i){let t=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{t===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(i.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){if(this.__paste_send_index)return;this.__paste_send_index=1,setTimeout(()=>{this.__paste_send_index=0},300);const e=[];this.pasteFile.some(i=>{e.find(t=>t===i.name)||(e.push(i.name),this.$refs.fileUpload.upload(i))})},fileBeforeClose(){return new Promise(e=>{if(!this.$refs.fileContent){e();return}if(this.$refs.fileContent.equalContent){e();return}$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{e()}})})},uploadUpdate(e){e.forEach(i=>{let t=this.uploadList.findIndex(({uid:s})=>s==i.uid);t>-1?this.uploadList.splice(t,1,i):this.uploadList.unshift(i)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:e})=>e!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse(e){return parseInt(e,10)},handleProgress(e,i,t){i._uploadIng===void 0&&(i._uploadIng=!0,this.uploadIng++),this.uploadUpdate(t)},handleSuccess(e,i,t){this.uploadIng--,this.uploadUpdate(t),e.ret===1?this.$store.dispatch("saveFile",e.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+e.msg})},handleError(e,i,t){this.uploadIng--,this.uploadUpdate(t)},handleFormatError(e){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+e.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(e){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+e.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(e){return this.uploadCover=!1,this.uploadDir?(this.handleUploadNext(),!0):new Promise(i=>{this.fileList.findIndex(t=>$A.getFileName(t)===e.name)>-1?$A.modalConfirm({wait:!0,title:"\u6587\u4EF6\u5DF2\u5B58\u5728",content:"\u6587\u4EF6 "+e.name+" \u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u66FF\u6362\uFF1F",cancelText:"\u4FDD\u7559\u4E24\u8005",okText:"\u66FF\u6362",closable:!0,onOk:()=>{this.uploadCover=!0,this.handleUploadNext(),i()},onCancel:t=>{t&&(this.handleUploadNext(),i())}}):(this.handleUploadNext(),i())})},handleUploadNext(){this.uploadShow=!0,this.packShow=!1}}},c={};var S=_(b,I,L,!1,y,null,null,null);function y(e){for(let i in c)this[i]=c[i]}var me=function(){return S.exports}();export{me as default}; +import{_ as u}from"./openpgp_hi.15f91b1d.js";import{m as f}from"./vuex.cc7cb26e.js";import{l as m}from"./lodash.9e3f755f.js";import{D as g}from"./index.92bfd6b8.js";import{U as v,P as $,n as _}from"./app.57070a0d.js";import{l as k}from"./longpress.5305f240.js";import{U as w}from"./tip.e9c85d1f.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var I=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"page-file"},[t("PageTitle",{attrs:{title:e.$L("\u6587\u4EF6")}}),t("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[t("div",{staticClass:"file-head"},[t("div",{staticClass:"file-nav"},[t("div",{staticClass:"common-nav-back portrait",on:{click:function(s){return e.goForward({name:"manage-application"},!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE676")])]),t("h1",[e._v(e._s(e.$L("\u6587\u4EF6")))]),e.loadIng==0?t("div",{staticClass:"file-refresh",on:{click:e.getFileList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6AE")])]):e._e()]),e.uploadList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.uploadShow=!0,e.packShow=!1}}},[e.uploadList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-up"}})],1):e._e(),e.packList.length>0?t("div",{staticClass:"file-status",on:{click:function(s){e.packShow=!0,e.uploadShow=!1}}},[e.packList.find(function(s){var a=s.status;return a!=="finished"})?t("Loading"):t("Button",{attrs:{shape:"circle",icon:"md-arrow-round-down"}})],1):e._e(),t("div",{class:["file-search",e.searchKey?"has-value":""],on:{click:e.onSearchFocus,mouseenter:e.onSearchFocus}},[t("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:e.$L("\u641C\u7D22\u540D\u79F0")},on:{"on-change":e.onSearchChange},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}})],1),t("div",{staticClass:"file-add"},[t("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(s){return s.stopPropagation(),e.handleRightClick(s,null,!0)}}})],1)]),t("div",{staticClass:"file-navigator"},[t("ul",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText||!e.selectIds.length&&!e.shearFirst,expression:"showBtnText || (!selectIds.length && !shearFirst)"}],staticClass:"scrollbar-hidden"},[t("li",{on:{click:function(s){return e.browseFolder(0)}}},[t("span",[e._v(e._s(e.$L("\u5168\u90E8\u6587\u4EF6")))])]),e.searchKey?t("li",[e._v(e._s(e.$L("\u641C\u7D22"))+' "'+e._s(e.searchKey)+'"')]):e._l(e.navigator,function(s){return t("li",{ref:`nav_${s.id}`,refInFor:!0,on:{click:function(a){return e.browseFolder(s.id)}}},[s.share?t("i",{staticClass:"taskfont"},[e._v("\uE63F")]):e._e(),t("span",{attrs:{title:s.name}},[e._v(e._s(s.name))]),s.share&&s.permission==0?t("span",{staticClass:"readonly"},[e._v(e._s(e.$L("\u53EA\u8BFB")))]):e._e()])})],2),e.shearFirst?[t("Button",{style:{marginLeft:e.showBtnText?"12px":0},attrs:{disabled:e.shearFirst.pid==e.pid,size:"small",type:"primary"},on:{click:e.shearTo}},[t("div",{staticClass:"file-shear"},[t("span",[e._v(e._s(e.$L("\u7C98\u8D34")))]),[e._v('"'),t("em",[e._v(e._s(e.shearFirst.name))]),e._v('"')],e.shearIds.length>1?t("span",[e._v(e._s(e.$L(`\u7B49${e.shearIds.length}\u4E2A\u6587\u4EF6`)))]):e._e()],2)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearShear}},[e._v(e._s(e.$L("\u53D6\u6D88\u526A\u5207")))])]:e.selectIds.length>0?[t("Button",{style:{marginLeft:e.showBtnText?"12px":0},attrs:{size:"small",type:"info"},on:{click:function(s){return e.handleContextClick("shearSelect")}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-cut"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u526A\u5207")))])],1)]),t("Button",{attrs:{disabled:e.compressedSownloadDisabled,size:"small",type:"info"},on:{click:function(s){return e.downloadZipFile(e.selectIds)}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-download"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))])],1)]),t("Button",{attrs:{size:"small",type:"error"},on:{click:function(s){return e.deleteFile(e.selectIds)}}},[t("div",{staticClass:"tool-box"},[t("Icon",{attrs:{type:"ios-trash"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showBtnText,expression:"showBtnText"}]},[e._v(e._s(e.$L("\u5220\u9664")))])],1)]),t("Button",{attrs:{type:"primary",size:"small"},on:{click:e.clearSelect}},[e._v(" "+e._s(e.showBtnText?e.$L("\u53D6\u6D88\u9009\u62E9"):e.$L("\u53D6\u6D88"))+" ")])]:e._e(),e.loadIng>0?t("div",{staticClass:"nav-load"},[t("Loading")],1):e._e(),t("div",{staticClass:"flex-full"}),e.hasShareFile?t("div",{staticClass:"only-checkbox"},[t("Checkbox",{model:{value:e.hideShared,callback:function(s){e.hideShared=s},expression:"hideShared"}},[e._v(" "+e._s(e.showBtnText?e.$L("\u4EC5\u663E\u793A\u6211\u7684"):e.$L("\u4EC5\u6211\u7684"))+" ")])],1):e._e(),t("div",{class:["switch-button",e.tableMode]},[t("div",{on:{click:function(s){e.tableMode="block"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),t("div",{on:{click:function(s){e.tableMode="table"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE66A")])])])],2),t("div",{staticClass:"file-drag",on:{drop:function(s){return s.preventDefault(),e.filePasteDrag(s,"drag")},dragover:function(s){return s.preventDefault(),e.fileDragOver(!0,s)},dragleave:function(s){return s.preventDefault(),e.fileDragOver(!1,s)}}},[e.tableMode==="table"?t("div",{staticClass:"file-table",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("Table",{attrs:{columns:e.columns,data:e.fileList,height:e.tableHeight,"no-data-text":e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":e.clickRow,"on-contextmenu":e.handleContextMenu,"on-select":e.handleTableSelect,"on-select-cancel":e.handleTableSelect,"on-select-all-cancel":e.handleTableSelect,"on-select-all":e.handleTableSelect,"on-sort-change":e.handleTableSort}})],1):[e.fileList.length==0&&e.loadIng==0?t("div",{staticClass:"file-no",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE60B")]),t("p",[e._v(e._s(e.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):t("div",{staticClass:"file-list",on:{contextmenu:function(s){return s.preventDefault(),e.handleContextmenu.apply(null,arguments)}}},[t("ul",e._l(e.fileList,function(s){return t("li",[t("div",{directives:[{name:"longpress",rawName:"v-longpress",value:e.handleLongpress,expression:"handleLongpress"}],staticClass:"file-item",class:{shear:e.shearIds.includes(s.id),highlight:e.selectIds.includes(s.id),operate:e.contextMenuVisible&&s.id===e.contextMenuItem.id},attrs:{"data-id":s.id},on:{click:function(a){return e.dropFile(s,"openCheckMenu")}}},[t("div",{staticClass:"file-check",class:{"file-checked":e.selectIds.includes(s.id)},on:{click:function(a){return a.stopPropagation(),e.dropFile(s,"select")}}},[t("Checkbox",{attrs:{value:e.selectIds.includes(s.id)}})],1),t("div",{staticClass:"file-menu",on:{click:function(a){return a.stopPropagation(),e.handleRightClick(a,s)}}},[t("Icon",{attrs:{type:"ios-more"}})],1),t("div",{class:`no-dark-before file-icon ${s.type}${s.share?" share":""}`},[s.share?[s.userid!=e.userId?t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.userid,size:20}},[t("p",[e._v(e._s(e.$L("\u5171\u4EAB\u6743\u9650"))+": "+e._s(e.$L(s.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):t("div",{staticClass:"share-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE757")])])]:e.isParentShare?[t("UserAvatarTip",{staticClass:"share-avatar",attrs:{userid:s.created_id,size:20}},[s.created_id!=s.userid?t("p",[t("strong",[e._v(e._s(e.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])]):t("p",[e._v(e._s(e.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+e._s(s.created_at))])])]:e._e()],2),s._edit?t("div",{staticClass:"file-input"},[t("Input",{ref:"input_"+s.id,refInFor:!0,attrs:{size:"small",disabled:!!s._load,parser:e.onParser},on:{"on-blur":function(a){return e.onBlur(s)},"on-keyup":function(a){return e.onKeyup(a,s)}},model:{value:s.newname,callback:function(a){e.$set(s,"newname",a)},expression:"item.newname"}}),s._load?t("div",{staticClass:"file-load"},[t("Loading")],1):e._e()],1):t("div",{staticClass:"file-name",attrs:{title:s.name}},[e._v(e._s(e.$A.getFileName(s)))])])])}),0)])],e.dialogDrag?t("div",{staticClass:"drag-over",on:{click:function(s){e.dialogDrag=!1}}},[t("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e()],2),t("div",{staticClass:"file-menu",style:e.contextMenuStyles},[t("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":e.handleContextClick,"on-clickoutside":e.handleClickContextMenuOutside,"on-visible-change":e.handleVisibleChangeMenu}},[t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e.contextMenuItem.id?[t("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[e._v(" "+e._s(e.$L("\u6253\u5F00"))+" "),t("div",{staticClass:"open-name"},[e._v("\u201C"+e._s(e.contextMenuItem.name)+"\u201D")])]),e.searchKey?t("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[e._v(" "+e._s(e.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):e._e(),t("DropdownItem",{attrs:{name:"select"}},[e._v(e._s(e.$L(e.selectIds.includes(e.contextMenuItem.id)?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),t("Dropdown",{attrs:{placement:"right-start",transfer:""}},[t("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(s){s.stopPropagation()}}},[t("div",{staticClass:"arrow-forward-item"},[e._v(e._s(e.$L("\u65B0\u5EFA"))),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()}),1)],1),t("DropdownItem",{attrs:{name:"rename",divided:""}},[e._v(e._s(e.$L("\u91CD\u547D\u540D")))]),t("DropdownItem",{attrs:{name:"copy",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u590D\u5236")))]),t("DropdownItem",{attrs:{name:"shear",disabled:e.contextMenuItem.userid!=e.userId}},[e._v(e._s(e.$L("\u526A\u5207")))]),e.contextMenuItem.userid==e.userId?t("DropdownItem",{attrs:{name:"share",divided:""}},[e._v(e._s(e.$L("\u5171\u4EAB")))]):e.contextMenuItem.share?t("DropdownItem",{attrs:{name:"outshare",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u5171\u4EAB")))]):e._e(),t("DropdownItem",{attrs:{name:"send",disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u53D1\u9001")))]),t("DropdownItem",{attrs:{name:"link",divided:e.contextMenuItem.userid!=e.userId&&!e.contextMenuItem.share,disabled:e.contextMenuItem.type=="folder"}},[e._v(e._s(e.$L("\u94FE\u63A5")))]),t("DropdownItem",{attrs:{name:"download",disabled:e.contextMenuItem.ext==""||e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u4E0B\u8F7D")))]),t("DropdownItem",{attrs:{name:"downloadzip",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))]),t("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[e._v(e._s(e.$L("\u5220\u9664")))])]:e._l(e.types,function(s,a){return s.label?t("DropdownItem",{key:a,attrs:{divided:!!s.divided,name:`new:${s.value}`}},[t("div",{class:`no-dark-before file-item file-icon ${s.value}`},[e._v(e._s(e.$L(s.label)))])]):e._e()})],2)],1)],1)]),e.uploadShow&&e.uploadList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+e._s(e.uploadList.length)+") "),e.uploadList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.uploadClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.uploadList,function(s,a){return a<100?t("li",{key:a,on:{click:function(r){return e.uploadClick(s)}}},[t("AutoTip",{staticClass:"file-name"},[t("span",{domProps:{innerHTML:e._s(e.uploadName(s))}})]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.uploadPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return e.uploadList.splice(a,1)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.uploadShow=!1}}})],1)]):e._e(),e.packShow&&e.packList.length>0?t("div",{staticClass:"file-upload-list"},[t("div",{staticClass:"upload-wrap"},[t("div",{staticClass:"title"},[t("span",[e._v(e._s(e.$L("\u6253\u5305\u5217\u8868"))+"("+e._s(e.packList.length)+")")]),e.packList.find(function(s){var a=s.status;return a==="finished"})?t("em",{on:{click:e.packClear}},[e._v(e._s(e.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):e._e()]),t("ul",{staticClass:"content"},e._l(e.packList,function(s,a){return a<100?t("li",{key:a},[t("AutoTip",{staticClass:"file-name"},[s.status!=="finished"?t("span",[e._v(e._s(s.name))]):t("a",{attrs:{href:s.url,target:"_blank"}},[e._v(e._s(s.name))])]),s.status==="finished"&&s.response&&s.response.ret!==1?t("AutoTip",{staticClass:"file-error"},[e._v(e._s(s.response.msg))]):t("Progress",{attrs:{percent:e.packPercentageParse(s.percentage),"stroke-width":5}}),t("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(r){return e.packList.splice(a,1)}}})],1):e._e()}),0),t("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(s){e.packShow=!1}}})],1)]):e._e(),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!1,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:!0,webkitdirectory:!0,format:e.uploadFormat,accept:e.uploadAccept,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}}),t("Modal",{attrs:{title:e.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:e.shareShow,callback:function(s){e.shareShow=s},expression:"shareShow"}},[t("Form",{staticClass:"page-file-share-form",attrs:{model:e.shareInfo,inline:""},nativeOn:{submit:function(s){s.preventDefault()}}},[t("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[t("RadioGroup",{model:{value:e.shareInfo.type,callback:function(s){e.$set(e.shareInfo,"type",s)},expression:"shareInfo.type"}},[t("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))]),t("Radio",{attrs:{label:"custom"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))])],1),e.shareInfo.type==="custom"?t("UserSelect",{attrs:{disabledChoice:e.shareAlready,"multiple-max":100,placeholder:e.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458"),"avatar-size":24,border:""},model:{value:e.shareInfo.userids,callback:function(s){e.$set(e.shareInfo,"userids",s)},expression:"shareInfo.userids"}}):e._e()],1),t("FormItem",[t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},model:{value:e.shareInfo.permission,callback:function(s){e.$set(e.shareInfo,"permission",s)},expression:"shareInfo.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))])],1)],1),t("FormItem",[t("Button",{attrs:{type:"primary",loading:e.shareLoad>0},on:{click:e.onShare}},[e._v(e._s(e.$L("\u5171\u4EAB")))])],1)],1),e.shareList.length>0?t("div",{staticClass:"page-file-share-items"},[t("div",{staticClass:"page-file-share-title"},[e._v(e._s(e.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),t("ul",{staticClass:"page-file-share-list"},e._l(e.shareList,function(s){return t("li",[s.userid==0?t("div",{staticClass:"all-avatar"},[t("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),t("span",{staticClass:"avatar-name"},[e._v(e._s(e.$L("\u6240\u6709\u4EBA")))])],1):t("UserAvatar",{attrs:{size:32,userid:s.userid,showName:""}}),t("Select",{attrs:{placeholder:e.$L("\u6743\u9650")},on:{"on-change":function(a){return e.upShare(s)}},model:{value:s.permission,callback:function(a){e.$set(s,"permission",a)},expression:"item.permission"}},[t("Option",{attrs:{value:1}},[e._v(e._s(e.$L("\u8BFB/\u5199")))]),t("Option",{attrs:{value:0}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("Option",{staticClass:"delete",attrs:{value:-1}},[e._v(e._s(e.$L("\u5220\u9664")))])],1)],1)}),0)]):e._e()],1),t("UserSelect",{ref:"sendFile",attrs:{"multiple-max":50,title:e.$L("\u53D1\u9001\u6587\u4EF6"),"before-submit":e.onSendFile,"show-select-all":!1,"show-dialog":"",module:""},model:{value:e.sendData,callback:function(s){e.sendData=s},expression:"sendData"}}),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(s){e.linkShow=s},expression:"linkShow"}},[t("div",[t("div",{staticStyle:{margin:"-10px 0 8px"}},[e._v(e._s(e.$L("\u6587\u4EF6\u540D\u79F0"))+": "+e._s(e.linkData.name))]),t("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(s){e.$set(e.linkData,"url",s)},expression:"linkData.url"}}),t("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[e._v(" "+e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))+" "),t("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(s){return e.linkGet(!0)}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("p",[t("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(s){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)]),t("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:e.fileBeforeClose,"mask-closable":!1},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}},[e.isPreview?t("FilePreview",{attrs:{file:e.fileInfo}}):t("FileContent",{ref:"fileContent",attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(s){e.fileShow=s},expression:"fileShow"}})],1),t("PreviewImage",{attrs:{index:e.imageIndex,list:e.imageList},model:{value:e.imageShow,callback:function(s){e.imageShow=s},expression:"imageShow"}}),t("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(s){e.pasteShow=s},expression:"pasteShow"}},[t("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(s){return t("li",[s.type=="image"?t("img",{attrs:{src:s.result}}):t("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(s.name)+" ("+e._s(e.$A.bytesToSize(s.size))+")")])])}),0)])],1)},L=[];const x=()=>u(()=>import("./FilePreview.6f0543c4.js"),["js/build/FilePreview.6f0543c4.js","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),C=()=>u(()=>import("./FileContent.fefeb44a.js"),["js/build/FileContent.fefeb44a.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/IFrame.c1a86434.js"]),o={sort:null,mode:null,shared:null},b={components:{UserAvatarTip:w,UserSelect:v,PreviewImage:$,FilePreview:x,DrawerOverlay:g,FileContent:C},directives:{longpress:k},data(){return{packList:[],packShow:!1,loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",hideShared:!1,columns:[],shareShow:!1,shareInfo:{id:0,type:"all",userid:0,permission:1},shareList:[],shareLoad:0,sendFileId:0,sendData:[],linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",uploadCover:!1,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},async beforeRouteEnter(e,i,t){o.sort=await $A.IDBJson("cacheFileSort"),o.mode=await $A.IDBString("fileTableMode"),o.shared=await $A.IDBBoolean("fileHideShared"),t()},created(){this.tableMode=o.mode,this.hideShared=o.shared,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(e,{row:i})=>{let t=[];if(!/^\d+$/.test(i.id))return t.push(e("Input",{props:{elementId:"input_"+i.id,value:i.newname,autofocus:!0,disabled:!!i._load,parser:this.onParser},style:{width:"auto"},on:{"on-change":a=>{i.newname=a.target.value},"on-blur":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onBlur(a))},"on-enter":()=>{const a=this.fileLists.find(({id:r})=>r==i.id);a&&(a.newname=i.newname,this.onEnter(a))}}})),e("div",{class:"file-nbox"},[e("div",{class:`no-dark-before file-name file-icon ${i.type}`},t)]);{t.push(e("QuickEdit",{props:{value:i.name,autoEdit:!!i._edit,clickOutSide:!1,parser:this.onParser},on:{"on-edit-change":n=>{const d=this.fileLists.find(({id:h})=>h==i.id);d&&setTimeout(()=>{this.setEdit(d.id,n)},100)},"on-update":(n,d)=>{const h=this.fileLists.find(({id:p})=>p==i.id);h&&h._edit===!0&&(h.newname=n,this.onEnter(h)),d()}}},[e("AutoTip",{props:{placement:"top"}},$A.getFileName(i))]));const a=[];i.share?i.userid!=this.userId?a.push(e("UserAvatar",{props:{userid:i.userid,size:20}})):a.push(e("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&a.push(e("UserAvatar",{props:{userid:i.created_id,size:20}},[i.created_id!=i.userid?e("p",[e("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+i.created_at)]):e("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+i.created_at)]));const r=this.shearIds.includes(i.id)?" shear":"",l=i.share?" share":"";return e("div",{class:`file-nbox${r}`,attrs:{"data-id":i.id}},[e("div",{class:`no-dark-before file-name file-icon ${i.type}${l}`},t),a])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>i.type=="folder"?e("div","-"):e("AutoTip",$A.bytesToSize(i.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(e,{row:i})=>{let t=this.types.find(({value:s,name:a})=>s==i.type&&a);return t?e("AutoTip",this.$L(t.name)):e("div",(i.ext||i.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(e,{row:i})=>e("UserAvatar",{props:{size:18,userid:i.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(e=>(e.key===o.sort.key&&(e.sortType=o.sort.order),e))},mounted(){this.uploadAccept=this.uploadFormat.map(e=>"."+e).join(",")},activated(){this.getFileList()},computed:{...f(["systemConfig","userIsAdmin","userInfo","fileLists","wsOpenNum","windowWidth","filePackLists"]),pid(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},fid(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid+"&cover="+(this.uploadCover?1:0))},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let e=this.shareList?this.shareList.map(({userid:i})=>i):[];return this.shareInfo.userid&&e.push(this.shareInfo.userid),e},fileList(){const{fileLists:e,searchKey:i,hideShared:t,pid:s,selectIds:a,userId:r}=this;return $A.cloneJSON(m.exports.sortBy(e.filter(n=>t&&n.userid!=r&&n.created_id!=r?!1:i?n.name.indexOf(i)!==-1:n.pid==s),n=>(n.type=="folder"?"a":"b")+n.name)).map(n=>(n._checked=a.includes(n.id),n))},hasShareFile(){const{fileLists:e,userId:i}=this;return e.findIndex(t=>t.share&&t.userid!=i)!==-1},shearFirst(){const{fileLists:e,shearIds:i}=this;return i.length===0?null:e.find(t=>t.id==i[0])},navigator(){let{pid:e,fileLists:i}=this,t=[];for(;e>0;){let s=i.find(({id:a,permission:r})=>a==e&&r>-1);s?(t.unshift(s),e=s.pid):e=0}return t},isPreview(){return this.windowPortrait&&this.fileInfo.type!="document"||this.fileInfo.permission===0},isParentShare(){const{navigator:e}=this;return!!e.find(({share:i})=>i)},pasteTitle(){const{pasteItem:e}=this;let i=e.find(({type:s})=>s=="image"),t=e.find(({type:s})=>s!="image");return i&&t?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":i?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},tableHeight(){return this.windowHeight-150},compressedSownloadDisabled(){var e;return!!((e=this.fileList)!=null&&e.find(i=>i._checked&&i.permission<1))},maxSize(){var e;return(e=this.systemConfig)!=null&&e.file_upload_limit?this.systemConfig.file_upload_limit*1024:1024e3},showBtnText(){return this.windowWidth>600}},watch:{pid(){this.searchKey="",this.selectIds=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(e){$A.IDBSave("fileTableMode",e)},hideShared(e){$A.IDBSave("fileHideShared",e)},fileShow(e){e||(this.browseFile(0),this.windowPortrait&&$A.onBlur(!0))},imageShow(e){e||this.browseFile(0)},navigator:{handler(){this.$nextTick(e=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectIds:{handler(e){e.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(e){e.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum(e){e<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-file"&&this.getFileList()},5e3))},filePackLists:{handler(){this.updatePackProgress()},deep:!0}},methods:{getFileList(){this.$route.name==="manage-file"&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(async()=>{this.loadIng--,this.openFileJudge(),this.shakeFile(this.$route.params.shakeId),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:e})=>{this.loadIng--,$A.modalError({content:e,onOk:()=>{this.browseFolder(0)}})}))},addFile(e){if(e){if(e=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(e=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let i=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:i,type:e,name:"",userid:this.userId,newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(i)},handleLongpress(e,i){const t=$A.getAttr(i,"data-id"),s=this.fileList.find(a=>a.id==t);!s||this.handleRightClick(e,s)},handleContextmenu(e){this.windowLandscape&&this.handleRightClick(e)},handleRightClick(e,i,t){this.contextMenuItem=$A.isJson(i)?i:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const a=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${e.clientX-a.left}px`,top:`${e.clientY-a.top}px`},t===!0&&(this.contextMenuStyles.top=`${e.target.clientHeight+e.target.offsetTop-5}px`),this.contextMenuVisible=!0})},browseFolder(e,i=null){if(e>0){if(this.pid==e&&this.fid==0&&i){this.shakeFile(i);return}this.goForward({name:"manage-file",params:{folderId:e,fileId:null,shakeId:i}})}else this.searchKey="",this.goForward({name:"manage-file"})},browseFile(e){e>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:e}}):this.browseFolder(this.pid)},openFileJudge(){if(this.$route.name!=="manage-file"){this.fileShow=!1,this.imageShow=!1;return}if(this.fid<=0){this.fileShow=!1,this.imageShow=!1;return}const e=this.fileList.find(({id:i})=>i===this.fid);if(!e){this.fileShow=!1,this.imageShow=!1;return}if(e.image_url){const i=this.fileList.filter(({image_url:t})=>!!t);if(i.length>0){this.imageIndex=i.findIndex(({id:t})=>e.id===t),this.imageList=i.map(t=>t.image_width?{src:t.image_url,width:t.image_width,height:t.image_height}:t.image_url),this.imageShow=!0;return}}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(e);return}this.fileInfo=e,this.fileShow=!0},openFileSingle(e){const i=`/single/file/${e.id}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-${e.id}`,path:i,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(e),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:e.type==="drawio"}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:$A.getFileName(e),url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${i}`}}):window.open($A.mainUrl(i.substring(1))),this.browseFile(0)},clickRow(e,i){if(this.contextMenuVisible){this.handleClickContextMenuOutside();return}i.type=="selection"?this.dropFile(e,"select"):this.dropFile(e,"open")},handleContextMenu(e,i){this.handleRightClick(i,this.fileLists.find(({id:t})=>t===e.id)||{})},handleContextClick(e){$A.leftExists(e,"new:")?this.addFile($A.leftDelete(e,"new:")):this.dropFile(this.contextMenuItem,e)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(e){let i=this.fileLists.find(({_highlight:t})=>!!t);i&&this.$set(i,"_highlight",!1),e&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(e,i){switch(i){case"open":case"openCheckMenu":if(i==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(s=>s._edit===!0)>-1||e._load)return;e.type=="folder"?this.browseFolder(e.id):this.browseFile(e.id);break;case"upperFolder":this.searchKey="",this.browseFolder(e.pid,e.id);break;case"select":let t=this.selectIds.findIndex(s=>s==e.id);t>-1?this.selectIds.splice(t,1):this.selectIds.push(e.id);break;case"rename":this.setEdit(e.id,!0),this.autoBlur(e.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:e.id}}).then(({data:s,msg:a})=>{$A.messageSuccess(a),this.$store.dispatch("saveFile",s)}).catch(({msg:s})=>{$A.modalError(s)});break;case"shear":this.shearIds=[e.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendFileId=e.id,this.sendData=[],this.$refs.sendFile.onSelection();break;case"share":this.shareInfo={id:e.id,type:"all",userid:e.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+e.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((s,a)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:e.id}}).then(({msg:r})=>{s(r),this.$store.dispatch("forgetFile",e.id)}).catch(({msg:r})=>{a(r)})})});break;case"link":this.linkData={id:e.id,name:e.name},this.linkShow=!0,this.linkGet();break;case"download":if(!e.ext)return;$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${e.name}.${e.ext} (${$A.bytesToSize(e.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${e.id}&down=yes`))}});break;case"downloadzip":this.downloadZipFile([e.id]);break;case"delete":this.deleteFile([e.id]);break}},onSendFile(){return new Promise((e,i)=>{if(this.sendData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),i();return}const t=this.sendData.filter(a=>$A.leftExists(a,"d:")).map(a=>a.replace("d:","")),s=this.sendData.filter(a=>!$A.leftExists(a,"d:"));this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:{dialogids:t,userids:s,file_id:this.sendFileId}}).then(({data:a,msg:r})=>{this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(r),e()}).catch(({msg:a})=>{$A.modalError(a),i()})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:i})=>{this.linkData=Object.assign(i,{id:this.linkData.id,name:this.linkData.name}),this.linkCopy()}).catch(({msg:i})=>{this.linkShow=!1,$A.modalError(i)}).finally(i=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.copyText(this.linkData.url))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const e=this.fileLists.find(({id:i,share:t})=>t&&this.shearIds.includes(i));if(e){$A.modalError(`${e.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:e,msg:i})=>{$A.messageSuccess(i),this.shearIds=[],this.$store.dispatch("saveFile",e)}).catch(({msg:e})=>{$A.modalError(e)})}},deleteFile(e){if(e.length===0)return;const i=this.fileLists.find(r=>r.id==e[0])||{};let s=!e.find(r=>this.fileLists.find(l=>l.type!="folder"&&l.id==r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;e.length===1&&(a=`\u3010${i.name}\u3011${s}`),$A.modalConfirm({title:"\u5220\u9664"+s,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+a+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((r,l)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:e}}).then(({msg:n})=>{r(n),this.$store.dispatch("forgetFile",e),this.selectIds=this.selectIds.filter(d=>!e.includes(d))}).catch(({msg:n})=>{l(n)})})})},packPercentageParse(e){return parseInt(e,10)},packClear(){this.packList=this.packList.filter(e=>e.status!=="finished"),this.packShow=!1},async startPack(e){this.packList.push(Object.assign(e,{status:"packing",percentage:0})),this.uploadShow=!1,this.packShow=!0},updatePackProgress(){this.packList.forEach(e=>{const i=this.filePackLists.find(({name:t})=>t==e.name);if(i){if(typeof e.percentage=="number"&&e.percentage>=100)return;e.percentage=Math.max(1,i.progress),e.percentage>=100&&(e.status="finished")}})},downloadZipFile(e){if(e.length===0)return;const i=this.fileLists.find(({id:r})=>r===e[0])||{},s=!e.some(r=>this.fileLists.some(({type:l,id:n})=>l!=="folder"&&n===r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=e.length===1?`\u3010${i.name}\u3011${s}`:`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;$A.modalConfirm({title:"\u6253\u5305\u4E0B\u8F7D",content:`\u4F60\u786E\u5B9A\u8981\u6253\u5305\u4E0B\u8F7D${a}\u5417\uFF1F`,okText:"\u786E\u5B9A",onOk:()=>{if(this.packList.find(({status:l})=>l==="packing")){$A.messageWarning("\u8BF7\u7B49\u5F85\u6253\u5305\u5B8C\u6210");return}const r=this.$L(`\u6253\u5305\u4E0B\u8F7D${a}`);this.$store.dispatch("call",{url:"file/download/pack",data:{ids:e,name:r}}).then(({data:l})=>{this.startPack(l)}).catch(({msg:l})=>{$A.modalError(l)})}})},autoBlur(e){this.$nextTick(()=>{if(this.$refs["input_"+e])this.$refs["input_"+e][0].focus({cursor:"all"});else if(document.getElementById("input_"+e)){const i=document.getElementById("input_"+e),t=i.value.length;i.focus(),i.setSelectionRange(0,t)}})},onParser(e){return e.replace(/[\\\/:*?\"<>|]/g,"")},onBlur(e){this.fileLists.find(({id:i,_edit:t})=>i==e.id&&!t)||this.onEnter(e)},onKeyup(e,i){e.keyCode===13?this.onEnter(i):e.keyCode===27&&(!/^\d+$/.test(i.id)?(i.newname="",this.$store.dispatch("forgetFile",i.id)):(this.setLoad(i.id,!1),this.setEdit(i.id,!1)))},onEnter(e){const i=!/^\d+$/.test(e.id);if(!e.newname){i?this.$store.dispatch("forgetFile",e.id):this.setEdit(e.id,!1);return}if(e.newname==e.name){this.setEdit(e.id,!1);return}e._load||(this.setLoad(e.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:i?0:e.id,pid:e.pid,name:e.newname,type:e.type},spinner:2e3}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.setLoad(e.id,!1),this.setEdit(e.id,!1),this.$store.dispatch("saveFile",t),i&&(this.$store.dispatch("forgetFile",e.id),this.shakeFile(t.id))}).catch(({msg:t})=>{$A.modalError(t),this.setLoad(e.id,!1),i&&this.$store.dispatch("forgetFile",e.id)}))},setEdit(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&(this.$set(t,"_edit",i),i&&this.$set(t,"newname",t.name))},setLoad(e,i){const t=this.$store.state.fileLists.find(({id:s})=>s==e);t&&this.$set(t,"_load",i)},onSearchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:e})=>{e.id==this.shareInfo.id&&(this.shareList=e.list.map(i=>(i._permission=i.permission,i)))}).catch(({msg:e})=>{this.shareShow=!1,$A.modalError(e)}).finally(e=>{this.shareLoad--})},onShare(e=!1){if(this.shareInfo.type==="all"&&(this.shareInfo.userids=[0]),this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:e===!0?1:0})}).then(({data:i,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveFile",i),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:i,msg:t})=>{i===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(t)}).finally(i=>{this.shareLoad--})},upShare(e,i=!1){e.loading!==!0&&(e.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[e.userid],permission:e.permission,force:i===!0?1:0}}).then(({data:t,msg:s})=>{if(e.loading=!1,e._permission=e.permission,$A.messageSuccess(s),this.$store.dispatch("saveFile",t),e.permission===-1){let a=this.shareList.findIndex(({userid:r})=>r==e.userid);a>-1&&this.shareList.splice(a,1)}}).catch(({ret:t,msg:s})=>{e.loading=!1,t===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(e,!0)},onCancel:()=>{e.permission=e._permission}}):(e.permission=e._permission,$A.modalError(s))}))},uploadData(e){const i=$A.getObject(e,"response.data");if($A.isArray(i))return i[0];if($A.isJson(i))return i},uploadName(e){const i=this.uploadData(e);if(!i)return e.name;const t=i.full_name||e.name;return i.overwrite?`[${this.$L("\u66FF\u6362")}] ${t}`:t},uploadClick(e){const i=this.uploadData(e);!i||this.browseFolder(i.pid,i.id)},handleTableSort({key:e,order:i}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(i)?{key:e,order:i}:{})},handleTableSelect(e){this.selectIds=e.map(i=>i.id)},clearSelect(){this.selectIds=[]},clearShear(){this.shearIds=[]},shakeFile(e){!e||this.$nextTick(i=>{const t=$A(this.$el).find(`[data-id="${e}"]`);t.length>0&&($A.scrollIntoViewIfNeeded(t[0]),$A(t[0]).addClass("common-shake"),setTimeout(s=>$A(t[0]).removeClass("common-shake"),800))})},pasteDragNext(e,i){let t=i==="drag"?e.dataTransfer.files:e.clipboardData.files;t=Array.prototype.slice.call(t),t.length>0&&(e.preventDefault(),this.pasteFile=[],this.pasteItem=[],t.some(s=>{const a={type:$A.getMiddle(s.type,null,"/"),name:s.name,size:s.size,result:null};if(a.type==="image"){const r=new FileReader;r.readAsDataURL(s),r.onload=({target:l})=>{a.result=l.result,this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}}else this.pasteFile.push(s),this.pasteItem.push(a),this.pasteShow=!0}))},filePasteDrag(e,i){if(this.dialogDrag=!1,$A.dataHasFolder(i==="drag"?e.dataTransfer:e.clipboardData)){e.preventDefault(),$A.modalWarning(`\u6682\u4E0D\u652F\u6301${i==="drag"?"\u62D6\u62FD":"\u7C98\u8D34"}\u6587\u4EF6\u5939\uFF0C\u8BF7\u624B\u52A8\u4E0A\u4F20\u6587\u4EF6\u5939\u3002`);return}this.pasteDragNext(e,i)},fileDragOver(e,i){let t=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{t===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(i.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){if(this.__paste_send_index)return;this.__paste_send_index=1,setTimeout(()=>{this.__paste_send_index=0},300);const e=[];this.pasteFile.some(i=>{e.find(t=>t===i.name)||(e.push(i.name),this.$refs.fileUpload.upload(i))})},fileBeforeClose(){return new Promise(e=>{if(!this.$refs.fileContent){e();return}if(this.$refs.fileContent.equalContent){e();return}$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{e()}})})},uploadUpdate(e){e.forEach(i=>{let t=this.uploadList.findIndex(({uid:s})=>s==i.uid);t>-1?this.uploadList.splice(t,1,i):this.uploadList.unshift(i)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:e})=>e!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse(e){return parseInt(e,10)},handleProgress(e,i,t){i._uploadIng===void 0&&(i._uploadIng=!0,this.uploadIng++),this.uploadUpdate(t)},handleSuccess(e,i,t){this.uploadIng--,this.uploadUpdate(t),e.ret===1?this.$store.dispatch("saveFile",e.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+e.msg})},handleError(e,i,t){this.uploadIng--,this.uploadUpdate(t)},handleFormatError(e){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+e.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(e){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+e.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(e){return this.uploadCover=!1,this.uploadDir?(this.handleUploadNext(),!0):new Promise(i=>{this.fileList.findIndex(t=>$A.getFileName(t)===e.name)>-1?$A.modalConfirm({wait:!0,title:"\u6587\u4EF6\u5DF2\u5B58\u5728",content:"\u6587\u4EF6 "+e.name+" \u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u66FF\u6362\uFF1F",cancelText:"\u4FDD\u7559\u4E24\u8005",okText:"\u66FF\u6362",closable:!0,onOk:()=>{this.uploadCover=!0,this.handleUploadNext(),i()},onCancel:t=>{t&&(this.handleUploadNext(),i())}}):(this.handleUploadNext(),i())})},handleUploadNext(){this.uploadShow=!0,this.packShow=!1}}},c={};var S=_(b,I,L,!1,y,null,null,null);function y(e){for(let i in c)this[i]=c[i]}var me=function(){return S.exports}();export{me as default}; diff --git a/public/js/build/fileMsg.2bee63d2.js b/public/js/build/fileMsg.2bee63d2.js deleted file mode 100644 index 34e3bd39f..000000000 --- a/public/js/build/fileMsg.2bee63d2.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./openpgp_hi.15f91b1d.js";import{m as n}from"./vuex.cc7cb26e.js";import{I as a}from"./IFrame.3b0629c7.js";import{n as m}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(r){t.$set(t.msgDetail,"content",r)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(r){t.$set(t.msgDetail.content,"content",r)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const d=()=>o(()=>import("./preview.ac00254d.js"),["js/build/preview.ac00254d.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.0841978b.js"),["js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/ImgUpload.d82fa303.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./AceEditor.9724e814.js"),["js/build/AceEditor.9724e814.js","js/build/vuex.cc7cb26e.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./OnlyOffice.6bf143a3.js"),["js/build/OnlyOffice.6bf143a3.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>o(()=>import("./Drawio.7ea92229.js"),["js/build/Drawio.7ea92229.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./Minder.fcfad20d.js"),["js/build/Minder.fcfad20d.js","js/build/Minder.1839e1ef.css","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:a,AceEditor:_,TEditor:p,MDPreview:d,OnlyOffice:u,Drawio:g,Minder:f},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...n(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{msg:t}=this.msgDetail;return t&&t.name?t.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.Time(e.update_at)}`)}).catch(e=>{i(e)})})},isLongText(t){return/^LongText-/.test(t)}}},s={};var h=m(v,l,c,!1,D,null,null,null);function D(t){for(let i in s)this[i]=s[i]}var ot=function(){return h.exports}();export{ot as default}; diff --git a/public/js/build/fileMsg.f3988070.js b/public/js/build/fileMsg.f3988070.js new file mode 100644 index 000000000..1a35aa3e3 --- /dev/null +++ b/public/js/build/fileMsg.f3988070.js @@ -0,0 +1 @@ +import{_ as o}from"./openpgp_hi.15f91b1d.js";import{m as n}from"./vuex.cc7cb26e.js";import{I as a}from"./IFrame.c1a86434.js";import{n as m}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(r){t.$set(t.msgDetail,"content",r)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(r){t.$set(t.msgDetail.content,"content",r)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const d=()=>o(()=>import("./preview.2fd94df0.js"),["js/build/preview.2fd94df0.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.10324bed.js"),["js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/ImgUpload.b233effb.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./AceEditor.ee1743e2.js"),["js/build/AceEditor.ee1743e2.js","js/build/vuex.cc7cb26e.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./OnlyOffice.b4318521.js"),["js/build/OnlyOffice.b4318521.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>o(()=>import("./Drawio.9ac6f0d0.js"),["js/build/Drawio.9ac6f0d0.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./Minder.e832edb9.js"),["js/build/Minder.e832edb9.js","js/build/Minder.1839e1ef.css","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:a,AceEditor:_,TEditor:p,MDPreview:d,OnlyOffice:u,Drawio:g,Minder:f},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...n(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{msg:t}=this.msgDetail;return t&&t.name?t.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.Time(e.update_at)}`)}).catch(e=>{i(e)})})},isLongText(t){return/^LongText-/.test(t)}}},s={};var h=m(v,l,c,!1,D,null,null,null);function D(t){for(let i in s)this[i]=s[i]}var ot=function(){return h.exports}();export{ot as default}; diff --git a/public/js/build/fileTask.4bc5cd8d.js b/public/js/build/fileTask.4bc5cd8d.js new file mode 100644 index 000000000..fa6f73009 --- /dev/null +++ b/public/js/build/fileTask.4bc5cd8d.js @@ -0,0 +1 @@ +import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as l}from"./IFrame.c1a86434.js";import{n as a}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-task"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.fileDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.fileDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.fileDetail.name,readOnly:""},model:{value:t.fileDetail.content,callback:function(r){t.$set(t.fileDetail,"content",r)},expression:"fileDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.fileDetail.content,readOnly:""}}):t.isType("code")?e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.fileDetail.ext,readOnly:""},model:{value:t.fileDetail.content.content,callback:function(r){t.$set(t.fileDetail.content,"content",r)},expression:"fileDetail.content.content"}}):t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const m=()=>o(()=>import("./preview.2fd94df0.js"),["js/build/preview.2fd94df0.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.10324bed.js"),["js/build/TEditor.10324bed.js","js/build/tinymce.e0553569.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/ImgUpload.b233effb.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./AceEditor.ee1743e2.js"),["js/build/AceEditor.ee1743e2.js","js/build/vuex.cc7cb26e.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./OnlyOffice.b4318521.js"),["js/build/OnlyOffice.b4318521.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Drawio.9ac6f0d0.js"),["js/build/Drawio.9ac6f0d0.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Minder.e832edb9.js"),["js/build/Minder.e832edb9.js","js/build/Minder.1839e1ef.css","js/build/IFrame.c1a86434.js","js/build/app.57070a0d.js","js/build/app.a4396c6f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.accd1716.js","js/build/@traptitech.363dce05.js","js/build/katex.0b94f27c.js","js/build/localforage.879ac172.js","js/build/markdown-it.f3afa976.js","js/build/entities.797c3e49.js","js/build/uc.micro.39573202.js","js/build/mdurl.2f66c031.js","js/build/linkify-it.3ecfda1e.js","js/build/punycode.87a5269f.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.eaf71fac.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.4402036c.js","js/build/clipboard.d74ec60d.js","js/build/view-design-hi.76cbd75d.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.c8fae132.js","js/build/sortablejs.8b819437.js","js/build/vue-resize-observer.5fb00380.js","js/build/element-sea.b954f5d6.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e60103ad.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.289edf0d.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:l,AceEditor:d,TEditor:p,MDPreview:m,OnlyOffice:f,Drawio:_,Minder:u},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{name:t}=this.fileDetail;return t||"Loading..."},isType(){const{fileDetail:t}=this;return function(i){return t.file_mode==i}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:t,key:i}=this.fileDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.fileId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:t})=>{this.fileDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.Time(e.update_at)}`)}).catch(e=>{i(e)})})}}},n={};var h=a(v,s,c,!1,D,null,null,null);function D(t){for(let i in n)this[i]=n[i]}var it=function(){return h.exports}();export{it as default}; diff --git a/public/js/build/fileTask.9dfe020e.js b/public/js/build/fileTask.9dfe020e.js deleted file mode 100644 index 44d76142d..000000000 --- a/public/js/build/fileTask.9dfe020e.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as l}from"./IFrame.3b0629c7.js";import{n as a}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-task"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.fileDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.fileDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.fileDetail.name,readOnly:""},model:{value:t.fileDetail.content,callback:function(r){t.$set(t.fileDetail,"content",r)},expression:"fileDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.fileDetail.content,readOnly:""}}):t.isType("code")?e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.fileDetail.ext,readOnly:""},model:{value:t.fileDetail.content.content,callback:function(r){t.$set(t.fileDetail.content,"content",r)},expression:"fileDetail.content.content"}}):t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const m=()=>o(()=>import("./preview.ac00254d.js"),["js/build/preview.ac00254d.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.0841978b.js"),["js/build/TEditor.0841978b.js","js/build/tinymce.286c5863.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/ImgUpload.d82fa303.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./AceEditor.9724e814.js"),["js/build/AceEditor.9724e814.js","js/build/vuex.cc7cb26e.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./OnlyOffice.6bf143a3.js"),["js/build/OnlyOffice.6bf143a3.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Drawio.7ea92229.js"),["js/build/Drawio.7ea92229.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Minder.fcfad20d.js"),["js/build/Minder.fcfad20d.js","js/build/Minder.1839e1ef.css","js/build/IFrame.3b0629c7.js","js/build/app.f8a6fa5e.js","js/build/app.e18e3ed3.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.7b5830c7.js","js/build/@traptitech.4f5fb92a.js","js/build/katex.8068bc0b.js","js/build/localforage.dae0aa5a.js","js/build/markdown-it.34483999.js","js/build/entities.797c3e49.js","js/build/uc.micro.3245408e.js","js/build/mdurl.ddaf799d.js","js/build/linkify-it.43898b73.js","js/build/punycode.32c740ed.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/vue.da9c4dc7.js","js/build/vuex.cc7cb26e.js","js/build/axios.6ec123f8.js","js/build/le5le-store.bd86c9e9.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.facc05aa.js","js/build/clipboard.907979fd.js","js/build/view-design-hi.afe77d1e.js","js/build/default-passive-events.a3d698c9.js","js/build/vuedraggable.aaa0fd6a.js","js/build/sortablejs.4880fe6b.js","js/build/vue-resize-observer.2ab4768b.js","js/build/element-sea.74fd8f4e.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.e0279f38.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.e0445182.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:l,AceEditor:d,TEditor:p,MDPreview:m,OnlyOffice:f,Drawio:_,Minder:u},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{name:t}=this.fileDetail;return t||"Loading..."},isType(){const{fileDetail:t}=this;return function(i){return t.file_mode==i}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:t,key:i}=this.fileDetail.content;return $A.onlinePreviewUrl(t,i)}},methods:{getInfo(){this.fileId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:t})=>{this.fileDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.Time(e.update_at)}`)}).catch(e=>{i(e)})})}}},n={};var h=a(v,s,c,!1,D,null,null,null);function D(t){for(let i in n)this[i]=n[i]}var it=function(){return h.exports}();export{it as default}; diff --git a/public/js/build/drawio.0122e3f0.svg b/public/js/build/flow.0122e3f0.svg similarity index 100% rename from public/js/build/drawio.0122e3f0.svg rename to public/js/build/flow.0122e3f0.svg diff --git a/public/js/build/drawio.a58ab0df.svg b/public/js/build/flow.a58ab0df.svg similarity index 100% rename from public/js/build/drawio.a58ab0df.svg rename to public/js/build/flow.a58ab0df.svg diff --git a/public/js/build/index.4a24dc10.js b/public/js/build/index.26e84caa.js similarity index 58% rename from public/js/build/index.4a24dc10.js rename to public/js/build/index.26e84caa.js index c5c103040..d508b825c 100644 --- a/public/js/build/index.4a24dc10.js +++ b/public/js/build/index.26e84caa.js @@ -1 +1 @@ -import{n,l as o}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div")},a=[];const m={data(){return{}},mounted(){if(/^https*:/i.test(window.location.protocol)){let t=null;if(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(t=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(t=window.location.href.replace("/#/","/")),t)throw this.$store.dispatch("userUrl",t).then(i=>{window.location.href=i}),SyntaxError()}},activated(){this.start()},methods:{start(){if(this.$isSoftware){this.goNext();return}this.$store.dispatch("showSpinner",1e3),this.$store.dispatch("needHome").then(t=>{this.goIndex()}).catch(t=>{this.goNext()}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},goIndex(){o==="zh"||o==="zh-CHT"?window.location.href=$A.mainUrl("site/zh/index.html"):window.location.href=$A.mainUrl("site/en/index.html")},goNext(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)}}},r={};var p=n(m,s,a,!1,h,null,null,null);function h(t){for(let i in r)this[i]=r[i]}var P=function(){return p.exports}();export{P as default}; +import{n,l as o}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div")},a=[];const m={data(){return{}},mounted(){if(/^https*:/i.test(window.location.protocol)){let t=null;if(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(t=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(t=window.location.href.replace("/#/","/")),t)throw this.$store.dispatch("userUrl",t).then(i=>{window.location.href=i}),SyntaxError()}},activated(){this.start()},methods:{start(){if(this.$isSoftware){this.goNext();return}this.$store.dispatch("showSpinner",1e3),this.$store.dispatch("needHome").then(t=>{this.goIndex()}).catch(t=>{this.goNext()}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},goIndex(){o==="zh"||o==="zh-CHT"?window.location.href=$A.mainUrl("site/zh/index.html"):window.location.href=$A.mainUrl("site/en/index.html")},goNext(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)}}},r={};var p=n(m,s,a,!1,h,null,null,null);function h(t){for(let i in r)this[i]=r[i]}var P=function(){return p.exports}();export{P as default}; diff --git a/public/js/build/index.2c3843c6.js b/public/js/build/index.43c0c37f.js similarity index 95% rename from public/js/build/index.2c3843c6.js rename to public/js/build/index.43c0c37f.js index 381e859cd..7c8720874 100644 --- a/public/js/build/index.2c3843c6.js +++ b/public/js/build/index.43c0c37f.js @@ -1 +1 @@ -import{n as r,e as h,l as v}from"./app.f8a6fa5e.js";import u from"./details.ef31cd47.js";import{D as c}from"./index.04b74879.js";import{I as m}from"./ImgUpload.d82fa303.js";import{A as f}from"./ApproveExport.747b2304.js";import{m as _}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var g=function(){var t,i,a,e,s=this,o=s.$createElement,n=s._self._c||o;return n("div",{staticClass:"approve-list"},[n("h2",[n("span",{staticClass:"list-name"},[s._v(s._s(s.$L(s.data.proc_def_name)))]),s.data.state==0?n("Tag",{attrs:{color:"cyan"}},[s._v(s._s(s.$L("\u5F85\u5BA1\u6279")))]):s._e(),s.data.state==1?n("Tag",{attrs:{color:"cyan"}},[s._v(s._s(s.$L("\u5BA1\u6279\u4E2D")))]):s._e(),s.data.state==2?n("Tag",{attrs:{color:"green"}},[s._v(s._s(s.$L("\u5DF2\u901A\u8FC7")))]):s._e(),s.data.state==3?n("Tag",{attrs:{color:"red"}},[s._v(s._s(s.$L("\u5DF2\u62D2\u7EDD")))]):s._e(),s.data.state==4?n("Tag",{attrs:{color:"red"}},[s._v(s._s(s.$L("\u5DF2\u64A4\u56DE")))]):s._e()],1),(t=s.data.var)!==null&&t!==void 0&&t.type?n("p",[s._v(s._s(s.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"),n("span",[s._v(s._s(s.$L((i=s.data.var)===null||i===void 0?void 0:i.type)))])]):s._e(),n("p",[s._v(s._s(s.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"),n("span",[s._v(s._s((a=s.data.var)===null||a===void 0?void 0:a.start_time))])]),n("p",[s._v(s._s(s.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"),n("span",[s._v(s._s((e=s.data.var)===null||e===void 0?void 0:e.end_time))])]),n("div",{staticClass:"list-member"},[n("span",[n("Avatar",{attrs:{src:s.data.userimg,size:"20"}}),s._v(" "+s._s(s.data.start_user_name)+" ")],1),n("span",[s._v(" "+s._s(s.$L("\u53D1\u8D77\u65F6\u95F4"))+"\uFF1A"+s._s(s.data.start_time)+" ")])])])},y=[];const L={name:"list",props:{data:{type:Object,default(){return{}}}},data(){return{}}},l={};var w=r(L,g,y,!1,$,null,null,null);function $(t){for(let i in l)this[i]=l[i]}var S=function(){return w.exports}(),T=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"page-approve-setting"},[a("Row",{staticClass:"approve-row",attrs:{gutter:16}},[a("Col",{attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:12},xs:{span:24}}},[a("div",{staticClass:"approve-col-box approve-col-add",on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}})],1)]),t._l(t.list,function(e,s){return a("Col",{key:s,attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:12},xs:{span:24}}},[a("div",{staticClass:"approve-col-box approve-col-for",on:{click:function(o){return t.edit(e)}}},[a("p",[t._v(t._s(t.$L("\u6D41\u7A0B\u540D\u79F0"))+"\uFF1A"),a("span",{staticClass:"approve-name"},[t._v(t._s(t.$L(e.name)))])]),a("Divider",{staticClass:"divider"}),a("div",{staticClass:"approve-button-box",on:{click:function(o){return o.stopPropagation(),t.edit(e)}}},[a("p",[t._v(t._s(t.$L("\u5DF2\u53D1\u5E03")))]),a("p",{staticClass:"icon-warp",on:{click:function(o){return o.stopPropagation(),t.change(e)}}},[a("Icon",{staticClass:"delcon",attrs:{type:"md-trash",size:"16"}})],1)])],1)])})],2),a("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.approvalSettingShow,callback:function(e){t.approvalSettingShow=e},expression:"approvalSettingShow"}},[a("iframe",{attrs:{src:t.iframeSrc}})])],1)},k=[];const b={name:"ApproveSetting",components:{DrawerOverlay:c},data(){return{value:!1,loadIng:0,approvalSettingShow:!1,iframeSrc:"",name:"",list:[]}},watch:{approvalSettingShow(t){t&&(this.iframeSrc=$A.mainUrl(`approve/#/?name=${this.name}&token=${h.userToken}&lang=${v}`))}},mounted(){window.addEventListener("message",this.saveSuccess),this.getList()},beforeDestroy(){window.removeEventListener("message",this.saveSuccess)},methods:{getList(){this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:t})=>{this.list=t.rows,t.rows.forEach((i,a)=>{this.list.forEach((e,s)=>{e.name==i.name&&(e.issue=!0,e.id=i.id,e.version=i.version)})})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},saveSuccess(t){typeof t.data=="string"&&JSON.parse(t.data).method=="saveSuccess"&&(this.getList(),this.list.forEach((a,e)=>{a.name==this.name&&(a.issue=!0,this.$set(this.list,e,a))}),this.approvalSettingShow=!1,$A.messageSuccess("\u53D1\u5E03\u6210\u529F"))},add(){$A.modalInput({title:"\u6DFB\u52A0\u6D41\u7A0B",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",okText:"\u786E\u5B9A",onOk:t=>t?(this.name=t,this.approvalSettingShow=!0,!1):"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0"})},edit(t){this.name=t.name,this.approvalSettingShow=!0},change(t){this.$nextTick(()=>{t.issue=!0,$A.modalConfirm({title:"\u5220\u9664",content:"\u5C06\u4F1A\u6E05\u7A7A\u6D41\u7A0B\u6570\u636E\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D",onOk:()=>{this.del(t)}})})},del(t){if(!t.id)return t.issue=!1,!0;this.$store.dispatch("call",{url:"approve/procdef/del",data:{id:t.id},method:"post"}).then(({data:i})=>{t.issue=!1,this.getList(),$A.messageSuccess("\u6210\u529F")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--})}}},d={};var x=r(b,T,k,!1,C,"8a6d83be",null,null);function C(t){for(let i in d)this[i]=d[i]}var I=function(){return x.exports}(),D=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"page-approve"},[a("PageTitle",{attrs:{title:t.$L("\u5BA1\u6279\u4E2D\u5FC3")}}),a("div",{ref:"fileWrapper",staticClass:"approve-wrapper"},[a("div",{staticClass:"approve-head"},[a("div",{staticClass:"approve-nav"},[a("div",{staticClass:"common-nav-back",on:{click:function(e){return t.goBack()}}},[a("i",{staticClass:"taskfont"},[t._v("\uE676")])]),a("h1",[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D\u5FC3")))])]),a("Button",{directives:[{name:"show",rawName:"v-show",value:t.showType==1&&t.isShowIcon,expression:"showType == 1 && isShowIcon"}],staticClass:"ivu-btn-icon-only",attrs:{loading:t.addLoadIng,type:"primary",shape:"circle",icon:"md-add"},on:{click:t.addApply}}),t.showType==1&&!t.isShowIcon?a("Button",{attrs:{loading:t.addLoadIng,type:"primary"},on:{click:t.addApply}},[a("span",[t._v(" "+t._s(t.$L("\u6DFB\u52A0\u7533\u8BF7"))+" ")])]):t._e(),a("Button",{directives:[{name:"show",rawName:"v-show",value:t.showType==1&&t.userIsAdmin&&!t.isShowIcon,expression:"showType == 1 && userIsAdmin && !isShowIcon"}],on:{click:function(e){t.exportApproveShow=!0}}},[a("span",[t._v(" "+t._s(t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E"))+" ")])]),t.showType==1&&t.userIsAdmin&&t.isShowIcon?a("Button",{staticClass:"ivu-btn-icon-only",attrs:{shape:"circle"},on:{click:function(e){t.exportApproveShow=!0}}},[a("i",{staticClass:"taskfont"},[t._v("\uE7A8")])]):t._e(),t.userIsAdmin&&!t.isShowIcon?a("Button",{on:{click:function(e){t.showType=t.showType==1?2:1}}},[a("span",[t._v(" "+t._s(t.showType==1?t.$L("\u6D41\u7A0B\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")])]):t._e(),t.userIsAdmin&&t.isShowIcon?a("Button",{staticClass:"ivu-btn-icon-only",attrs:{shape:"circle"},on:{click:function(e){t.showType=t.showType==1?2:1}}},[t.showType==1?a("i",{staticClass:"taskfont"},[t._v("\uE67B")]):t._e(),t.showType==2?a("i",{staticClass:"taskfont"},[t._v("\uE637")]):t._e()]):t._e()],1),a("Tabs",{directives:[{name:"show",rawName:"v-show",value:t.showType==1,expression:"showType==1"}],staticClass:"page-approve-tabs",attrs:{value:t.tabsValue,size:"small"},on:{"on-click":t.tabsClick}},[a("TabPane",{staticStyle:{height:"100%"},attrs:{label:t.$L("\u5F85\u529E")+(t.unreadTotal>0?"("+t.unreadTotal+")":""),name:"unread"}},[a("div",{staticClass:"approve-main-search"},[a("div",[a("Select",{on:{"on-change":function(e){return t.tabsClick(!1,0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1),a("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u7528\u6237\u540D")},model:{value:t.approvalName,callback:function(e){t.approvalName=e},expression:"approvalName"}}),a("Button",{directives:[{name:"show",rawName:"v-show",value:!t.isShowIcon,expression:"!isShowIcon"}],attrs:{type:"primary",loading:t.loadIng,icon:"ios-search"},on:{click:function(e){return t.tabsClick(!1,0)}}},[t._v(t._s(t.$L("\u641C\u7D22")))]),a("Button",{directives:[{name:"show",rawName:"v-show",value:t.isShowIcon,expression:"isShowIcon"}],attrs:{type:"primary",loading:t.loadIng,icon:"ios-search"},on:{click:function(e){return t.tabsClick(!1,0)}}})],1)]),t.loadIng&&t.unreadList.length==0?a("div",{staticClass:"approve-load"},[a("Loading")],1):t.unreadList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list",on:{scroll:t.handleScroll}},[t._l(t.unreadList,function(e,s){return a("div",{on:{click:function(o){return o.stopPropagation(),t.clickList(e,s)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),t.unreadList.length1?a("FormItem",{attrs:{prop:"department_id",label:t.$L("\u9009\u62E9\u90E8\u95E8")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8")},model:{value:t.addData.department_id,callback:function(e){t.$set(t.addData,"department_id",e)},expression:"addData.department_id"}},t._l(t.departmentList,function(e,s){return a("Option",{key:s,attrs:{value:e.id}},[t._v(t._s(e.name))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"applyType",label:t.$L("\u7533\u8BF7\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B")},model:{value:t.addData.applyType,callback:function(e){t.$set(t.addData,"applyType",e)},expression:"addData.applyType"}},t._l(t.procdefList,function(e,s){return a("Option",{key:s,attrs:{value:e.name}},[t._v(t._s(e.name))])}),1)],1),(t.addData.applyType||"").indexOf("\u8BF7\u5047")!==-1?a("FormItem",{attrs:{prop:"type",label:t.$L("\u5047\u671F\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B")},model:{value:t.addData.type,callback:function(e){t.$set(t.addData,"type",e)},expression:"addData.type"}},t._l(t.selectTypes,function(e,s){return a("Option",{key:s,attrs:{value:e}},[t._v(t._s(t.$L(e)))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"startTime",label:t.$L("\u5F00\u59CB\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4")},on:{"on-change":function(e){t.addData.startTime=e}},model:{value:t.addData.startTime,callback:function(e){t.$set(t.addData,"startTime",e)},expression:"addData.startTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeHour,callback:function(e){t.$set(t.addData,"startTimeHour",e)},expression:"addData.startTimeHour"}},t._l(24,function(e,s){return a("Option",{key:s,attrs:{value:e-1<10?"0"+(e-1):e-1}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeMinute,callback:function(e){t.$set(t.addData,"startTimeMinute",e)},expression:"addData.startTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"endTime",label:t.$L("\u7ED3\u675F\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4")},on:{"on-change":function(e){t.addData.endTime=e}},model:{value:t.addData.endTime,callback:function(e){t.$set(t.addData,"endTime",e)},expression:"addData.endTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeHour,callback:function(e){t.$set(t.addData,"endTimeHour",e)},expression:"addData.endTimeHour"}},t._l(24,function(e,s){return a("Option",{key:s,attrs:{value:e-1<10?"0"+(e-1):e-1+""}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeMinute,callback:function(e){t.$set(t.addData,"endTimeMinute",e)},expression:"addData.endTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"description",label:t.$L("\u4E8B\u7531")}},[a("Input",{attrs:{type:"textarea"},model:{value:t.addData.description,callback:function(e){t.$set(t.addData,"description",e)},expression:"addData.description"}})],1),a("FormItem",{attrs:{prop:"other",label:t.$L("\u56FE\u7247")}},[a("ImgUpload",{attrs:{num:3,width:2e3,height:2e3,whcut:0},model:{value:t.addData.other,callback:function(e){t.$set(t.addData,"other",e)},expression:"addData.other"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onInitiate}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1),a("ApproveExport",{model:{value:t.exportApproveShow,callback:function(e){t.exportApproveShow=e},expression:"exportApproveShow"}})],1)},P=[];const N={components:{list:S,listDetails:u,DrawerOverlay:c,ImgUpload:m,ApproveSetting:I,ApproveExport:f},name:"approve",data(){return{showType:1,exportApproveShow:!1,isShowIcon:!1,modalTransferIndex:window.modalTransferIndex,minDate:new Date(2020,0,1),maxDate:new Date(2025,10,1),currentDate:new Date(2021,0,17),procdefList:[],page:1,pageSize:10,total:0,noText:"",loadIng:!1,addLoadIng:!1,tabsValue:"",approvalType:"all",approvalName:"",approvalList:[{value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")}],searchState:"all",searchStateList:[{value:"all",label:this.$L("\u5168\u90E8\u72B6\u6001")},{value:1,label:this.$L("\u5BA1\u6279\u4E2D")},{value:2,label:this.$L("\u5DF2\u901A\u8FC7")},{value:3,label:this.$L("\u5DF2\u62D2\u7EDD")},{value:4,label:this.$L("\u5DF2\u64A4\u56DE")}],unreadList:[],unreadPage:1,unreadTotal:0,unreadLoad:!1,doneList:[],donePage:1,doneLoad:!1,doneTotal:0,notifyList:[],notifyPage:1,notifyLoad:!1,notifyTotal:0,initiatedList:[],initiatedPage:1,initiatedLoad:!1,initiatedTotal:0,details:{},detailsShow:!1,addTitle:"",addShow:!1,startTimeOpen:!1,endTimeOpen:!1,addData:{department_id:0,applyType:"",type:"",startTime:"2023-04-20",startTimeHour:"09",startTimeMinute:"00",endTime:"2023-04-20",endTimeHour:"18",endTimeMinute:"00",other:""},addRule:{department_id:{type:"number",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01"),trigger:"change"},applyType:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B\uFF01"),trigger:"change"},type:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B\uFF01"),trigger:"change"},startTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF01"),trigger:"change"},endTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\uFF01"),trigger:"change"},description:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4E8B\u7531\uFF01"),trigger:"change"}},selectTypes:["\u5E74\u5047","\u4E8B\u5047","\u75C5\u5047","\u8C03\u4F11","\u4EA7\u5047","\u966A\u4EA7\u5047","\u5A5A\u5047","\u4E27\u5047","\u54FA\u4E73\u5047"],showDateTime:!1}},computed:{..._(["wsMsg","userInfo","userIsAdmin","windowWidth"]),departmentList(){let t=(this.userInfo.department_name||"").split(",");return(this.userInfo.department||[]).map((i,a)=>({id:i,name:t[a]}))}},watch:{$route(t){t.name=="manage-approve"&&this.init()},wsMsg:{handler(t){var o,n;const{type:i,action:a,mode:e,data:s}=t;switch(i){case"approve":a=="unread"&&this.tabsClick();break;case"dialog":e=="add"&&((n=(o=s==null?void 0:s.msg)==null?void 0:o.text)==null?void 0:n.indexOf("open-approve-details"))!=-1&&this.tabsClick();break}},deep:!0},addShow(t){t||(this.addData.other="")},showType(t){t==1&&this.init()},windowWidth(t){this.isShowIcon=t<515}},activated(){this.showType=1},mounted(){this.tabsValue="unread",this.init()},methods:{init(){this.tabsClick(),this.getProcdefList(),this.tabsValue!="unread"&&this.getUnreadList(),this.addData.department_id=this.userInfo.department[0]||0,this.addData.startTime=this.addData.endTime=this.getCurrentDate(),this.isShowIcon=this.windowWidth<515},getProcdefList(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:a})=>{this.procdefList=a.rows||[],this.approvalList=this.procdefList.map(e=>({value:e.name,label:e.name})),this.approvalList.unshift({value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")}),t()}).catch(({msg:a})=>{$A.modalError(a),i()})})},getCurrentDate(){const t=new Date,i=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),e=String(t.getDate()).padStart(2,"0");return`${i}-${a}-${e}`},tabsClick(t,i=1e3){!t&&this.__tabsClick&&i>0||(this.__tabsClick=setTimeout(()=>{this.__tabsClick=null},i),this.tabsValue=t||this.tabsValue,t&&(this.approvalType=this.searchState="all",this.approvalName=""),this.detailsShow=!1,this.loadIng=!0,this.tabsValue=="unread"&&(t===!1&&(this.unreadPage=1,this.unreadList=[]),this.getUnreadList()),this.tabsValue=="done"&&(t===!1&&(this.donePage=1,this.doneList=[]),this.getDoneList()),this.tabsValue=="notify"&&(t===!1&&(this.notifyPage=1,this.notifyList=[]),this.getNotifyList()),this.tabsValue=="initiated"&&(t===!1&&(this.initiatedPage=1,this.initiatedList=[]),this.getInitiatedList()))},clickList(t){if(this.unreadList.map(i=>{i._active=!1}),this.doneList.map(i=>{i._active=!1}),this.notifyList.map(i=>{i._active=!1}),this.initiatedList.map(i=>{i._active=!1}),window.innerWidth<426){this.goForward({name:"manage-approve-details",query:{id:t.id}});return}window.innerWidth<1010?this.detailsShow=!0:t._active=!0,this.details={},this.$nextTick(()=>{this.details=t})},handleScroll(t){t.target.scrollTop+t.target.clientHeight>=t.target.scrollHeight&&(this.tabsValue=="unread"&&!this.unreadLoad&&this.unreadList.length{this.updateData("unread",i,t)}).catch(i=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.unreadLoad=!1})},getDoneList(t="init"){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findTask",data:{page:t=="scroll"?this.donePage:1,page_size:t=="scroll"?this.pageSize:this.donePage*this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,username:this.approvalName}}).then(({data:i})=>{this.updateData("done",i,t)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.doneLoad=!1})},getNotifyList(t){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findProcNotify",data:{page:t=="scroll"?this.notifyPage:1,page_size:t=="scroll"?this.pageSize:this.notifyPage*this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,username:this.approvalName}}).then(({data:i})=>{this.updateData("notify",i,t)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.notifyLoad=!1})},getInitiatedList(t){this.$store.dispatch("call",{method:"post",url:"approve/process/startByMyselfAll",data:{page:t=="scroll"?this.initiatedPage:1,page_size:t=="scroll"?this.pageSize:this.initiatedPage*this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,state:this.searchState=="all"?"":this.searchState,username:this.approvalName}}).then(({data:i})=>{this.updateData("initiated",i,t)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.initiatedLoad=!1})},addApply(){this.addLoadIng=!0,this.$store.dispatch("call",{url:"users/basic",data:{userid:[this.userInfo.userid]},skipAuthError:!0}).then(({data:t})=>{var i;this.addData.department_id=((i=t[0])==null?void 0:i.department[0])||0,this.getProcdefList().then(a=>{this.addTitle=this.$L("\u6DFB\u52A0\u7533\u8BF7"),this.addShow=!0,this.addLoadIng=!1}).catch(a=>{this.addLoadIng=!1})}).catch(({msg:t})=>{this.addLoadIng=!1,$A.modalError(t)})},updateData(t,i,a){let e=t+"List";if(this[t+"Total"]=i.total,a!="scroll"?this[e]=i.rows:i.rows.map(s=>{this[e].map(o=>o.id).indexOf(s.id)==-1&&this[e].push(s)}),window.innerWidth>1010){let s=this[e].map((o,n)=>o._active?n:-1).filter(o=>o>-1)[0]||0;this[e].length>0&&(this[e][s]._active=!0,this.tabsValue==t&&this.$nextTick(()=>{this.details=this[e][s]||{}}))}},onInitiate(){this.$refs.initiateRef.validate(t=>{if(t){this.loadIng=!0;var i=JSON.parse(JSON.stringify(this.addData));i.startTime=i.startTime+" "+i.startTimeHour+":"+i.startTimeMinute,i.endTime=i.endTime+" "+i.endTimeHour+":"+i.endTimeMinute,this.addData.other&&(i.other=this.addData.other.map(a=>a.path).join(",")),this.$store.dispatch("call",{url:"approve/process/start",data:{proc_name:i.applyType,department_id:i.department_id,var:JSON.stringify(i)},method:"post"}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.initiateRef.resetFields(),this.tabsValue="initiated",this.initiatedList.map(s=>{s._active=!1}),this.$nextTick(()=>{this.tabsClick(!1,0)})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng=!1})}})}}},p={};var A=r(N,D,P,!1,O,null,null,null);function O(t){for(let i in p)this[i]=p[i]}var wt=function(){return A.exports}();export{wt as default}; +import{n as r,e as h,l as v}from"./app.57070a0d.js";import u from"./details.663d818a.js";import{D as c}from"./index.92bfd6b8.js";import{I as m}from"./ImgUpload.b233effb.js";import{A as f}from"./ApproveExport.b1600867.js";import{m as _}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var g=function(){var t,i,a,e,s=this,o=s.$createElement,n=s._self._c||o;return n("div",{staticClass:"approve-list"},[n("h2",[n("span",{staticClass:"list-name"},[s._v(s._s(s.$L(s.data.proc_def_name)))]),s.data.state==0?n("Tag",{attrs:{color:"cyan"}},[s._v(s._s(s.$L("\u5F85\u5BA1\u6279")))]):s._e(),s.data.state==1?n("Tag",{attrs:{color:"cyan"}},[s._v(s._s(s.$L("\u5BA1\u6279\u4E2D")))]):s._e(),s.data.state==2?n("Tag",{attrs:{color:"green"}},[s._v(s._s(s.$L("\u5DF2\u901A\u8FC7")))]):s._e(),s.data.state==3?n("Tag",{attrs:{color:"red"}},[s._v(s._s(s.$L("\u5DF2\u62D2\u7EDD")))]):s._e(),s.data.state==4?n("Tag",{attrs:{color:"red"}},[s._v(s._s(s.$L("\u5DF2\u64A4\u56DE")))]):s._e()],1),(t=s.data.var)!==null&&t!==void 0&&t.type?n("p",[s._v(s._s(s.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"),n("span",[s._v(s._s(s.$L((i=s.data.var)===null||i===void 0?void 0:i.type)))])]):s._e(),n("p",[s._v(s._s(s.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"),n("span",[s._v(s._s((a=s.data.var)===null||a===void 0?void 0:a.start_time))])]),n("p",[s._v(s._s(s.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"),n("span",[s._v(s._s((e=s.data.var)===null||e===void 0?void 0:e.end_time))])]),n("div",{staticClass:"list-member"},[n("span",[n("Avatar",{attrs:{src:s.data.userimg,size:"20"}}),s._v(" "+s._s(s.data.start_user_name)+" ")],1),n("span",[s._v(" "+s._s(s.$L("\u53D1\u8D77\u65F6\u95F4"))+"\uFF1A"+s._s(s.data.start_time)+" ")])])])},y=[];const L={name:"list",props:{data:{type:Object,default(){return{}}}},data(){return{}}},l={};var w=r(L,g,y,!1,$,null,null,null);function $(t){for(let i in l)this[i]=l[i]}var S=function(){return w.exports}(),T=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"page-approve-setting"},[a("Row",{staticClass:"approve-row",attrs:{gutter:16}},[a("Col",{attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:12},xs:{span:24}}},[a("div",{staticClass:"approve-col-box approve-col-add",on:{click:t.add}},[a("Icon",{attrs:{type:"md-add"}})],1)]),t._l(t.list,function(e,s){return a("Col",{key:s,attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:12},xs:{span:24}}},[a("div",{staticClass:"approve-col-box approve-col-for",on:{click:function(o){return t.edit(e)}}},[a("p",[t._v(t._s(t.$L("\u6D41\u7A0B\u540D\u79F0"))+"\uFF1A"),a("span",{staticClass:"approve-name"},[t._v(t._s(t.$L(e.name)))])]),a("Divider",{staticClass:"divider"}),a("div",{staticClass:"approve-button-box",on:{click:function(o){return o.stopPropagation(),t.edit(e)}}},[a("p",[t._v(t._s(t.$L("\u5DF2\u53D1\u5E03")))]),a("p",{staticClass:"icon-warp",on:{click:function(o){return o.stopPropagation(),t.change(e)}}},[a("Icon",{staticClass:"delcon",attrs:{type:"md-trash",size:"16"}})],1)])],1)])})],2),a("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.approvalSettingShow,callback:function(e){t.approvalSettingShow=e},expression:"approvalSettingShow"}},[a("iframe",{attrs:{src:t.iframeSrc}})])],1)},k=[];const b={name:"ApproveSetting",components:{DrawerOverlay:c},data(){return{value:!1,loadIng:0,approvalSettingShow:!1,iframeSrc:"",name:"",list:[]}},watch:{approvalSettingShow(t){t&&(this.iframeSrc=$A.mainUrl(`approve/#/?name=${this.name}&token=${h.userToken}&lang=${v}`))}},mounted(){window.addEventListener("message",this.saveSuccess),this.getList()},beforeDestroy(){window.removeEventListener("message",this.saveSuccess)},methods:{getList(){this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:t})=>{this.list=t.rows,t.rows.forEach((i,a)=>{this.list.forEach((e,s)=>{e.name==i.name&&(e.issue=!0,e.id=i.id,e.version=i.version)})})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},saveSuccess(t){typeof t.data=="string"&&JSON.parse(t.data).method=="saveSuccess"&&(this.getList(),this.list.forEach((a,e)=>{a.name==this.name&&(a.issue=!0,this.$set(this.list,e,a))}),this.approvalSettingShow=!1,$A.messageSuccess("\u53D1\u5E03\u6210\u529F"))},add(){$A.modalInput({title:"\u6DFB\u52A0\u6D41\u7A0B",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",okText:"\u786E\u5B9A",onOk:t=>t?(this.name=t,this.approvalSettingShow=!0,!1):"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0"})},edit(t){this.name=t.name,this.approvalSettingShow=!0},change(t){this.$nextTick(()=>{t.issue=!0,$A.modalConfirm({title:"\u5220\u9664",content:"\u5C06\u4F1A\u6E05\u7A7A\u6D41\u7A0B\u6570\u636E\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D",onOk:()=>{this.del(t)}})})},del(t){if(!t.id)return t.issue=!1,!0;this.$store.dispatch("call",{url:"approve/procdef/del",data:{id:t.id},method:"post"}).then(({data:i})=>{t.issue=!1,this.getList(),$A.messageSuccess("\u6210\u529F")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--})}}},d={};var x=r(b,T,k,!1,C,"8a6d83be",null,null);function C(t){for(let i in d)this[i]=d[i]}var I=function(){return x.exports}(),D=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"page-approve"},[a("PageTitle",{attrs:{title:t.$L("\u5BA1\u6279\u4E2D\u5FC3")}}),a("div",{ref:"fileWrapper",staticClass:"approve-wrapper"},[a("div",{staticClass:"approve-head"},[a("div",{staticClass:"approve-nav"},[a("div",{staticClass:"common-nav-back",on:{click:function(e){return t.goBack()}}},[a("i",{staticClass:"taskfont"},[t._v("\uE676")])]),a("h1",[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D\u5FC3")))])]),a("Button",{directives:[{name:"show",rawName:"v-show",value:t.showType==1&&t.isShowIcon,expression:"showType == 1 && isShowIcon"}],staticClass:"ivu-btn-icon-only",attrs:{loading:t.addLoadIng,type:"primary",shape:"circle",icon:"md-add"},on:{click:t.addApply}}),t.showType==1&&!t.isShowIcon?a("Button",{attrs:{loading:t.addLoadIng,type:"primary"},on:{click:t.addApply}},[a("span",[t._v(" "+t._s(t.$L("\u6DFB\u52A0\u7533\u8BF7"))+" ")])]):t._e(),a("Button",{directives:[{name:"show",rawName:"v-show",value:t.showType==1&&t.userIsAdmin&&!t.isShowIcon,expression:"showType == 1 && userIsAdmin && !isShowIcon"}],on:{click:function(e){t.exportApproveShow=!0}}},[a("span",[t._v(" "+t._s(t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E"))+" ")])]),t.showType==1&&t.userIsAdmin&&t.isShowIcon?a("Button",{staticClass:"ivu-btn-icon-only",attrs:{shape:"circle"},on:{click:function(e){t.exportApproveShow=!0}}},[a("i",{staticClass:"taskfont"},[t._v("\uE7A8")])]):t._e(),t.userIsAdmin&&!t.isShowIcon?a("Button",{on:{click:function(e){t.showType=t.showType==1?2:1}}},[a("span",[t._v(" "+t._s(t.showType==1?t.$L("\u6D41\u7A0B\u8BBE\u7F6E"):t.$L("\u8FD4\u56DE"))+" ")])]):t._e(),t.userIsAdmin&&t.isShowIcon?a("Button",{staticClass:"ivu-btn-icon-only",attrs:{shape:"circle"},on:{click:function(e){t.showType=t.showType==1?2:1}}},[t.showType==1?a("i",{staticClass:"taskfont"},[t._v("\uE67B")]):t._e(),t.showType==2?a("i",{staticClass:"taskfont"},[t._v("\uE637")]):t._e()]):t._e()],1),a("Tabs",{directives:[{name:"show",rawName:"v-show",value:t.showType==1,expression:"showType==1"}],staticClass:"page-approve-tabs",attrs:{value:t.tabsValue,size:"small"},on:{"on-click":t.tabsClick}},[a("TabPane",{staticStyle:{height:"100%"},attrs:{label:t.$L("\u5F85\u529E")+(t.unreadTotal>0?"("+t.unreadTotal+")":""),name:"unread"}},[a("div",{staticClass:"approve-main-search"},[a("div",[a("Select",{on:{"on-change":function(e){return t.tabsClick(!1,0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1),a("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u7528\u6237\u540D")},model:{value:t.approvalName,callback:function(e){t.approvalName=e},expression:"approvalName"}}),a("Button",{directives:[{name:"show",rawName:"v-show",value:!t.isShowIcon,expression:"!isShowIcon"}],attrs:{type:"primary",loading:t.loadIng,icon:"ios-search"},on:{click:function(e){return t.tabsClick(!1,0)}}},[t._v(t._s(t.$L("\u641C\u7D22")))]),a("Button",{directives:[{name:"show",rawName:"v-show",value:t.isShowIcon,expression:"isShowIcon"}],attrs:{type:"primary",loading:t.loadIng,icon:"ios-search"},on:{click:function(e){return t.tabsClick(!1,0)}}})],1)]),t.loadIng&&t.unreadList.length==0?a("div",{staticClass:"approve-load"},[a("Loading")],1):t.unreadList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list",on:{scroll:t.handleScroll}},[t._l(t.unreadList,function(e,s){return a("div",{on:{click:function(o){return o.stopPropagation(),t.clickList(e,s)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),t.unreadList.length1?a("FormItem",{attrs:{prop:"department_id",label:t.$L("\u9009\u62E9\u90E8\u95E8")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8")},model:{value:t.addData.department_id,callback:function(e){t.$set(t.addData,"department_id",e)},expression:"addData.department_id"}},t._l(t.departmentList,function(e,s){return a("Option",{key:s,attrs:{value:e.id}},[t._v(t._s(e.name))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"applyType",label:t.$L("\u7533\u8BF7\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B")},model:{value:t.addData.applyType,callback:function(e){t.$set(t.addData,"applyType",e)},expression:"addData.applyType"}},t._l(t.procdefList,function(e,s){return a("Option",{key:s,attrs:{value:e.name}},[t._v(t._s(e.name))])}),1)],1),(t.addData.applyType||"").indexOf("\u8BF7\u5047")!==-1?a("FormItem",{attrs:{prop:"type",label:t.$L("\u5047\u671F\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B")},model:{value:t.addData.type,callback:function(e){t.$set(t.addData,"type",e)},expression:"addData.type"}},t._l(t.selectTypes,function(e,s){return a("Option",{key:s,attrs:{value:e}},[t._v(t._s(t.$L(e)))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"startTime",label:t.$L("\u5F00\u59CB\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4")},on:{"on-change":function(e){t.addData.startTime=e}},model:{value:t.addData.startTime,callback:function(e){t.$set(t.addData,"startTime",e)},expression:"addData.startTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeHour,callback:function(e){t.$set(t.addData,"startTimeHour",e)},expression:"addData.startTimeHour"}},t._l(24,function(e,s){return a("Option",{key:s,attrs:{value:e-1<10?"0"+(e-1):e-1}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeMinute,callback:function(e){t.$set(t.addData,"startTimeMinute",e)},expression:"addData.startTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"endTime",label:t.$L("\u7ED3\u675F\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4")},on:{"on-change":function(e){t.addData.endTime=e}},model:{value:t.addData.endTime,callback:function(e){t.$set(t.addData,"endTime",e)},expression:"addData.endTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeHour,callback:function(e){t.$set(t.addData,"endTimeHour",e)},expression:"addData.endTimeHour"}},t._l(24,function(e,s){return a("Option",{key:s,attrs:{value:e-1<10?"0"+(e-1):e-1+""}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeMinute,callback:function(e){t.$set(t.addData,"endTimeMinute",e)},expression:"addData.endTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"description",label:t.$L("\u4E8B\u7531")}},[a("Input",{attrs:{type:"textarea"},model:{value:t.addData.description,callback:function(e){t.$set(t.addData,"description",e)},expression:"addData.description"}})],1),a("FormItem",{attrs:{prop:"other",label:t.$L("\u56FE\u7247")}},[a("ImgUpload",{attrs:{num:3,width:2e3,height:2e3,whcut:0},model:{value:t.addData.other,callback:function(e){t.$set(t.addData,"other",e)},expression:"addData.other"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onInitiate}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1),a("ApproveExport",{model:{value:t.exportApproveShow,callback:function(e){t.exportApproveShow=e},expression:"exportApproveShow"}})],1)},P=[];const N={components:{list:S,listDetails:u,DrawerOverlay:c,ImgUpload:m,ApproveSetting:I,ApproveExport:f},name:"approve",data(){return{showType:1,exportApproveShow:!1,isShowIcon:!1,modalTransferIndex:window.modalTransferIndex,minDate:new Date(2020,0,1),maxDate:new Date(2025,10,1),currentDate:new Date(2021,0,17),procdefList:[],page:1,pageSize:10,total:0,noText:"",loadIng:!1,addLoadIng:!1,tabsValue:"",approvalType:"all",approvalName:"",approvalList:[{value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")}],searchState:"all",searchStateList:[{value:"all",label:this.$L("\u5168\u90E8\u72B6\u6001")},{value:1,label:this.$L("\u5BA1\u6279\u4E2D")},{value:2,label:this.$L("\u5DF2\u901A\u8FC7")},{value:3,label:this.$L("\u5DF2\u62D2\u7EDD")},{value:4,label:this.$L("\u5DF2\u64A4\u56DE")}],unreadList:[],unreadPage:1,unreadTotal:0,unreadLoad:!1,doneList:[],donePage:1,doneLoad:!1,doneTotal:0,notifyList:[],notifyPage:1,notifyLoad:!1,notifyTotal:0,initiatedList:[],initiatedPage:1,initiatedLoad:!1,initiatedTotal:0,details:{},detailsShow:!1,addTitle:"",addShow:!1,startTimeOpen:!1,endTimeOpen:!1,addData:{department_id:0,applyType:"",type:"",startTime:"2023-04-20",startTimeHour:"09",startTimeMinute:"00",endTime:"2023-04-20",endTimeHour:"18",endTimeMinute:"00",other:""},addRule:{department_id:{type:"number",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01"),trigger:"change"},applyType:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B\uFF01"),trigger:"change"},type:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B\uFF01"),trigger:"change"},startTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF01"),trigger:"change"},endTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\uFF01"),trigger:"change"},description:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4E8B\u7531\uFF01"),trigger:"change"}},selectTypes:["\u5E74\u5047","\u4E8B\u5047","\u75C5\u5047","\u8C03\u4F11","\u4EA7\u5047","\u966A\u4EA7\u5047","\u5A5A\u5047","\u4E27\u5047","\u54FA\u4E73\u5047"],showDateTime:!1}},computed:{..._(["wsMsg","userInfo","userIsAdmin","windowWidth"]),departmentList(){let t=(this.userInfo.department_name||"").split(",");return(this.userInfo.department||[]).map((i,a)=>({id:i,name:t[a]}))}},watch:{$route(t){t.name=="manage-approve"&&this.init()},wsMsg:{handler(t){var o,n;const{type:i,action:a,mode:e,data:s}=t;switch(i){case"approve":a=="unread"&&this.tabsClick();break;case"dialog":e=="add"&&((n=(o=s==null?void 0:s.msg)==null?void 0:o.text)==null?void 0:n.indexOf("open-approve-details"))!=-1&&this.tabsClick();break}},deep:!0},addShow(t){t||(this.addData.other="")},showType(t){t==1&&this.init()},windowWidth(t){this.isShowIcon=t<515}},activated(){this.showType=1},mounted(){this.tabsValue="unread",this.init()},methods:{init(){this.tabsClick(),this.getProcdefList(),this.tabsValue!="unread"&&this.getUnreadList(),this.addData.department_id=this.userInfo.department[0]||0,this.addData.startTime=this.addData.endTime=this.getCurrentDate(),this.isShowIcon=this.windowWidth<515},getProcdefList(){return new Promise((t,i)=>{this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:a})=>{this.procdefList=a.rows||[],this.approvalList=this.procdefList.map(e=>({value:e.name,label:e.name})),this.approvalList.unshift({value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")}),t()}).catch(({msg:a})=>{$A.modalError(a),i()})})},getCurrentDate(){const t=new Date,i=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),e=String(t.getDate()).padStart(2,"0");return`${i}-${a}-${e}`},tabsClick(t,i=1e3){!t&&this.__tabsClick&&i>0||(this.__tabsClick=setTimeout(()=>{this.__tabsClick=null},i),this.tabsValue=t||this.tabsValue,t&&(this.approvalType=this.searchState="all",this.approvalName=""),this.detailsShow=!1,this.loadIng=!0,this.tabsValue=="unread"&&(t===!1&&(this.unreadPage=1,this.unreadList=[]),this.getUnreadList()),this.tabsValue=="done"&&(t===!1&&(this.donePage=1,this.doneList=[]),this.getDoneList()),this.tabsValue=="notify"&&(t===!1&&(this.notifyPage=1,this.notifyList=[]),this.getNotifyList()),this.tabsValue=="initiated"&&(t===!1&&(this.initiatedPage=1,this.initiatedList=[]),this.getInitiatedList()))},clickList(t){if(this.unreadList.map(i=>{i._active=!1}),this.doneList.map(i=>{i._active=!1}),this.notifyList.map(i=>{i._active=!1}),this.initiatedList.map(i=>{i._active=!1}),window.innerWidth<426){this.goForward({name:"manage-approve-details",query:{id:t.id}});return}window.innerWidth<1010?this.detailsShow=!0:t._active=!0,this.details={},this.$nextTick(()=>{this.details=t})},handleScroll(t){t.target.scrollTop+t.target.clientHeight>=t.target.scrollHeight&&(this.tabsValue=="unread"&&!this.unreadLoad&&this.unreadList.length{this.updateData("unread",i,t)}).catch(i=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.unreadLoad=!1})},getDoneList(t="init"){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findTask",data:{page:t=="scroll"?this.donePage:1,page_size:t=="scroll"?this.pageSize:this.donePage*this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,username:this.approvalName}}).then(({data:i})=>{this.updateData("done",i,t)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.doneLoad=!1})},getNotifyList(t){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findProcNotify",data:{page:t=="scroll"?this.notifyPage:1,page_size:t=="scroll"?this.pageSize:this.notifyPage*this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,username:this.approvalName}}).then(({data:i})=>{this.updateData("notify",i,t)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.notifyLoad=!1})},getInitiatedList(t){this.$store.dispatch("call",{method:"post",url:"approve/process/startByMyselfAll",data:{page:t=="scroll"?this.initiatedPage:1,page_size:t=="scroll"?this.pageSize:this.initiatedPage*this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,state:this.searchState=="all"?"":this.searchState,username:this.approvalName}}).then(({data:i})=>{this.updateData("initiated",i,t)}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng=!1,this.initiatedLoad=!1})},addApply(){this.addLoadIng=!0,this.$store.dispatch("call",{url:"users/basic",data:{userid:[this.userInfo.userid]},skipAuthError:!0}).then(({data:t})=>{var i;this.addData.department_id=((i=t[0])==null?void 0:i.department[0])||0,this.getProcdefList().then(a=>{this.addTitle=this.$L("\u6DFB\u52A0\u7533\u8BF7"),this.addShow=!0,this.addLoadIng=!1}).catch(a=>{this.addLoadIng=!1})}).catch(({msg:t})=>{this.addLoadIng=!1,$A.modalError(t)})},updateData(t,i,a){let e=t+"List";if(this[t+"Total"]=i.total,a!="scroll"?this[e]=i.rows:i.rows.map(s=>{this[e].map(o=>o.id).indexOf(s.id)==-1&&this[e].push(s)}),window.innerWidth>1010){let s=this[e].map((o,n)=>o._active?n:-1).filter(o=>o>-1)[0]||0;this[e].length>0&&(this[e][s]._active=!0,this.tabsValue==t&&this.$nextTick(()=>{this.details=this[e][s]||{}}))}},onInitiate(){this.$refs.initiateRef.validate(t=>{if(t){this.loadIng=!0;var i=JSON.parse(JSON.stringify(this.addData));i.startTime=i.startTime+" "+i.startTimeHour+":"+i.startTimeMinute,i.endTime=i.endTime+" "+i.endTimeHour+":"+i.endTimeMinute,this.addData.other&&(i.other=this.addData.other.map(a=>a.path).join(",")),this.$store.dispatch("call",{url:"approve/process/start",data:{proc_name:i.applyType,department_id:i.department_id,var:JSON.stringify(i)},method:"post"}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.initiateRef.resetFields(),this.tabsValue="initiated",this.initiatedList.map(s=>{s._active=!1}),this.$nextTick(()=>{this.tabsClick(!1,0)})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng=!1})}})}}},p={};var A=r(N,D,P,!1,O,null,null,null);function O(t){for(let i in p)this[i]=p[i]}var wt=function(){return A.exports}();export{wt as default}; diff --git a/public/js/build/index.d312a146.js b/public/js/build/index.580630c2.js similarity index 99% rename from public/js/build/index.d312a146.js rename to public/js/build/index.580630c2.js index 9ab3f5f71..76553d971 100644 --- a/public/js/build/index.d312a146.js +++ b/public/js/build/index.580630c2.js @@ -1,4 +1,4 @@ -import{t as br,g as Ls,n as gl}from"./app.f8a6fa5e.js";import{I as Ts}from"./ImgUpload.d82fa303.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var Te=navigator.userAgent,ml=navigator.platform,gt=/gecko\/\d/i.test(Te),yl=/MSIE \d/.test(Te),bl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te),Zr=/Edge\/(\d+)/.exec(Te),re=yl||bl||Zr,ce=re&&(yl?document.documentMode||6:+(Zr||bl)[1]),Le=!Zr&&/WebKit\//.test(Te),Ms=Le&&/Qt\/\d+\.\d+/.test(Te),On=!Zr&&/Chrome\//.test(Te),Xe=/Opera\//.test(Te),wl=/Apple Computer/.test(navigator.vendor),Ds=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Te),As=/PhantomJS/.test(Te),Qr=!Zr&&/AppleWebKit/.test(Te)&&/Mobile\/\w+/.test(Te),In=/Android/.test(Te),zr=Qr||In||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Te),Ye=Qr||/Mac/.test(ml),Fs=/\bCrOS\b/.test(Te),Es=/win/i.test(ml),Nt=Xe&&Te.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1]));Nt&&Nt>=15&&(Xe=!1,Le=!0);var Fo=Ye&&(Ms||Xe&&(Nt==null||Nt<12.11)),Ii=gt||re&&ce>=9;function Pr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Rt=function(e,t){var r=e.className,n=Pr(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function mt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Ie(e,t){return mt(e).appendChild(t)}function G(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}var bt=function(){this.id=null,this.f=null,this.time=0,this.handler=Hn(this.onTimeout,this)};bt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};bt.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var hn=[""];function Hi(e){for(;hn.length<=e;)hn.push(ie(hn)+" ");return hn[e]}function ie(e){return e[e.length-1]}function Pn(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Os.test(e))}function bn(e,t){return t?t.source.indexOf("\\w")>-1&&vi(e)?!0:t.test(e):vi(e)}function No(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Is=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gi(e){return e.charCodeAt(0)>=768&&Is.test(e)}function Cl(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Hs(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),l.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Lr=null;function Br(e,t,r){var n;Lr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Lr=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Lr=i)}return n!=null?n:Lr}var zs=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,p){this.level=u,this.from=h,this.to=p}return function(u,h){var p=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!n.test(u))return!1;for(var b=u.length,y=[],k=0;k-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function de(e,t){var r=zi(e,t);if(!!r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function hr(e){e.prototype.on=function(t,r){X(this,t,r)},e.prototype.off=function(t,r){Oe(this,t,r)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Tl(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function mi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Rr(e){Ae(e),Tl(e)}function Pi(e){return e.target||e.srcElement}function Ml(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var Ps=function(){if(re&&ce<9)return!1;var e=G("div");return"draggable"in e||"dragDrop"in e}(),ui;function Ws(e){if(ui==null){var t=G("span","\u200B");Ie(e,G("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ui=t.offsetWidth<=1&&t.offsetHeight>2&&!(re&&ce<8))}var r=ui?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var fi;function _s(e){if(fi!=null)return fi;var t=Ie(e,document.createTextNode("A\u062EA")),r=It(t,0,1).getBoundingClientRect(),n=It(t,1,2).getBoundingClientRect();return mt(e),!r||r.left==r.right?!1:fi=n.right-r.right<3}var Wi=` +import{t as br,g as Ls,n as gl}from"./app.57070a0d.js";import{I as Ts}from"./ImgUpload.b233effb.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var Te=navigator.userAgent,ml=navigator.platform,gt=/gecko\/\d/i.test(Te),yl=/MSIE \d/.test(Te),bl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te),Zr=/Edge\/(\d+)/.exec(Te),re=yl||bl||Zr,ce=re&&(yl?document.documentMode||6:+(Zr||bl)[1]),Le=!Zr&&/WebKit\//.test(Te),Ms=Le&&/Qt\/\d+\.\d+/.test(Te),On=!Zr&&/Chrome\//.test(Te),Xe=/Opera\//.test(Te),wl=/Apple Computer/.test(navigator.vendor),Ds=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Te),As=/PhantomJS/.test(Te),Qr=!Zr&&/AppleWebKit/.test(Te)&&/Mobile\/\w+/.test(Te),In=/Android/.test(Te),zr=Qr||In||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Te),Ye=Qr||/Mac/.test(ml),Fs=/\bCrOS\b/.test(Te),Es=/win/i.test(ml),Nt=Xe&&Te.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1]));Nt&&Nt>=15&&(Xe=!1,Le=!0);var Fo=Ye&&(Ms||Xe&&(Nt==null||Nt<12.11)),Ii=gt||re&&ce>=9;function Pr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Rt=function(e,t){var r=e.className,n=Pr(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function mt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Ie(e,t){return mt(e).appendChild(t)}function G(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}var bt=function(){this.id=null,this.f=null,this.time=0,this.handler=Hn(this.onTimeout,this)};bt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};bt.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var hn=[""];function Hi(e){for(;hn.length<=e;)hn.push(ie(hn)+" ");return hn[e]}function ie(e){return e[e.length-1]}function Pn(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Os.test(e))}function bn(e,t){return t?t.source.indexOf("\\w")>-1&&vi(e)?!0:t.test(e):vi(e)}function No(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Is=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gi(e){return e.charCodeAt(0)>=768&&Is.test(e)}function Cl(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Hs(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),l.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Lr=null;function Br(e,t,r){var n;Lr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Lr=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Lr=i)}return n!=null?n:Lr}var zs=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,p){this.level=u,this.from=h,this.to=p}return function(u,h){var p=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!n.test(u))return!1;for(var b=u.length,y=[],k=0;k-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function de(e,t){var r=zi(e,t);if(!!r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function hr(e){e.prototype.on=function(t,r){X(this,t,r)},e.prototype.off=function(t,r){Oe(this,t,r)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Tl(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function mi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Rr(e){Ae(e),Tl(e)}function Pi(e){return e.target||e.srcElement}function Ml(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var Ps=function(){if(re&&ce<9)return!1;var e=G("div");return"draggable"in e||"dragDrop"in e}(),ui;function Ws(e){if(ui==null){var t=G("span","\u200B");Ie(e,G("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ui=t.offsetWidth<=1&&t.offsetHeight>2&&!(re&&ce<8))}var r=ui?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var fi;function _s(e){if(fi!=null)return fi;var t=Ie(e,document.createTextNode("A\u062EA")),r=It(t,0,1).getBoundingClientRect(),n=It(t,1,2).getBoundingClientRect();return mt(e),!r||r.left==r.right?!1:fi=n.right-r.right<3}var Wi=` b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(` `,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Bs=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Rs=function(){var e=G("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ci=null;function Us(e){if(ci!=null)return ci;var t=Ie(e,G("span","x")),r=t.getBoundingClientRect(),n=It(t,0,1).getBoundingClientRect();return ci=Math.abs(r.left-n.left)>1}var _i={},er={};function Ks(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),_i[e]=t}function qs(e,t){er[e]=t}function Sn(e){if(typeof e=="string"&&er.hasOwnProperty(e))e=er[e];else if(e&&typeof e.name=="string"&&er.hasOwnProperty(e.name)){var t=er[e.name];typeof t=="string"&&(t={name:t}),e=xl(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Sn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Sn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Bi(e,t){t=Sn(t);var r=_i[t.name];if(!r)return Bi(e,"text/plain");var n=r(e,t);if(ir.hasOwnProperty(t.name)){var i=ir[t.name];for(var o in i)!i.hasOwnProperty(o)||(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var ir={};function Gs(e,t){var r=ir.hasOwnProperty(e)?ir[e]:ir[e]={};Ht(t,r)}function zt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ri(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Dl(e,t,r){return e.startState?e.startState(t,r):!0}var pe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};pe.prototype.eol=function(){return this.pos>=this.string.length};pe.prototype.sol=function(){return this.pos==this.lineStart};pe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0};pe.prototype.next=function(){if(this.post};pe.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t};pe.prototype.skipToEnd=function(){this.pos=this.string.length};pe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0};pe.prototype.backUp=function(e){this.pos-=e};pe.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}};pe.prototype.current=function(){return this.string.slice(this.start,this.pos)};pe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};pe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)};pe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function q(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?F(r,q(e,r).text.length):Xs(t,q(e,t.line).text.length)}function Xs(e,t){var r=e.ch;return r==null||r>t?F(e.line,t):r<0?F(e.line,0):e}function Oo(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t};Ze.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}};Ze.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--};Ze.fromSaved=function(e,t,r){return t instanceof Bn?new Ze(e,zt(e.mode,t.state),r,t.lookAhead):new Ze(e,zt(e.mode,t),r)};Ze.prototype.save=function(e){var t=e!==!1?zt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Bn(t,this.maxLookAhead):t};function Fl(e,t,r,n){var i=[e.state.modeGen],o={};Po(e,t.text,e.doc.mode,r,function(u,h){return i.push(u,h)},o,n);for(var l=r.state,a=function(u){r.baseTokens=i;var h=e.state.overlays[u],p=1,b=0;r.state=!0,Po(e,t.text,h.mode,r,function(y,k){for(var S=p;by&&i.splice(p,1,y,i[p+1],D),p+=2,b=Math.min(y,D)}if(!!k)if(h.opaque)i.splice(S,p-S,y,"overlay "+k),p=S+2;else for(;Se.options.maxHighlightLength&&zt(e.doc.mode,n.state),o=Fl(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Jr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Ze(n,!0,t);var o=Ys(e,t,r),l=o>n.first&&q(n,o-1).stateAfter,a=l?Ze.fromSaved(n,l,o):new Ze(n,Dl(n.mode),o);return n.iter(o,t,function(s){Ki(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Io=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Ho(e,t,r,n){var i=e.doc,o=i.mode,l;t=V(i,t);var a=q(i,t.line),s=Jr(e,t.line,r),u=new pe(a.text,e.options.tabSize,s),h;for(n&&(h=[]);(n||u.pose.options.maxHighlightLength?(a=!1,l&&Ki(e,t,n,h.pos),h.pos=t.length,p=null):p=zo(qi(r,h,n.state,b),o),b){var y=b[0].name;y&&(p="m-"+(p?y+" "+p:y))}if(!a||u!=p){for(;sl;--a){if(a<=o.first)return o.first;var s=q(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof Bn?u.lookAhead:0)<=o.modeFrontier))return a;var h=Pe(s.text,null,e.options.tabSize);(i==null||n>h)&&(i=a-1,n=h)}return i}function js(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=q(e,n).stateAfter;if(i&&(!(i instanceof Bn)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Rn(l,o.from,s?null:o.to))}}return n}function eu(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var E=0;E0)){var h=[s,1],p=Z(u.from,a.from),b=Z(u.to,a.to);(p<0||!l.inclusiveLeft&&!p)&&h.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&h.push({from:a.to,to:u.to}),i.splice.apply(i,h),s+=h.length-3}}return i}function Il(e){var t=e.markedSpans;if(!!t){for(var r=0;rt)&&(!n||Gi(n,o.marker)<0)&&(n=o.marker)}return n}function _o(e,t,r,n,i){var o=q(e,t),l=it&&o.markedSpans;if(l)for(var a=0;a=0&&p<=0||h<=0&&p>=0)&&(h<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?Z(u.to,r)>=0:Z(u.to,r)>0)||h>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?Z(u.from,n)<=0:Z(u.from,n)<0)))return!0}}}function Je(e){for(var t;t=Pl(e);)e=t.find(-1,!0).line;return e}function nu(e){for(var t;t=Un(e);)e=t.find(1,!0).line;return e}function iu(e){for(var t,r;t=Un(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Xi(e,t){var r=q(e,t),n=Je(r);return r==n?t:le(n)}function Wl(e,t){if(t>e.lastLine())return t;var r=q(e,t),n;if(!Ct(e,r))return t;for(;n=Un(r);)r=n.find(1,!0).line;return le(r)+1}function Ct(e,t){var r=it&&t.markedSpans;if(r){for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var ar=function(e,t,r){this.text=e,Hl(this,t),this.height=r?r(this):1};ar.prototype.lineNo=function(){return le(this)};hr(ar);function ou(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Il(e),Hl(e,r);var i=n?n(e):1;i!=e.height&&Qe(e,i)}function lu(e){e.parent=null,Il(e)}var au={},su={};function Bo(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?su:au;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function _l(e,t){var r=nr("span",null,null,Le?"padding-right: .1px":null),n={pre:nr("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=fu,_s(e.display.measure)&&(l=st(o,e.doc.direction))&&(n.addToken=hu(n.addToken,l)),n.map=[];var a=t!=e.display.externalMeasured&&le(o);du(o,n,El(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=ai(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=ai(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Ws(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Le){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return de(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=ai(n.pre.className,n.textClass||"")),n}function uu(e){var t=G("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function fu(e,t,r,n,i,o,l){if(!!t){var a=e.splitSpaces?cu(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),re&&ce<9&&(u=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var p=0;;){s.lastIndex=p;var b=s.exec(t),y=b?b.index-p:t.length-p;if(y){var k=document.createTextNode(a.slice(p,p+y));re&&ce<9?h.appendChild(G("span",[k])):h.appendChild(k),e.map.push(e.pos,e.pos+y,k),e.col+=y,e.pos+=y}if(!b)break;p+=y+1;var S=void 0;if(b[0]==" "){var D=e.cm.options.tabSize,A=D-e.col%D;S=h.appendChild(G("span",Hi(A),"cm-tab")),S.setAttribute("role","presentation"),S.setAttribute("cm-text"," "),e.col+=A}else b[0]=="\r"||b[0]==` diff --git a/public/js/build/index.04b74879.js b/public/js/build/index.92bfd6b8.js similarity index 98% rename from public/js/build/index.04b74879.js rename to public/js/build/index.92bfd6b8.js index 34c1b7c19..611961af0 100644 --- a/public/js/build/index.04b74879.js +++ b/public/js/build/index.92bfd6b8.js @@ -1 +1 @@ -import{n}from"./app.f8a6fa5e.js";var l=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:(i.stopPropagation(),i.preventDefault(),e.resizeDown.apply(null,arguments))}}})},u=[];const m={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const t=this.beforeResize();t&&t.then?t.then(s=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let t=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,s=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let i;this.placement=="bottom"?i=this.reverse?this.tmpSize-s:this.tmpSize+s:i=this.reverse?this.tmpSize-t:this.tmpSize+t,this.min>0&&(i=Math.max(this.min,i)),this.max>0&&(i=Math.min(this.max,i)),this.$emit("input",i)}this.$emit("on-change",{event:"move",diff:{x:t,y:s},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var c=n(m,l,u,!1,d,null,null,null);function d(e){for(let t in o)this[t]=o[t]}var h=function(){return c.exports}(),f=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[s("div",{staticClass:"overlay-close"},[s("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){return i.stopPropagation(),e.onClose.apply(null,arguments)}}},[s("svg",{staticClass:"icon fill-current",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",fill:"none",role:"img"}},[s("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])])]),e.resize?s("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(i){e.dynamicSize=i},expression:"dynamicSize"}}):e._e(),s("div",{staticClass:"overlay-content"},[e._t("default")],2)],1)},p=[];const v={name:"DrawerOverlayView",components:{ResizeLine:h},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},r={};var z=n(v,f,p,!1,_,null,null,null);function _(e){for(let t in r)this[t]=r[t]}var y=function(){return z.exports}(),b=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("Modal",{ref:"modal",attrs:{closable:e.escClosable,"mask-closable":e.maskClosable,"footer-hide":!0,"transition-names":[e.$A.isAndroid()?"":`drawer-slide-${e.transitionName}`,""],beforeClose:e.beforeClose,fullscreen:"","class-name":e.modalClass},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.isFullscreen?e._t("default"):s("DrawerOverlayView",{attrs:{placement:e.transitionName,size:e.size,minSize:e.minSize,resize:e.resize},on:{"on-close":e.onClose}},[e._t("default")],2)],2)},w=[];const g={name:"DrawerOverlay",components:{DrawerOverlayView:y},props:{value:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value,isFullscreen:!1}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)},windowWidth(e){this.isFullscreen=e<500&&this.placement!="bottom"}},computed:{transitionName(){return this.isFullscreen?"bottom":this.placement},modalClass(){return this.isFullscreen?"common-drawer-modal":this.className?`common-drawer-overlay ${this.className} ${this.transitionName}`:`common-drawer-overlay ${this.transitionName}`}},mounted(){this.isFullscreen=this.windowWidth<500&&this.placement!="bottom"},methods:{onClose(){this.$refs.modal.close()}}},a={};var S=n(g,b,w,!1,C,null,null,null);function C(e){for(let t in a)this[t]=a[t]}var x=function(){return S.exports}();export{x as D}; +import{n}from"./app.57070a0d.js";var l=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:(i.stopPropagation(),i.preventDefault(),e.resizeDown.apply(null,arguments))}}})},u=[];const m={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const t=this.beforeResize();t&&t.then?t.then(s=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let t=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,s=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let i;this.placement=="bottom"?i=this.reverse?this.tmpSize-s:this.tmpSize+s:i=this.reverse?this.tmpSize-t:this.tmpSize+t,this.min>0&&(i=Math.max(this.min,i)),this.max>0&&(i=Math.min(this.max,i)),this.$emit("input",i)}this.$emit("on-change",{event:"move",diff:{x:t,y:s},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var c=n(m,l,u,!1,d,null,null,null);function d(e){for(let t in o)this[t]=o[t]}var h=function(){return c.exports}(),f=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[s("div",{staticClass:"overlay-close"},[s("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){return i.stopPropagation(),e.onClose.apply(null,arguments)}}},[s("svg",{staticClass:"icon fill-current",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",fill:"none",role:"img"}},[s("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])])]),e.resize?s("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(i){e.dynamicSize=i},expression:"dynamicSize"}}):e._e(),s("div",{staticClass:"overlay-content"},[e._t("default")],2)],1)},p=[];const v={name:"DrawerOverlayView",components:{ResizeLine:h},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},r={};var z=n(v,f,p,!1,_,null,null,null);function _(e){for(let t in r)this[t]=r[t]}var y=function(){return z.exports}(),b=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("Modal",{ref:"modal",attrs:{closable:e.escClosable,"mask-closable":e.maskClosable,"footer-hide":!0,"transition-names":[e.$A.isAndroid()?"":`drawer-slide-${e.transitionName}`,""],beforeClose:e.beforeClose,fullscreen:"","class-name":e.modalClass},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.isFullscreen?e._t("default"):s("DrawerOverlayView",{attrs:{placement:e.transitionName,size:e.size,minSize:e.minSize,resize:e.resize},on:{"on-close":e.onClose}},[e._t("default")],2)],2)},w=[];const g={name:"DrawerOverlay",components:{DrawerOverlayView:y},props:{value:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value,isFullscreen:!1}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)},windowWidth(e){this.isFullscreen=e<500&&this.placement!="bottom"}},computed:{transitionName(){return this.isFullscreen?"bottom":this.placement},modalClass(){return this.isFullscreen?"common-drawer-modal":this.className?`common-drawer-overlay ${this.className} ${this.transitionName}`:`common-drawer-overlay ${this.transitionName}`}},mounted(){this.isFullscreen=this.windowWidth<500&&this.placement!="bottom"},methods:{onClose(){this.$refs.modal.close()}}},a={};var S=n(g,b,w,!1,C,null,null,null);function C(e){for(let t in a)this[t]=a[t]}var x=function(){return S.exports}();export{x as D}; diff --git a/public/js/build/index.b5f44692.js b/public/js/build/index.e3114e7c.js similarity index 85% rename from public/js/build/index.b5f44692.js rename to public/js/build/index.e3114e7c.js index d4324a6de..1127e5981 100644 --- a/public/js/build/index.b5f44692.js +++ b/public/js/build/index.e3114e7c.js @@ -1 +1 @@ -import{m as l}from"./vuex.cc7cb26e.js";import{l as m}from"./le5le-store.bd86c9e9.js";import{a as c}from"./axios.6ec123f8.js";import{n as o}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-nav-box"},[t._t("left",function(){return[e("div",{staticClass:"nav-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])])]}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.title))]),t._t("right")],2)},u=[];const d={name:"MobileNavTitle",props:{title:{default:""},beforeBack:{type:Function}},methods:{onBack(){if(typeof this.beforeBack=="function"){const t=this.beforeBack();t&&t.then&&t.then(()=>{this.goBack()});return}this.goBack()}}},n={};var h=o(d,p,u,!1,v,"305e6ddf",null,null);function v(t){for(let i in n)this[i]=n[i]}var _=function(){return h.exports}(),g=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-setting"},[e("PageTitle",{attrs:{title:t.titleNameRoute}}),e("div",{staticClass:"setting-head"},[e("div",{staticClass:"setting-titbox"},[e("div",{staticClass:"setting-title"},[e("h1",[t._v(t._s(t.settingTitleName))])])])]),e("div",{staticClass:"setting-box"},[e("div",{staticClass:"setting-menu"},[e("MobileNavTitle",{attrs:{title:t.$L("\u8BBE\u7F6E")}}),e("ul",[t._l(t.menu,function(s,r){return e("li",{key:r,class:t.classNameRoute(s.path,s.divided),on:{click:function(b){return t.toggleRoute(s.path)}}},[t._v(t._s(t.$L(s.name)))])}),t.clientNewVersion?e("li",{staticClass:"flex",class:t.classNameRoute("version",!0),on:{click:function(s){return t.toggleRoute("version")}}},[e("AutoTip",{attrs:{disabled:""}},[t._v(t._s(t.$L("\u7248\u672C"))+": "+t._s(t.version))]),e("Badge",{attrs:{text:t.clientNewVersion}})],1):e("li",{staticClass:"version divided",on:{click:t.onVersion}},[e("AutoTip",[t._v(t._s(t.$L("\u7248\u672C"))+": "+t._s(t.version))])],1)],2)],1),e("transition",{attrs:{name:t.$isEEUiApp?"mobile-dialog":"none"}},[t.showContent?e("div",{staticClass:"setting-content"},[e("MobileNavTitle",{attrs:{title:t.settingTitleName}}),e("div",{staticClass:"setting-content-title"},[t._v(t._s(t.titleNameRoute))]),e("div",{staticClass:"setting-content-view"},[e("router-view",{staticClass:"setting-router-view"})],1)],1):t._e()])],1)],1)},f=[];const $={components:{MobileNavTitle:_},data(){return{version:window.systemInfo.version}},mounted(){this.$isEEUiApp&&(this.version=`${window.systemInfo.version} (${$A.eeuiAppLocalVersion()})`)},computed:{...l(["userInfo","userIsAdmin","clientNewVersion","systemConfig"]),routeName(){return this.$route.name},showContent(){return this.$route.path.match(/^\/manage\/setting\/\w+$/)},menu(){const t=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E",divided:!0},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"}];return(this.$Electron||this.$isEEUiApp)&&t.push({path:"keyboard",name:"\u952E\u76D8\u8BBE\u7F6E",desc:" (Beta)"}),$A.isDooServer()&&this.$isEEUiApp&&t.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin&&t.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"license",name:"License Key"}),t.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),t},titleNameRoute(){const{routeName:t,menu:i}=this;let e="";return i.some(s=>{if(t===`manage-setting-${s.path}`)return e=`${this.$L(s.name)}${s.desc||""}`,!0}),e||this.$L("\u8BBE\u7F6E")},settingTitleName(){return this.windowPortrait?this.titleNameRoute:this.$L("\u8BBE\u7F6E")}},watch:{routeName:{handler(t){t==="manage-setting"&&this.windowLandscape&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0}},methods:{toggleRoute(t){switch(t){case"clearCache":$A.modalConfirm({title:"\u6E05\u9664\u7F13\u5B58",content:"\u4F60\u786E\u5B9A\u8981\u6E05\u9664\u7F13\u5B58\u5417\uFF1F",onOk:()=>{$A.IDBSet("clearCache","handle").then(i=>{$A.reloadUrl()})}});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\u5417\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});break;case"version":m.Store.set("updateNotification",null);break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:this.goForward({name:"manage-setting-"+t});break}},openPrivacy(){const t=$A.apiUrl("privacy");this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}}):window.open(t)},classNameRoute(t,i){return{active:this.windowLandscape&&this.routeName===`manage-setting-${t}`,divided:!!i}},onVersion(){const t=[];this.getServerVersion().then(i=>{t.push(`${this.$L("\u670D\u52A1\u5668")}: ${$A.getDomain($A.mainUrl())}`),t.push(`${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${i}`),t.push(`${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.version}`),$A.modalInfo({language:!1,title:this.$L("\u7248\u672C\u4FE1\u606F"),content:t.join("
    ")})})},getServerVersion(){return new Promise(t=>{if(/^\d+\.\d+\.\d+$/.test(this.systemConfig.server_version)){t(this.systemConfig.server_version);return}c.get($A.apiUrl("system/version")).then(({status:i,data:e})=>{i===200&&t(e.version)}).catch(i=>{})})}}},a={};var w=o($,g,f,!1,C,null,null,null);function C(t){for(let i in a)this[i]=a[i]}var at=function(){return w.exports}();export{at as default}; +import{m as l}from"./vuex.cc7cb26e.js";import{l as m}from"./le5le-store.b40f9152.js";import{a as c}from"./axios.6ec123f8.js";import{n as o}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-nav-box"},[t._t("left",function(){return[e("div",{staticClass:"nav-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])])]}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.title))]),t._t("right")],2)},u=[];const d={name:"MobileNavTitle",props:{title:{default:""},beforeBack:{type:Function}},methods:{onBack(){if(typeof this.beforeBack=="function"){const t=this.beforeBack();t&&t.then&&t.then(()=>{this.goBack()});return}this.goBack()}}},n={};var h=o(d,p,u,!1,v,"305e6ddf",null,null);function v(t){for(let i in n)this[i]=n[i]}var _=function(){return h.exports}(),g=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-setting"},[e("PageTitle",{attrs:{title:t.titleNameRoute}}),e("div",{staticClass:"setting-head"},[e("div",{staticClass:"setting-titbox"},[e("div",{staticClass:"setting-title"},[e("h1",[t._v(t._s(t.settingTitleName))])])])]),e("div",{staticClass:"setting-box"},[e("div",{staticClass:"setting-menu"},[e("MobileNavTitle",{attrs:{title:t.$L("\u8BBE\u7F6E")}}),e("ul",[t._l(t.menu,function(s,r){return e("li",{key:r,class:t.classNameRoute(s.path,s.divided),on:{click:function(b){return t.toggleRoute(s.path)}}},[t._v(t._s(t.$L(s.name)))])}),t.clientNewVersion?e("li",{staticClass:"flex",class:t.classNameRoute("version",!0),on:{click:function(s){return t.toggleRoute("version")}}},[e("AutoTip",{attrs:{disabled:""}},[t._v(t._s(t.$L("\u7248\u672C"))+": "+t._s(t.version))]),e("Badge",{attrs:{text:t.clientNewVersion}})],1):e("li",{staticClass:"version divided",on:{click:t.onVersion}},[e("AutoTip",[t._v(t._s(t.$L("\u7248\u672C"))+": "+t._s(t.version))])],1)],2)],1),e("transition",{attrs:{name:t.$isEEUiApp?"mobile-dialog":"none"}},[t.showContent?e("div",{staticClass:"setting-content"},[e("MobileNavTitle",{attrs:{title:t.settingTitleName}}),e("div",{staticClass:"setting-content-title"},[t._v(t._s(t.titleNameRoute))]),e("div",{staticClass:"setting-content-view"},[e("router-view",{staticClass:"setting-router-view"})],1)],1):t._e()])],1)],1)},f=[];const $={components:{MobileNavTitle:_},data(){return{version:window.systemInfo.version}},mounted(){this.$isEEUiApp&&(this.version=`${window.systemInfo.version} (${$A.eeuiAppLocalVersion()})`)},computed:{...l(["userInfo","userIsAdmin","clientNewVersion","systemConfig"]),routeName(){return this.$route.name},showContent(){return this.$route.path.match(/^\/manage\/setting\/\w+$/)},menu(){const t=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E",divided:!0},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"}];return(this.$Electron||this.$isEEUiApp)&&t.push({path:"keyboard",name:"\u952E\u76D8\u8BBE\u7F6E",desc:" (Beta)"}),$A.isDooServer()&&this.$isEEUiApp&&t.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin&&t.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"license",name:"License Key"}),t.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),t},titleNameRoute(){const{routeName:t,menu:i}=this;let e="";return i.some(s=>{if(t===`manage-setting-${s.path}`)return e=`${this.$L(s.name)}${s.desc||""}`,!0}),e||this.$L("\u8BBE\u7F6E")},settingTitleName(){return this.windowPortrait?this.titleNameRoute:this.$L("\u8BBE\u7F6E")}},watch:{routeName:{handler(t){t==="manage-setting"&&this.windowLandscape&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0}},methods:{toggleRoute(t){switch(t){case"clearCache":$A.modalConfirm({title:"\u6E05\u9664\u7F13\u5B58",content:"\u4F60\u786E\u5B9A\u8981\u6E05\u9664\u7F13\u5B58\u5417\uFF1F",onOk:()=>{$A.IDBSet("clearCache","handle").then(i=>{$A.reloadUrl()})}});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\u5417\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});break;case"version":m.Store.set("updateNotification",null);break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:this.goForward({name:"manage-setting-"+t});break}},openPrivacy(){const t=$A.apiUrl("privacy");this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}}):window.open(t)},classNameRoute(t,i){return{active:this.windowLandscape&&this.routeName===`manage-setting-${t}`,divided:!!i}},onVersion(){const t=[];this.getServerVersion().then(i=>{t.push(`${this.$L("\u670D\u52A1\u5668")}: ${$A.getDomain($A.mainUrl())}`),t.push(`${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${i}`),t.push(`${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.version}`),$A.modalInfo({language:!1,title:this.$L("\u7248\u672C\u4FE1\u606F"),content:t.join("
    ")})})},getServerVersion(){return new Promise(t=>{if(/^\d+\.\d+\.\d+$/.test(this.systemConfig.server_version)){t(this.systemConfig.server_version);return}c.get($A.apiUrl("system/version")).then(({status:i,data:e})=>{i===200&&t(e.version)}).catch(i=>{})})}}},a={};var w=o($,g,f,!1,C,null,null,null);function C(t){for(let i in a)this[i]=a[i]}var at=function(){return w.exports}();export{at as default}; diff --git a/public/js/build/jquery.7b5830c7.js b/public/js/build/jquery.accd1716.js similarity index 99% rename from public/js/build/jquery.7b5830c7.js rename to public/js/build/jquery.accd1716.js index 8b0f26e2b..8fe82f07d 100644 --- a/public/js/build/jquery.7b5830c7.js +++ b/public/js/build/jquery.accd1716.js @@ -1,4 +1,4 @@ -import{c as Wr}from"./@traptitech.4f5fb92a.js";var kn={exports:{}};/*! +import{c as Wr}from"./@traptitech.363dce05.js";var kn={exports:{}};/*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * diff --git a/public/js/build/katex.0b94f27c.js b/public/js/build/katex.0b94f27c.js new file mode 100644 index 000000000..7680305cc --- /dev/null +++ b/public/js/build/katex.0b94f27c.js @@ -0,0 +1,261 @@ +import{c as Sn}from"./@traptitech.363dce05.js";var An={exports:{}};(function(fa,Mn){(function(ae,fe){fa.exports=fe()})(typeof self!="undefined"?self:Sn,function(){return function(){var X0={};(function(){X0.d=function(l,e){for(var t in e)X0.o(e,t)&&!X0.o(l,t)&&Object.defineProperty(l,t,{enumerable:!0,get:e[t]})}})(),function(){X0.o=function(l,e){return Object.prototype.hasOwnProperty.call(l,e)}}();var ae={};X0.d(ae,{default:function(){return yn}});var fe=function l(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+e,a,n,s=t&&t.loc;if(s&&s.start<=s.end){var u=s.lexer.input;a=s.start,n=s.end,a===u.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var m=u.slice(a,n).replace(/[^]/g,"$&\u0332"),d;a>15?d="\u2026"+u.slice(a-15,a):d=u.slice(0,a);var v;n+15":">","<":"<",'"':""","'":"'"},xa=/[&><"']/g;function wa(l){return String(l).replace(xa,function(e){return ya[e]})}var Ft=function l(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?l(e.body[0]):e:e.type==="font"?l(e.body):e},ka=function(e){var t=Ft(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},Sa=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Aa=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},I={contains:pa,deflt:va,escape:wa,hyphenate:ba,getBaseElem:Ft,isCharacterBox:ka,protocolFromUrl:Aa},pe={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(e){return"#"+e}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(e,t){return t.push(e),t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(e){return Math.max(0,e)},cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(e){return Math.max(0,e)},cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(e){return Math.max(0,e)},cli:"-e, --max-expand ",cliProcessor:function(e){return e==="Infinity"?1/0:parseInt(e)}},globalGroup:{type:"boolean",cli:!1}};function Ma(l){if(l.default)return l.default;var e=l.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var Ge=function(){function l(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in pe)if(pe.hasOwnProperty(r)){var a=pe[r];this[r]=t[r]!==void 0?a.processor?a.processor(t[r]):t[r]:Ma(a)}}var e=l.prototype;return e.reportNonstrict=function(r,a,n){var s=this.strict;if(typeof s=="function"&&(s=s(r,a,n)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+r+"]"),n);s==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+a+" ["+r+"]"))}},e.useStrictBehavior=function(r,a,n){var s=this.strict;if(typeof s=="function")try{s=s(r,a,n)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+a+" ["+r+"]")),!1)},e.isTrusted=function(r){r.url&&!r.protocol&&(r.protocol=I.protocolFromUrl(r.url));var a=typeof this.trust=="function"?this.trust(r):this.trust;return Boolean(a)},l}(),N0=function(){function l(t,r,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=a}var e=l.prototype;return e.sup=function(){return y0[Ba[this.id]]},e.sub=function(){return y0[za[this.id]]},e.fracNum=function(){return y0[Ta[this.id]]},e.fracDen=function(){return y0[Ca[this.id]]},e.cramp=function(){return y0[Da[this.id]]},e.text=function(){return y0[Na[this.id]]},e.isTight=function(){return this.size>=2},l}(),Ve=0,ve=1,j0=2,A0=3,ne=4,m0=5,$0=6,a0=7,y0=[new N0(Ve,0,!1),new N0(ve,0,!0),new N0(j0,1,!1),new N0(A0,1,!0),new N0(ne,2,!1),new N0(m0,2,!0),new N0($0,3,!1),new N0(a0,3,!0)],Ba=[ne,m0,ne,m0,$0,a0,$0,a0],za=[m0,m0,m0,m0,a0,a0,a0,a0],Ta=[j0,A0,ne,m0,$0,a0,$0,a0],Ca=[A0,A0,m0,m0,a0,a0,a0,a0],Da=[ve,ve,A0,A0,m0,m0,a0,a0],Na=[Ve,ve,j0,A0,j0,A0,j0,A0],F={DISPLAY:y0[Ve],TEXT:y0[j0],SCRIPT:y0[ne],SCRIPTSCRIPT:y0[$0]},Ue=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ea(l){for(var e=0;e=a[0]&&l<=a[1])return t.name}return null}var ie=[];Ue.forEach(function(l){return l.blocks.forEach(function(e){return ie.push.apply(ie,e)})});function Rt(l){for(var e=0;e=ie[e]&&l<=ie[e+1])return!0;return!1}var Z0=80,qa=function(e,t){return"M95,"+(622+e+t)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+" -"+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Fa=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+" -"+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ra=function(e,t){return"M983 "+(10+e+t)+` +l`+e/3.13+" -"+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ia=function(e,t){return"M424,"+(2398+e+t)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+` +h400000v`+(40+e)+"h-400000z"},Oa=function(e,t){return"M473,"+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},La=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Ha=function(e,t,r){var a=r-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` +H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},Pa=function(e,t,r){t=1e3*t;var a="";switch(e){case"sqrtMain":a=qa(t,Z0);break;case"sqrtSize1":a=Fa(t,Z0);break;case"sqrtSize2":a=Ra(t,Z0);break;case"sqrtSize3":a=Ia(t,Z0);break;case"sqrtSize4":a=Oa(t,Z0);break;case"sqrtTall":a=Ha(t,Z0,r)}return a},Ga=function(e,t){switch(e){case"\u239C":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"\u239F":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23A2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23A5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23AA":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23D0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},It={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Va=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},le=function(){function l(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var e=l.prototype;return e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){for(var r=document.createDocumentFragment(),a=0;a=5?e=0:l>=3?e=1:e=2,!Ye[e]){var t=Ye[e]={cssEmPerMu:ge.quad[e]/18};for(var r in ge)ge.hasOwnProperty(r)&&(t[r]=ge[r][e])}return Ye[e]}var Ya=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Lt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ht=function(e,t){return t.size<2?e:Ya[e-1][t.size-1]},Pt=function(){function l(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||l.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Lt[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var e=l.prototype;return e.extend=function(r){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in r)r.hasOwnProperty(n)&&(a[n]=r[n]);return new l(a)},e.havingStyle=function(r){return this.style===r?this:this.extend({style:r,size:Ht(this.textSize,r)})},e.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},e.havingSize=function(r){return this.size===r&&this.textSize===r?this:this.extend({style:this.style.text(),size:r,textSize:r,sizeMultiplier:Lt[r-1]})},e.havingBaseStyle=function(r){r=r||this.style.text();var a=Ht(l.BASESIZE,r);return this.size===a&&this.textSize===l.BASESIZE&&this.style===r?this:this.extend({style:r,size:a})},e.havingBaseSizing=function(){var r;switch(this.style.id){case 4:case 5:r=3;break;case 6:case 7:r=1;break;default:r=6}return this.extend({style:this.style.text(),size:r})},e.withColor=function(r){return this.extend({color:r})},e.withPhantom=function(){return this.extend({phantom:!0})},e.withFont=function(r){return this.extend({font:r})},e.withTextFontFamily=function(r){return this.extend({fontFamily:r,font:""})},e.withTextFontWeight=function(r){return this.extend({fontWeight:r,font:""})},e.withTextFontShape=function(r){return this.extend({fontShape:r,font:""})},e.sizingClasses=function(r){return r.size!==this.size?["sizing","reset-size"+r.size,"size"+this.size]:[]},e.baseSizingClasses=function(){return this.size!==l.BASESIZE?["sizing","reset-size"+this.size,"size"+l.BASESIZE]:[]},e.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Wa(this.size)),this._fontMetrics},e.getColor=function(){return this.phantom?"transparent":this.color},l}();Pt.BASESIZE=6;var Xa=Pt,Xe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ja={ex:!0,em:!0,mu:!0},Gt=function(e){return typeof e!="string"&&(e=e.unit),e in Xe||e in ja||e==="ex"},$=function(e,t){var r;if(e.unit in Xe)r=Xe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")r=t.fontMetrics().cssEmPerMu;else{var a;if(t.style.isTight()?a=t.havingStyle(t.style.text()):a=t,e.unit==="ex")r=a.fontMetrics().xHeight;else if(e.unit==="em")r=a.fontMetrics().quad;else throw new M("Invalid unit: '"+e.unit+"'");a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},z=function(e){return+e.toFixed(4)+"em"},E0=function(e){return e.filter(function(t){return t}).join(" ")},Vt=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},Ut=function(e){var t=document.createElement(e);t.className=E0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n",t},se=function(){function l(t,r,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Vt.call(this,t,a,n),this.children=r||[]}var e=l.prototype;return e.setAttribute=function(r,a){this.attributes[r]=a},e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){return Ut.call(this,"span")},e.toMarkup=function(){return Wt.call(this,"span")},l}(),je=function(){function l(t,r,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Vt.call(this,r,n),this.children=a||[],this.setAttribute("href",t)}var e=l.prototype;return e.setAttribute=function(r,a){this.attributes[r]=a},e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){return Ut.call(this,"a")},e.toMarkup=function(){return Wt.call(this,"a")},l}(),$a=function(){function l(t,r,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=a}var e=l.prototype;return e.hasClass=function(r){return I.contains(this.classes,r)},e.toNode=function(){var r=document.createElement("img");r.src=this.src,r.alt=this.alt,r.className="mord";for(var a in this.style)this.style.hasOwnProperty(a)&&(r.style[a]=this.style[a]);return r},e.toMarkup=function(){var r=""+this.alt+"0&&(a=document.createElement("span"),a.style.marginRight=z(this.italic)),this.classes.length>0&&(a=a||document.createElement("span"),a.className=E0(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(a=a||document.createElement("span"),a.style[n]=this.style[n]);return a?(a.appendChild(r),a):r},e.toMarkup=function(){var r=!1,a="0&&(n+="margin-right:"+this.italic+"em;");for(var s in this.style)this.style.hasOwnProperty(s)&&(n+=I.hyphenate(s)+":"+this.style[s]+";");n&&(r=!0,a+=' style="'+I.escape(n)+'"');var u=I.escape(this.text);return r?(a+=">",a+=u,a+="",a):u},l}(),M0=function(){function l(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}var e=l.prototype;return e.toNode=function(){var r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);for(var s=0;s":""},l}(),$e=function(){function l(t){this.attributes=void 0,this.attributes=t||{}}var e=l.prototype;return e.toNode=function(){var r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&a.setAttribute(n,this.attributes[n]);return a},e.toMarkup=function(){var r=" but got "+String(l)+".")}var Ja={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Qa={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},be={math:{},text:{}},Z=be;function i(l,e,t,r,a,n){be[l][a]={font:e,group:t,replace:r},n&&r&&(be[l][r]=be[l][a])}var o="math",S="text",h="main",f="ams",j="accent-token",D="bin",n0="close",K0="inner",R="mathord",e0="op-token",u0="open",ye="punct",p="rel",B0="spacing",g="textord";i(o,h,p,"\u2261","\\equiv",!0),i(o,h,p,"\u227A","\\prec",!0),i(o,h,p,"\u227B","\\succ",!0),i(o,h,p,"\u223C","\\sim",!0),i(o,h,p,"\u22A5","\\perp"),i(o,h,p,"\u2AAF","\\preceq",!0),i(o,h,p,"\u2AB0","\\succeq",!0),i(o,h,p,"\u2243","\\simeq",!0),i(o,h,p,"\u2223","\\mid",!0),i(o,h,p,"\u226A","\\ll",!0),i(o,h,p,"\u226B","\\gg",!0),i(o,h,p,"\u224D","\\asymp",!0),i(o,h,p,"\u2225","\\parallel"),i(o,h,p,"\u22C8","\\bowtie",!0),i(o,h,p,"\u2323","\\smile",!0),i(o,h,p,"\u2291","\\sqsubseteq",!0),i(o,h,p,"\u2292","\\sqsupseteq",!0),i(o,h,p,"\u2250","\\doteq",!0),i(o,h,p,"\u2322","\\frown",!0),i(o,h,p,"\u220B","\\ni",!0),i(o,h,p,"\u221D","\\propto",!0),i(o,h,p,"\u22A2","\\vdash",!0),i(o,h,p,"\u22A3","\\dashv",!0),i(o,h,p,"\u220B","\\owns"),i(o,h,ye,".","\\ldotp"),i(o,h,ye,"\u22C5","\\cdotp"),i(o,h,g,"#","\\#"),i(S,h,g,"#","\\#"),i(o,h,g,"&","\\&"),i(S,h,g,"&","\\&"),i(o,h,g,"\u2135","\\aleph",!0),i(o,h,g,"\u2200","\\forall",!0),i(o,h,g,"\u210F","\\hbar",!0),i(o,h,g,"\u2203","\\exists",!0),i(o,h,g,"\u2207","\\nabla",!0),i(o,h,g,"\u266D","\\flat",!0),i(o,h,g,"\u2113","\\ell",!0),i(o,h,g,"\u266E","\\natural",!0),i(o,h,g,"\u2663","\\clubsuit",!0),i(o,h,g,"\u2118","\\wp",!0),i(o,h,g,"\u266F","\\sharp",!0),i(o,h,g,"\u2662","\\diamondsuit",!0),i(o,h,g,"\u211C","\\Re",!0),i(o,h,g,"\u2661","\\heartsuit",!0),i(o,h,g,"\u2111","\\Im",!0),i(o,h,g,"\u2660","\\spadesuit",!0),i(o,h,g,"\xA7","\\S",!0),i(S,h,g,"\xA7","\\S"),i(o,h,g,"\xB6","\\P",!0),i(S,h,g,"\xB6","\\P"),i(o,h,g,"\u2020","\\dag"),i(S,h,g,"\u2020","\\dag"),i(S,h,g,"\u2020","\\textdagger"),i(o,h,g,"\u2021","\\ddag"),i(S,h,g,"\u2021","\\ddag"),i(S,h,g,"\u2021","\\textdaggerdbl"),i(o,h,n0,"\u23B1","\\rmoustache",!0),i(o,h,u0,"\u23B0","\\lmoustache",!0),i(o,h,n0,"\u27EF","\\rgroup",!0),i(o,h,u0,"\u27EE","\\lgroup",!0),i(o,h,D,"\u2213","\\mp",!0),i(o,h,D,"\u2296","\\ominus",!0),i(o,h,D,"\u228E","\\uplus",!0),i(o,h,D,"\u2293","\\sqcap",!0),i(o,h,D,"\u2217","\\ast"),i(o,h,D,"\u2294","\\sqcup",!0),i(o,h,D,"\u25EF","\\bigcirc",!0),i(o,h,D,"\u2219","\\bullet",!0),i(o,h,D,"\u2021","\\ddagger"),i(o,h,D,"\u2240","\\wr",!0),i(o,h,D,"\u2A3F","\\amalg"),i(o,h,D,"&","\\And"),i(o,h,p,"\u27F5","\\longleftarrow",!0),i(o,h,p,"\u21D0","\\Leftarrow",!0),i(o,h,p,"\u27F8","\\Longleftarrow",!0),i(o,h,p,"\u27F6","\\longrightarrow",!0),i(o,h,p,"\u21D2","\\Rightarrow",!0),i(o,h,p,"\u27F9","\\Longrightarrow",!0),i(o,h,p,"\u2194","\\leftrightarrow",!0),i(o,h,p,"\u27F7","\\longleftrightarrow",!0),i(o,h,p,"\u21D4","\\Leftrightarrow",!0),i(o,h,p,"\u27FA","\\Longleftrightarrow",!0),i(o,h,p,"\u21A6","\\mapsto",!0),i(o,h,p,"\u27FC","\\longmapsto",!0),i(o,h,p,"\u2197","\\nearrow",!0),i(o,h,p,"\u21A9","\\hookleftarrow",!0),i(o,h,p,"\u21AA","\\hookrightarrow",!0),i(o,h,p,"\u2198","\\searrow",!0),i(o,h,p,"\u21BC","\\leftharpoonup",!0),i(o,h,p,"\u21C0","\\rightharpoonup",!0),i(o,h,p,"\u2199","\\swarrow",!0),i(o,h,p,"\u21BD","\\leftharpoondown",!0),i(o,h,p,"\u21C1","\\rightharpoondown",!0),i(o,h,p,"\u2196","\\nwarrow",!0),i(o,h,p,"\u21CC","\\rightleftharpoons",!0),i(o,f,p,"\u226E","\\nless",!0),i(o,f,p,"\uE010","\\@nleqslant"),i(o,f,p,"\uE011","\\@nleqq"),i(o,f,p,"\u2A87","\\lneq",!0),i(o,f,p,"\u2268","\\lneqq",!0),i(o,f,p,"\uE00C","\\@lvertneqq"),i(o,f,p,"\u22E6","\\lnsim",!0),i(o,f,p,"\u2A89","\\lnapprox",!0),i(o,f,p,"\u2280","\\nprec",!0),i(o,f,p,"\u22E0","\\npreceq",!0),i(o,f,p,"\u22E8","\\precnsim",!0),i(o,f,p,"\u2AB9","\\precnapprox",!0),i(o,f,p,"\u2241","\\nsim",!0),i(o,f,p,"\uE006","\\@nshortmid"),i(o,f,p,"\u2224","\\nmid",!0),i(o,f,p,"\u22AC","\\nvdash",!0),i(o,f,p,"\u22AD","\\nvDash",!0),i(o,f,p,"\u22EA","\\ntriangleleft"),i(o,f,p,"\u22EC","\\ntrianglelefteq",!0),i(o,f,p,"\u228A","\\subsetneq",!0),i(o,f,p,"\uE01A","\\@varsubsetneq"),i(o,f,p,"\u2ACB","\\subsetneqq",!0),i(o,f,p,"\uE017","\\@varsubsetneqq"),i(o,f,p,"\u226F","\\ngtr",!0),i(o,f,p,"\uE00F","\\@ngeqslant"),i(o,f,p,"\uE00E","\\@ngeqq"),i(o,f,p,"\u2A88","\\gneq",!0),i(o,f,p,"\u2269","\\gneqq",!0),i(o,f,p,"\uE00D","\\@gvertneqq"),i(o,f,p,"\u22E7","\\gnsim",!0),i(o,f,p,"\u2A8A","\\gnapprox",!0),i(o,f,p,"\u2281","\\nsucc",!0),i(o,f,p,"\u22E1","\\nsucceq",!0),i(o,f,p,"\u22E9","\\succnsim",!0),i(o,f,p,"\u2ABA","\\succnapprox",!0),i(o,f,p,"\u2246","\\ncong",!0),i(o,f,p,"\uE007","\\@nshortparallel"),i(o,f,p,"\u2226","\\nparallel",!0),i(o,f,p,"\u22AF","\\nVDash",!0),i(o,f,p,"\u22EB","\\ntriangleright"),i(o,f,p,"\u22ED","\\ntrianglerighteq",!0),i(o,f,p,"\uE018","\\@nsupseteqq"),i(o,f,p,"\u228B","\\supsetneq",!0),i(o,f,p,"\uE01B","\\@varsupsetneq"),i(o,f,p,"\u2ACC","\\supsetneqq",!0),i(o,f,p,"\uE019","\\@varsupsetneqq"),i(o,f,p,"\u22AE","\\nVdash",!0),i(o,f,p,"\u2AB5","\\precneqq",!0),i(o,f,p,"\u2AB6","\\succneqq",!0),i(o,f,p,"\uE016","\\@nsubseteqq"),i(o,f,D,"\u22B4","\\unlhd"),i(o,f,D,"\u22B5","\\unrhd"),i(o,f,p,"\u219A","\\nleftarrow",!0),i(o,f,p,"\u219B","\\nrightarrow",!0),i(o,f,p,"\u21CD","\\nLeftarrow",!0),i(o,f,p,"\u21CF","\\nRightarrow",!0),i(o,f,p,"\u21AE","\\nleftrightarrow",!0),i(o,f,p,"\u21CE","\\nLeftrightarrow",!0),i(o,f,p,"\u25B3","\\vartriangle"),i(o,f,g,"\u210F","\\hslash"),i(o,f,g,"\u25BD","\\triangledown"),i(o,f,g,"\u25CA","\\lozenge"),i(o,f,g,"\u24C8","\\circledS"),i(o,f,g,"\xAE","\\circledR"),i(S,f,g,"\xAE","\\circledR"),i(o,f,g,"\u2221","\\measuredangle",!0),i(o,f,g,"\u2204","\\nexists"),i(o,f,g,"\u2127","\\mho"),i(o,f,g,"\u2132","\\Finv",!0),i(o,f,g,"\u2141","\\Game",!0),i(o,f,g,"\u2035","\\backprime"),i(o,f,g,"\u25B2","\\blacktriangle"),i(o,f,g,"\u25BC","\\blacktriangledown"),i(o,f,g,"\u25A0","\\blacksquare"),i(o,f,g,"\u29EB","\\blacklozenge"),i(o,f,g,"\u2605","\\bigstar"),i(o,f,g,"\u2222","\\sphericalangle",!0),i(o,f,g,"\u2201","\\complement",!0),i(o,f,g,"\xF0","\\eth",!0),i(S,h,g,"\xF0","\xF0"),i(o,f,g,"\u2571","\\diagup"),i(o,f,g,"\u2572","\\diagdown"),i(o,f,g,"\u25A1","\\square"),i(o,f,g,"\u25A1","\\Box"),i(o,f,g,"\u25CA","\\Diamond"),i(o,f,g,"\xA5","\\yen",!0),i(S,f,g,"\xA5","\\yen",!0),i(o,f,g,"\u2713","\\checkmark",!0),i(S,f,g,"\u2713","\\checkmark"),i(o,f,g,"\u2136","\\beth",!0),i(o,f,g,"\u2138","\\daleth",!0),i(o,f,g,"\u2137","\\gimel",!0),i(o,f,g,"\u03DD","\\digamma",!0),i(o,f,g,"\u03F0","\\varkappa"),i(o,f,u0,"\u250C","\\@ulcorner",!0),i(o,f,n0,"\u2510","\\@urcorner",!0),i(o,f,u0,"\u2514","\\@llcorner",!0),i(o,f,n0,"\u2518","\\@lrcorner",!0),i(o,f,p,"\u2266","\\leqq",!0),i(o,f,p,"\u2A7D","\\leqslant",!0),i(o,f,p,"\u2A95","\\eqslantless",!0),i(o,f,p,"\u2272","\\lesssim",!0),i(o,f,p,"\u2A85","\\lessapprox",!0),i(o,f,p,"\u224A","\\approxeq",!0),i(o,f,D,"\u22D6","\\lessdot"),i(o,f,p,"\u22D8","\\lll",!0),i(o,f,p,"\u2276","\\lessgtr",!0),i(o,f,p,"\u22DA","\\lesseqgtr",!0),i(o,f,p,"\u2A8B","\\lesseqqgtr",!0),i(o,f,p,"\u2251","\\doteqdot"),i(o,f,p,"\u2253","\\risingdotseq",!0),i(o,f,p,"\u2252","\\fallingdotseq",!0),i(o,f,p,"\u223D","\\backsim",!0),i(o,f,p,"\u22CD","\\backsimeq",!0),i(o,f,p,"\u2AC5","\\subseteqq",!0),i(o,f,p,"\u22D0","\\Subset",!0),i(o,f,p,"\u228F","\\sqsubset",!0),i(o,f,p,"\u227C","\\preccurlyeq",!0),i(o,f,p,"\u22DE","\\curlyeqprec",!0),i(o,f,p,"\u227E","\\precsim",!0),i(o,f,p,"\u2AB7","\\precapprox",!0),i(o,f,p,"\u22B2","\\vartriangleleft"),i(o,f,p,"\u22B4","\\trianglelefteq"),i(o,f,p,"\u22A8","\\vDash",!0),i(o,f,p,"\u22AA","\\Vvdash",!0),i(o,f,p,"\u2323","\\smallsmile"),i(o,f,p,"\u2322","\\smallfrown"),i(o,f,p,"\u224F","\\bumpeq",!0),i(o,f,p,"\u224E","\\Bumpeq",!0),i(o,f,p,"\u2267","\\geqq",!0),i(o,f,p,"\u2A7E","\\geqslant",!0),i(o,f,p,"\u2A96","\\eqslantgtr",!0),i(o,f,p,"\u2273","\\gtrsim",!0),i(o,f,p,"\u2A86","\\gtrapprox",!0),i(o,f,D,"\u22D7","\\gtrdot"),i(o,f,p,"\u22D9","\\ggg",!0),i(o,f,p,"\u2277","\\gtrless",!0),i(o,f,p,"\u22DB","\\gtreqless",!0),i(o,f,p,"\u2A8C","\\gtreqqless",!0),i(o,f,p,"\u2256","\\eqcirc",!0),i(o,f,p,"\u2257","\\circeq",!0),i(o,f,p,"\u225C","\\triangleq",!0),i(o,f,p,"\u223C","\\thicksim"),i(o,f,p,"\u2248","\\thickapprox"),i(o,f,p,"\u2AC6","\\supseteqq",!0),i(o,f,p,"\u22D1","\\Supset",!0),i(o,f,p,"\u2290","\\sqsupset",!0),i(o,f,p,"\u227D","\\succcurlyeq",!0),i(o,f,p,"\u22DF","\\curlyeqsucc",!0),i(o,f,p,"\u227F","\\succsim",!0),i(o,f,p,"\u2AB8","\\succapprox",!0),i(o,f,p,"\u22B3","\\vartriangleright"),i(o,f,p,"\u22B5","\\trianglerighteq"),i(o,f,p,"\u22A9","\\Vdash",!0),i(o,f,p,"\u2223","\\shortmid"),i(o,f,p,"\u2225","\\shortparallel"),i(o,f,p,"\u226C","\\between",!0),i(o,f,p,"\u22D4","\\pitchfork",!0),i(o,f,p,"\u221D","\\varpropto"),i(o,f,p,"\u25C0","\\blacktriangleleft"),i(o,f,p,"\u2234","\\therefore",!0),i(o,f,p,"\u220D","\\backepsilon"),i(o,f,p,"\u25B6","\\blacktriangleright"),i(o,f,p,"\u2235","\\because",!0),i(o,f,p,"\u22D8","\\llless"),i(o,f,p,"\u22D9","\\gggtr"),i(o,f,D,"\u22B2","\\lhd"),i(o,f,D,"\u22B3","\\rhd"),i(o,f,p,"\u2242","\\eqsim",!0),i(o,h,p,"\u22C8","\\Join"),i(o,f,p,"\u2251","\\Doteq",!0),i(o,f,D,"\u2214","\\dotplus",!0),i(o,f,D,"\u2216","\\smallsetminus"),i(o,f,D,"\u22D2","\\Cap",!0),i(o,f,D,"\u22D3","\\Cup",!0),i(o,f,D,"\u2A5E","\\doublebarwedge",!0),i(o,f,D,"\u229F","\\boxminus",!0),i(o,f,D,"\u229E","\\boxplus",!0),i(o,f,D,"\u22C7","\\divideontimes",!0),i(o,f,D,"\u22C9","\\ltimes",!0),i(o,f,D,"\u22CA","\\rtimes",!0),i(o,f,D,"\u22CB","\\leftthreetimes",!0),i(o,f,D,"\u22CC","\\rightthreetimes",!0),i(o,f,D,"\u22CF","\\curlywedge",!0),i(o,f,D,"\u22CE","\\curlyvee",!0),i(o,f,D,"\u229D","\\circleddash",!0),i(o,f,D,"\u229B","\\circledast",!0),i(o,f,D,"\u22C5","\\centerdot"),i(o,f,D,"\u22BA","\\intercal",!0),i(o,f,D,"\u22D2","\\doublecap"),i(o,f,D,"\u22D3","\\doublecup"),i(o,f,D,"\u22A0","\\boxtimes",!0),i(o,f,p,"\u21E2","\\dashrightarrow",!0),i(o,f,p,"\u21E0","\\dashleftarrow",!0),i(o,f,p,"\u21C7","\\leftleftarrows",!0),i(o,f,p,"\u21C6","\\leftrightarrows",!0),i(o,f,p,"\u21DA","\\Lleftarrow",!0),i(o,f,p,"\u219E","\\twoheadleftarrow",!0),i(o,f,p,"\u21A2","\\leftarrowtail",!0),i(o,f,p,"\u21AB","\\looparrowleft",!0),i(o,f,p,"\u21CB","\\leftrightharpoons",!0),i(o,f,p,"\u21B6","\\curvearrowleft",!0),i(o,f,p,"\u21BA","\\circlearrowleft",!0),i(o,f,p,"\u21B0","\\Lsh",!0),i(o,f,p,"\u21C8","\\upuparrows",!0),i(o,f,p,"\u21BF","\\upharpoonleft",!0),i(o,f,p,"\u21C3","\\downharpoonleft",!0),i(o,h,p,"\u22B6","\\origof",!0),i(o,h,p,"\u22B7","\\imageof",!0),i(o,f,p,"\u22B8","\\multimap",!0),i(o,f,p,"\u21AD","\\leftrightsquigarrow",!0),i(o,f,p,"\u21C9","\\rightrightarrows",!0),i(o,f,p,"\u21C4","\\rightleftarrows",!0),i(o,f,p,"\u21A0","\\twoheadrightarrow",!0),i(o,f,p,"\u21A3","\\rightarrowtail",!0),i(o,f,p,"\u21AC","\\looparrowright",!0),i(o,f,p,"\u21B7","\\curvearrowright",!0),i(o,f,p,"\u21BB","\\circlearrowright",!0),i(o,f,p,"\u21B1","\\Rsh",!0),i(o,f,p,"\u21CA","\\downdownarrows",!0),i(o,f,p,"\u21BE","\\upharpoonright",!0),i(o,f,p,"\u21C2","\\downharpoonright",!0),i(o,f,p,"\u21DD","\\rightsquigarrow",!0),i(o,f,p,"\u21DD","\\leadsto"),i(o,f,p,"\u21DB","\\Rrightarrow",!0),i(o,f,p,"\u21BE","\\restriction"),i(o,h,g,"\u2018","`"),i(o,h,g,"$","\\$"),i(S,h,g,"$","\\$"),i(S,h,g,"$","\\textdollar"),i(o,h,g,"%","\\%"),i(S,h,g,"%","\\%"),i(o,h,g,"_","\\_"),i(S,h,g,"_","\\_"),i(S,h,g,"_","\\textunderscore"),i(o,h,g,"\u2220","\\angle",!0),i(o,h,g,"\u221E","\\infty",!0),i(o,h,g,"\u2032","\\prime"),i(o,h,g,"\u25B3","\\triangle"),i(o,h,g,"\u0393","\\Gamma",!0),i(o,h,g,"\u0394","\\Delta",!0),i(o,h,g,"\u0398","\\Theta",!0),i(o,h,g,"\u039B","\\Lambda",!0),i(o,h,g,"\u039E","\\Xi",!0),i(o,h,g,"\u03A0","\\Pi",!0),i(o,h,g,"\u03A3","\\Sigma",!0),i(o,h,g,"\u03A5","\\Upsilon",!0),i(o,h,g,"\u03A6","\\Phi",!0),i(o,h,g,"\u03A8","\\Psi",!0),i(o,h,g,"\u03A9","\\Omega",!0),i(o,h,g,"A","\u0391"),i(o,h,g,"B","\u0392"),i(o,h,g,"E","\u0395"),i(o,h,g,"Z","\u0396"),i(o,h,g,"H","\u0397"),i(o,h,g,"I","\u0399"),i(o,h,g,"K","\u039A"),i(o,h,g,"M","\u039C"),i(o,h,g,"N","\u039D"),i(o,h,g,"O","\u039F"),i(o,h,g,"P","\u03A1"),i(o,h,g,"T","\u03A4"),i(o,h,g,"X","\u03A7"),i(o,h,g,"\xAC","\\neg",!0),i(o,h,g,"\xAC","\\lnot"),i(o,h,g,"\u22A4","\\top"),i(o,h,g,"\u22A5","\\bot"),i(o,h,g,"\u2205","\\emptyset"),i(o,f,g,"\u2205","\\varnothing"),i(o,h,R,"\u03B1","\\alpha",!0),i(o,h,R,"\u03B2","\\beta",!0),i(o,h,R,"\u03B3","\\gamma",!0),i(o,h,R,"\u03B4","\\delta",!0),i(o,h,R,"\u03F5","\\epsilon",!0),i(o,h,R,"\u03B6","\\zeta",!0),i(o,h,R,"\u03B7","\\eta",!0),i(o,h,R,"\u03B8","\\theta",!0),i(o,h,R,"\u03B9","\\iota",!0),i(o,h,R,"\u03BA","\\kappa",!0),i(o,h,R,"\u03BB","\\lambda",!0),i(o,h,R,"\u03BC","\\mu",!0),i(o,h,R,"\u03BD","\\nu",!0),i(o,h,R,"\u03BE","\\xi",!0),i(o,h,R,"\u03BF","\\omicron",!0),i(o,h,R,"\u03C0","\\pi",!0),i(o,h,R,"\u03C1","\\rho",!0),i(o,h,R,"\u03C3","\\sigma",!0),i(o,h,R,"\u03C4","\\tau",!0),i(o,h,R,"\u03C5","\\upsilon",!0),i(o,h,R,"\u03D5","\\phi",!0),i(o,h,R,"\u03C7","\\chi",!0),i(o,h,R,"\u03C8","\\psi",!0),i(o,h,R,"\u03C9","\\omega",!0),i(o,h,R,"\u03B5","\\varepsilon",!0),i(o,h,R,"\u03D1","\\vartheta",!0),i(o,h,R,"\u03D6","\\varpi",!0),i(o,h,R,"\u03F1","\\varrho",!0),i(o,h,R,"\u03C2","\\varsigma",!0),i(o,h,R,"\u03C6","\\varphi",!0),i(o,h,D,"\u2217","*",!0),i(o,h,D,"+","+"),i(o,h,D,"\u2212","-",!0),i(o,h,D,"\u22C5","\\cdot",!0),i(o,h,D,"\u2218","\\circ",!0),i(o,h,D,"\xF7","\\div",!0),i(o,h,D,"\xB1","\\pm",!0),i(o,h,D,"\xD7","\\times",!0),i(o,h,D,"\u2229","\\cap",!0),i(o,h,D,"\u222A","\\cup",!0),i(o,h,D,"\u2216","\\setminus",!0),i(o,h,D,"\u2227","\\land"),i(o,h,D,"\u2228","\\lor"),i(o,h,D,"\u2227","\\wedge",!0),i(o,h,D,"\u2228","\\vee",!0),i(o,h,g,"\u221A","\\surd"),i(o,h,u0,"\u27E8","\\langle",!0),i(o,h,u0,"\u2223","\\lvert"),i(o,h,u0,"\u2225","\\lVert"),i(o,h,n0,"?","?"),i(o,h,n0,"!","!"),i(o,h,n0,"\u27E9","\\rangle",!0),i(o,h,n0,"\u2223","\\rvert"),i(o,h,n0,"\u2225","\\rVert"),i(o,h,p,"=","="),i(o,h,p,":",":"),i(o,h,p,"\u2248","\\approx",!0),i(o,h,p,"\u2245","\\cong",!0),i(o,h,p,"\u2265","\\ge"),i(o,h,p,"\u2265","\\geq",!0),i(o,h,p,"\u2190","\\gets"),i(o,h,p,">","\\gt",!0),i(o,h,p,"\u2208","\\in",!0),i(o,h,p,"\uE020","\\@not"),i(o,h,p,"\u2282","\\subset",!0),i(o,h,p,"\u2283","\\supset",!0),i(o,h,p,"\u2286","\\subseteq",!0),i(o,h,p,"\u2287","\\supseteq",!0),i(o,f,p,"\u2288","\\nsubseteq",!0),i(o,f,p,"\u2289","\\nsupseteq",!0),i(o,h,p,"\u22A8","\\models"),i(o,h,p,"\u2190","\\leftarrow",!0),i(o,h,p,"\u2264","\\le"),i(o,h,p,"\u2264","\\leq",!0),i(o,h,p,"<","\\lt",!0),i(o,h,p,"\u2192","\\rightarrow",!0),i(o,h,p,"\u2192","\\to"),i(o,f,p,"\u2271","\\ngeq",!0),i(o,f,p,"\u2270","\\nleq",!0),i(o,h,B0,"\xA0","\\ "),i(o,h,B0,"\xA0","\\space"),i(o,h,B0,"\xA0","\\nobreakspace"),i(S,h,B0,"\xA0","\\ "),i(S,h,B0,"\xA0"," "),i(S,h,B0,"\xA0","\\space"),i(S,h,B0,"\xA0","\\nobreakspace"),i(o,h,B0,null,"\\nobreak"),i(o,h,B0,null,"\\allowbreak"),i(o,h,ye,",",","),i(o,h,ye,";",";"),i(o,f,D,"\u22BC","\\barwedge",!0),i(o,f,D,"\u22BB","\\veebar",!0),i(o,h,D,"\u2299","\\odot",!0),i(o,h,D,"\u2295","\\oplus",!0),i(o,h,D,"\u2297","\\otimes",!0),i(o,h,g,"\u2202","\\partial",!0),i(o,h,D,"\u2298","\\oslash",!0),i(o,f,D,"\u229A","\\circledcirc",!0),i(o,f,D,"\u22A1","\\boxdot",!0),i(o,h,D,"\u25B3","\\bigtriangleup"),i(o,h,D,"\u25BD","\\bigtriangledown"),i(o,h,D,"\u2020","\\dagger"),i(o,h,D,"\u22C4","\\diamond"),i(o,h,D,"\u22C6","\\star"),i(o,h,D,"\u25C3","\\triangleleft"),i(o,h,D,"\u25B9","\\triangleright"),i(o,h,u0,"{","\\{"),i(S,h,g,"{","\\{"),i(S,h,g,"{","\\textbraceleft"),i(o,h,n0,"}","\\}"),i(S,h,g,"}","\\}"),i(S,h,g,"}","\\textbraceright"),i(o,h,u0,"{","\\lbrace"),i(o,h,n0,"}","\\rbrace"),i(o,h,u0,"[","\\lbrack",!0),i(S,h,g,"[","\\lbrack",!0),i(o,h,n0,"]","\\rbrack",!0),i(S,h,g,"]","\\rbrack",!0),i(o,h,u0,"(","\\lparen",!0),i(o,h,n0,")","\\rparen",!0),i(S,h,g,"<","\\textless",!0),i(S,h,g,">","\\textgreater",!0),i(o,h,u0,"\u230A","\\lfloor",!0),i(o,h,n0,"\u230B","\\rfloor",!0),i(o,h,u0,"\u2308","\\lceil",!0),i(o,h,n0,"\u2309","\\rceil",!0),i(o,h,g,"\\","\\backslash"),i(o,h,g,"\u2223","|"),i(o,h,g,"\u2223","\\vert"),i(S,h,g,"|","\\textbar",!0),i(o,h,g,"\u2225","\\|"),i(o,h,g,"\u2225","\\Vert"),i(S,h,g,"\u2225","\\textbardbl"),i(S,h,g,"~","\\textasciitilde"),i(S,h,g,"\\","\\textbackslash"),i(S,h,g,"^","\\textasciicircum"),i(o,h,p,"\u2191","\\uparrow",!0),i(o,h,p,"\u21D1","\\Uparrow",!0),i(o,h,p,"\u2193","\\downarrow",!0),i(o,h,p,"\u21D3","\\Downarrow",!0),i(o,h,p,"\u2195","\\updownarrow",!0),i(o,h,p,"\u21D5","\\Updownarrow",!0),i(o,h,e0,"\u2210","\\coprod"),i(o,h,e0,"\u22C1","\\bigvee"),i(o,h,e0,"\u22C0","\\bigwedge"),i(o,h,e0,"\u2A04","\\biguplus"),i(o,h,e0,"\u22C2","\\bigcap"),i(o,h,e0,"\u22C3","\\bigcup"),i(o,h,e0,"\u222B","\\int"),i(o,h,e0,"\u222B","\\intop"),i(o,h,e0,"\u222C","\\iint"),i(o,h,e0,"\u222D","\\iiint"),i(o,h,e0,"\u220F","\\prod"),i(o,h,e0,"\u2211","\\sum"),i(o,h,e0,"\u2A02","\\bigotimes"),i(o,h,e0,"\u2A01","\\bigoplus"),i(o,h,e0,"\u2A00","\\bigodot"),i(o,h,e0,"\u222E","\\oint"),i(o,h,e0,"\u222F","\\oiint"),i(o,h,e0,"\u2230","\\oiiint"),i(o,h,e0,"\u2A06","\\bigsqcup"),i(o,h,e0,"\u222B","\\smallint"),i(S,h,K0,"\u2026","\\textellipsis"),i(o,h,K0,"\u2026","\\mathellipsis"),i(S,h,K0,"\u2026","\\ldots",!0),i(o,h,K0,"\u2026","\\ldots",!0),i(o,h,K0,"\u22EF","\\@cdots",!0),i(o,h,K0,"\u22F1","\\ddots",!0),i(o,h,g,"\u22EE","\\varvdots"),i(o,h,j,"\u02CA","\\acute"),i(o,h,j,"\u02CB","\\grave"),i(o,h,j,"\xA8","\\ddot"),i(o,h,j,"~","\\tilde"),i(o,h,j,"\u02C9","\\bar"),i(o,h,j,"\u02D8","\\breve"),i(o,h,j,"\u02C7","\\check"),i(o,h,j,"^","\\hat"),i(o,h,j,"\u20D7","\\vec"),i(o,h,j,"\u02D9","\\dot"),i(o,h,j,"\u02DA","\\mathring"),i(o,h,R,"\uE131","\\@imath"),i(o,h,R,"\uE237","\\@jmath"),i(o,h,g,"\u0131","\u0131"),i(o,h,g,"\u0237","\u0237"),i(S,h,g,"\u0131","\\i",!0),i(S,h,g,"\u0237","\\j",!0),i(S,h,g,"\xDF","\\ss",!0),i(S,h,g,"\xE6","\\ae",!0),i(S,h,g,"\u0153","\\oe",!0),i(S,h,g,"\xF8","\\o",!0),i(S,h,g,"\xC6","\\AE",!0),i(S,h,g,"\u0152","\\OE",!0),i(S,h,g,"\xD8","\\O",!0),i(S,h,j,"\u02CA","\\'"),i(S,h,j,"\u02CB","\\`"),i(S,h,j,"\u02C6","\\^"),i(S,h,j,"\u02DC","\\~"),i(S,h,j,"\u02C9","\\="),i(S,h,j,"\u02D8","\\u"),i(S,h,j,"\u02D9","\\."),i(S,h,j,"\xB8","\\c"),i(S,h,j,"\u02DA","\\r"),i(S,h,j,"\u02C7","\\v"),i(S,h,j,"\xA8",'\\"'),i(S,h,j,"\u02DD","\\H"),i(S,h,j,"\u25EF","\\textcircled");var Xt={"--":!0,"---":!0,"``":!0,"''":!0};i(S,h,g,"\u2013","--",!0),i(S,h,g,"\u2013","\\textendash"),i(S,h,g,"\u2014","---",!0),i(S,h,g,"\u2014","\\textemdash"),i(S,h,g,"\u2018","`",!0),i(S,h,g,"\u2018","\\textquoteleft"),i(S,h,g,"\u2019","'",!0),i(S,h,g,"\u2019","\\textquoteright"),i(S,h,g,"\u201C","``",!0),i(S,h,g,"\u201C","\\textquotedblleft"),i(S,h,g,"\u201D","''",!0),i(S,h,g,"\u201D","\\textquotedblright"),i(o,h,g,"\xB0","\\degree",!0),i(S,h,g,"\xB0","\\degree"),i(S,h,g,"\xB0","\\textdegree",!0),i(o,h,g,"\xA3","\\pounds"),i(o,h,g,"\xA3","\\mathsterling",!0),i(S,h,g,"\xA3","\\pounds"),i(S,h,g,"\xA3","\\textsterling",!0),i(o,f,g,"\u2720","\\maltese"),i(S,f,g,"\u2720","\\maltese");for(var jt='0123456789/@."',Ze=0;Ze0)return g0(n,d,a,t,s.concat(v));if(m){var w,x;if(m==="boldsymbol"){var k=t1(n,a,t,s,r);w=k.fontName,x=[k.fontClass]}else u?(w=er[m].fontName,x=[m]):(w=Me(m,t.fontWeight,t.fontShape),x=[m,t.fontWeight,t.fontShape]);if(Ae(n,w,a).metrics)return g0(n,w,a,t,s.concat(x));if(Xt.hasOwnProperty(n)&&w.slice(0,10)==="Typewriter"){for(var B=[],T=0;Tt&&(t=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},s0=function(e,t,r,a){var n=new se(e,t,r,a);return et(n),n},Qt=function(e,t,r,a){return new se(e,t,r,a)},i1=function(e,t,r){var a=s0([e],[],t);return a.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=z(a.height),a.maxFontSize=1,a},l1=function(e,t,r,a){var n=new je(e,t,r,a);return et(n),n},_t=function(e){var t=new le(e);return et(t),t},s1=function(e,t){return e instanceof le?s0([],[e],t):e},o1=function(e){if(e.positionType==="individualShift"){for(var t=e.children,r=[t[0]],a=-t[0].shift-t[0].elem.depth,n=a,s=1;s0&&(n.push(Ce(s,e)),s=[]),n.push(r[u]));s.length>0&&n.push(Ce(s,e));var d;t?(d=Ce(t0(t,e,!0)),d.classes=["tag"],n.push(d)):a&&n.push(a);var v=T0(["katex-html"],n);if(v.setAttribute("aria-hidden","true"),d){var b=d.children[0];b.style.height=z(v.height+v.depth),v.depth&&(b.style.verticalAlign=z(-v.depth))}return v}function ir(l){return new le(l)}var d0=function(){function l(t,r,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}var e=l.prototype;return e.setAttribute=function(r,a){this.attributes[r]=a},e.getAttribute=function(r){return this.attributes[r]},e.toNode=function(){var r=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&r.setAttribute(a,this.attributes[a]);this.classes.length>0&&(r.className=E0(this.classes));for(var n=0;n0&&(r+=' class ="'+I.escape(E0(this.classes))+'"'),r+=">";for(var n=0;n",r},e.toText=function(){return this.children.map(function(r){return r.toText()}).join("")},l}(),ue=function(){function l(t){this.text=void 0,this.text=t}var e=l.prototype;return e.toNode=function(){return document.createTextNode(this.text)},e.toMarkup=function(){return I.escape(this.toText())},e.toText=function(){return this.text},l}(),y1=function(){function l(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character="\u200A":t>=.1666&&t<=.1667?this.character="\u2009":t>=.2222&&t<=.2223?this.character="\u2005":t>=.2777&&t<=.2778?this.character="\u2005\u200A":t>=-.05556&&t<=-.05555?this.character="\u200A\u2063":t>=-.1667&&t<=-.1666?this.character="\u2009\u2063":t>=-.2223&&t<=-.2222?this.character="\u205F\u2063":t>=-.2778&&t<=-.2777?this.character="\u2005\u2063":this.character=null}var e=l.prototype;return e.toNode=function(){if(this.character)return document.createTextNode(this.character);var r=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return r.setAttribute("width",z(this.width)),r},e.toMarkup=function(){return this.character?""+this.character+"":''},e.toText=function(){return this.character?this.character:" "},l}(),A={MathNode:d0,TextNode:ue,SpaceNode:y1,newDocumentFragment:ir},f0=function(e,t,r){return Z[t][e]&&Z[t][e].replace&&e.charCodeAt(0)!==55349&&!(Xt.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=Z[t][e].replace),new A.TextNode(e)},at=function(e){return e.length===1?e[0]:new A.MathNode("mrow",e)},nt=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var r=t.font;if(!r||r==="mathnormal")return null;var a=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var n=e.text;if(I.contains(["\\imath","\\jmath"],n))return null;Z[a][n]&&Z[a][n].replace&&(n=Z[a][n].replace);var s=y.fontMap[r].fontName;return We(n,s,a)?y.fontMap[r].variant:null},o0=function(e,t,r){if(e.length===1){var a=Y(e[0],t);return r&&a instanceof d0&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var n=[],s,u=0;u0&&(k.text=k.text.slice(0,1)+"\u0338"+k.text.slice(1),n.pop())}}}n.push(m),s=m}return n},R0=function(e,t,r){return at(o0(e,t,r))},Y=function(e,t){if(!e)return new A.MathNode("mrow");if(ze[e.type]){var r=ze[e.type](e,t);return r}else throw new M("Got group of unknown type: '"+e.type+"'")};function lr(l,e,t,r,a){var n=o0(l,t),s;n.length===1&&n[0]instanceof d0&&I.contains(["mrow","mtable"],n[0].type)?s=n[0]:s=new A.MathNode("mrow",n);var u=new A.MathNode("annotation",[new A.TextNode(e)]);u.setAttribute("encoding","application/x-tex");var m=new A.MathNode("semantics",[s,u]),d=new A.MathNode("math",[m]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&d.setAttribute("display","block");var v=a?"katex":"katex-mathml";return y.makeSpan([v],[d])}var sr=function(e){return new Xa({style:e.displayMode?F.DISPLAY:F.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},or=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=y.makeSpan(r,[e])}return e},x1=function(e,t,r){var a=sr(r),n;if(r.output==="mathml")return lr(e,t,a,r.displayMode,!0);if(r.output==="html"){var s=rt(e,a);n=y.makeSpan(["katex"],[s])}else{var u=lr(e,t,a,r.displayMode,!1),m=rt(e,a);n=y.makeSpan(["katex"],[u,m])}return or(n,r)},w1=function(e,t,r){var a=sr(r),n=rt(e,a),s=y.makeSpan(["katex"],[n]);return or(s,r)},k1={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},S1=function(e){var t=new A.MathNode("mo",[new A.TextNode(k1[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},A1={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},M1=function(e){return e.type==="ordgroup"?e.body.length:1},B1=function(e,t){function r(){var m=4e5,d=e.label.slice(1);if(I.contains(["widehat","widecheck","widetilde","utilde"],d)){var v=e,b=M1(v.base),w,x,k;if(b>5)d==="widehat"||d==="widecheck"?(w=420,m=2364,k=.42,x=d+"4"):(w=312,m=2340,k=.34,x="tilde4");else{var B=[1,1,2,2,3,3][b];d==="widehat"||d==="widecheck"?(m=[0,1062,2364,2364,2364][B],w=[0,239,300,360,420][B],k=[0,.24,.3,.3,.36,.42][B],x=d+B):(m=[0,600,1033,2339,2340][B],w=[0,260,286,306,312][B],k=[0,.26,.286,.3,.306,.34][B],x="tilde"+B)}var T=new q0(x),N=new M0([T],{width:"100%",height:z(k),viewBox:"0 0 "+m+" "+w,preserveAspectRatio:"none"});return{span:y.makeSvgSpan([],[N],t),minWidth:0,height:k}}else{var E=[],q=A1[d],V=q[0],H=q[1],U=q[2],G=U/1e3,W=V.length,X,r0;if(W===1){var h0=q[3];X=["hide-tail"],r0=[h0]}else if(W===2)X=["halfarrow-left","halfarrow-right"],r0=["xMinYMin","xMaxYMin"];else if(W===3)X=["brace-left","brace-center","brace-right"],r0=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+W+" children.");for(var J=0;J0&&(n.style.minWidth=z(s)),n},z1=function(e,t,r,a,n){var s,u=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(s=y.makeSpan(["stretchy",t],[],n),t==="fbox"){var m=n.color&&n.getColor();m&&(s.style.borderColor=m)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new $e({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new $e({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new M0(d,{width:"100%",height:z(u)});s=y.makeSvgSpan([],[v],n)}return s.height=u,s.style.height=z(u),s},C0={encloseSpan:z1,mathMLnode:S1,svgSpan:B1};function L(l,e){if(!l||l.type!==e)throw new Error("Expected node of type "+e+", but got "+(l?"node of type "+l.type:String(l)));return l}function it(l){var e=De(l);if(!e)throw new Error("Expected node of symbol group type, but got "+(l?"node of type "+l.type:String(l)));return e}function De(l){return l&&(l.type==="atom"||Qa.hasOwnProperty(l.type))?l:null}var lt=function(e,t){var r,a,n;e&&e.type==="supsub"?(a=L(e.base,"accent"),r=a.base,e.base=r,n=Ka(P(e,t)),e.base=a):(a=L(e,"accent"),r=a.base);var s=P(r,t.havingCrampedStyle()),u=a.isShifty&&I.isCharacterBox(r),m=0;if(u){var d=I.getBaseElem(r),v=P(d,t.havingCrampedStyle());m=Yt(v).skew}var b=a.label==="\\c",w=b?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),x;if(a.isStretchy)x=C0.svgSpan(a,t),x=y.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:m>0?{width:"calc(100% - "+z(2*m)+")",marginLeft:z(2*m)}:void 0}]},t);else{var k,B;a.label==="\\vec"?(k=y.staticSvg("vec",t),B=y.svgData.vec[1]):(k=y.makeOrd({mode:a.mode,text:a.label},t,"textord"),k=Yt(k),k.italic=0,B=k.width,b&&(w+=k.depth)),x=y.makeSpan(["accent-body"],[k]);var T=a.label==="\\textcircled";T&&(x.classes.push("accent-full"),w=s.height);var N=m;T||(N-=B/2),x.style.left=z(N),a.label==="\\textcircled"&&(x.style.top=".2em"),x=y.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-w},{type:"elem",elem:x}]},t)}var E=y.makeSpan(["mord","accent"],[x],t);return n?(n.children[0]=E,n.height=Math.max(E.height,n.height),n.classes[0]="mord",n):E},ur=function(e,t){var r=e.isStretchy?C0.mathMLnode(e.label):new A.MathNode("mo",[f0(e.label,e.mode)]),a=new A.MathNode("mover",[Y(e.base,t),r]);return a.setAttribute("accent","true"),a},T1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(l){return"\\"+l}).join("|"));C({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var r=Te(t[0]),a=!T1.test(e.funcName),n=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:lt,mathmlBuilder:ur}),C({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var r=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:lt,mathmlBuilder:ur}),C({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:function(e,t){var r=P(e.base,t),a=C0.svgSpan(e,t),n=e.label==="\\utilde"?.12:0,s=y.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return y.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:function(e,t){var r=C0.mathMLnode(e.label),a=new A.MathNode("munder",[Y(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var Ne=function(e){var t=new A.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};C({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,r){var a=e.parser,n=e.funcName;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder:function(e,t){var r=t.style,a=t.havingStyle(r.sup()),n=y.wrapFragment(P(e.body,a,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var u;e.below&&(a=t.havingStyle(r.sub()),u=y.wrapFragment(P(e.below,a,t),t),u.classes.push(s+"-arrow-pad"));var m=C0.svgSpan(e,t),d=-t.fontMetrics().axisHeight+.5*m.height,v=-t.fontMetrics().axisHeight-.5*m.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(v-=n.depth);var b;if(u){var w=-t.fontMetrics().axisHeight+u.height+.5*m.height+.111;b=y.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:v},{type:"elem",elem:m,shift:d},{type:"elem",elem:u,shift:w}]},t)}else b=y.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:v},{type:"elem",elem:m,shift:d}]},t);return b.children[0].children[0].children[1].classes.push("svg-align"),y.makeSpan(["mrel","x-arrow"],[b],t)},mathmlBuilder:function(e,t){var r=C0.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var n=Ne(Y(e.body,t));if(e.below){var s=Ne(Y(e.below,t));a=new A.MathNode("munderover",[r,s,n])}else a=new A.MathNode("mover",[r,n])}else if(e.below){var u=Ne(Y(e.below,t));a=new A.MathNode("munder",[r,u])}else a=Ne(),a=new A.MathNode("mover",[r,a]);return a}});var C1=y.makeSpan;function hr(l,e){var t=t0(l.body,e,!0);return C1([l.mclass],t,e)}function mr(l,e){var t,r=o0(l.body,e);return l.mclass==="minner"?t=new A.MathNode("mpadded",r):l.mclass==="mord"?l.isCharacterBox?(t=r[0],t.type="mi"):t=new A.MathNode("mi",r):(l.isCharacterBox?(t=r[0],t.type="mo"):t=new A.MathNode("mo",r),l.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):l.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):l.mclass==="mopen"||l.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):l.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}C({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:_(n),isCharacterBox:I.isCharacterBox(n)}},htmlBuilder:hr,mathmlBuilder:mr});var Ee=function(e){var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};C({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){var r=e.parser;return{type:"mclass",mode:r.mode,mclass:Ee(t[0]),body:_(t[1]),isCharacterBox:I.isCharacterBox(t[1])}}}),C({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[1],s=t[0],u;a!=="\\stackrel"?u=Ee(n):u="mrel";var m={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:_(n)},d={type:"supsub",mode:s.mode,base:m,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:u,body:[d],isCharacterBox:I.isCharacterBox(d)}},htmlBuilder:hr,mathmlBuilder:mr}),C({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser;return{type:"pmb",mode:r.mode,mclass:Ee(t[0]),body:_(t[0])}},htmlBuilder:function(e,t){var r=t0(e.body,t,!0),a=y.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder:function(e,t){var r=o0(e.body,t),a=new A.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var D1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},cr=function(){return{type:"styling",body:[],mode:"math",style:"display"}},dr=function(e){return e.type==="textord"&&e.text==="@"},N1=function(e,t){return(e.type==="mathord"||e.type==="atom")&&e.text===t};function E1(l,e,t){var r=D1[l];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=t.callFunction("\\\\cdleft",[e[0]],[]),n={type:"atom",text:r,mode:"math",family:"rel"},s=t.callFunction("\\Big",[n],[]),u=t.callFunction("\\\\cdright",[e[1]],[]),m={type:"ordgroup",mode:"math",body:[a,s,u]};return t.callFunction("\\\\cdparent",[m],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function q1(l){var e=[];for(l.gullet.beginGroup(),l.gullet.macros.set("\\cr","\\\\\\relax"),l.gullet.beginGroup();;){e.push(l.parseExpression(!1,"\\\\")),l.gullet.endGroup(),l.gullet.beginGroup();var t=l.fetch().text;if(t==="&"||t==="\\\\")l.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",l.nextToken)}for(var r=[],a=[r],n=0;n-1))if("<>AV".indexOf(d)>-1)for(var b=0;b<2;b++){for(var w=!0,x=m+1;xAV=|." after @',s[m]);var k=E1(d,v,l),B={type:"styling",body:[k],mode:"math",style:"display"};r.push(B),u=cr()}n%2===0?r.push(u):r.shift(),r=[],a.push(r)}l.gullet.endGroup(),l.gullet.endGroup();var T=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}C({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder:function(e,t){var r=t.havingStyle(t.style.sup()),a=y.wrapFragment(P(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=z(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder:function(e,t){var r=new A.MathNode("mrow",[Y(e.label,t)]);return r=new A.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new A.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),C({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){var r=e.parser;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder:function(e,t){var r=y.wrapFragment(P(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:function(e,t){return new A.MathNode("mrow",[Y(e.fragment,t)])}}),C({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var r=e.parser,a=L(t[0],"ordgroup"),n=a.body,s="",u=0;u=1114111)throw new M("\\@char with invalid code point "+s);return d<=65535?v=String.fromCharCode(d):(d-=65536,v=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:r.mode,text:v}}});var fr=function(e,t){var r=t0(e.body,t.withColor(e.color),!1);return y.makeFragment(r)},pr=function(e,t){var r=o0(e.body,t.withColor(e.color)),a=new A.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};C({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var r=e.parser,a=L(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:_(n)}},htmlBuilder:fr,mathmlBuilder:pr}),C({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var r=e.parser,a=e.breakOnTokenText,n=L(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var s=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:s}},htmlBuilder:fr,mathmlBuilder:pr}),C({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(e,t,r){var a=e.parser,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&L(n,"size").value}},htmlBuilder:function(e,t){var r=y.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=z($(e.size,t)))),r},mathmlBuilder:function(e,t){var r=new A.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",z($(e.size,t)))),r}});var st={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},vr=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new M("Expected a control sequence",e);return t},F1=function(e){var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},gr=function(e,t,r,a){var n=e.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};C({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,r=e.funcName;t.consumeSpaces();var a=t.fetch();if(st[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=st[a.text]),L(t.parseFunction(),"internal");throw new M("Invalid token after macro prefix",a)}}),C({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new M("Expected a control sequence",a);for(var s=0,u,m=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),m[s].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new M('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new M('Argument number "'+a.text+'" out of order');s++,m.push([])}else{if(a.text==="EOF")throw new M("Expected a macro definition");m[s].push(a.text)}var d=t.gullet.consumeArg(),v=d.tokens;return u&&v.unshift(u),(r==="\\edef"||r==="\\xdef")&&(v=t.gullet.expandTokens(v),v.reverse()),t.gullet.macros.set(n,{tokens:v,numArgs:s,delimiters:m},r===st[r]),{type:"internal",mode:t.mode}}}),C({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=vr(t.gullet.popToken());t.gullet.consumeSpaces();var n=F1(t);return gr(t,a,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}}),C({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=vr(t.gullet.popToken()),n=t.gullet.popToken(),s=t.gullet.popToken();return gr(t,a,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var he=function(e,t,r){var a=Z.math[e]&&Z.math[e].replace,n=We(a||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},ot=function(e,t,r,a){var n=r.havingBaseStyle(t),s=y.makeSpan(a.concat(n.sizingClasses(r)),[e],r),u=n.sizeMultiplier/r.sizeMultiplier;return s.height*=u,s.depth*=u,s.maxFontSize=n.sizeMultiplier,s},br=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=z(n),e.height-=n,e.depth+=n},R1=function(e,t,r,a,n,s){var u=y.makeSymbol(e,"Main-Regular",n,a),m=ot(u,t,a,s);return r&&br(m,a,t),m},I1=function(e,t,r,a){return y.makeSymbol(e,"Size"+t+"-Regular",r,a)},yr=function(e,t,r,a,n,s){var u=I1(e,t,n,a),m=ot(y.makeSpan(["delimsizing","size"+t],[u],a),F.TEXT,a,s);return r&&br(m,a,F.TEXT),m},ut=function(e,t,r){var a;t==="Size1-Regular"?a="delim-size1":a="delim-size4";var n=y.makeSpan(["delimsizinginner",a],[y.makeSpan([],[y.makeSymbol(e,t,r)])]);return{type:"elem",elem:n}},ht=function(e,t,r){var a=x0["Size4-Regular"][e.charCodeAt(0)]?x0["Size4-Regular"][e.charCodeAt(0)][4]:x0["Size1-Regular"][e.charCodeAt(0)][4],n=new q0("inner",Ga(e,Math.round(1e3*t))),s=new M0([n],{width:z(a),height:z(t),style:"width:"+z(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),u=y.makeSvgSpan([],[s],r);return u.height=t,u.style.height=z(t),u.style.width=z(a),{type:"elem",elem:u}},mt=.008,qe={type:"kern",size:-1*mt},O1=["|","\\lvert","\\rvert","\\vert"],L1=["\\|","\\lVert","\\rVert","\\Vert"],xr=function(e,t,r,a,n,s){var u,m,d,v,b="",w=0;u=d=v=e,m=null;var x="Size1-Regular";e==="\\uparrow"?d=v="\u23D0":e==="\\Uparrow"?d=v="\u2016":e==="\\downarrow"?u=d="\u23D0":e==="\\Downarrow"?u=d="\u2016":e==="\\updownarrow"?(u="\\uparrow",d="\u23D0",v="\\downarrow"):e==="\\Updownarrow"?(u="\\Uparrow",d="\u2016",v="\\Downarrow"):I.contains(O1,e)?(d="\u2223",b="vert",w=333):I.contains(L1,e)?(d="\u2225",b="doublevert",w=556):e==="["||e==="\\lbrack"?(u="\u23A1",d="\u23A2",v="\u23A3",x="Size4-Regular",b="lbrack",w=667):e==="]"||e==="\\rbrack"?(u="\u23A4",d="\u23A5",v="\u23A6",x="Size4-Regular",b="rbrack",w=667):e==="\\lfloor"||e==="\u230A"?(d=u="\u23A2",v="\u23A3",x="Size4-Regular",b="lfloor",w=667):e==="\\lceil"||e==="\u2308"?(u="\u23A1",d=v="\u23A2",x="Size4-Regular",b="lceil",w=667):e==="\\rfloor"||e==="\u230B"?(d=u="\u23A5",v="\u23A6",x="Size4-Regular",b="rfloor",w=667):e==="\\rceil"||e==="\u2309"?(u="\u23A4",d=v="\u23A5",x="Size4-Regular",b="rceil",w=667):e==="("||e==="\\lparen"?(u="\u239B",d="\u239C",v="\u239D",x="Size4-Regular",b="lparen",w=875):e===")"||e==="\\rparen"?(u="\u239E",d="\u239F",v="\u23A0",x="Size4-Regular",b="rparen",w=875):e==="\\{"||e==="\\lbrace"?(u="\u23A7",m="\u23A8",v="\u23A9",d="\u23AA",x="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(u="\u23AB",m="\u23AC",v="\u23AD",d="\u23AA",x="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(u="\u23A7",v="\u23A9",d="\u23AA",x="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(u="\u23AB",v="\u23AD",d="\u23AA",x="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(u="\u23A7",v="\u23AD",d="\u23AA",x="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(u="\u23AB",v="\u23A9",d="\u23AA",x="Size4-Regular");var k=he(u,x,n),B=k.height+k.depth,T=he(d,x,n),N=T.height+T.depth,E=he(v,x,n),q=E.height+E.depth,V=0,H=1;if(m!==null){var U=he(m,x,n);V=U.height+U.depth,H=2}var G=B+q+V,W=Math.max(0,Math.ceil((t-G)/(H*N))),X=G+W*H*N,r0=a.fontMetrics().axisHeight;r&&(r0*=a.sizeMultiplier);var h0=X/2-r0,J=[];if(b.length>0){var Y0=X-B-q,p0=Math.round(X*1e3),l0=Va(b,Math.round(Y0*1e3)),H0=new q0(b,l0),Q0=(w/1e3).toFixed(3)+"em",_0=(p0/1e3).toFixed(3)+"em",Dt=new M0([H0],{width:Q0,height:_0,viewBox:"0 0 "+w+" "+p0}),P0=y.makeSvgSpan([],[Dt],a);P0.height=p0/1e3,P0.style.width=Q0,P0.style.height=_0,J.push({type:"elem",elem:P0})}else{if(J.push(ut(v,x,n)),J.push(qe),m===null){var G0=X-B-q+2*mt;J.push(ht(d,G0,a))}else{var v0=(X-B-q-V)/2+2*mt;J.push(ht(d,v0,a)),J.push(qe),J.push(ut(m,x,n)),J.push(qe),J.push(ht(d,v0,a))}J.push(qe),J.push(ut(u,x,n))}var de=a.havingBaseStyle(F.TEXT),Nt=y.makeVList({positionType:"bottom",positionData:h0,children:J},de);return ot(y.makeSpan(["delimsizing","mult"],[Nt],de),F.TEXT,a,s)},ct=80,dt=.08,ft=function(e,t,r,a,n){var s=Pa(e,a,r),u=new q0(e,s),m=new M0([u],{width:"400em",height:z(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return y.makeSvgSpan(["hide-tail"],[m],n)},H1=function(e,t){var r=t.havingBaseSizing(),a=Ar("\\surd",e*r.sizeMultiplier,Sr,r),n=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),u,m=0,d=0,v=0,b;return a.type==="small"?(v=1e3+1e3*s+ct,e<1?n=1:e<1.4&&(n=.7),m=(1+s+dt)/n,d=(1+s)/n,u=ft("sqrtMain",m,v,s,t),u.style.minWidth="0.853em",b=.833/n):a.type==="large"?(v=(1e3+ct)*me[a.size],d=(me[a.size]+s)/n,m=(me[a.size]+s+dt)/n,u=ft("sqrtSize"+a.size,m,v,s,t),u.style.minWidth="1.02em",b=1/n):(m=e+s+dt,d=e+s,v=Math.floor(1e3*e+s)+ct,u=ft("sqrtTall",m,v,s,t),u.style.minWidth="0.742em",b=1.056),u.height=d,u.style.height=z(m),{span:u,advanceWidth:b,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*n}},wr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],P1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],kr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],me=[0,1.2,1.8,2.4,3],G1=function(e,t,r,a,n){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),I.contains(wr,e)||I.contains(kr,e))return yr(e,t,!1,r,a,n);if(I.contains(P1,e))return xr(e,me[t],!1,r,a,n);throw new M("Illegal delimiter: '"+e+"'")},V1=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],U1=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"stack"}],Sr=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],W1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Ar=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size),s=n;st)return r[s]}return r[r.length-1]},Mr=function(e,t,r,a,n,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var u;I.contains(kr,e)?u=V1:I.contains(wr,e)?u=Sr:u=U1;var m=Ar(e,t,u,a);return m.type==="small"?R1(e,m.style,r,a,n,s):m.type==="large"?yr(e,m.size,r,a,n,s):xr(e,t,r,a,n,s)},Y1=function(e,t,r,a,n,s){var u=a.fontMetrics().axisHeight*a.sizeMultiplier,m=901,d=5/a.fontMetrics().ptPerEm,v=Math.max(t-u,r+u),b=Math.max(v/500*m,2*v-d);return Mr(e,b,!0,a,n,s)},D0={sqrtImage:H1,sizedDelim:G1,sizeToMaxHeight:me,customSizedDelim:Mr,leftRightDelim:Y1},Br={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},X1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fe(l,e){var t=De(l);if(t&&I.contains(X1,t.text))return t;throw t?new M("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",l):new M("Invalid delimiter type '"+l.type+"'",l)}C({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var r=Fe(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Br[e.funcName].size,mclass:Br[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return e.delim==="."?y.makeSpan([e.mclass]):D0.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];e.delim!=="."&&t.push(f0(e.delim,e.mode));var r=new A.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=z(D0.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function zr(l){if(!l.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}C({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Fe(t[0],e).text,color:r}}}),C({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=Fe(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=L(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:function(e,t){zr(e);for(var r=t0(e.body,t,!0,["mopen","mclose"]),a=0,n=0,s=!1,u=0;u-1?"mpadded":"menclose",[Y(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};C({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,r){var a=e.parser,n=e.funcName,s=L(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:u}},htmlBuilder:pt,mathmlBuilder:vt}),C({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,r){var a=e.parser,n=e.funcName,s=L(t[0],"color-token").color,u=L(t[1],"color-token").color,m=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:u,borderColor:s,body:m}},htmlBuilder:pt,mathmlBuilder:vt}),C({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){var r=e.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),C({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:pt,mathmlBuilder:vt}),C({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){var r=e.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Tr={};function w0(l){for(var e=l.type,t=l.names,r=l.props,a=l.handler,n=l.htmlBuilder,s=l.mathmlBuilder,u={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},m=0;m1||!v)&&B.pop(),N.length0&&(q+=.25),d.push({pos:q,isDashed:He[Pe]})}for(V(s[0]),r=0;r0&&(h0+=E,G=u)){var te=void 0;(a>0||e.hskipBeforeAndAfter)&&(te=I.deflt(v0.pregap,w),te!==0&&(l0=y.makeSpan(["arraycolsep"],[]),l0.style.width=z(te),p0.push(l0)));var re=[];for(r=0;r0){for(var wn=y.makeLineSpan("hline",t,v),kn=y.makeLineSpan("hdashline",t,v),Et=[{type:"elem",elem:m,shift:0}];d.length>0;){var ca=d.pop(),da=ca.pos-J;ca.isDashed?Et.push({type:"elem",elem:kn,shift:da}):Et.push({type:"elem",elem:wn,shift:da})}m=y.makeVList({positionType:"individualShift",children:Et},t)}if(Q0.length===0)return y.makeSpan(["mord"],[m],t);var qt=y.makeVList({positionType:"individualShift",children:Q0},t);return qt=y.makeSpan(["tag"],[qt],t),y.makeFragment([m,qt])},j1={c:"center ",l:"left ",r:"right "},S0=function(e,t){for(var r=[],a=new A.MathNode("mtd",[],["mtr-glue"]),n=new A.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var k=e.cols,B="",T=!1,N=0,E=k.length;k[0].type==="separator"&&(w+="top ",N=1),k[k.length-1].type==="separator"&&(w+="bottom ",E-=1);for(var q=N;q0?"left ":"",w+=W[W.length-1].length>0?"right ":"";for(var X=1;X-1?"alignat":"align",n=e.envName==="split",s=O0(e.parser,{cols:r,addJot:!0,autoTag:n?void 0:gt(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:n?2:void 0,leqno:e.parser.settings.leqno},"display"),u,m=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var v="",b=0;b0&&x&&(T=1),r[k]={type:"align",align:B,pregap:T,postgap:0}}return s.colSeparationType=x?"align":"alignat",s};w0({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var r=De(t[0]),a=r?[t[0]]:L(t[0],"ordgroup").body,n=a.map(function(u){var m=it(u),d=m.text;if("lcr".indexOf(d)!==-1)return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+d,u)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return O0(e.parser,s,bt(e.envName))},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,"lcr".indexOf(r)===-1)throw new M("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var s=O0(e.parser,a,bt(e.envName)),u=Math.max.apply(Math,[0].concat(s.body.map(function(m){return m.length})));return s.cols=new Array(u).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t={arraystretch:.5},r=O0(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var r=De(t[0]),a=r?[t[0]]:L(t[0],"ordgroup").body,n=a.map(function(u){var m=it(u),d=m.text;if("lc".indexOf(d)!==-1)return{type:"align",align:d};throw new M("Unknown column alignment: "+d,u)});if(n.length>1)throw new M("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=O0(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new M("{subarray} can contain only one column");return s},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=O0(e.parser,t,bt(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Nr,htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){I.contains(["gather","gather*"],e.envName)&&Re(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:gt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return O0(e.parser,t,"display")},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Nr,htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Re(e);var t={autoTag:gt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return O0(e.parser,t,"display")},htmlBuilder:k0,mathmlBuilder:S0}),w0({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Re(e),q1(e.parser)},htmlBuilder:k0,mathmlBuilder:S0}),c("\\nonumber","\\gdef\\@eqnsw{0}"),c("\\notag","\\nonumber"),C({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new M(e.funcName+" valid only within array environment")}});var $1=Tr,Er=$1;C({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];if(n.type!=="ordgroup")throw new M("Invalid environment name",n);for(var s="",u=0;u=F.SCRIPT.id?r.text():F.DISPLAY:e==="text"&&r.size===F.DISPLAY.size?r=F.TEXT:e==="script"?r=F.SCRIPT:e==="scriptscript"&&(r=F.SCRIPTSCRIPT),r},yt=function(e,t){var r=Ir(e.size,t.style),a=r.fracNum(),n=r.fracDen(),s;s=t.havingStyle(a);var u=P(e.numer,s,t);if(e.continued){var m=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;u.height=u.height0?B=3*x:B=7*x,T=t.fontMetrics().denom1):(w>0?(k=t.fontMetrics().num2,B=x):(k=t.fontMetrics().num3,B=3*x),T=t.fontMetrics().denom2);var N;if(b){var q=t.fontMetrics().axisHeight;k-u.depth-(q+.5*w)0&&(t=e,t=t==="."?null:t),t};C({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var r=e.parser,a=t[4],n=t[5],s=Te(t[0]),u=s.type==="atom"&&s.family==="open"?Lr(s.text):null,m=Te(t[1]),d=m.type==="atom"&&m.family==="close"?Lr(m.text):null,v=L(t[2],"size"),b,w=null;v.isBlank?b=!0:(w=v.value,b=w.number>0);var x="auto",k=t[3];if(k.type==="ordgroup"){if(k.body.length>0){var B=L(k.body[0],"textord");x=Or[Number(B.text)]}}else k=L(k,"textord"),x=Or[Number(k.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:n,continued:!1,hasBarLine:b,barSize:w,leftDelim:u,rightDelim:d,size:x}},htmlBuilder:yt,mathmlBuilder:xt}),C({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var r=e.parser;e.funcName;var a=e.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:L(t[0],"size").value,token:a}}}),C({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var r=e.parser;e.funcName;var a=t[0],n=Sa(L(t[1],"infix").size),s=t[2],u=n.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:u,barSize:n,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:yt,mathmlBuilder:xt});var Hr=function(e,t){var r=t.style,a,n;e.type==="supsub"?(a=e.sup?P(e.sup,t.havingStyle(r.sup()),t):P(e.sub,t.havingStyle(r.sub()),t),n=L(e.base,"horizBrace")):n=L(e,"horizBrace");var s=P(n.base,t.havingBaseStyle(F.DISPLAY)),u=C0.svgSpan(n,t),m;if(n.isOver?(m=y.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:u}]},t),m.children[0].children[0].children[1].classes.push("svg-align")):(m=y.makeVList({positionType:"bottom",positionData:s.depth+.1+u.height,children:[{type:"elem",elem:u},{type:"kern",size:.1},{type:"elem",elem:s}]},t),m.children[0].children[0].children[0].classes.push("svg-align")),a){var d=y.makeSpan(["mord",n.isOver?"mover":"munder"],[m],t);n.isOver?m=y.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:a}]},t):m=y.makeVList({positionType:"bottom",positionData:d.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:d}]},t)}return y.makeSpan(["mord",n.isOver?"mover":"munder"],[m],t)},Z1=function(e,t){var r=C0.mathMLnode(e.label);return new A.MathNode(e.isOver?"mover":"munder",[Y(e.base,t),r])};C({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var r=e.parser,a=e.funcName;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:Hr,mathmlBuilder:Z1}),C({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var r=e.parser,a=t[1],n=L(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:_(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var r=t0(e.body,t,!1);return y.makeAnchor(e.href,[],r,t)},mathmlBuilder:function(e,t){var r=R0(e.body,t);return r instanceof d0||(r=new d0("mrow",[r])),r.setAttribute("href",e.href),r}}),C({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var r=e.parser,a=L(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],s=0;s0&&(a=$(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=$(e.width,t));var s={height:z(r+a)};n>0&&(s.width=z(n)),a>0&&(s.verticalAlign=z(-a));var u=new $a(e.src,e.alt,s);return u.height=r,u.depth=a,u},mathmlBuilder:function(e,t){var r=new A.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=$(e.height,t),n=0;if(e.totalheight.number>0&&(n=$(e.totalheight,t)-a,r.setAttribute("valign",z(-n))),r.setAttribute("height",z(a+n)),e.width.number>0){var s=$(e.width,t);r.setAttribute("width",z(s))}return r.setAttribute("src",e.src),r}}),C({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=L(t[0],"size");if(r.settings.strict){var s=a[1]==="m",u=n.value.unit==="mu";s?(u||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):u&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:function(e,t){return y.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var r=$(e.dimension,t);return new A.SpaceNode(r)}}),C({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:function(e,t){var r;e.alignment==="clap"?(r=y.makeSpan([],[P(e.body,t)]),r=y.makeSpan(["inner"],[r],t)):r=y.makeSpan(["inner"],[P(e.body,t)]);var a=y.makeSpan(["fix"],[]),n=y.makeSpan([e.alignment],[r,a],t),s=y.makeSpan(["strut"]);return s.style.height=z(n.height+n.depth),n.depth&&(s.style.verticalAlign=z(-n.depth)),n.children.unshift(s),n=y.makeSpan(["thinbox"],[n],t),y.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:function(e,t){var r=new A.MathNode("mpadded",[Y(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),C({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var r=e.funcName,a=e.parser,n=a.mode;a.switchMode("math");var s=r==="\\("?"\\)":"$",u=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:u}}}),C({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new M("Mismatched "+e.funcName)}});var Pr=function(e,t){switch(t.style.size){case F.DISPLAY.size:return e.display;case F.TEXT.size:return e.text;case F.SCRIPT.size:return e.script;case F.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};C({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){var r=e.parser;return{type:"mathchoice",mode:r.mode,display:_(t[0]),text:_(t[1]),script:_(t[2]),scriptscript:_(t[3])}},htmlBuilder:function(e,t){var r=Pr(e,t),a=t0(r,t,!1);return y.makeFragment(a)},mathmlBuilder:function(e,t){var r=Pr(e,t);return R0(r,t)}});var Gr=function(e,t,r,a,n,s,u){e=y.makeSpan([],[e]);var m=r&&I.isCharacterBox(r),d,v;if(t){var b=P(t,a.havingStyle(n.sup()),a);v={elem:b,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-b.depth)}}if(r){var w=P(r,a.havingStyle(n.sub()),a);d={elem:w,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-w.height)}}var x;if(v&&d){var k=a.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+u;x=y.makeVList({positionType:"bottom",positionData:k,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:z(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:v.kern},{type:"elem",elem:v.elem,marginLeft:z(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(d){var B=e.height-u;x=y.makeVList({positionType:"top",positionData:B,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:z(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e}]},a)}else if(v){var T=e.depth+u;x=y.makeVList({positionType:"bottom",positionData:T,children:[{type:"elem",elem:e},{type:"kern",size:v.kern},{type:"elem",elem:v.elem,marginLeft:z(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var N=[x];if(d&&s!==0&&!m){var E=y.makeSpan(["mspace"],[],a);E.style.marginRight=z(s),N.unshift(E)}return y.makeSpan(["mop","op-limits"],N,a)},Vr=["\\smallint"],J0=function(e,t){var r,a,n=!1,s;e.type==="supsub"?(r=e.sup,a=e.sub,s=L(e.base,"op"),n=!0):s=L(e,"op");var u=t.style,m=!1;u.size===F.DISPLAY.size&&s.symbol&&!I.contains(Vr,s.name)&&(m=!0);var d;if(s.symbol){var v=m?"Size2-Regular":"Size1-Regular",b="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(b=s.name.slice(1),s.name=b==="oiint"?"\\iint":"\\iiint"),d=y.makeSymbol(s.name,v,"math",t,["mop","op-symbol",m?"large-op":"small-op"]),b.length>0){var w=d.italic,x=y.staticSvg(b+"Size"+(m?"2":"1"),t);d=y.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:x,shift:m?.08:0}]},t),s.name="\\"+b,d.classes.unshift("mop"),d.italic=w}}else if(s.body){var k=t0(s.body,t,!0);k.length===1&&k[0]instanceof c0?(d=k[0],d.classes[0]="mop"):d=y.makeSpan(["mop"],k,t)}else{for(var B=[],T=1;T0){for(var m=s.body.map(function(w){var x=w.text;return typeof x=="string"?{type:"textord",mode:w.mode,text:x}:w}),d=t0(m,t.withFont("mathrm"),!0),v=0;v=0?m.setAttribute("height",z(n)):(m.setAttribute("height",z(n)),m.setAttribute("depth",z(-n))),m.setAttribute("voffset",z(n)),m}});function Wr(l,e,t){for(var r=t0(l,e,!1),a=e.sizeMultiplier/t.sizeMultiplier,n=0;nr.height+r.depth+u&&(u=(u+x-r.height-r.depth)/2);var k=v.height-r.height-u-b;r.style.paddingLeft=z(w);var B=y.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+k)},{type:"elem",elem:v},{type:"kern",size:b}]},t);if(e.index){var T=t.havingStyle(F.SCRIPTSCRIPT),N=P(e.index,T,t),E=.6*(B.height-B.depth),q=y.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:N}]},t),V=y.makeSpan(["root"],[q]);return y.makeSpan(["mord","sqrt"],[V,B],t)}else return y.makeSpan(["mord","sqrt"],[B],t)},mathmlBuilder:function(e,t){var r=e.body,a=e.index;return a?new A.MathNode("mroot",[Y(r,t),Y(a,t)]):new A.MathNode("msqrt",[Y(r,t)])}});var Xr={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT};C({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var r=e.breakOnTokenText,a=e.funcName,n=e.parser,s=n.parseExpression(!0,r),u=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:u,body:s}},htmlBuilder:function(e,t){var r=Xr[e.style],a=t.havingStyle(r).withFont("");return Wr(e.body,a,t)},mathmlBuilder:function(e,t){var r=Xr[e.style],a=t.havingStyle(r),n=o0(e.body,a),s=new A.MathNode("mstyle",n),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},m=u[e.style];return s.setAttribute("scriptlevel",m[0]),s.setAttribute("displaystyle",m[1]),s}});var en=function(e,t){var r=e.base;if(r)if(r.type==="op"){var a=r.limits&&(t.style.size===F.DISPLAY.size||r.alwaysHandleSupSub);return a?J0:null}else if(r.type==="operatorname"){var n=r.alwaysHandleSupSub&&(t.style.size===F.DISPLAY.size||r.limits);return n?Ur:null}else{if(r.type==="accent")return I.isCharacterBox(r.base)?lt:null;if(r.type==="horizBrace"){var s=!e.sub;return s===r.isOver?Hr:null}else return null}else return null};W0({type:"supsub",htmlBuilder:function(e,t){var r=en(e,t);if(r)return r(e,t);var a=e.base,n=e.sup,s=e.sub,u=P(a,t),m,d,v=t.fontMetrics(),b=0,w=0,x=a&&I.isCharacterBox(a);if(n){var k=t.havingStyle(t.style.sup());m=P(n,k,t),x||(b=u.height-k.fontMetrics().supDrop*k.sizeMultiplier/t.sizeMultiplier)}if(s){var B=t.havingStyle(t.style.sub());d=P(s,B,t),x||(w=u.depth+B.fontMetrics().subDrop*B.sizeMultiplier/t.sizeMultiplier)}var T;t.style===F.DISPLAY?T=v.sup1:t.style.cramped?T=v.sup3:T=v.sup2;var N=t.sizeMultiplier,E=z(.5/v.ptPerEm/N),q=null;if(d){var V=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(u instanceof c0||V)&&(q=z(-u.italic))}var H;if(m&&d){b=Math.max(b,T,m.depth+.25*v.xHeight),w=Math.max(w,v.sub2);var U=v.defaultRuleThickness,G=4*U;if(b-m.depth-(d.height-w)0&&(b+=W,w-=W)}var X=[{type:"elem",elem:d,shift:w,marginRight:E,marginLeft:q},{type:"elem",elem:m,shift:-b,marginRight:E}];H=y.makeVList({positionType:"individualShift",children:X},t)}else if(d){w=Math.max(w,v.sub1,d.height-.8*v.xHeight);var r0=[{type:"elem",elem:d,marginLeft:q,marginRight:E}];H=y.makeVList({positionType:"shift",positionData:w,children:r0},t)}else if(m)b=Math.max(b,T,m.depth+.25*v.xHeight),H=y.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:m,marginRight:E}]},t);else throw new Error("supsub must have either sup or sub.");var h0=tt(u,"right")||"mord";return y.makeSpan([h0],[u,y.makeSpan(["msupsub"],[H])],t)},mathmlBuilder:function(e,t){var r=!1,a,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Y(e.base,t)];e.sub&&s.push(Y(e.sub,t)),e.sup&&s.push(Y(e.sup,t));var u;if(r)u=a?"mover":"munder";else if(e.sub)if(e.sup){var v=e.base;v&&v.type==="op"&&v.limits&&t.style===F.DISPLAY||v&&v.type==="operatorname"&&v.alwaysHandleSupSub&&(t.style===F.DISPLAY||v.limits)?u="munderover":u="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===F.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===F.DISPLAY)?u="munder":u="msub"}else{var m=e.base;m&&m.type==="op"&&m.limits&&(t.style===F.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||t.style===F.DISPLAY)?u="mover":u="msup"}return new A.MathNode(u,s)}}),W0({type:"atom",htmlBuilder:function(e,t){return y.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var r=new A.MathNode("mo",[f0(e.text,e.mode)]);if(e.family==="bin"){var a=nt(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var jr={mi:"italic",mn:"normal",mtext:"normal"};W0({type:"mathord",htmlBuilder:function(e,t){return y.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var r=new A.MathNode("mi",[f0(e.text,e.mode,t)]),a=nt(e,t)||"italic";return a!==jr[r.type]&&r.setAttribute("mathvariant",a),r}}),W0({type:"textord",htmlBuilder:function(e,t){return y.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var r=f0(e.text,e.mode,t),a=nt(e,t)||"normal",n;return e.mode==="text"?n=new A.MathNode("mtext",[r]):/[0-9]/.test(e.text)?n=new A.MathNode("mn",[r]):e.text==="\\prime"?n=new A.MathNode("mo",[r]):n=new A.MathNode("mi",[r]),a!==jr[n.type]&&n.setAttribute("mathvariant",a),n}});var kt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},St={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};W0({type:"spacing",htmlBuilder:function(e,t){if(St.hasOwnProperty(e.text)){var r=St[e.text].className||"";if(e.mode==="text"){var a=y.makeOrd(e,t,"textord");return a.classes.push(r),a}else return y.makeSpan(["mspace",r],[y.mathsym(e.text,e.mode,t)],t)}else{if(kt.hasOwnProperty(e.text))return y.makeSpan(["mspace",kt[e.text]],[],t);throw new M('Unknown type of space "'+e.text+'"')}},mathmlBuilder:function(e,t){var r;if(St.hasOwnProperty(e.text))r=new A.MathNode("mtext",[new A.TextNode("\xA0")]);else{if(kt.hasOwnProperty(e.text))return new A.MathNode("mspace");throw new M('Unknown type of space "'+e.text+'"')}return r}});var $r=function(){var e=new A.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};W0({type:"tag",mathmlBuilder:function(e,t){var r=new A.MathNode("mtable",[new A.MathNode("mtr",[$r(),new A.MathNode("mtd",[R0(e.body,t)]),$r(),new A.MathNode("mtd",[R0(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Zr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Kr={"\\textbf":"textbf","\\textmd":"textmd"},tn={"\\textit":"textit","\\textup":"textup"},Jr=function(e,t){var r=e.font;return r?Zr[r]?t.withTextFontFamily(Zr[r]):Kr[r]?t.withTextFontWeight(Kr[r]):t.withTextFontShape(tn[r]):t};C({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,a=e.funcName,n=t[0];return{type:"text",mode:r.mode,body:_(n),font:a}},htmlBuilder:function(e,t){var r=Jr(e,t),a=t0(e.body,r,!0);return y.makeSpan(["mord","text"],a,r)},mathmlBuilder:function(e,t){var r=Jr(e,t);return R0(e.body,r)}}),C({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder:function(e,t){var r=P(e.body,t),a=y.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,s=y.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return y.makeSpan(["mord","underline"],[s],t)},mathmlBuilder:function(e,t){var r=new A.MathNode("mo",[new A.TextNode("\u203E")]);r.setAttribute("stretchy","true");var a=new A.MathNode("munder",[Y(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),C({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){var r=e.parser;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder:function(e,t){var r=P(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return y.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){return new A.MathNode("mpadded",[Y(e.body,t)],["vcenter"])}}),C({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,r){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var r=Qr(e),a=[],n=t.havingStyle(t.style.text()),s=0;s0;)this.endGroup()},e.has=function(r){return this.current.hasOwnProperty(r)||this.builtins.hasOwnProperty(r)},e.get=function(r){return this.current.hasOwnProperty(r)?this.current[r]:this.builtins[r]},e.set=function(r,a,n){if(n===void 0&&(n=!1),n){for(var s=0;s0&&(this.undefStack[this.undefStack.length-1][r]=a)}else{var u=this.undefStack[this.undefStack.length-1];u&&!u.hasOwnProperty(r)&&(u[r]=this.current[r])}a==null?delete this.current[r]:this.current[r]=a},l}(),mn=Cr,cn=mn;c("\\noexpand",function(l){var e=l.popToken();return l.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),c("\\expandafter",function(l){var e=l.popToken();return l.expandOnce(!0),{tokens:[e],numArgs:0}}),c("\\@firstoftwo",function(l){var e=l.consumeArgs(2);return{tokens:e[0],numArgs:0}}),c("\\@secondoftwo",function(l){var e=l.consumeArgs(2);return{tokens:e[1],numArgs:0}}),c("\\@ifnextchar",function(l){var e=l.consumeArgs(3);l.consumeSpaces();var t=l.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),c("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),c("\\TextOrMath",function(l){var e=l.consumeArgs(2);return l.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ta={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};c("\\char",function(l){var e=l.popToken(),t,r="";if(e.text==="'")t=8,e=l.popToken();else if(e.text==='"')t=16,e=l.popToken();else if(e.text==="`")if(e=l.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new M("\\char` missing argument");r=e.text.charCodeAt(0)}else t=10;if(t){if(r=ta[e.text],r==null||r>=t)throw new M("Invalid base-"+t+" digit "+e.text);for(var a;(a=ta[l.future().text])!=null&&a":"\\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"};c("\\dots",function(l){var e="\\dotso",t=l.expandAfterFuture().text;return t in ra?e=ra[t]:(t.slice(0,4)==="\\not"||t in Z.math&&I.contains(["bin","rel"],Z.math[t].group))&&(e="\\dotsb"),e});var Bt={")":!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};c("\\dotso",function(l){var e=l.future().text;return e in Bt?"\\ldots\\,":"\\ldots"}),c("\\dotsc",function(l){var e=l.future().text;return e in Bt&&e!==","?"\\ldots\\,":"\\ldots"}),c("\\cdots",function(l){var e=l.future().text;return e in Bt?"\\@cdots\\,":"\\@cdots"}),c("\\dotsb","\\cdots"),c("\\dotsm","\\cdots"),c("\\dotsi","\\!\\cdots"),c("\\dotsx","\\ldots\\,"),c("\\DOTSI","\\relax"),c("\\DOTSB","\\relax"),c("\\DOTSX","\\relax"),c("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),c("\\,","\\tmspace+{3mu}{.1667em}"),c("\\thinspace","\\,"),c("\\>","\\mskip{4mu}"),c("\\:","\\tmspace+{4mu}{.2222em}"),c("\\medspace","\\:"),c("\\;","\\tmspace+{5mu}{.2777em}"),c("\\thickspace","\\;"),c("\\!","\\tmspace-{3mu}{.1667em}"),c("\\negthinspace","\\!"),c("\\negmedspace","\\tmspace-{4mu}{.2222em}"),c("\\negthickspace","\\tmspace-{5mu}{.277em}"),c("\\enspace","\\kern.5em "),c("\\enskip","\\hskip.5em\\relax"),c("\\quad","\\hskip1em\\relax"),c("\\qquad","\\hskip2em\\relax"),c("\\tag","\\@ifstar\\tag@literal\\tag@paren"),c("\\tag@paren","\\tag@literal{({#1})}"),c("\\tag@literal",function(l){if(l.macros.get("\\df@tag"))throw new M("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),c("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),c("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),c("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),c("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),c("\\newline","\\\\\\relax"),c("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var aa=z(x0["Main-Regular"]["T".charCodeAt(0)][1]-.7*x0["Main-Regular"]["A".charCodeAt(0)][1]);c("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+aa+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),c("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+aa+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),c("\\hspace","\\@ifstar\\@hspacer\\@hspace"),c("\\@hspace","\\hskip #1\\relax"),c("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),c("\\ordinarycolon",":"),c("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),c("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),c("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),c("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),c("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),c("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),c("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),c("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),c("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),c("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),c("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),c("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),c("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),c("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),c("\u2237","\\dblcolon"),c("\u2239","\\eqcolon"),c("\u2254","\\coloneqq"),c("\u2255","\\eqqcolon"),c("\u2A74","\\Coloneqq"),c("\\ratio","\\vcentcolon"),c("\\coloncolon","\\dblcolon"),c("\\colonequals","\\coloneqq"),c("\\coloncolonequals","\\Coloneqq"),c("\\equalscolon","\\eqqcolon"),c("\\equalscoloncolon","\\Eqqcolon"),c("\\colonminus","\\coloneq"),c("\\coloncolonminus","\\Coloneq"),c("\\minuscolon","\\eqcolon"),c("\\minuscoloncolon","\\Eqcolon"),c("\\coloncolonapprox","\\Colonapprox"),c("\\coloncolonsim","\\Colonsim"),c("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),c("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),c("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),c("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),c("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),c("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),c("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),c("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),c("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),c("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),c("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),c("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),c("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),c("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),c("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),c("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),c("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),c("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),c("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),c("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),c("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),c("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),c("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),c("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),c("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),c("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),c("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),c("\\imath","\\html@mathml{\\@imath}{\u0131}"),c("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),c("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),c("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),c("\u27E6","\\llbracket"),c("\u27E7","\\rrbracket"),c("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),c("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),c("\u2983","\\lBrace"),c("\u2984","\\rBrace"),c("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),c("\u29B5","\\minuso"),c("\\darr","\\downarrow"),c("\\dArr","\\Downarrow"),c("\\Darr","\\Downarrow"),c("\\lang","\\langle"),c("\\rang","\\rangle"),c("\\uarr","\\uparrow"),c("\\uArr","\\Uparrow"),c("\\Uarr","\\Uparrow"),c("\\N","\\mathbb{N}"),c("\\R","\\mathbb{R}"),c("\\Z","\\mathbb{Z}"),c("\\alef","\\aleph"),c("\\alefsym","\\aleph"),c("\\Alpha","\\mathrm{A}"),c("\\Beta","\\mathrm{B}"),c("\\bull","\\bullet"),c("\\Chi","\\mathrm{X}"),c("\\clubs","\\clubsuit"),c("\\cnums","\\mathbb{C}"),c("\\Complex","\\mathbb{C}"),c("\\Dagger","\\ddagger"),c("\\diamonds","\\diamondsuit"),c("\\empty","\\emptyset"),c("\\Epsilon","\\mathrm{E}"),c("\\Eta","\\mathrm{H}"),c("\\exist","\\exists"),c("\\harr","\\leftrightarrow"),c("\\hArr","\\Leftrightarrow"),c("\\Harr","\\Leftrightarrow"),c("\\hearts","\\heartsuit"),c("\\image","\\Im"),c("\\infin","\\infty"),c("\\Iota","\\mathrm{I}"),c("\\isin","\\in"),c("\\Kappa","\\mathrm{K}"),c("\\larr","\\leftarrow"),c("\\lArr","\\Leftarrow"),c("\\Larr","\\Leftarrow"),c("\\lrarr","\\leftrightarrow"),c("\\lrArr","\\Leftrightarrow"),c("\\Lrarr","\\Leftrightarrow"),c("\\Mu","\\mathrm{M}"),c("\\natnums","\\mathbb{N}"),c("\\Nu","\\mathrm{N}"),c("\\Omicron","\\mathrm{O}"),c("\\plusmn","\\pm"),c("\\rarr","\\rightarrow"),c("\\rArr","\\Rightarrow"),c("\\Rarr","\\Rightarrow"),c("\\real","\\Re"),c("\\reals","\\mathbb{R}"),c("\\Reals","\\mathbb{R}"),c("\\Rho","\\mathrm{P}"),c("\\sdot","\\cdot"),c("\\sect","\\S"),c("\\spades","\\spadesuit"),c("\\sub","\\subset"),c("\\sube","\\subseteq"),c("\\supe","\\supseteq"),c("\\Tau","\\mathrm{T}"),c("\\thetasym","\\vartheta"),c("\\weierp","\\wp"),c("\\Zeta","\\mathrm{Z}"),c("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),c("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),c("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),c("\\bra","\\mathinner{\\langle{#1}|}"),c("\\ket","\\mathinner{|{#1}\\rangle}"),c("\\braket","\\mathinner{\\langle{#1}\\rangle}"),c("\\Bra","\\left\\langle#1\\right|"),c("\\Ket","\\left|#1\\right\\rangle");var na=function(e){return function(t){var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,s=t.consumeArg().tokens,u=t.macros.get("|"),m=t.macros.get("\\|");t.macros.beginGroup();var d=function(x){return function(k){e&&(k.macros.set("|",u),n.length&&k.macros.set("\\|",m));var B=x;if(!x&&n.length){var T=k.future();T.text==="|"&&(k.popToken(),B=!0)}return{tokens:B?n:a,numArgs:0}}};t.macros.set("|",d(!1)),n.length&&t.macros.set("\\|",d(!0));var v=t.consumeArg().tokens,b=t.expandTokens([].concat(s,v,r));return t.macros.endGroup(),{tokens:b.reverse(),numArgs:0}}};c("\\bra@ket",na(!1)),c("\\bra@set",na(!0)),c("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),c("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),c("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),c("\\angln","{\\angl n}"),c("\\blue","\\textcolor{##6495ed}{#1}"),c("\\orange","\\textcolor{##ffa500}{#1}"),c("\\pink","\\textcolor{##ff00af}{#1}"),c("\\red","\\textcolor{##df0030}{#1}"),c("\\green","\\textcolor{##28ae7b}{#1}"),c("\\gray","\\textcolor{gray}{#1}"),c("\\purple","\\textcolor{##9d38bd}{#1}"),c("\\blueA","\\textcolor{##ccfaff}{#1}"),c("\\blueB","\\textcolor{##80f6ff}{#1}"),c("\\blueC","\\textcolor{##63d9ea}{#1}"),c("\\blueD","\\textcolor{##11accd}{#1}"),c("\\blueE","\\textcolor{##0c7f99}{#1}"),c("\\tealA","\\textcolor{##94fff5}{#1}"),c("\\tealB","\\textcolor{##26edd5}{#1}"),c("\\tealC","\\textcolor{##01d1c1}{#1}"),c("\\tealD","\\textcolor{##01a995}{#1}"),c("\\tealE","\\textcolor{##208170}{#1}"),c("\\greenA","\\textcolor{##b6ffb0}{#1}"),c("\\greenB","\\textcolor{##8af281}{#1}"),c("\\greenC","\\textcolor{##74cf70}{#1}"),c("\\greenD","\\textcolor{##1fab54}{#1}"),c("\\greenE","\\textcolor{##0d923f}{#1}"),c("\\goldA","\\textcolor{##ffd0a9}{#1}"),c("\\goldB","\\textcolor{##ffbb71}{#1}"),c("\\goldC","\\textcolor{##ff9c39}{#1}"),c("\\goldD","\\textcolor{##e07d10}{#1}"),c("\\goldE","\\textcolor{##a75a05}{#1}"),c("\\redA","\\textcolor{##fca9a9}{#1}"),c("\\redB","\\textcolor{##ff8482}{#1}"),c("\\redC","\\textcolor{##f9685d}{#1}"),c("\\redD","\\textcolor{##e84d39}{#1}"),c("\\redE","\\textcolor{##bc2612}{#1}"),c("\\maroonA","\\textcolor{##ffbde0}{#1}"),c("\\maroonB","\\textcolor{##ff92c6}{#1}"),c("\\maroonC","\\textcolor{##ed5fa6}{#1}"),c("\\maroonD","\\textcolor{##ca337c}{#1}"),c("\\maroonE","\\textcolor{##9e034e}{#1}"),c("\\purpleA","\\textcolor{##ddd7ff}{#1}"),c("\\purpleB","\\textcolor{##c6b9fc}{#1}"),c("\\purpleC","\\textcolor{##aa87ff}{#1}"),c("\\purpleD","\\textcolor{##7854ab}{#1}"),c("\\purpleE","\\textcolor{##543b78}{#1}"),c("\\mintA","\\textcolor{##f5f9e8}{#1}"),c("\\mintB","\\textcolor{##edf2df}{#1}"),c("\\mintC","\\textcolor{##e0e5cc}{#1}"),c("\\grayA","\\textcolor{##f6f7f7}{#1}"),c("\\grayB","\\textcolor{##f0f1f2}{#1}"),c("\\grayC","\\textcolor{##e3e5e6}{#1}"),c("\\grayD","\\textcolor{##d6d8da}{#1}"),c("\\grayE","\\textcolor{##babec2}{#1}"),c("\\grayF","\\textcolor{##888d93}{#1}"),c("\\grayG","\\textcolor{##626569}{#1}"),c("\\grayH","\\textcolor{##3b3e40}{#1}"),c("\\grayI","\\textcolor{##21242c}{#1}"),c("\\kaBlue","\\textcolor{##314453}{#1}"),c("\\kaGreen","\\textcolor{##71B307}{#1}");var ia={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},dn=function(){function l(t,r,a){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=r,this.expansionCount=0,this.feed(t),this.macros=new hn(cn,r.macros),this.mode=a,this.stack=[]}var e=l.prototype;return e.feed=function(r){this.lexer=new ea(r,this.settings)},e.switchMode=function(r){this.mode=r},e.beginGroup=function(){this.macros.beginGroup()},e.endGroup=function(){this.macros.endGroup()},e.endGroups=function(){this.macros.endGroups()},e.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},e.popToken=function(){return this.future(),this.stack.pop()},e.pushToken=function(r){this.stack.push(r)},e.pushTokens=function(r){var a;(a=this.stack).push.apply(a,r)},e.scanArgument=function(r){var a,n,s;if(r){if(this.consumeSpaces(),this.future().text!=="[")return null;a=this.popToken();var u=this.consumeArg(["]"]);s=u.tokens,n=u.end}else{var m=this.consumeArg();s=m.tokens,a=m.start,n=m.end}return this.pushToken(new I0("EOF",n.loc)),this.pushTokens(s),a.range(n,"")},e.consumeSpaces=function(){for(;;){var r=this.future();if(r.text===" ")this.stack.pop();else break}},e.consumeArg=function(r){var a=[],n=r&&r.length>0;n||this.consumeSpaces();var s=this.future(),u,m=0,d=0;do{if(u=this.popToken(),a.push(u),u.text==="{")++m;else if(u.text==="}"){if(--m,m===-1)throw new M("Extra }",u)}else if(u.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(r&&n?r[d]:"}")+"'",u);if(r&&n)if((m===0||m===1&&r[d]==="{")&&u.text===r[d]){if(++d,d===r.length){a.splice(-d,d);break}}else d=0}while(m!==0||n);return s.text==="{"&&a[a.length-1].text==="}"&&(a.pop(),a.shift()),a.reverse(),{tokens:a,start:s,end:u}},e.consumeArgs=function(r,a){if(a){if(a.length!==r+1)throw new M("The length of delimiters doesn't match the number of args!");for(var n=a[0],s=0;sthis.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting");var u=s.tokens,m=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){u=u.slice();for(var d=u.length-1;d>=0;--d){var v=u[d];if(v.text==="#"){if(d===0)throw new M("Incomplete placeholder at end of macro body",v);if(v=u[--d],v.text==="#")u.splice(d+1,1);else if(/^[1-9]$/.test(v.text)){var b;(b=u).splice.apply(b,[d,2].concat(m[+v.text-1]))}else throw new M("Not a valid argument number",v)}}}return this.pushTokens(u),u.length},e.expandAfterFuture=function(){return this.expandOnce(),this.future()},e.expandNextToken=function(){for(;;)if(this.expandOnce()===!1){var r=this.stack.pop();return r.treatAsRelax&&(r.text="\\relax"),r}throw new Error},e.expandMacro=function(r){return this.macros.has(r)?this.expandTokens([new I0(r)]):void 0},e.expandTokens=function(r){var a=[],n=this.stack.length;for(this.pushTokens(r);this.stack.length>n;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),a.push(s)}return a},e.expandMacroAsText=function(r){var a=this.expandMacro(r);return a&&a.map(function(n){return n.text}).join("")},e._getExpansion=function(r){var a=this.macros.get(r);if(a==null)return a;if(r.length===1){var n=this.lexer.catcodes[r];if(n!=null&&n!==13)return}var s=typeof a=="function"?a(this):a;if(typeof s=="string"){var u=0;if(s.indexOf("#")!==-1)for(var m=s.replace(/##/g,"");m.indexOf("#"+(u+1))!==-1;)++u;for(var d=new ea(s,this.settings),v=[],b=d.lex();b.text!=="EOF";)v.push(b),b=d.lex();v.reverse();var w={tokens:v,numArgs:u};return w}return s},e.isDefined=function(r){return this.macros.has(r)||L0.hasOwnProperty(r)||Z.math.hasOwnProperty(r)||Z.text.hasOwnProperty(r)||ia.hasOwnProperty(r)},e.isExpandable=function(r){var a=this.macros.get(r);return a!=null?typeof a=="string"||typeof a=="function"||!a.unexpandable:L0.hasOwnProperty(r)&&!L0[r].primitive},l}(),la=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ie=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"}),zt={"\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"}},sa={\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"},oa=function(){function l(t,r){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 dn(t,r,this.mode),this.settings=r,this.leftrightDepth=0}var e=l.prototype;return e.expect=function(r,a){if(a===void 0&&(a=!0),this.fetch().text!==r)throw new M("Expected '"+r+"', got '"+this.fetch().text+"'",this.fetch());a&&this.consume()},e.consume=function(){this.nextToken=null},e.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},e.switchMode=function(r){this.mode=r,this.gullet.switchMode(r)},e.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var r=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),r}finally{this.gullet.endGroups()}},e.subparse=function(r){var a=this.nextToken;this.consume(),this.gullet.pushToken(new I0("}")),this.gullet.pushTokens(r);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,n},e.parseExpression=function(r,a){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(l.endOfExpression.indexOf(s.text)!==-1||a&&s.text===a||r&&L0[s.text]&&L0[s.text].infix)break;var u=this.parseAtom(a);if(u){if(u.type==="internal")continue}else break;n.push(u)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)},e.handleInfixNodes=function(r){for(var a=-1,n,s=0;s=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+a[0]+'" used in math mode',r);var d=Z[this.mode][a].group,v=b0.range(r),b;if(Ja.hasOwnProperty(d)){var w=d;b={type:"atom",mode:this.mode,family:w,loc:v,text:a}}else b={type:d,mode:this.mode,loc:v,text:a};m=b}else if(a.charCodeAt(0)>=128)this.settings.strict&&(Rt(a.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+a[0]+'" used in math mode',r):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),r)),m={type:"textord",mode:"text",loc:b0.range(r),text:a};else return null;if(this.consume(),u)for(var x=0;x15?b="\u2026"+m.slice(s-15,s):b=m.slice(0,s);let y;l+15":">","<":"<",'"':""","'":"'"},Wr=/[&><"']/g;function Yr(t){return String(t).replace(Wr,e=>Ur[e])}const X0=function(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?X0(t.body[0]):t:t.type==="font"?X0(t.body):t},Xr=function(t){const e=X0(t);return e.type==="mathord"||e.type==="textord"||e.type==="atom"},jr=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t};var C={contains:Pr,deflt:Gr,escape:Yr,hyphenate:_r,getBaseElem:X0,isCharacterBox:Xr,protocolFromUrl:function(t){const e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"}};const re={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand ",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function $r(t){if(t.default)return t.default;const e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ze{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(const r in re)if(re.hasOwnProperty(r)){const n=re[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:$r(n)}}reportNonstrict(e,r,n){let s=this.strict;if(typeof s=="function"&&(s=s(e,r,n)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);s==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){let s=this.strict;if(typeof s=="function")try{s=s(e,r,n)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){const n=C.protocolFromUrl(e.url);if(n==null)return!1;e.protocol=n}const r=typeof this.trust=="function"?this.trust(e):this.trust;return Boolean(r)}}class C0{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return b0[Zr[this.id]]}sub(){return b0[Kr[this.id]]}fracNum(){return b0[Jr[this.id]]}fracDen(){return b0[Qr[this.id]]}cramp(){return b0[en[this.id]]}text(){return b0[tn[this.id]]}isTight(){return this.size>=2}}const Ae=0,ne=1,P0=2,k0=3,j0=4,c0=5,G0=6,r0=7,b0=[new C0(Ae,0,!1),new C0(ne,0,!0),new C0(P0,1,!1),new C0(k0,1,!0),new C0(j0,2,!1),new C0(c0,2,!0),new C0(G0,3,!1),new C0(r0,3,!0)],Zr=[j0,c0,j0,c0,G0,r0,G0,r0],Kr=[c0,c0,c0,c0,r0,r0,r0,r0],Jr=[P0,k0,j0,c0,G0,r0,G0,r0],Qr=[k0,k0,c0,c0,r0,r0,r0,r0],en=[ne,ne,k0,k0,c0,c0,r0,r0],tn=[Ae,ne,P0,k0,P0,k0,P0,k0];var D={DISPLAY:b0[Ae],TEXT:b0[P0],SCRIPT:b0[j0],SCRIPTSCRIPT:b0[G0]};const Te=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function rn(t){for(let e=0;e=s[0]&&t<=s[1])return r.name}}return null}const se=[];Te.forEach(t=>t.blocks.forEach(e=>se.push(...e)));function mt(t){for(let e=0;e=se[e]&&t<=se[e+1])return!0;return!1}const V0=80,nn=function(t,e){return"M95,"+(622+t+e)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+t/2.075+" -"+t+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+t)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},sn=function(t,e){return"M263,"+(601+t+e)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+t/2.084+" -"+t+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+t)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},an=function(t,e){return"M983 "+(10+t+e)+` -l`+t/3.13+" -"+t+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+e+"h400000v"+(40+t)+"h-400000z"},ln=function(t,e){return"M424,"+(2398+t+e)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+t)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+e+` -h400000v`+(40+t)+"h-400000z"},on=function(t,e){return"M473,"+(2713+t+e)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+e+"h400000v"+(40+t)+"H1017.7z"},cn=function(t){const e=t/2;return"M400000 "+t+" H0 L"+e+" 0 l65 45 L145 "+(t-80)+" H400000z"},un=function(t,e,r){const n=r-54-e-t;return"M702 "+(t+e)+"H400000"+(40+t)+` -H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+e+"H400000v"+(40+t)+"H742z"},hn=function(t,e,r){e=1e3*e;let n="";switch(t){case"sqrtMain":n=nn(e,V0);break;case"sqrtSize1":n=sn(e,V0);break;case"sqrtSize2":n=an(e,V0);break;case"sqrtSize3":n=ln(e,V0);break;case"sqrtSize4":n=on(e,V0);break;case"sqrtTall":n=un(e,V0,r)}return n},mn=function(t,e){switch(t){case"\u239C":return"M291 0 H417 V"+e+" H291z M291 0 H417 V"+e+" H291z";case"\u2223":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145z";case"\u2225":return"M145 0 H188 V"+e+" H145z M145 0 H188 V"+e+" H145z"+("M367 0 H410 V"+e+" H367z M367 0 H410 V"+e+" H367z");case"\u239F":return"M457 0 H583 V"+e+" H457z M457 0 H583 V"+e+" H457z";case"\u23A2":return"M319 0 H403 V"+e+" H319z M319 0 H403 V"+e+" H319z";case"\u23A5":return"M263 0 H347 V"+e+" H263z M263 0 H347 V"+e+" H263z";case"\u23AA":return"M384 0 H504 V"+e+" H384z M384 0 H504 V"+e+" H384z";case"\u23D0":return"M312 0 H355 V"+e+" H312z M312 0 H355 V"+e+" H312z";case"\u2016":return"M257 0 H300 V"+e+" H257z M257 0 H300 V"+e+" H257z"+("M478 0 H521 V"+e+" H478z M478 0 H521 V"+e+" H478z");default:return""}},dt={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z -M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z -M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z -M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z -M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},dn=function(t,e){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+` v1759 h347 v-84 -H403z M403 1759 V0 H319 V1759 v`+e+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+` v1759 H0 v84 H347z -M347 1759 V0 H263 V1759 v`+e+" v1759 h84z";case"vert":return"M145 15 v585 v"+e+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-e+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+e+" v585 h43z";case"doublevert":return"M145 15 v585 v"+e+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-e+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+e+` v585 h43z -M367 15 v585 v`+e+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-e+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+e+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+e+` v1715 h263 v84 H319z -MM319 602 V0 H403 V602 v`+e+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+e+` v1799 H0 v-84 H319z -MM319 602 V0 H403 V602 v`+e+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+` v602 h84z -M403 1759 V0 H319 V1759 v`+e+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+` v602 h84z -M347 1759 V0 h-84 V1759 v`+e+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 -c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, --36,557 l0,`+(e+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, -949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 -c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, --544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 -l0,-`+(e+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, --210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, -63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 -c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(e+9)+` -c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 -c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 -c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 -c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 -l0,-`+(e+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class $0{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return C.contains(this.classes,e)}toNode(){const e=document.createDocumentFragment();for(let r=0;rr.toText();return this.children.map(e).join("")}}var y0={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const ie={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},pt={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function pn(t,e){y0[t]=e}function Be(t,e,r){if(!y0[e])throw new Error("Font metrics not found for font: "+e+".");let n=t.charCodeAt(0),s=y0[e][n];if(!s&&t[0]in pt&&(n=pt[t[0]].charCodeAt(0),s=y0[e][n]),!s&&r==="text"&&mt(n)&&(s=y0[e][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}const Ne={};function fn(t){let e;if(t>=5?e=0:t>=3?e=1:e=2,!Ne[e]){const r=Ne[e]={cssEmPerMu:ie.quad[e]/18};for(const n in ie)ie.hasOwnProperty(n)&&(r[n]=ie[n][e])}return Ne[e]}const gn=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ft=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],gt=function(t,e){return e.size<2?t:gn[t-1][e.size-1]};class S0{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||S0.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=ft[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){const r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return new S0(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:gt(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ft[e-1]})}havingBaseStyle(e){e=e||this.style.text();const r=gt(S0.BASESIZE,e);return this.size===r&&this.textSize===S0.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){let e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==S0.BASESIZE?["sizing","reset-size"+this.size,"size"+S0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=fn(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}S0.BASESIZE=6;var bn=S0;const Ce={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},yn={ex:!0,em:!0,mu:!0},bt=function(t){return typeof t!="string"&&(t=t.unit),t in Ce||t in yn||t==="ex"},X=function(t,e){let r;if(t.unit in Ce)r=Ce[t.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if(t.unit==="mu")r=e.fontMetrics().cssEmPerMu;else{let n;if(e.style.isTight()?n=e.havingStyle(e.style.text()):n=e,t.unit==="ex")r=n.fontMetrics().xHeight;else if(t.unit==="em")r=n.fontMetrics().quad;else throw new M("Invalid unit: '"+t.unit+"'");n!==e&&(r*=n.sizeMultiplier/e.sizeMultiplier)}return Math.min(t.number*r,e.maxSize)},z=function(t){return+t.toFixed(4)+"em"},D0=function(t){return t.filter(e=>e).join(" ")},yt=function(t,e,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},e){e.style.isTight()&&this.classes.push("mtight");const n=e.getColor();n&&(this.style.color=n)}},xt=function(t){const e=document.createElement(t);e.className=D0(this.classes);for(const r in this.style)this.style.hasOwnProperty(r)&&(e.style[r]=this.style[r]);for(const r in this.attributes)this.attributes.hasOwnProperty(r)&&e.setAttribute(r,this.attributes[r]);for(let r=0;r",e};class Z0{constructor(e,r,n,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,yt.call(this,e,n,s),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return C.contains(this.classes,e)}toNode(){return xt.call(this,"span")}toMarkup(){return wt.call(this,"span")}}class De{constructor(e,r,n,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,yt.call(this,r,s),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return C.contains(this.classes,e)}toNode(){return xt.call(this,"a")}toMarkup(){return wt.call(this,"a")}}class xn{constructor(e,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return C.contains(this.classes,e)}toNode(){const e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const r in this.style)this.style.hasOwnProperty(r)&&(e.style[r]=this.style[r]);return e}toMarkup(){let e=''+C.escape(this.alt)+'0&&(r=document.createElement("span"),r.style.marginRight=z(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=D0(this.classes));for(const n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(e),r):e}toMarkup(){let e=!1,r="0&&(n+="margin-right:"+this.italic+"em;");for(const l in this.style)this.style.hasOwnProperty(l)&&(n+=C.hyphenate(l)+":"+this.style[l]+";");n&&(e=!0,r+=' style="'+C.escape(n)+'"');const s=C.escape(this.text);return e?(r+=">",r+=s,r+="",r):s}}class M0{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){const e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(const n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(let n=0;n':''}}class qe{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){const e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(const n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){let e=" but got "+String(t)+".")}const kn={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Sn={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ae={math:{},text:{}};var j=ae;function i(t,e,r,n,s,l){ae[t][s]={font:e,group:r,replace:n},l&&n&&(ae[t][n]=ae[t][s])}const a="math",k="text",c="main",d="ams",W="accent-token",T="bin",n0="close",_0="inner",q="mathord",Q="op-token",l0="open",le="punct",p="rel",z0="spacing",g="textord";i(a,c,p,"\u2261","\\equiv",!0),i(a,c,p,"\u227A","\\prec",!0),i(a,c,p,"\u227B","\\succ",!0),i(a,c,p,"\u223C","\\sim",!0),i(a,c,p,"\u22A5","\\perp"),i(a,c,p,"\u2AAF","\\preceq",!0),i(a,c,p,"\u2AB0","\\succeq",!0),i(a,c,p,"\u2243","\\simeq",!0),i(a,c,p,"\u2223","\\mid",!0),i(a,c,p,"\u226A","\\ll",!0),i(a,c,p,"\u226B","\\gg",!0),i(a,c,p,"\u224D","\\asymp",!0),i(a,c,p,"\u2225","\\parallel"),i(a,c,p,"\u22C8","\\bowtie",!0),i(a,c,p,"\u2323","\\smile",!0),i(a,c,p,"\u2291","\\sqsubseteq",!0),i(a,c,p,"\u2292","\\sqsupseteq",!0),i(a,c,p,"\u2250","\\doteq",!0),i(a,c,p,"\u2322","\\frown",!0),i(a,c,p,"\u220B","\\ni",!0),i(a,c,p,"\u221D","\\propto",!0),i(a,c,p,"\u22A2","\\vdash",!0),i(a,c,p,"\u22A3","\\dashv",!0),i(a,c,p,"\u220B","\\owns"),i(a,c,le,".","\\ldotp"),i(a,c,le,"\u22C5","\\cdotp"),i(a,c,g,"#","\\#"),i(k,c,g,"#","\\#"),i(a,c,g,"&","\\&"),i(k,c,g,"&","\\&"),i(a,c,g,"\u2135","\\aleph",!0),i(a,c,g,"\u2200","\\forall",!0),i(a,c,g,"\u210F","\\hbar",!0),i(a,c,g,"\u2203","\\exists",!0),i(a,c,g,"\u2207","\\nabla",!0),i(a,c,g,"\u266D","\\flat",!0),i(a,c,g,"\u2113","\\ell",!0),i(a,c,g,"\u266E","\\natural",!0),i(a,c,g,"\u2663","\\clubsuit",!0),i(a,c,g,"\u2118","\\wp",!0),i(a,c,g,"\u266F","\\sharp",!0),i(a,c,g,"\u2662","\\diamondsuit",!0),i(a,c,g,"\u211C","\\Re",!0),i(a,c,g,"\u2661","\\heartsuit",!0),i(a,c,g,"\u2111","\\Im",!0),i(a,c,g,"\u2660","\\spadesuit",!0),i(a,c,g,"\xA7","\\S",!0),i(k,c,g,"\xA7","\\S"),i(a,c,g,"\xB6","\\P",!0),i(k,c,g,"\xB6","\\P"),i(a,c,g,"\u2020","\\dag"),i(k,c,g,"\u2020","\\dag"),i(k,c,g,"\u2020","\\textdagger"),i(a,c,g,"\u2021","\\ddag"),i(k,c,g,"\u2021","\\ddag"),i(k,c,g,"\u2021","\\textdaggerdbl"),i(a,c,n0,"\u23B1","\\rmoustache",!0),i(a,c,l0,"\u23B0","\\lmoustache",!0),i(a,c,n0,"\u27EF","\\rgroup",!0),i(a,c,l0,"\u27EE","\\lgroup",!0),i(a,c,T,"\u2213","\\mp",!0),i(a,c,T,"\u2296","\\ominus",!0),i(a,c,T,"\u228E","\\uplus",!0),i(a,c,T,"\u2293","\\sqcap",!0),i(a,c,T,"\u2217","\\ast"),i(a,c,T,"\u2294","\\sqcup",!0),i(a,c,T,"\u25EF","\\bigcirc",!0),i(a,c,T,"\u2219","\\bullet",!0),i(a,c,T,"\u2021","\\ddagger"),i(a,c,T,"\u2240","\\wr",!0),i(a,c,T,"\u2A3F","\\amalg"),i(a,c,T,"&","\\And"),i(a,c,p,"\u27F5","\\longleftarrow",!0),i(a,c,p,"\u21D0","\\Leftarrow",!0),i(a,c,p,"\u27F8","\\Longleftarrow",!0),i(a,c,p,"\u27F6","\\longrightarrow",!0),i(a,c,p,"\u21D2","\\Rightarrow",!0),i(a,c,p,"\u27F9","\\Longrightarrow",!0),i(a,c,p,"\u2194","\\leftrightarrow",!0),i(a,c,p,"\u27F7","\\longleftrightarrow",!0),i(a,c,p,"\u21D4","\\Leftrightarrow",!0),i(a,c,p,"\u27FA","\\Longleftrightarrow",!0),i(a,c,p,"\u21A6","\\mapsto",!0),i(a,c,p,"\u27FC","\\longmapsto",!0),i(a,c,p,"\u2197","\\nearrow",!0),i(a,c,p,"\u21A9","\\hookleftarrow",!0),i(a,c,p,"\u21AA","\\hookrightarrow",!0),i(a,c,p,"\u2198","\\searrow",!0),i(a,c,p,"\u21BC","\\leftharpoonup",!0),i(a,c,p,"\u21C0","\\rightharpoonup",!0),i(a,c,p,"\u2199","\\swarrow",!0),i(a,c,p,"\u21BD","\\leftharpoondown",!0),i(a,c,p,"\u21C1","\\rightharpoondown",!0),i(a,c,p,"\u2196","\\nwarrow",!0),i(a,c,p,"\u21CC","\\rightleftharpoons",!0),i(a,d,p,"\u226E","\\nless",!0),i(a,d,p,"\uE010","\\@nleqslant"),i(a,d,p,"\uE011","\\@nleqq"),i(a,d,p,"\u2A87","\\lneq",!0),i(a,d,p,"\u2268","\\lneqq",!0),i(a,d,p,"\uE00C","\\@lvertneqq"),i(a,d,p,"\u22E6","\\lnsim",!0),i(a,d,p,"\u2A89","\\lnapprox",!0),i(a,d,p,"\u2280","\\nprec",!0),i(a,d,p,"\u22E0","\\npreceq",!0),i(a,d,p,"\u22E8","\\precnsim",!0),i(a,d,p,"\u2AB9","\\precnapprox",!0),i(a,d,p,"\u2241","\\nsim",!0),i(a,d,p,"\uE006","\\@nshortmid"),i(a,d,p,"\u2224","\\nmid",!0),i(a,d,p,"\u22AC","\\nvdash",!0),i(a,d,p,"\u22AD","\\nvDash",!0),i(a,d,p,"\u22EA","\\ntriangleleft"),i(a,d,p,"\u22EC","\\ntrianglelefteq",!0),i(a,d,p,"\u228A","\\subsetneq",!0),i(a,d,p,"\uE01A","\\@varsubsetneq"),i(a,d,p,"\u2ACB","\\subsetneqq",!0),i(a,d,p,"\uE017","\\@varsubsetneqq"),i(a,d,p,"\u226F","\\ngtr",!0),i(a,d,p,"\uE00F","\\@ngeqslant"),i(a,d,p,"\uE00E","\\@ngeqq"),i(a,d,p,"\u2A88","\\gneq",!0),i(a,d,p,"\u2269","\\gneqq",!0),i(a,d,p,"\uE00D","\\@gvertneqq"),i(a,d,p,"\u22E7","\\gnsim",!0),i(a,d,p,"\u2A8A","\\gnapprox",!0),i(a,d,p,"\u2281","\\nsucc",!0),i(a,d,p,"\u22E1","\\nsucceq",!0),i(a,d,p,"\u22E9","\\succnsim",!0),i(a,d,p,"\u2ABA","\\succnapprox",!0),i(a,d,p,"\u2246","\\ncong",!0),i(a,d,p,"\uE007","\\@nshortparallel"),i(a,d,p,"\u2226","\\nparallel",!0),i(a,d,p,"\u22AF","\\nVDash",!0),i(a,d,p,"\u22EB","\\ntriangleright"),i(a,d,p,"\u22ED","\\ntrianglerighteq",!0),i(a,d,p,"\uE018","\\@nsupseteqq"),i(a,d,p,"\u228B","\\supsetneq",!0),i(a,d,p,"\uE01B","\\@varsupsetneq"),i(a,d,p,"\u2ACC","\\supsetneqq",!0),i(a,d,p,"\uE019","\\@varsupsetneqq"),i(a,d,p,"\u22AE","\\nVdash",!0),i(a,d,p,"\u2AB5","\\precneqq",!0),i(a,d,p,"\u2AB6","\\succneqq",!0),i(a,d,p,"\uE016","\\@nsubseteqq"),i(a,d,T,"\u22B4","\\unlhd"),i(a,d,T,"\u22B5","\\unrhd"),i(a,d,p,"\u219A","\\nleftarrow",!0),i(a,d,p,"\u219B","\\nrightarrow",!0),i(a,d,p,"\u21CD","\\nLeftarrow",!0),i(a,d,p,"\u21CF","\\nRightarrow",!0),i(a,d,p,"\u21AE","\\nleftrightarrow",!0),i(a,d,p,"\u21CE","\\nLeftrightarrow",!0),i(a,d,p,"\u25B3","\\vartriangle"),i(a,d,g,"\u210F","\\hslash"),i(a,d,g,"\u25BD","\\triangledown"),i(a,d,g,"\u25CA","\\lozenge"),i(a,d,g,"\u24C8","\\circledS"),i(a,d,g,"\xAE","\\circledR"),i(k,d,g,"\xAE","\\circledR"),i(a,d,g,"\u2221","\\measuredangle",!0),i(a,d,g,"\u2204","\\nexists"),i(a,d,g,"\u2127","\\mho"),i(a,d,g,"\u2132","\\Finv",!0),i(a,d,g,"\u2141","\\Game",!0),i(a,d,g,"\u2035","\\backprime"),i(a,d,g,"\u25B2","\\blacktriangle"),i(a,d,g,"\u25BC","\\blacktriangledown"),i(a,d,g,"\u25A0","\\blacksquare"),i(a,d,g,"\u29EB","\\blacklozenge"),i(a,d,g,"\u2605","\\bigstar"),i(a,d,g,"\u2222","\\sphericalangle",!0),i(a,d,g,"\u2201","\\complement",!0),i(a,d,g,"\xF0","\\eth",!0),i(k,c,g,"\xF0","\xF0"),i(a,d,g,"\u2571","\\diagup"),i(a,d,g,"\u2572","\\diagdown"),i(a,d,g,"\u25A1","\\square"),i(a,d,g,"\u25A1","\\Box"),i(a,d,g,"\u25CA","\\Diamond"),i(a,d,g,"\xA5","\\yen",!0),i(k,d,g,"\xA5","\\yen",!0),i(a,d,g,"\u2713","\\checkmark",!0),i(k,d,g,"\u2713","\\checkmark"),i(a,d,g,"\u2136","\\beth",!0),i(a,d,g,"\u2138","\\daleth",!0),i(a,d,g,"\u2137","\\gimel",!0),i(a,d,g,"\u03DD","\\digamma",!0),i(a,d,g,"\u03F0","\\varkappa"),i(a,d,l0,"\u250C","\\@ulcorner",!0),i(a,d,n0,"\u2510","\\@urcorner",!0),i(a,d,l0,"\u2514","\\@llcorner",!0),i(a,d,n0,"\u2518","\\@lrcorner",!0),i(a,d,p,"\u2266","\\leqq",!0),i(a,d,p,"\u2A7D","\\leqslant",!0),i(a,d,p,"\u2A95","\\eqslantless",!0),i(a,d,p,"\u2272","\\lesssim",!0),i(a,d,p,"\u2A85","\\lessapprox",!0),i(a,d,p,"\u224A","\\approxeq",!0),i(a,d,T,"\u22D6","\\lessdot"),i(a,d,p,"\u22D8","\\lll",!0),i(a,d,p,"\u2276","\\lessgtr",!0),i(a,d,p,"\u22DA","\\lesseqgtr",!0),i(a,d,p,"\u2A8B","\\lesseqqgtr",!0),i(a,d,p,"\u2251","\\doteqdot"),i(a,d,p,"\u2253","\\risingdotseq",!0),i(a,d,p,"\u2252","\\fallingdotseq",!0),i(a,d,p,"\u223D","\\backsim",!0),i(a,d,p,"\u22CD","\\backsimeq",!0),i(a,d,p,"\u2AC5","\\subseteqq",!0),i(a,d,p,"\u22D0","\\Subset",!0),i(a,d,p,"\u228F","\\sqsubset",!0),i(a,d,p,"\u227C","\\preccurlyeq",!0),i(a,d,p,"\u22DE","\\curlyeqprec",!0),i(a,d,p,"\u227E","\\precsim",!0),i(a,d,p,"\u2AB7","\\precapprox",!0),i(a,d,p,"\u22B2","\\vartriangleleft"),i(a,d,p,"\u22B4","\\trianglelefteq"),i(a,d,p,"\u22A8","\\vDash",!0),i(a,d,p,"\u22AA","\\Vvdash",!0),i(a,d,p,"\u2323","\\smallsmile"),i(a,d,p,"\u2322","\\smallfrown"),i(a,d,p,"\u224F","\\bumpeq",!0),i(a,d,p,"\u224E","\\Bumpeq",!0),i(a,d,p,"\u2267","\\geqq",!0),i(a,d,p,"\u2A7E","\\geqslant",!0),i(a,d,p,"\u2A96","\\eqslantgtr",!0),i(a,d,p,"\u2273","\\gtrsim",!0),i(a,d,p,"\u2A86","\\gtrapprox",!0),i(a,d,T,"\u22D7","\\gtrdot"),i(a,d,p,"\u22D9","\\ggg",!0),i(a,d,p,"\u2277","\\gtrless",!0),i(a,d,p,"\u22DB","\\gtreqless",!0),i(a,d,p,"\u2A8C","\\gtreqqless",!0),i(a,d,p,"\u2256","\\eqcirc",!0),i(a,d,p,"\u2257","\\circeq",!0),i(a,d,p,"\u225C","\\triangleq",!0),i(a,d,p,"\u223C","\\thicksim"),i(a,d,p,"\u2248","\\thickapprox"),i(a,d,p,"\u2AC6","\\supseteqq",!0),i(a,d,p,"\u22D1","\\Supset",!0),i(a,d,p,"\u2290","\\sqsupset",!0),i(a,d,p,"\u227D","\\succcurlyeq",!0),i(a,d,p,"\u22DF","\\curlyeqsucc",!0),i(a,d,p,"\u227F","\\succsim",!0),i(a,d,p,"\u2AB8","\\succapprox",!0),i(a,d,p,"\u22B3","\\vartriangleright"),i(a,d,p,"\u22B5","\\trianglerighteq"),i(a,d,p,"\u22A9","\\Vdash",!0),i(a,d,p,"\u2223","\\shortmid"),i(a,d,p,"\u2225","\\shortparallel"),i(a,d,p,"\u226C","\\between",!0),i(a,d,p,"\u22D4","\\pitchfork",!0),i(a,d,p,"\u221D","\\varpropto"),i(a,d,p,"\u25C0","\\blacktriangleleft"),i(a,d,p,"\u2234","\\therefore",!0),i(a,d,p,"\u220D","\\backepsilon"),i(a,d,p,"\u25B6","\\blacktriangleright"),i(a,d,p,"\u2235","\\because",!0),i(a,d,p,"\u22D8","\\llless"),i(a,d,p,"\u22D9","\\gggtr"),i(a,d,T,"\u22B2","\\lhd"),i(a,d,T,"\u22B3","\\rhd"),i(a,d,p,"\u2242","\\eqsim",!0),i(a,c,p,"\u22C8","\\Join"),i(a,d,p,"\u2251","\\Doteq",!0),i(a,d,T,"\u2214","\\dotplus",!0),i(a,d,T,"\u2216","\\smallsetminus"),i(a,d,T,"\u22D2","\\Cap",!0),i(a,d,T,"\u22D3","\\Cup",!0),i(a,d,T,"\u2A5E","\\doublebarwedge",!0),i(a,d,T,"\u229F","\\boxminus",!0),i(a,d,T,"\u229E","\\boxplus",!0),i(a,d,T,"\u22C7","\\divideontimes",!0),i(a,d,T,"\u22C9","\\ltimes",!0),i(a,d,T,"\u22CA","\\rtimes",!0),i(a,d,T,"\u22CB","\\leftthreetimes",!0),i(a,d,T,"\u22CC","\\rightthreetimes",!0),i(a,d,T,"\u22CF","\\curlywedge",!0),i(a,d,T,"\u22CE","\\curlyvee",!0),i(a,d,T,"\u229D","\\circleddash",!0),i(a,d,T,"\u229B","\\circledast",!0),i(a,d,T,"\u22C5","\\centerdot"),i(a,d,T,"\u22BA","\\intercal",!0),i(a,d,T,"\u22D2","\\doublecap"),i(a,d,T,"\u22D3","\\doublecup"),i(a,d,T,"\u22A0","\\boxtimes",!0),i(a,d,p,"\u21E2","\\dashrightarrow",!0),i(a,d,p,"\u21E0","\\dashleftarrow",!0),i(a,d,p,"\u21C7","\\leftleftarrows",!0),i(a,d,p,"\u21C6","\\leftrightarrows",!0),i(a,d,p,"\u21DA","\\Lleftarrow",!0),i(a,d,p,"\u219E","\\twoheadleftarrow",!0),i(a,d,p,"\u21A2","\\leftarrowtail",!0),i(a,d,p,"\u21AB","\\looparrowleft",!0),i(a,d,p,"\u21CB","\\leftrightharpoons",!0),i(a,d,p,"\u21B6","\\curvearrowleft",!0),i(a,d,p,"\u21BA","\\circlearrowleft",!0),i(a,d,p,"\u21B0","\\Lsh",!0),i(a,d,p,"\u21C8","\\upuparrows",!0),i(a,d,p,"\u21BF","\\upharpoonleft",!0),i(a,d,p,"\u21C3","\\downharpoonleft",!0),i(a,c,p,"\u22B6","\\origof",!0),i(a,c,p,"\u22B7","\\imageof",!0),i(a,d,p,"\u22B8","\\multimap",!0),i(a,d,p,"\u21AD","\\leftrightsquigarrow",!0),i(a,d,p,"\u21C9","\\rightrightarrows",!0),i(a,d,p,"\u21C4","\\rightleftarrows",!0),i(a,d,p,"\u21A0","\\twoheadrightarrow",!0),i(a,d,p,"\u21A3","\\rightarrowtail",!0),i(a,d,p,"\u21AC","\\looparrowright",!0),i(a,d,p,"\u21B7","\\curvearrowright",!0),i(a,d,p,"\u21BB","\\circlearrowright",!0),i(a,d,p,"\u21B1","\\Rsh",!0),i(a,d,p,"\u21CA","\\downdownarrows",!0),i(a,d,p,"\u21BE","\\upharpoonright",!0),i(a,d,p,"\u21C2","\\downharpoonright",!0),i(a,d,p,"\u21DD","\\rightsquigarrow",!0),i(a,d,p,"\u21DD","\\leadsto"),i(a,d,p,"\u21DB","\\Rrightarrow",!0),i(a,d,p,"\u21BE","\\restriction"),i(a,c,g,"\u2018","`"),i(a,c,g,"$","\\$"),i(k,c,g,"$","\\$"),i(k,c,g,"$","\\textdollar"),i(a,c,g,"%","\\%"),i(k,c,g,"%","\\%"),i(a,c,g,"_","\\_"),i(k,c,g,"_","\\_"),i(k,c,g,"_","\\textunderscore"),i(a,c,g,"\u2220","\\angle",!0),i(a,c,g,"\u221E","\\infty",!0),i(a,c,g,"\u2032","\\prime"),i(a,c,g,"\u25B3","\\triangle"),i(a,c,g,"\u0393","\\Gamma",!0),i(a,c,g,"\u0394","\\Delta",!0),i(a,c,g,"\u0398","\\Theta",!0),i(a,c,g,"\u039B","\\Lambda",!0),i(a,c,g,"\u039E","\\Xi",!0),i(a,c,g,"\u03A0","\\Pi",!0),i(a,c,g,"\u03A3","\\Sigma",!0),i(a,c,g,"\u03A5","\\Upsilon",!0),i(a,c,g,"\u03A6","\\Phi",!0),i(a,c,g,"\u03A8","\\Psi",!0),i(a,c,g,"\u03A9","\\Omega",!0),i(a,c,g,"A","\u0391"),i(a,c,g,"B","\u0392"),i(a,c,g,"E","\u0395"),i(a,c,g,"Z","\u0396"),i(a,c,g,"H","\u0397"),i(a,c,g,"I","\u0399"),i(a,c,g,"K","\u039A"),i(a,c,g,"M","\u039C"),i(a,c,g,"N","\u039D"),i(a,c,g,"O","\u039F"),i(a,c,g,"P","\u03A1"),i(a,c,g,"T","\u03A4"),i(a,c,g,"X","\u03A7"),i(a,c,g,"\xAC","\\neg",!0),i(a,c,g,"\xAC","\\lnot"),i(a,c,g,"\u22A4","\\top"),i(a,c,g,"\u22A5","\\bot"),i(a,c,g,"\u2205","\\emptyset"),i(a,d,g,"\u2205","\\varnothing"),i(a,c,q,"\u03B1","\\alpha",!0),i(a,c,q,"\u03B2","\\beta",!0),i(a,c,q,"\u03B3","\\gamma",!0),i(a,c,q,"\u03B4","\\delta",!0),i(a,c,q,"\u03F5","\\epsilon",!0),i(a,c,q,"\u03B6","\\zeta",!0),i(a,c,q,"\u03B7","\\eta",!0),i(a,c,q,"\u03B8","\\theta",!0),i(a,c,q,"\u03B9","\\iota",!0),i(a,c,q,"\u03BA","\\kappa",!0),i(a,c,q,"\u03BB","\\lambda",!0),i(a,c,q,"\u03BC","\\mu",!0),i(a,c,q,"\u03BD","\\nu",!0),i(a,c,q,"\u03BE","\\xi",!0),i(a,c,q,"\u03BF","\\omicron",!0),i(a,c,q,"\u03C0","\\pi",!0),i(a,c,q,"\u03C1","\\rho",!0),i(a,c,q,"\u03C3","\\sigma",!0),i(a,c,q,"\u03C4","\\tau",!0),i(a,c,q,"\u03C5","\\upsilon",!0),i(a,c,q,"\u03D5","\\phi",!0),i(a,c,q,"\u03C7","\\chi",!0),i(a,c,q,"\u03C8","\\psi",!0),i(a,c,q,"\u03C9","\\omega",!0),i(a,c,q,"\u03B5","\\varepsilon",!0),i(a,c,q,"\u03D1","\\vartheta",!0),i(a,c,q,"\u03D6","\\varpi",!0),i(a,c,q,"\u03F1","\\varrho",!0),i(a,c,q,"\u03C2","\\varsigma",!0),i(a,c,q,"\u03C6","\\varphi",!0),i(a,c,T,"\u2217","*",!0),i(a,c,T,"+","+"),i(a,c,T,"\u2212","-",!0),i(a,c,T,"\u22C5","\\cdot",!0),i(a,c,T,"\u2218","\\circ",!0),i(a,c,T,"\xF7","\\div",!0),i(a,c,T,"\xB1","\\pm",!0),i(a,c,T,"\xD7","\\times",!0),i(a,c,T,"\u2229","\\cap",!0),i(a,c,T,"\u222A","\\cup",!0),i(a,c,T,"\u2216","\\setminus",!0),i(a,c,T,"\u2227","\\land"),i(a,c,T,"\u2228","\\lor"),i(a,c,T,"\u2227","\\wedge",!0),i(a,c,T,"\u2228","\\vee",!0),i(a,c,g,"\u221A","\\surd"),i(a,c,l0,"\u27E8","\\langle",!0),i(a,c,l0,"\u2223","\\lvert"),i(a,c,l0,"\u2225","\\lVert"),i(a,c,n0,"?","?"),i(a,c,n0,"!","!"),i(a,c,n0,"\u27E9","\\rangle",!0),i(a,c,n0,"\u2223","\\rvert"),i(a,c,n0,"\u2225","\\rVert"),i(a,c,p,"=","="),i(a,c,p,":",":"),i(a,c,p,"\u2248","\\approx",!0),i(a,c,p,"\u2245","\\cong",!0),i(a,c,p,"\u2265","\\ge"),i(a,c,p,"\u2265","\\geq",!0),i(a,c,p,"\u2190","\\gets"),i(a,c,p,">","\\gt",!0),i(a,c,p,"\u2208","\\in",!0),i(a,c,p,"\uE020","\\@not"),i(a,c,p,"\u2282","\\subset",!0),i(a,c,p,"\u2283","\\supset",!0),i(a,c,p,"\u2286","\\subseteq",!0),i(a,c,p,"\u2287","\\supseteq",!0),i(a,d,p,"\u2288","\\nsubseteq",!0),i(a,d,p,"\u2289","\\nsupseteq",!0),i(a,c,p,"\u22A8","\\models"),i(a,c,p,"\u2190","\\leftarrow",!0),i(a,c,p,"\u2264","\\le"),i(a,c,p,"\u2264","\\leq",!0),i(a,c,p,"<","\\lt",!0),i(a,c,p,"\u2192","\\rightarrow",!0),i(a,c,p,"\u2192","\\to"),i(a,d,p,"\u2271","\\ngeq",!0),i(a,d,p,"\u2270","\\nleq",!0),i(a,c,z0,"\xA0","\\ "),i(a,c,z0,"\xA0","\\space"),i(a,c,z0,"\xA0","\\nobreakspace"),i(k,c,z0,"\xA0","\\ "),i(k,c,z0,"\xA0"," "),i(k,c,z0,"\xA0","\\space"),i(k,c,z0,"\xA0","\\nobreakspace"),i(a,c,z0,null,"\\nobreak"),i(a,c,z0,null,"\\allowbreak"),i(a,c,le,",",","),i(a,c,le,";",";"),i(a,d,T,"\u22BC","\\barwedge",!0),i(a,d,T,"\u22BB","\\veebar",!0),i(a,c,T,"\u2299","\\odot",!0),i(a,c,T,"\u2295","\\oplus",!0),i(a,c,T,"\u2297","\\otimes",!0),i(a,c,g,"\u2202","\\partial",!0),i(a,c,T,"\u2298","\\oslash",!0),i(a,d,T,"\u229A","\\circledcirc",!0),i(a,d,T,"\u22A1","\\boxdot",!0),i(a,c,T,"\u25B3","\\bigtriangleup"),i(a,c,T,"\u25BD","\\bigtriangledown"),i(a,c,T,"\u2020","\\dagger"),i(a,c,T,"\u22C4","\\diamond"),i(a,c,T,"\u22C6","\\star"),i(a,c,T,"\u25C3","\\triangleleft"),i(a,c,T,"\u25B9","\\triangleright"),i(a,c,l0,"{","\\{"),i(k,c,g,"{","\\{"),i(k,c,g,"{","\\textbraceleft"),i(a,c,n0,"}","\\}"),i(k,c,g,"}","\\}"),i(k,c,g,"}","\\textbraceright"),i(a,c,l0,"{","\\lbrace"),i(a,c,n0,"}","\\rbrace"),i(a,c,l0,"[","\\lbrack",!0),i(k,c,g,"[","\\lbrack",!0),i(a,c,n0,"]","\\rbrack",!0),i(k,c,g,"]","\\rbrack",!0),i(a,c,l0,"(","\\lparen",!0),i(a,c,n0,")","\\rparen",!0),i(k,c,g,"<","\\textless",!0),i(k,c,g,">","\\textgreater",!0),i(a,c,l0,"\u230A","\\lfloor",!0),i(a,c,n0,"\u230B","\\rfloor",!0),i(a,c,l0,"\u2308","\\lceil",!0),i(a,c,n0,"\u2309","\\rceil",!0),i(a,c,g,"\\","\\backslash"),i(a,c,g,"\u2223","|"),i(a,c,g,"\u2223","\\vert"),i(k,c,g,"|","\\textbar",!0),i(a,c,g,"\u2225","\\|"),i(a,c,g,"\u2225","\\Vert"),i(k,c,g,"\u2225","\\textbardbl"),i(k,c,g,"~","\\textasciitilde"),i(k,c,g,"\\","\\textbackslash"),i(k,c,g,"^","\\textasciicircum"),i(a,c,p,"\u2191","\\uparrow",!0),i(a,c,p,"\u21D1","\\Uparrow",!0),i(a,c,p,"\u2193","\\downarrow",!0),i(a,c,p,"\u21D3","\\Downarrow",!0),i(a,c,p,"\u2195","\\updownarrow",!0),i(a,c,p,"\u21D5","\\Updownarrow",!0),i(a,c,Q,"\u2210","\\coprod"),i(a,c,Q,"\u22C1","\\bigvee"),i(a,c,Q,"\u22C0","\\bigwedge"),i(a,c,Q,"\u2A04","\\biguplus"),i(a,c,Q,"\u22C2","\\bigcap"),i(a,c,Q,"\u22C3","\\bigcup"),i(a,c,Q,"\u222B","\\int"),i(a,c,Q,"\u222B","\\intop"),i(a,c,Q,"\u222C","\\iint"),i(a,c,Q,"\u222D","\\iiint"),i(a,c,Q,"\u220F","\\prod"),i(a,c,Q,"\u2211","\\sum"),i(a,c,Q,"\u2A02","\\bigotimes"),i(a,c,Q,"\u2A01","\\bigoplus"),i(a,c,Q,"\u2A00","\\bigodot"),i(a,c,Q,"\u222E","\\oint"),i(a,c,Q,"\u222F","\\oiint"),i(a,c,Q,"\u2230","\\oiiint"),i(a,c,Q,"\u2A06","\\bigsqcup"),i(a,c,Q,"\u222B","\\smallint"),i(k,c,_0,"\u2026","\\textellipsis"),i(a,c,_0,"\u2026","\\mathellipsis"),i(k,c,_0,"\u2026","\\ldots",!0),i(a,c,_0,"\u2026","\\ldots",!0),i(a,c,_0,"\u22EF","\\@cdots",!0),i(a,c,_0,"\u22F1","\\ddots",!0),i(a,c,g,"\u22EE","\\varvdots"),i(a,c,W,"\u02CA","\\acute"),i(a,c,W,"\u02CB","\\grave"),i(a,c,W,"\xA8","\\ddot"),i(a,c,W,"~","\\tilde"),i(a,c,W,"\u02C9","\\bar"),i(a,c,W,"\u02D8","\\breve"),i(a,c,W,"\u02C7","\\check"),i(a,c,W,"^","\\hat"),i(a,c,W,"\u20D7","\\vec"),i(a,c,W,"\u02D9","\\dot"),i(a,c,W,"\u02DA","\\mathring"),i(a,c,q,"\uE131","\\@imath"),i(a,c,q,"\uE237","\\@jmath"),i(a,c,g,"\u0131","\u0131"),i(a,c,g,"\u0237","\u0237"),i(k,c,g,"\u0131","\\i",!0),i(k,c,g,"\u0237","\\j",!0),i(k,c,g,"\xDF","\\ss",!0),i(k,c,g,"\xE6","\\ae",!0),i(k,c,g,"\u0153","\\oe",!0),i(k,c,g,"\xF8","\\o",!0),i(k,c,g,"\xC6","\\AE",!0),i(k,c,g,"\u0152","\\OE",!0),i(k,c,g,"\xD8","\\O",!0),i(k,c,W,"\u02CA","\\'"),i(k,c,W,"\u02CB","\\`"),i(k,c,W,"\u02C6","\\^"),i(k,c,W,"\u02DC","\\~"),i(k,c,W,"\u02C9","\\="),i(k,c,W,"\u02D8","\\u"),i(k,c,W,"\u02D9","\\."),i(k,c,W,"\xB8","\\c"),i(k,c,W,"\u02DA","\\r"),i(k,c,W,"\u02C7","\\v"),i(k,c,W,"\xA8",'\\"'),i(k,c,W,"\u02DD","\\H"),i(k,c,W,"\u25EF","\\textcircled");const kt={"--":!0,"---":!0,"``":!0,"''":!0};i(k,c,g,"\u2013","--",!0),i(k,c,g,"\u2013","\\textendash"),i(k,c,g,"\u2014","---",!0),i(k,c,g,"\u2014","\\textemdash"),i(k,c,g,"\u2018","`",!0),i(k,c,g,"\u2018","\\textquoteleft"),i(k,c,g,"\u2019","'",!0),i(k,c,g,"\u2019","\\textquoteright"),i(k,c,g,"\u201C","``",!0),i(k,c,g,"\u201C","\\textquotedblleft"),i(k,c,g,"\u201D","''",!0),i(k,c,g,"\u201D","\\textquotedblright"),i(a,c,g,"\xB0","\\degree",!0),i(k,c,g,"\xB0","\\degree"),i(k,c,g,"\xB0","\\textdegree",!0),i(a,c,g,"\xA3","\\pounds"),i(a,c,g,"\xA3","\\mathsterling",!0),i(k,c,g,"\xA3","\\pounds"),i(k,c,g,"\xA3","\\textsterling",!0),i(a,d,g,"\u2720","\\maltese"),i(k,d,g,"\u2720","\\maltese");const St='0123456789/@."';for(let t=0;t0)return g0(s,m,n,e,l.concat(f));if(u){let b,y;if(u==="boldsymbol"){const w=An(s,n,e,l,r);b=w.fontName,y=[w.fontClass]}else o?(b=Bt[u].fontName,y=[u]):(b=he(u,e.fontWeight,e.fontShape),y=[u,e.fontWeight,e.fontShape]);if(ue(s,b,n).metrics)return g0(s,b,n,e,l.concat(y));if(kt.hasOwnProperty(s)&&b.slice(0,10)==="Typewriter"){const w=[];for(let v=0;v{if(D0(t.classes)!==D0(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){const r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(const r in t.style)if(t.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;for(const r in e.style)if(e.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;return!0},Nn=t=>{for(let e=0;ee&&(e=l.height),l.depth>r&&(r=l.depth),l.maxFontSize>n&&(n=l.maxFontSize)}t.height=e,t.depth=r,t.maxFontSize=n},i0=function(t,e,r,n){const s=new Z0(t,e,r,n);return Re(s),s},At=(t,e,r,n)=>new Z0(t,e,r,n),Cn=function(t,e,r){const n=i0([t],[],e);return n.height=Math.max(r||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),n.style.borderBottomWidth=z(n.height),n.maxFontSize=1,n},Dn=function(t,e,r,n){const s=new De(t,e,r,n);return Re(s),s},Tt=function(t){const e=new $0(t);return Re(e),e},qn=function(t,e){return t instanceof $0?i0([],[t],e):t},En=function(t){if(t.positionType==="individualShift"){const r=t.children,n=[r[0]],s=-r[0].shift-r[0].elem.depth;let l=s;for(let o=1;o{const r=i0(["mspace"],[],e),n=X(t,e);return r.style.marginRight=z(n),r},he=function(t,e,r){let n="";switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}let s;return e==="textbf"&&r==="textit"?s="BoldItalic":e==="textbf"?s="Bold":e==="textit"?s="Italic":s="Regular",n+"-"+s},Bt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Nt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var x={fontMap:Bt,makeSymbol:g0,mathsym:zn,makeSpan:i0,makeSvgSpan:At,makeLineSpan:Cn,makeAnchor:Dn,makeFragment:Tt,wrapFragment:qn,makeVList:Rn,makeOrd:Tn,makeGlue:In,staticSvg:function(t,e){const[r,n,s]=Nt[t],l=new q0(r),o=new M0([l],{width:z(n),height:z(s),style:"width:"+z(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=At(["overlay"],[o],e);return u.height=s,u.style.height=z(s),u.style.width=z(n),u},svgData:Nt,tryCombineChars:Nn};const $={number:3,unit:"mu"},O0={number:4,unit:"mu"},A0={number:5,unit:"mu"},On={mord:{mop:$,mbin:O0,mrel:A0,minner:$},mop:{mord:$,mop:$,mrel:A0,minner:$},mbin:{mord:O0,mop:O0,mopen:O0,minner:O0},mrel:{mord:A0,mop:A0,mopen:A0,minner:A0},mopen:{},mclose:{mop:$,mbin:O0,mrel:A0,minner:$},mpunct:{mord:$,mop:$,mrel:A0,mopen:$,mclose:$,mpunct:$,minner:$},minner:{mord:$,mop:$,mbin:O0,mrel:A0,mopen:$,mpunct:$,minner:$}},Hn={mord:{mop:$},mop:{mord:$,mop:$},mbin:{},mrel:{},mopen:{},mclose:{mop:$},mpunct:{},minner:{mop:$}},Ct={},me={},de={};function A(t){let{type:e,names:r,props:n,handler:s,htmlBuilder:l,mathmlBuilder:o}=t;const u={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:s};for(let m=0;m{const y=b.classes[0],w=f.classes[0];y==="mbin"&&C.contains(Fn,w)?b.classes[0]="mord":w==="mbin"&&C.contains(Ln,y)&&(f.classes[0]="mord")},{node:o},u,m),Ie(s,(f,b)=>{const y=He(b),w=He(f),v=y&&w?f.hasClass("mtight")?Hn[y][w]:On[y][w]:null;if(v)return x.makeGlue(v,l)},{node:o},u,m),s},Ie=function(t,e,r,n,s){n&&t.push(n);let l=0;for(;lb=>{t.splice(f+1,0,b),l++})(l)}n&&t.pop()},Dt=function(t){return t instanceof $0||t instanceof De||t instanceof Z0&&t.hasClass("enclosing")?t:null},Oe=function(t,e){const r=Dt(t);if(r){const n=r.children;if(n.length){if(e==="right")return Oe(n[n.length-1],"right");if(e==="left")return Oe(n[0],"left")}}return t},He=function(t,e){return t?(e&&(t=Oe(t,e)),Gn[t.classes[0]]||null):null},K0=function(t,e){const r=["nulldelimiter"].concat(t.baseSizingClasses());return T0(e.concat(r))},F=function(t,e,r){if(!t)return T0();if(me[t.type]){let n=me[t.type](t,e);if(r&&e.size!==r.size){n=T0(e.sizingClasses(r),[n],e);const s=e.sizeMultiplier/r.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new M("Got group of unknown type: '"+t.type+"'")};function fe(t,e){const r=T0(["base"],t,e),n=T0(["strut"]);return n.style.height=z(r.height+r.depth),r.depth&&(n.style.verticalAlign=z(-r.depth)),r.children.unshift(n),r}function Le(t,e){let r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);const n=e0(t,e,"root");let s;n.length===2&&n[1].hasClass("tag")&&(s=n.pop());const l=[];let o=[];for(let f=0;f0&&(l.push(fe(o,e)),o=[]),l.push(n[f]));o.length>0&&l.push(fe(o,e));let u;r?(u=fe(e0(r,e,!0)),u.classes=["tag"],l.push(u)):s&&l.push(s);const m=T0(["katex-html"],l);if(m.setAttribute("aria-hidden","true"),u){const f=u.children[0];f.style.height=z(m.height+m.depth),m.depth&&(f.style.verticalAlign=z(-m.depth))}return m}function qt(t){return new $0(t)}class h0{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=D0(this.classes));for(let r=0;r0&&(e+=' class ="'+C.escape(D0(this.classes))+'"'),e+=">";for(let r=0;r",e}toText(){return this.children.map(e=>e.toText()).join("")}}class J0{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return C.escape(this.toText())}toText(){return this.text}}class Vn{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);{const e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",z(this.width)),e}}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var S={MathNode:h0,TextNode:J0,SpaceNode:Vn,newDocumentFragment:qt};const m0=function(t,e,r){return j[e][t]&&j[e][t].replace&&t.charCodeAt(0)!==55349&&!(kt.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=j[e][t].replace),new S.TextNode(t)},Fe=function(t){return t.length===1?t[0]:new S.MathNode("mrow",t)},Pe=function(t,e){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold";const r=e.font;if(!r||r==="mathnormal")return null;const n=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";let s=t.text;if(C.contains(["\\imath","\\jmath"],s))return null;j[n][s]&&j[n][s].replace&&(s=j[n][s].replace);const l=x.fontMap[r].fontName;return Be(s,l,n)?x.fontMap[r].variant:null},a0=function(t,e,r){if(t.length===1){const l=V(t[0],e);return r&&l instanceof h0&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}const n=[];let s;for(let l=0;l0&&(m.text=m.text.slice(0,1)+"\u0338"+m.text.slice(1),n.pop())}}}n.push(o),s=o}return n},E0=function(t,e,r){return Fe(a0(t,e,r))},V=function(t,e){if(!t)return new S.MathNode("mrow");if(de[t.type])return de[t.type](t,e);throw new M("Got group of unknown type: '"+t.type+"'")};function Et(t,e,r,n,s){const l=a0(t,r);let o;l.length===1&&l[0]instanceof h0&&C.contains(["mrow","mtable"],l[0].type)?o=l[0]:o=new S.MathNode("mrow",l);const u=new S.MathNode("annotation",[new S.TextNode(e)]);u.setAttribute("encoding","application/x-tex");const m=new S.MathNode("semantics",[o,u]),f=new S.MathNode("math",[m]);f.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&f.setAttribute("display","block");const b=s?"katex":"katex-mathml";return x.makeSpan([b],[f])}const Rt=function(t){return new bn({style:t.displayMode?D.DISPLAY:D.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},It=function(t,e){if(e.displayMode){const r=["katex-display"];e.leqno&&r.push("leqno"),e.fleqn&&r.push("fleqn"),t=x.makeSpan(r,[t])}return t},_n=function(t,e,r){const n=Rt(r);let s;if(r.output==="mathml")return Et(t,e,n,r.displayMode,!0);if(r.output==="html"){const l=Le(t,n);s=x.makeSpan(["katex"],[l])}else{const l=Et(t,e,n,r.displayMode,!1),o=Le(t,n);s=x.makeSpan(["katex"],[l,o])}return It(s,r)},Un=function(t,e,r){const n=Rt(r),s=Le(t,n),l=x.makeSpan(["katex"],[s]);return It(l,r)},Wn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Yn=function(t){const e=new S.MathNode("mo",[new S.TextNode(Wn[t.replace(/^\\/,"")])]);return e.setAttribute("stretchy","true"),e},Xn={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},jn=function(t){return t.type==="ordgroup"?t.body.length:1};var B0={encloseSpan:function(t,e,r,n,s){let l;const o=t.height+t.depth+r+n;if(/fbox|color|angl/.test(e)){if(l=x.makeSpan(["stretchy",e],[],s),e==="fbox"){const u=s.color&&s.getColor();u&&(l.style.borderColor=u)}}else{const u=[];/^[bx]cancel$/.test(e)&&u.push(new qe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&u.push(new qe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const m=new M0(u,{width:"100%",height:z(o)});l=x.makeSvgSpan([],[m],s)}return l.height=o,l.style.height=z(o),l},mathMLnode:Yn,svgSpan:function(t,e){function r(){let o=4e5;const u=t.label.slice(1);if(C.contains(["widehat","widecheck","widetilde","utilde"],u)){const f=jn(t.base);let b,y,w;if(f>5)u==="widehat"||u==="widecheck"?(b=420,o=2364,w=.42,y=u+"4"):(b=312,o=2340,w=.34,y="tilde4");else{const N=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][N],b=[0,239,300,360,420][N],w=[0,.24,.3,.3,.36,.42][N],y=u+N):(o=[0,600,1033,2339,2340][N],b=[0,260,286,306,312][N],w=[0,.26,.286,.3,.306,.34][N],y="tilde"+N)}const v=new q0(y),B=new M0([v],{width:"100%",height:z(w),viewBox:"0 0 "+o+" "+b,preserveAspectRatio:"none"});return{span:x.makeSvgSpan([],[B],e),minWidth:0,height:w}}else{const m=[],f=Xn[u],[b,y,w]=f,v=w/1e3,B=b.length;let N,O;if(B===1){const I=f[3];N=["hide-tail"],O=[I]}else if(B===2)N=["halfarrow-left","halfarrow-right"],O=["xMinYMin","xMaxYMin"];else if(B===3)N=["brace-left","brace-center","brace-right"],O=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+B+" children.");for(let I=0;I0&&(n.style.minWidth=z(s)),n}};function R(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Ge(t){const e=ge(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function ge(t){return t&&(t.type==="atom"||Sn.hasOwnProperty(t.type))?t:null}const Ve=(t,e)=>{let r,n,s;t&&t.type==="supsub"?(n=R(t.base,"accent"),r=n.base,t.base=r,s=vn(F(t,e)),t.base=n):(n=R(t,"accent"),r=n.base);const l=F(r,e.havingCrampedStyle()),o=n.isShifty&&C.isCharacterBox(r);let u=0;if(o){const w=C.getBaseElem(r),v=F(w,e.havingCrampedStyle());u=vt(v).skew}const m=n.label==="\\c";let f=m?l.height+l.depth:Math.min(l.height,e.fontMetrics().xHeight),b;if(n.isStretchy)b=B0.svgSpan(n,e),b=x.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:u>0?{width:"calc(100% - "+z(2*u)+")",marginLeft:z(2*u)}:void 0}]},e);else{let w,v;n.label==="\\vec"?(w=x.staticSvg("vec",e),v=x.svgData.vec[1]):(w=x.makeOrd({mode:n.mode,text:n.label},e,"textord"),w=vt(w),w.italic=0,v=w.width,m&&(f+=w.depth)),b=x.makeSpan(["accent-body"],[w]);const B=n.label==="\\textcircled";B&&(b.classes.push("accent-full"),f=l.height);let N=u;B||(N-=v/2),b.style.left=z(N),n.label==="\\textcircled"&&(b.style.top=".2em"),b=x.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-f},{type:"elem",elem:b}]},e)}const y=x.makeSpan(["mord","accent"],[b],e);return s?(s.children[0]=y,s.height=Math.max(y.height,s.height),s.classes[0]="mord",s):y},Ot=(t,e)=>{const r=t.isStretchy?B0.mathMLnode(t.label):new S.MathNode("mo",[m0(t.label,t.mode)]),n=new S.MathNode("mover",[V(t.base,e),r]);return n.setAttribute("accent","true"),n},$n=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));A({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{const r=pe(e[0]),n=!$n.test(t.funcName),s=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:s,base:r}},htmlBuilder:Ve,mathmlBuilder:Ot}),A({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{const r=e[0];let n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Ve,mathmlBuilder:Ot}),A({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{let{parser:r,funcName:n}=t;const s=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:s}},htmlBuilder:(t,e)=>{const r=F(t.base,e),n=B0.svgSpan(t,e),s=t.label==="\\utilde"?.12:0,l=x.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:r}]},e);return x.makeSpan(["mord","accentunder"],[l],e)},mathmlBuilder:(t,e)=>{const r=B0.mathMLnode(t.label),n=new S.MathNode("munder",[V(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});const be=t=>{const e=new S.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};A({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){let{parser:n,funcName:s}=t;return{type:"xArrow",mode:n.mode,label:s,body:e[0],below:r[0]}},htmlBuilder(t,e){const r=e.style;let n=e.havingStyle(r.sup());const s=x.wrapFragment(F(t.body,n,e),e),l=t.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(l+"-arrow-pad");let o;t.below&&(n=e.havingStyle(r.sub()),o=x.wrapFragment(F(t.below,n,e),e),o.classes.push(l+"-arrow-pad"));const u=B0.svgSpan(t,e),m=-e.fontMetrics().axisHeight+.5*u.height;let f=-e.fontMetrics().axisHeight-.5*u.height-.111;(s.depth>.25||t.label==="\\xleftequilibrium")&&(f-=s.depth);let b;if(o){const y=-e.fontMetrics().axisHeight+o.height+.5*u.height+.111;b=x.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:f},{type:"elem",elem:u,shift:m},{type:"elem",elem:o,shift:y}]},e)}else b=x.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:f},{type:"elem",elem:u,shift:m}]},e);return b.children[0].children[0].children[1].classes.push("svg-align"),x.makeSpan(["mrel","x-arrow"],[b],e)},mathmlBuilder(t,e){const r=B0.mathMLnode(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");let n;if(t.body){const s=be(V(t.body,e));if(t.below){const l=be(V(t.below,e));n=new S.MathNode("munderover",[r,l,s])}else n=new S.MathNode("mover",[r,s])}else if(t.below){const s=be(V(t.below,e));n=new S.MathNode("munder",[r,s])}else n=be(),n=new S.MathNode("mover",[r,n]);return n}});const Zn=x.makeSpan;function Ht(t,e){const r=e0(t.body,e,!0);return Zn([t.mclass],r,e)}function Lt(t,e){let r;const n=a0(t.body,e);return t.mclass==="minner"?r=new S.MathNode("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new S.MathNode("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new S.MathNode("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}A({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){let{parser:r,funcName:n}=t;const s=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:J(s),isCharacterBox:C.isCharacterBox(s)}},htmlBuilder:Ht,mathmlBuilder:Lt});const ye=t=>{const e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};A({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){let{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:ye(e[0]),body:J(e[1]),isCharacterBox:C.isCharacterBox(e[1])}}}),A({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){let{parser:r,funcName:n}=t;const s=e[1],l=e[0];let o;n!=="\\stackrel"?o=ye(s):o="mrel";const u={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:J(s)},m={type:"supsub",mode:l.mode,base:u,sup:n==="\\underset"?null:l,sub:n==="\\underset"?l:null};return{type:"mclass",mode:r.mode,mclass:o,body:[m],isCharacterBox:C.isCharacterBox(m)}},htmlBuilder:Ht,mathmlBuilder:Lt}),A({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){let{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:ye(e[0]),body:J(e[0])}},htmlBuilder(t,e){const r=e0(t.body,e,!0),n=x.makeSpan([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){const r=a0(t.body,e),n=new S.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});const Kn={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ft=()=>({type:"styling",body:[],mode:"math",style:"display"}),Pt=t=>t.type==="textord"&&t.text==="@",Jn=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function Qn(t,e,r){const n=Kn[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{const s=r.callFunction("\\\\cdleft",[e[0]],[]),l={type:"atom",text:n,mode:"math",family:"rel"},o=r.callFunction("\\Big",[l],[]),u=r.callFunction("\\\\cdright",[e[1]],[]),m={type:"ordgroup",mode:"math",body:[s,o,u]};return r.callFunction("\\\\cdparent",[m],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const s={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[s],[])}default:return{type:"textord",text:" ",mode:"math"}}}function e1(t){const e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();const l=t.fetch().text;if(l==="&"||l==="\\\\")t.consume();else if(l==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",t.nextToken)}let r=[];const n=[r];for(let l=0;l-1))if("<>AV".indexOf(f)>-1)for(let v=0;v<2;v++){let B=!0;for(let N=m+1;NAV=|." after @',o[m]);const y=Qn(f,b,t),w={type:"styling",body:[y],mode:"math",style:"display"};r.push(w),u=Ft()}l%2===0?r.push(u):r.shift(),r=[],n.push(r)}t.gullet.endGroup(),t.gullet.endGroup();const s=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:s,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}A({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){let{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){const r=e.havingStyle(e.style.sup()),n=x.wrapFragment(F(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=z(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){let r=new S.MathNode("mrow",[V(t.label,e)]);return r=new S.MathNode("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new S.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),A({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){let{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){const r=x.wrapFragment(F(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new S.MathNode("mrow",[V(t.fragment,e)])}}),A({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){let{parser:r}=t;const s=R(e[0],"ordgroup").body;let l="";for(let m=0;m=1114111)throw new M("\\@char with invalid code point "+l);return o<=65535?u=String.fromCharCode(o):(o-=65536,u=String.fromCharCode((o>>10)+55296,(o&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});const Gt=(t,e)=>{const r=e0(t.body,e.withColor(t.color),!1);return x.makeFragment(r)},Vt=(t,e)=>{const r=a0(t.body,e.withColor(t.color)),n=new S.MathNode("mstyle",r);return n.setAttribute("mathcolor",t.color),n};A({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){let{parser:r}=t;const n=R(e[0],"color-token").color,s=e[1];return{type:"color",mode:r.mode,color:n,body:J(s)}},htmlBuilder:Gt,mathmlBuilder:Vt}),A({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){let{parser:r,breakOnTokenText:n}=t;const s=R(e[0],"color-token").color;r.gullet.macros.set("\\current@color",s);const l=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:s,body:l}},htmlBuilder:Gt,mathmlBuilder:Vt}),A({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){let{parser:n}=t;const s=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,l=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:l,size:s&&R(s,"size").value}},htmlBuilder(t,e){const r=x.makeSpan(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=z(X(t.size,e)))),r},mathmlBuilder(t,e){const r=new S.MathNode("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",z(X(t.size,e)))),r}});const _e={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},_t=t=>{const e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new M("Expected a control sequence",t);return e},t1=t=>{let e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Ut=(t,e,r,n)=>{let s=t.gullet.macros.get(r.text);s==null&&(r.noexpand=!0,s={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,s,n)};A({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){let{parser:e,funcName:r}=t;e.consumeSpaces();const n=e.fetch();if(_e[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=_e[n.text]),R(e.parseFunction(),"internal");throw new M("Invalid token after macro prefix",n)}}),A({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){let{parser:e,funcName:r}=t,n=e.gullet.popToken();const s=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new M("Expected a control sequence",n);let l=0,o;const u=[[]];for(;e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),u[l].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new M('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==l+1)throw new M('Argument number "'+n.text+'" out of order');l++,u.push([])}else{if(n.text==="EOF")throw new M("Expected a macro definition");u[l].push(n.text)}let{tokens:m}=e.gullet.consumeArg();return o&&m.unshift(o),(r==="\\edef"||r==="\\xdef")&&(m=e.gullet.expandTokens(m),m.reverse()),e.gullet.macros.set(s,{tokens:m,numArgs:l,delimiters:u},r===_e[r]),{type:"internal",mode:e.mode}}}),A({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){let{parser:e,funcName:r}=t;const n=_t(e.gullet.popToken());e.gullet.consumeSpaces();const s=t1(e);return Ut(e,n,s,r==="\\\\globallet"),{type:"internal",mode:e.mode}}}),A({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){let{parser:e,funcName:r}=t;const n=_t(e.gullet.popToken()),s=e.gullet.popToken(),l=e.gullet.popToken();return Ut(e,n,l,r==="\\\\globalfuture"),e.gullet.pushToken(l),e.gullet.pushToken(s),{type:"internal",mode:e.mode}}});const Q0=function(t,e,r){const n=j.math[t]&&j.math[t].replace,s=Be(n||t,e,r);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+e+".");return s},Ue=function(t,e,r,n){const s=r.havingBaseStyle(e),l=x.makeSpan(n.concat(s.sizingClasses(r)),[t],r),o=s.sizeMultiplier/r.sizeMultiplier;return l.height*=o,l.depth*=o,l.maxFontSize=s.sizeMultiplier,l},Wt=function(t,e,r){const n=e.havingBaseStyle(r),s=(1-e.sizeMultiplier/n.sizeMultiplier)*e.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=z(s),t.height-=s,t.depth+=s},r1=function(t,e,r,n,s,l){const o=x.makeSymbol(t,"Main-Regular",s,n),u=Ue(o,e,n,l);return r&&Wt(u,n,e),u},n1=function(t,e,r,n){return x.makeSymbol(t,"Size"+e+"-Regular",r,n)},Yt=function(t,e,r,n,s,l){const o=n1(t,e,s,n),u=Ue(x.makeSpan(["delimsizing","size"+e],[o],n),D.TEXT,n,l);return r&&Wt(u,n,D.TEXT),u},We=function(t,e,r){let n;e==="Size1-Regular"?n="delim-size1":n="delim-size4";const s=x.makeSpan(["delimsizinginner",n],[x.makeSpan([],[x.makeSymbol(t,e,r)])]);return{type:"elem",elem:s}},Ye=function(t,e,r){const n=y0["Size4-Regular"][t.charCodeAt(0)]?y0["Size4-Regular"][t.charCodeAt(0)][4]:y0["Size1-Regular"][t.charCodeAt(0)][4],s=new q0("inner",mn(t,Math.round(1e3*e))),l=new M0([s],{width:z(n),height:z(e),style:"width:"+z(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*e),preserveAspectRatio:"xMinYMin"}),o=x.makeSvgSpan([],[l],r);return o.height=e,o.style.height=z(e),o.style.width=z(n),{type:"elem",elem:o}},Xe=.008,xe={type:"kern",size:-1*Xe},s1=["|","\\lvert","\\rvert","\\vert"],i1=["\\|","\\lVert","\\rVert","\\Vert"],Xt=function(t,e,r,n,s,l){let o,u,m,f,b="",y=0;o=m=f=t,u=null;let w="Size1-Regular";t==="\\uparrow"?m=f="\u23D0":t==="\\Uparrow"?m=f="\u2016":t==="\\downarrow"?o=m="\u23D0":t==="\\Downarrow"?o=m="\u2016":t==="\\updownarrow"?(o="\\uparrow",m="\u23D0",f="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",m="\u2016",f="\\Downarrow"):C.contains(s1,t)?(m="\u2223",b="vert",y=333):C.contains(i1,t)?(m="\u2225",b="doublevert",y=556):t==="["||t==="\\lbrack"?(o="\u23A1",m="\u23A2",f="\u23A3",w="Size4-Regular",b="lbrack",y=667):t==="]"||t==="\\rbrack"?(o="\u23A4",m="\u23A5",f="\u23A6",w="Size4-Regular",b="rbrack",y=667):t==="\\lfloor"||t==="\u230A"?(m=o="\u23A2",f="\u23A3",w="Size4-Regular",b="lfloor",y=667):t==="\\lceil"||t==="\u2308"?(o="\u23A1",m=f="\u23A2",w="Size4-Regular",b="lceil",y=667):t==="\\rfloor"||t==="\u230B"?(m=o="\u23A5",f="\u23A6",w="Size4-Regular",b="rfloor",y=667):t==="\\rceil"||t==="\u2309"?(o="\u23A4",m=f="\u23A5",w="Size4-Regular",b="rceil",y=667):t==="("||t==="\\lparen"?(o="\u239B",m="\u239C",f="\u239D",w="Size4-Regular",b="lparen",y=875):t===")"||t==="\\rparen"?(o="\u239E",m="\u239F",f="\u23A0",w="Size4-Regular",b="rparen",y=875):t==="\\{"||t==="\\lbrace"?(o="\u23A7",u="\u23A8",f="\u23A9",m="\u23AA",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="\u23AB",u="\u23AC",f="\u23AD",m="\u23AA",w="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(o="\u23A7",f="\u23A9",m="\u23AA",w="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(o="\u23AB",f="\u23AD",m="\u23AA",w="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(o="\u23A7",f="\u23AD",m="\u23AA",w="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(o="\u23AB",f="\u23A9",m="\u23AA",w="Size4-Regular");const v=Q0(o,w,s),B=v.height+v.depth,N=Q0(m,w,s),O=N.height+N.depth,I=Q0(f,w,s),H=I.height+I.depth;let P=0,_=1;if(u!==null){const K=Q0(u,w,s);P=K.height+K.depth,_=2}const s0=B+H+P,t0=Math.max(0,Math.ceil((e-s0)/(_*O))),p0=s0+t0*_*O;let W0=n.fontMetrics().axisHeight;r&&(W0*=n.sizeMultiplier);const L=p0/2-W0,G=[];if(b.length>0){const K=p0-B-H,Z=Math.round(p0*1e3),f0=dn(b,Math.round(K*1e3)),D1=new q0(b,f0),Hr=(y/1e3).toFixed(3)+"em",Lr=(Z/1e3).toFixed(3)+"em",q1=new M0([D1],{width:Hr,height:Lr,viewBox:"0 0 "+y+" "+Z}),Me=x.makeSvgSpan([],[q1],n);Me.height=Z/1e3,Me.style.width=Hr,Me.style.height=Lr,G.push({type:"elem",elem:Me})}else{if(G.push(We(f,w,s)),G.push(xe),u===null){const K=p0-B-H+2*Xe;G.push(Ye(m,K,n))}else{const K=(p0-B-H-P)/2+2*Xe;G.push(Ye(m,K,n)),G.push(xe),G.push(We(u,w,s)),G.push(xe),G.push(Ye(m,K,n))}G.push(xe),G.push(We(o,w,s))}const U=n.havingBaseStyle(D.TEXT),Y=x.makeVList({positionType:"bottom",positionData:L,children:G},U);return Ue(x.makeSpan(["delimsizing","mult"],[Y],U),D.TEXT,n,l)},je=80,$e=.08,Ze=function(t,e,r,n,s){const l=hn(t,n,r),o=new q0(t,l),u=new M0([o],{width:"400em",height:z(e),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return x.makeSvgSpan(["hide-tail"],[u],s)},a1=function(t,e){const r=e.havingBaseSizing(),n=Kt("\\surd",t*r.sizeMultiplier,Zt,r);let s=r.sizeMultiplier;const l=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness);let o,u=0,m=0,f=0,b;return n.type==="small"?(f=1e3+1e3*l+je,t<1?s=1:t<1.4&&(s=.7),u=(1+l+$e)/s,m=(1+l)/s,o=Ze("sqrtMain",u,f,l,e),o.style.minWidth="0.853em",b=.833/s):n.type==="large"?(f=(1e3+je)*ee[n.size],m=(ee[n.size]+l)/s,u=(ee[n.size]+l+$e)/s,o=Ze("sqrtSize"+n.size,u,f,l,e),o.style.minWidth="1.02em",b=1/s):(u=t+l+$e,m=t+l,f=Math.floor(1e3*t+l)+je,o=Ze("sqrtTall",u,f,l,e),o.style.minWidth="0.742em",b=1.056),o.height=m,o.style.height=z(u),{span:o,advanceWidth:b,ruleWidth:(e.fontMetrics().sqrtRuleThickness+l)*s}},jt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],l1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],$t=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ee=[0,1.2,1.8,2.4,3],o1=function(t,e,r,n,s){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),C.contains(jt,t)||C.contains($t,t))return Yt(t,e,!1,r,n,s);if(C.contains(l1,t))return Xt(t,ee[e],!1,r,n,s);throw new M("Illegal delimiter: '"+t+"'")},c1=[{type:"small",style:D.SCRIPTSCRIPT},{type:"small",style:D.SCRIPT},{type:"small",style:D.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],u1=[{type:"small",style:D.SCRIPTSCRIPT},{type:"small",style:D.SCRIPT},{type:"small",style:D.TEXT},{type:"stack"}],Zt=[{type:"small",style:D.SCRIPTSCRIPT},{type:"small",style:D.SCRIPT},{type:"small",style:D.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],h1=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Kt=function(t,e,r,n){const s=Math.min(2,3-n.style.size);for(let l=s;le)return r[l]}return r[r.length-1]},Jt=function(t,e,r,n,s,l){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");let o;C.contains($t,t)?o=c1:C.contains(jt,t)?o=Zt:o=u1;const u=Kt(t,e,o,n);return u.type==="small"?r1(t,u.style,r,n,s,l):u.type==="large"?Yt(t,u.size,r,n,s,l):Xt(t,e,r,n,s,l)};var N0={sqrtImage:a1,sizedDelim:o1,sizeToMaxHeight:ee,customSizedDelim:Jt,leftRightDelim:function(t,e,r,n,s,l){const o=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,m=5/n.fontMetrics().ptPerEm,f=Math.max(e-o,r+o),b=Math.max(f/500*u,2*f-m);return Jt(t,b,!0,n,s,l)}};const Qt={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},m1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function we(t,e){const r=ge(t);if(r&&C.contains(m1,r.text))return r;throw r?new M("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new M("Invalid delimiter type '"+t.type+"'",t)}A({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{const r=we(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Qt[t.funcName].size,mclass:Qt[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?x.makeSpan([t.mclass]):N0.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{const e=[];t.delim!=="."&&e.push(m0(t.delim,t.mode));const r=new S.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");const n=z(N0.sizeToMaxHeight[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function er(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}A({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{const r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:we(e[0],t).text,color:r}}}),A({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{const r=we(e[0],t),n=t.parser;++n.leftrightDepth;const s=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);const l=R(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:s,left:r.text,right:l.delim,rightColor:l.color}},htmlBuilder:(t,e)=>{er(t);const r=e0(t.body,e,!0,["mopen","mclose"]);let n=0,s=0,l=!1;for(let m=0;m{er(t);const r=a0(t.body,e);if(t.left!=="."){const n=new S.MathNode("mo",[m0(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){const n=new S.MathNode("mo",[m0(t.right,t.mode)]);n.setAttribute("fence","true"),t.rightColor&&n.setAttribute("mathcolor",t.rightColor),r.push(n)}return Fe(r)}}),A({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{const r=we(e[0],t);if(!t.parser.leftrightDepth)throw new M("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{let r;if(t.delim===".")r=K0(e,[]);else{r=N0.sizedDelim(t.delim,1,e,t.mode,[]);const n={delim:t.delim,options:e};r.isMiddle=n}return r},mathmlBuilder:(t,e)=>{const r=t.delim==="\\vert"||t.delim==="|"?m0("|","text"):m0(t.delim,t.mode),n=new S.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});const Ke=(t,e)=>{const r=x.wrapFragment(F(t.body,e),e),n=t.label.slice(1);let s=e.sizeMultiplier,l,o=0;const u=C.isCharacterBox(t.body);if(n==="sout")l=x.makeSpan(["stretchy","sout"]),l.height=e.fontMetrics().defaultRuleThickness/s,o=-.5*e.fontMetrics().xHeight;else if(n==="phase"){const f=X({number:.6,unit:"pt"},e),b=X({number:.35,unit:"ex"},e),y=e.havingBaseSizing();s=s/y.sizeMultiplier;const w=r.height+r.depth+f+b;r.style.paddingLeft=z(w/2+f);const v=Math.floor(1e3*w*s),B=cn(v),N=new M0([new q0("phase",B)],{width:"400em",height:z(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});l=x.makeSvgSpan(["hide-tail"],[N],e),l.style.height=z(w),o=r.depth+f+b}else{/cancel/.test(n)?u||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");let f=0,b=0,y=0;/box/.test(n)?(y=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),f=e.fontMetrics().fboxsep+(n==="colorbox"?0:y),b=f):n==="angl"?(y=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),f=4*y,b=Math.max(0,.25-r.depth)):(f=u?.2:0,b=f),l=B0.encloseSpan(r,n,f,b,e),/fbox|boxed|fcolorbox/.test(n)?(l.style.borderStyle="solid",l.style.borderWidth=z(y)):n==="angl"&&y!==.049&&(l.style.borderTopWidth=z(y),l.style.borderRightWidth=z(y)),o=r.depth+b,t.backgroundColor&&(l.style.backgroundColor=t.backgroundColor,t.borderColor&&(l.style.borderColor=t.borderColor))}let m;if(t.backgroundColor)m=x.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:o},{type:"elem",elem:r,shift:0}]},e);else{const f=/cancel|phase/.test(n)?["svg-align"]:[];m=x.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:l,shift:o,wrapperClasses:f}]},e)}return/cancel/.test(n)&&(m.height=r.height,m.depth=r.depth),/cancel/.test(n)&&!u?x.makeSpan(["mord","cancel-lap"],[m],e):x.makeSpan(["mord"],[m],e)},Je=(t,e)=>{let r=0;const n=new S.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[V(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){const s=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+s+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};A({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){let{parser:n,funcName:s}=t;const l=R(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:n.mode,label:s,backgroundColor:l,body:o}},htmlBuilder:Ke,mathmlBuilder:Je}),A({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){let{parser:n,funcName:s}=t;const l=R(e[0],"color-token").color,o=R(e[1],"color-token").color,u=e[2];return{type:"enclose",mode:n.mode,label:s,backgroundColor:o,borderColor:l,body:u}},htmlBuilder:Ke,mathmlBuilder:Je}),A({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){let{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}}),A({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){let{parser:r,funcName:n}=t;const s=e[0];return{type:"enclose",mode:r.mode,label:n,body:s}},htmlBuilder:Ke,mathmlBuilder:Je}),A({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){let{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});const tr={};function x0(t){let{type:e,names:r,props:n,handler:s,htmlBuilder:l,mathmlBuilder:o}=t;const u={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:s};for(let m=0;m{if(!t.parser.settings.displayMode)throw new M("{"+t.envName+"} can be used only in display mode.")};function Qe(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function R0(t,e,r){let{hskipBeforeAndAfter:n,addJot:s,cols:l,arraystretch:o,colSeparationType:u,autoTag:m,singleRow:f,emptySingleRow:b,maxNumCols:y,leqno:w}=e;if(t.gullet.beginGroup(),f||t.gullet.macros.set("\\cr","\\\\\\relax"),!o){const _=t.gullet.expandMacroAsText("\\arraystretch");if(_==null)o=1;else if(o=parseFloat(_),!o||o<0)throw new M("Invalid \\arraystretch: "+_)}t.gullet.beginGroup();let v=[];const B=[v],N=[],O=[],I=m!=null?[]:void 0;function H(){m&&t.gullet.macros.set("\\@eqnsw","1",!0)}function P(){I&&(t.gullet.macros.get("\\df@tag")?(I.push(t.subparse([new d0("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):I.push(Boolean(m)&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(H(),O.push(nr(t));;){let _=t.parseExpression(!1,f?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),_={type:"ordgroup",mode:t.mode,body:_},r&&(_={type:"styling",mode:t.mode,style:r,body:[_]}),v.push(_);const s0=t.fetch().text;if(s0==="&"){if(y&&v.length===y){if(f||u)throw new M("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(s0==="\\end"){P(),v.length===1&&_.type==="styling"&&_.body[0].body.length===0&&(B.length>1||!b)&&B.pop(),O.length0&&(I+=.25),m.push({pos:I,isDashed:L[G]})}for(H(l[0]),r=0;r0&&(Z+=O,UL))for(r=0;r=o)continue;let U;(n>0||t.hskipBeforeAndAfter)&&(U=C.deflt(L.pregap,y),U!==0&&(t0=x.makeSpan(["arraycolsep"],[]),t0.style.width=z(U),s0.push(t0)));let Y=[];for(r=0;r0){const L=x.makeLineSpan("hline",e,f),G=x.makeLineSpan("hdashline",e,f),U=[{type:"elem",elem:u,shift:0}];for(;m.length>0;){const Y=m.pop(),K=Y.pos-P;Y.isDashed?U.push({type:"elem",elem:G,shift:K}):U.push({type:"elem",elem:L,shift:K})}u=x.makeVList({positionType:"individualShift",children:U},e)}if(W0.length===0)return x.makeSpan(["mord"],[u],e);{let L=x.makeVList({positionType:"individualShift",children:W0},e);return L=x.makeSpan(["tag"],[L],e),x.makeFragment([u,L])}},d1={c:"center ",l:"left ",r:"right "},v0=function(t,e){const r=[],n=new S.MathNode("mtd",[],["mtr-glue"]),s=new S.MathNode("mtd",[],["mml-eqn-num"]);for(let y=0;y0){const y=t.cols;let w="",v=!1,B=0,N=y.length;y[0].type==="separator"&&(u+="top ",B=1),y[y.length-1].type==="separator"&&(u+="bottom ",N-=1);for(let O=B;O0?"left ":"",u+=b[b.length-1].length>0?"right ":"";for(let y=1;y-1?"alignat":"align",s=t.envName==="split",l=R0(t.parser,{cols:r,addJot:!0,autoTag:s?void 0:Qe(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display");let o,u=0;const m={type:"ordgroup",mode:t.mode,body:[]};if(e[0]&&e[0].type==="ordgroup"){let b="";for(let y=0;y0&&f&&(w=1),r[b]={type:"align",align:y,pregap:w,postgap:0}}return l.colSeparationType=f?"align":"alignat",l};x0({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){const s=(ge(e[0])?[e[0]]:R(e[0],"ordgroup").body).map(function(o){const m=Ge(o).text;if("lcr".indexOf(m)!==-1)return{type:"align",align:m};if(m==="|")return{type:"separator",separator:"|"};if(m===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+m,o)}),l={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return R0(t.parser,l,et(t.envName))},htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){const e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")];let r="c";const n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){const o=t.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),r=o.fetch().text,"lcr".indexOf(r)===-1)throw new M("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),n.cols=[{type:"align",align:r}]}}const s=R0(t.parser,n,et(t.envName)),l=Math.max(0,...s.body.map(o=>o.length));return s.cols=new Array(l).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){const e={arraystretch:.5},r=R0(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){const s=(ge(e[0])?[e[0]]:R(e[0],"ordgroup").body).map(function(o){const m=Ge(o).text;if("lc".indexOf(m)!==-1)return{type:"align",align:m};throw new M("Unknown column alignment: "+m,o)});if(s.length>1)throw new M("{subarray} can contain only one column");let l={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5};if(l=R0(t.parser,l,"script"),l.body.length>0&&l.body[0].length>1)throw new M("{subarray} can contain only one column");return l},htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){const e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=R0(t.parser,e,et(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:sr,htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){C.contains(["gather","gather*"],t.envName)&&ve(t);const e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Qe(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return R0(t.parser,e,"display")},htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:sr,htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){ve(t);const e={autoTag:Qe(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return R0(t.parser,e,"display")},htmlBuilder:w0,mathmlBuilder:v0}),x0({type:"array",names:["CD"],props:{numArgs:0},handler(t){return ve(t),e1(t.parser)},htmlBuilder:w0,mathmlBuilder:v0}),h("\\nonumber","\\gdef\\@eqnsw{0}"),h("\\notag","\\nonumber"),A({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new M(t.funcName+" valid only within array environment")}});var ir=tr;A({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){let{parser:r,funcName:n}=t;const s=e[0];if(s.type!=="ordgroup")throw new M("Invalid environment name",s);let l="";for(let o=0;o{const r=t.font,n=e.withFont(r);return F(t.body,n)},lr=(t,e)=>{const r=t.font,n=e.withFont(r);return V(t.body,n)},or={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};A({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{let{parser:r,funcName:n}=t;const s=pe(e[0]);let l=n;return l in or&&(l=or[l]),{type:"font",mode:r.mode,font:l.slice(1),body:s}},htmlBuilder:ar,mathmlBuilder:lr}),A({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{let{parser:r}=t;const n=e[0],s=C.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:ye(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:s}}}),A({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{let{parser:r,funcName:n,breakOnTokenText:s}=t;const{mode:l}=r,o=r.parseExpression(!0,s),u="math"+n.slice(1);return{type:"font",mode:l,font:u,body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:ar,mathmlBuilder:lr});const cr=(t,e)=>{let r=e;return t==="display"?r=r.id>=D.SCRIPT.id?r.text():D.DISPLAY:t==="text"&&r.size===D.DISPLAY.size?r=D.TEXT:t==="script"?r=D.SCRIPT:t==="scriptscript"&&(r=D.SCRIPTSCRIPT),r},tt=(t,e)=>{const r=cr(t.size,e.style),n=r.fracNum(),s=r.fracDen();let l;l=e.havingStyle(n);const o=F(t.numer,l,e);if(t.continued){const H=8.5/e.fontMetrics().ptPerEm,P=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?w=3*b:w=7*b,v=e.fontMetrics().denom1):(f>0?(y=e.fontMetrics().num2,w=b):(y=e.fontMetrics().num3,w=3*b),v=e.fontMetrics().denom2);let B;if(m){const H=e.fontMetrics().axisHeight;y-o.depth-(H+.5*f){let r=new S.MathNode("mfrac",[V(t.numer,e),V(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){const s=X(t.barSize,e);r.setAttribute("linethickness",z(s))}const n=cr(t.size,e.style);if(n.size!==e.style.size){r=new S.MathNode("mstyle",[r]);const s=n.size===D.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",s),r.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){const s=[];if(t.leftDelim!=null){const l=new S.MathNode("mo",[new S.TextNode(t.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}if(s.push(r),t.rightDelim!=null){const l=new S.MathNode("mo",[new S.TextNode(t.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return Fe(s)}return r};A({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{let{parser:r,funcName:n}=t;const s=e[0],l=e[1];let o,u=null,m=null,f="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,u="(",m=")";break;case"\\\\bracefrac":o=!1,u="\\{",m="\\}";break;case"\\\\brackfrac":o=!1,u="[",m="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":f="display";break;case"\\tfrac":case"\\tbinom":f="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:s,denom:l,hasBarLine:o,leftDelim:u,rightDelim:m,size:f,barSize:null}},htmlBuilder:tt,mathmlBuilder:rt}),A({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{let{parser:r,funcName:n}=t;const s=e[0],l=e[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:s,denom:l,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),A({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){let{parser:e,funcName:r,token:n}=t,s;switch(r){case"\\over":s="\\frac";break;case"\\choose":s="\\binom";break;case"\\atop":s="\\\\atopfrac";break;case"\\brace":s="\\\\bracefrac";break;case"\\brack":s="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:s,token:n}}});const ur=["display","text","script","scriptscript"],hr=function(t){let e=null;return t.length>0&&(e=t,e=e==="."?null:e),e};A({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){let{parser:r}=t;const n=e[4],s=e[5],l=pe(e[0]),o=l.type==="atom"&&l.family==="open"?hr(l.text):null,u=pe(e[1]),m=u.type==="atom"&&u.family==="close"?hr(u.text):null,f=R(e[2],"size");let b,y=null;f.isBlank?b=!0:(y=f.value,b=y.number>0);let w="auto",v=e[3];if(v.type==="ordgroup"){if(v.body.length>0){const B=R(v.body[0],"textord");w=ur[Number(B.text)]}}else v=R(v,"textord"),w=ur[Number(v.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:s,continued:!1,hasBarLine:b,barSize:y,leftDelim:o,rightDelim:m,size:w}},htmlBuilder:tt,mathmlBuilder:rt}),A({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){let{parser:r,funcName:n,token:s}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:R(e[0],"size").value,token:s}}}),A({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{let{parser:r,funcName:n}=t;const s=e[0],l=jr(R(e[1],"infix").size),o=e[2],u=l.number>0;return{type:"genfrac",mode:r.mode,numer:s,denom:o,continued:!1,hasBarLine:u,barSize:l,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:tt,mathmlBuilder:rt});const mr=(t,e)=>{const r=e.style;let n,s;t.type==="supsub"?(n=t.sup?F(t.sup,e.havingStyle(r.sup()),e):F(t.sub,e.havingStyle(r.sub()),e),s=R(t.base,"horizBrace")):s=R(t,"horizBrace");const l=F(s.base,e.havingBaseStyle(D.DISPLAY)),o=B0.svgSpan(s,e);let u;if(s.isOver?(u=x.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},e),u.children[0].children[0].children[1].classes.push("svg-align")):(u=x.makeVList({positionType:"bottom",positionData:l.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},e),u.children[0].children[0].children[0].classes.push("svg-align")),n){const m=x.makeSpan(["mord",s.isOver?"mover":"munder"],[u],e);s.isOver?u=x.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:n}]},e):u=x.makeVList({positionType:"bottom",positionData:m.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:m}]},e)}return x.makeSpan(["mord",s.isOver?"mover":"munder"],[u],e)};A({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){let{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:mr,mathmlBuilder:(t,e)=>{const r=B0.mathMLnode(t.label);return new S.MathNode(t.isOver?"mover":"munder",[V(t.base,e),r])}}),A({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{let{parser:r}=t;const n=e[1],s=R(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:r.mode,href:s,body:J(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{const r=e0(t.body,e,!1);return x.makeAnchor(t.href,[],r,e)},mathmlBuilder:(t,e)=>{let r=E0(t.body,e);return r instanceof h0||(r=new h0("mrow",[r])),r.setAttribute("href",t.href),r}}),A({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{let{parser:r}=t;const n=R(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");const s=[];for(let o=0;o{let{parser:r,funcName:n,token:s}=t;const l=R(e[0],"raw").string,o=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let u;const m={};switch(n){case"\\htmlClass":m.class=l,u={command:"\\htmlClass",class:l};break;case"\\htmlId":m.id=l,u={command:"\\htmlId",id:l};break;case"\\htmlStyle":m.style=l,u={command:"\\htmlStyle",style:l};break;case"\\htmlData":{const f=l.split(",");for(let b=0;b{const r=e0(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));const s=x.makeSpan(n,r,e);for(const l in t.attributes)l!=="class"&&t.attributes.hasOwnProperty(l)&&s.setAttribute(l,t.attributes[l]);return s},mathmlBuilder:(t,e)=>E0(t.body,e)}),A({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{let{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:J(e[0]),mathml:J(e[1])}},htmlBuilder:(t,e)=>{const r=e0(t.html,e,!1);return x.makeFragment(r)},mathmlBuilder:(t,e)=>E0(t.mathml,e)});const nt=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};{const e=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!e)throw new M("Invalid size: '"+t+"' in \\includegraphics");const r={number:+(e[1]+e[2]),unit:e[3]};if(!bt(r))throw new M("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r}};A({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{let{parser:n}=t,s={number:0,unit:"em"},l={number:.9,unit:"em"},o={number:0,unit:"em"},u="";if(r[0]){const b=R(r[0],"raw").string.split(",");for(let y=0;y{const r=X(t.height,e);let n=0;t.totalheight.number>0&&(n=X(t.totalheight,e)-r);let s=0;t.width.number>0&&(s=X(t.width,e));const l={height:z(r+n)};s>0&&(l.width=z(s)),n>0&&(l.verticalAlign=z(-n));const o=new xn(t.src,t.alt,l);return o.height=r,o.depth=n,o},mathmlBuilder:(t,e)=>{const r=new S.MathNode("mglyph",[]);r.setAttribute("alt",t.alt);const n=X(t.height,e);let s=0;if(t.totalheight.number>0&&(s=X(t.totalheight,e)-n,r.setAttribute("valign",z(-s))),r.setAttribute("height",z(n+s)),t.width.number>0){const l=X(t.width,e);r.setAttribute("width",z(l))}return r.setAttribute("src",t.src),r}}),A({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){let{parser:r,funcName:n}=t;const s=R(e[0],"size");if(r.settings.strict){const l=n[1]==="m",o=s.value.unit==="mu";l?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+s.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:s.value}},htmlBuilder(t,e){return x.makeGlue(t.dimension,e)},mathmlBuilder(t,e){const r=X(t.dimension,e);return new S.SpaceNode(r)}}),A({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{let{parser:r,funcName:n}=t;const s=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:s}},htmlBuilder:(t,e)=>{let r;t.alignment==="clap"?(r=x.makeSpan([],[F(t.body,e)]),r=x.makeSpan(["inner"],[r],e)):r=x.makeSpan(["inner"],[F(t.body,e)]);const n=x.makeSpan(["fix"],[]);let s=x.makeSpan([t.alignment],[r,n],e);const l=x.makeSpan(["strut"]);return l.style.height=z(s.height+s.depth),s.depth&&(l.style.verticalAlign=z(-s.depth)),s.children.unshift(l),s=x.makeSpan(["thinbox"],[s],e),x.makeSpan(["mord","vbox"],[s],e)},mathmlBuilder:(t,e)=>{const r=new S.MathNode("mpadded",[V(t.body,e)]);if(t.alignment!=="rlap"){const n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),A({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){let{funcName:r,parser:n}=t;const s=n.mode;n.switchMode("math");const l=r==="\\("?"\\)":"$",o=n.parseExpression(!1,l);return n.expect(l),n.switchMode(s),{type:"styling",mode:n.mode,style:"text",body:o}}}),A({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new M("Mismatched "+t.funcName)}});const dr=(t,e)=>{switch(e.style.size){case D.DISPLAY.size:return t.display;case D.TEXT.size:return t.text;case D.SCRIPT.size:return t.script;case D.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};A({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{let{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:J(e[0]),text:J(e[1]),script:J(e[2]),scriptscript:J(e[3])}},htmlBuilder:(t,e)=>{const r=dr(t,e),n=e0(r,e,!1);return x.makeFragment(n)},mathmlBuilder:(t,e)=>{const r=dr(t,e);return E0(r,e)}});const pr=(t,e,r,n,s,l,o)=>{t=x.makeSpan([],[t]);const u=r&&C.isCharacterBox(r);let m,f;if(e){const w=F(e,n.havingStyle(s.sup()),n);f={elem:w,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-w.depth)}}if(r){const w=F(r,n.havingStyle(s.sub()),n);m={elem:w,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-w.height)}}let b;if(f&&m){const w=n.fontMetrics().bigOpSpacing5+m.elem.height+m.elem.depth+m.kern+t.depth+o;b=x.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:m.elem,marginLeft:z(-l)},{type:"kern",size:m.kern},{type:"elem",elem:t},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:z(l)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(m){const w=t.height-o;b=x.makeVList({positionType:"top",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:m.elem,marginLeft:z(-l)},{type:"kern",size:m.kern},{type:"elem",elem:t}]},n)}else if(f){const w=t.depth+o;b=x.makeVList({positionType:"bottom",positionData:w,children:[{type:"elem",elem:t},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:z(l)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return t;const y=[b];if(m&&l!==0&&!u){const w=x.makeSpan(["mspace"],[],n);w.style.marginRight=z(l),y.unshift(w)}return x.makeSpan(["mop","op-limits"],y,n)},fr=["\\smallint"],U0=(t,e)=>{let r,n,s=!1,l;t.type==="supsub"?(r=t.sup,n=t.sub,l=R(t.base,"op"),s=!0):l=R(t,"op");const o=e.style;let u=!1;o.size===D.DISPLAY.size&&l.symbol&&!C.contains(fr,l.name)&&(u=!0);let m;if(l.symbol){const y=u?"Size2-Regular":"Size1-Regular";let w="";if((l.name==="\\oiint"||l.name==="\\oiiint")&&(w=l.name.slice(1),l.name=w==="oiint"?"\\iint":"\\iiint"),m=x.makeSymbol(l.name,y,"math",e,["mop","op-symbol",u?"large-op":"small-op"]),w.length>0){const v=m.italic,B=x.staticSvg(w+"Size"+(u?"2":"1"),e);m=x.makeVList({positionType:"individualShift",children:[{type:"elem",elem:m,shift:0},{type:"elem",elem:B,shift:u?.08:0}]},e),l.name="\\"+w,m.classes.unshift("mop"),m.italic=v}}else if(l.body){const y=e0(l.body,e,!0);y.length===1&&y[0]instanceof u0?(m=y[0],m.classes[0]="mop"):m=x.makeSpan(["mop"],y,e)}else{const y=[];for(let w=1;w{let r;if(t.symbol)r=new h0("mo",[m0(t.name,t.mode)]),C.contains(fr,t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new h0("mo",a0(t.body,e));else{r=new h0("mi",[new J0(t.name.slice(1))]);const n=new h0("mo",[m0("\u2061","text")]);t.parentIsSupSub?r=new h0("mrow",[r,n]):r=qt([r,n])}return r},p1={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};A({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(t,e)=>{let{parser:r,funcName:n}=t,s=n;return s.length===1&&(s=p1[s]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:U0,mathmlBuilder:te}),A({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{let{parser:r}=t;const n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:J(n)}},htmlBuilder:U0,mathmlBuilder:te});const f1={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};A({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){let{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:U0,mathmlBuilder:te}),A({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){let{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:U0,mathmlBuilder:te}),A({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(t){let{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=f1[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:U0,mathmlBuilder:te});const gr=(t,e)=>{let r,n,s=!1,l;t.type==="supsub"?(r=t.sup,n=t.sub,l=R(t.base,"operatorname"),s=!0):l=R(t,"operatorname");let o;if(l.body.length>0){const u=l.body.map(f=>{const b=f.text;return typeof b=="string"?{type:"textord",mode:f.mode,text:b}:f}),m=e0(u,e.withFont("mathrm"),!0);for(let f=0;f{let{parser:r,funcName:n}=t;const s=e[0];return{type:"operatorname",mode:r.mode,body:J(s),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:gr,mathmlBuilder:(t,e)=>{let r=a0(t.body,e.withFont("mathrm")),n=!0;for(let o=0;ou.toText()).join("");r=[new S.TextNode(o)]}const s=new S.MathNode("mi",r);s.setAttribute("mathvariant","normal");const l=new S.MathNode("mo",[m0("\u2061","text")]);return t.parentIsSupSub?new S.MathNode("mrow",[s,l]):S.newDocumentFragment([s,l])}}),h("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),H0({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?x.makeFragment(e0(t.body,e,!1)):x.makeSpan(["mord"],e0(t.body,e,!0),e)},mathmlBuilder(t,e){return E0(t.body,e,!0)}}),A({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){let{parser:r}=t;const n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){const r=F(t.body,e.havingCrampedStyle()),n=x.makeLineSpan("overline-line",e),s=e.fontMetrics().defaultRuleThickness,l=x.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*s},{type:"elem",elem:n},{type:"kern",size:s}]},e);return x.makeSpan(["mord","overline"],[l],e)},mathmlBuilder(t,e){const r=new S.MathNode("mo",[new S.TextNode("\u203E")]);r.setAttribute("stretchy","true");const n=new S.MathNode("mover",[V(t.body,e),r]);return n.setAttribute("accent","true"),n}}),A({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{let{parser:r}=t;const n=e[0];return{type:"phantom",mode:r.mode,body:J(n)}},htmlBuilder:(t,e)=>{const r=e0(t.body,e.withPhantom(),!1);return x.makeFragment(r)},mathmlBuilder:(t,e)=>{const r=a0(t.body,e);return new S.MathNode("mphantom",r)}}),A({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{let{parser:r}=t;const n=e[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{let r=x.makeSpan([],[F(t.body,e.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(let n=0;n{const r=a0(J(t.body),e),n=new S.MathNode("mphantom",r),s=new S.MathNode("mpadded",[n]);return s.setAttribute("height","0px"),s.setAttribute("depth","0px"),s}}),A({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{let{parser:r}=t;const n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{const r=x.makeSpan(["inner"],[F(t.body,e.withPhantom())]),n=x.makeSpan(["fix"],[]);return x.makeSpan(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{const r=a0(J(t.body),e),n=new S.MathNode("mphantom",r),s=new S.MathNode("mpadded",[n]);return s.setAttribute("width","0px"),s}}),A({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){let{parser:r}=t;const n=R(e[0],"size").value,s=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:s}},htmlBuilder(t,e){const r=F(t.body,e),n=X(t.dy,e);return x.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){const r=new S.MathNode("mpadded",[V(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}}),A({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){let{parser:e}=t;return{type:"internal",mode:e.mode}}}),A({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(t,e,r){let{parser:n}=t;const s=r[0],l=R(e[0],"size"),o=R(e[1],"size");return{type:"rule",mode:n.mode,shift:s&&R(s,"size").value,width:l.value,height:o.value}},htmlBuilder(t,e){const r=x.makeSpan(["mord","rule"],[],e),n=X(t.width,e),s=X(t.height,e),l=t.shift?X(t.shift,e):0;return r.style.borderRightWidth=z(n),r.style.borderTopWidth=z(s),r.style.bottom=z(l),r.width=n,r.height=s+l,r.depth=-l,r.maxFontSize=s*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){const r=X(t.width,e),n=X(t.height,e),s=t.shift?X(t.shift,e):0,l=e.color&&e.getColor()||"black",o=new S.MathNode("mspace");o.setAttribute("mathbackground",l),o.setAttribute("width",z(r)),o.setAttribute("height",z(n));const u=new S.MathNode("mpadded",[o]);return s>=0?u.setAttribute("height",z(s)):(u.setAttribute("height",z(s)),u.setAttribute("depth",z(-s))),u.setAttribute("voffset",z(s)),u}});function br(t,e,r){const n=e0(t,e,!1),s=e.sizeMultiplier/r.sizeMultiplier;for(let l=0;l{let{breakOnTokenText:r,funcName:n,parser:s}=t;const l=s.parseExpression(!1,r);return{type:"sizing",mode:s.mode,size:yr.indexOf(n)+1,body:l}},htmlBuilder:(t,e)=>{const r=e.havingSize(t.size);return br(t.body,r,e)},mathmlBuilder:(t,e)=>{const r=e.havingSize(t.size),n=a0(t.body,r),s=new S.MathNode("mstyle",n);return s.setAttribute("mathsize",z(r.sizeMultiplier)),s}}),A({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{let{parser:n}=t,s=!1,l=!1;const o=r[0]&&R(r[0],"ordgroup");if(o){let m="";for(let f=0;f{const r=x.makeSpan([],[F(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0,r.children))for(let s=0;s{const r=new S.MathNode("mpadded",[V(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}}),A({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){let{parser:n}=t;const s=r[0],l=e[0];return{type:"sqrt",mode:n.mode,body:l,index:s}},htmlBuilder(t,e){let r=F(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=x.wrapFragment(r,e);const s=e.fontMetrics().defaultRuleThickness;let l=s;e.style.idr.height+r.depth+o&&(o=(o+y-r.height-r.depth)/2);const w=m.height-r.height-o-f;r.style.paddingLeft=z(b);const v=x.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:m},{type:"kern",size:f}]},e);if(t.index){const B=e.havingStyle(D.SCRIPTSCRIPT),N=F(t.index,B,e),O=.6*(v.height-v.depth),I=x.makeVList({positionType:"shift",positionData:-O,children:[{type:"elem",elem:N}]},e),H=x.makeSpan(["root"],[I]);return x.makeSpan(["mord","sqrt"],[H,v],e)}else return x.makeSpan(["mord","sqrt"],[v],e)},mathmlBuilder(t,e){const{body:r,index:n}=t;return n?new S.MathNode("mroot",[V(r,e),V(n,e)]):new S.MathNode("msqrt",[V(r,e)])}});const xr={display:D.DISPLAY,text:D.TEXT,script:D.SCRIPT,scriptscript:D.SCRIPTSCRIPT};A({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){let{breakOnTokenText:r,funcName:n,parser:s}=t;const l=s.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:s.mode,style:o,body:l}},htmlBuilder(t,e){const r=xr[t.style],n=e.havingStyle(r).withFont("");return br(t.body,n,e)},mathmlBuilder(t,e){const r=xr[t.style],n=e.havingStyle(r),s=a0(t.body,n),l=new S.MathNode("mstyle",s),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[t.style];return l.setAttribute("scriptlevel",u[0]),l.setAttribute("displaystyle",u[1]),l}});const g1=function(t,e){const r=t.base;return r?r.type==="op"?r.limits&&(e.style.size===D.DISPLAY.size||r.alwaysHandleSupSub)?U0:null:r.type==="operatorname"?r.alwaysHandleSupSub&&(e.style.size===D.DISPLAY.size||r.limits)?gr:null:r.type==="accent"?C.isCharacterBox(r.base)?Ve:null:r.type==="horizBrace"&&!t.sub===r.isOver?mr:null:null};H0({type:"supsub",htmlBuilder(t,e){const r=g1(t,e);if(r)return r(t,e);const{base:n,sup:s,sub:l}=t,o=F(n,e);let u,m;const f=e.fontMetrics();let b=0,y=0;const w=n&&C.isCharacterBox(n);if(s){const P=e.havingStyle(e.style.sup());u=F(s,P,e),w||(b=o.height-P.fontMetrics().supDrop*P.sizeMultiplier/e.sizeMultiplier)}if(l){const P=e.havingStyle(e.style.sub());m=F(l,P,e),w||(y=o.depth+P.fontMetrics().subDrop*P.sizeMultiplier/e.sizeMultiplier)}let v;e.style===D.DISPLAY?v=f.sup1:e.style.cramped?v=f.sup3:v=f.sup2;const B=e.sizeMultiplier,N=z(.5/f.ptPerEm/B);let O=null;if(m){const P=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(o instanceof u0||P)&&(O=z(-o.italic))}let I;if(u&&m){b=Math.max(b,v,u.depth+.25*f.xHeight),y=Math.max(y,f.sub2);const P=f.defaultRuleThickness,_=4*P;if(b-u.depth-(m.height-y)<_){y=_-(b-u.depth)+m.height;const t0=.8*f.xHeight-(b-u.depth);t0>0&&(b+=t0,y-=t0)}const s0=[{type:"elem",elem:m,shift:y,marginRight:N,marginLeft:O},{type:"elem",elem:u,shift:-b,marginRight:N}];I=x.makeVList({positionType:"individualShift",children:s0},e)}else if(m){y=Math.max(y,f.sub1,m.height-.8*f.xHeight);const P=[{type:"elem",elem:m,marginLeft:O,marginRight:N}];I=x.makeVList({positionType:"shift",positionData:y,children:P},e)}else if(u)b=Math.max(b,v,u.depth+.25*f.xHeight),I=x.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:u,marginRight:N}]},e);else throw new Error("supsub must have either sup or sub.");const H=He(o,"right")||"mord";return x.makeSpan([H],[o,x.makeSpan(["msupsub"],[I])],e)},mathmlBuilder(t,e){let r=!1,n,s;t.base&&t.base.type==="horizBrace"&&(s=!!t.sup,s===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);const l=[V(t.base,e)];t.sub&&l.push(V(t.sub,e)),t.sup&&l.push(V(t.sup,e));let o;if(r)o=n?"mover":"munder";else if(t.sub)if(t.sup){const u=t.base;u&&u.type==="op"&&u.limits&&e.style===D.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===D.DISPLAY||u.limits)?o="munderover":o="msubsup"}else{const u=t.base;u&&u.type==="op"&&u.limits&&(e.style===D.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===D.DISPLAY)?o="munder":o="msub"}else{const u=t.base;u&&u.type==="op"&&u.limits&&(e.style===D.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===D.DISPLAY)?o="mover":o="msup"}return new S.MathNode(o,l)}}),H0({type:"atom",htmlBuilder(t,e){return x.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){const r=new S.MathNode("mo",[m0(t.text,t.mode)]);if(t.family==="bin"){const n=Pe(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});const wr={mi:"italic",mn:"normal",mtext:"normal"};H0({type:"mathord",htmlBuilder(t,e){return x.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){const r=new S.MathNode("mi",[m0(t.text,t.mode,e)]),n=Pe(t,e)||"italic";return n!==wr[r.type]&&r.setAttribute("mathvariant",n),r}}),H0({type:"textord",htmlBuilder(t,e){return x.makeOrd(t,e,"textord")},mathmlBuilder(t,e){const r=m0(t.text,t.mode,e),n=Pe(t,e)||"normal";let s;return t.mode==="text"?s=new S.MathNode("mtext",[r]):/[0-9]/.test(t.text)?s=new S.MathNode("mn",[r]):t.text==="\\prime"?s=new S.MathNode("mo",[r]):s=new S.MathNode("mi",[r]),n!==wr[s.type]&&s.setAttribute("mathvariant",n),s}});const st={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},it={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};H0({type:"spacing",htmlBuilder(t,e){if(it.hasOwnProperty(t.text)){const r=it[t.text].className||"";if(t.mode==="text"){const n=x.makeOrd(t,e,"textord");return n.classes.push(r),n}else return x.makeSpan(["mspace",r],[x.mathsym(t.text,t.mode,e)],e)}else{if(st.hasOwnProperty(t.text))return x.makeSpan(["mspace",st[t.text]],[],e);throw new M('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){let r;if(it.hasOwnProperty(t.text))r=new S.MathNode("mtext",[new S.TextNode("\xA0")]);else{if(st.hasOwnProperty(t.text))return new S.MathNode("mspace");throw new M('Unknown type of space "'+t.text+'"')}return r}});const vr=()=>{const t=new S.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};H0({type:"tag",mathmlBuilder(t,e){const r=new S.MathNode("mtable",[new S.MathNode("mtr",[vr(),new S.MathNode("mtd",[E0(t.body,e)]),vr(),new S.MathNode("mtd",[E0(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});const kr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sr={"\\textbf":"textbf","\\textmd":"textmd"},b1={"\\textit":"textit","\\textup":"textup"},Mr=(t,e)=>{const r=t.font;return r?kr[r]?e.withTextFontFamily(kr[r]):Sr[r]?e.withTextFontWeight(Sr[r]):e.withTextFontShape(b1[r]):e};A({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){let{parser:r,funcName:n}=t;const s=e[0];return{type:"text",mode:r.mode,body:J(s),font:n}},htmlBuilder(t,e){const r=Mr(t,e),n=e0(t.body,r,!0);return x.makeSpan(["mord","text"],n,r)},mathmlBuilder(t,e){const r=Mr(t,e);return E0(t.body,r)}}),A({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){let{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){const r=F(t.body,e),n=x.makeLineSpan("underline-line",e),s=e.fontMetrics().defaultRuleThickness,l=x.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:s},{type:"elem",elem:n},{type:"kern",size:3*s},{type:"elem",elem:r}]},e);return x.makeSpan(["mord","underline"],[l],e)},mathmlBuilder(t,e){const r=new S.MathNode("mo",[new S.TextNode("\u203E")]);r.setAttribute("stretchy","true");const n=new S.MathNode("munder",[V(t.body,e),r]);return n.setAttribute("accentunder","true"),n}}),A({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){let{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){const r=F(t.body,e),n=e.fontMetrics().axisHeight,s=.5*(r.height-n-(r.depth+n));return x.makeVList({positionType:"shift",positionData:s,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){return new S.MathNode("mpadded",[V(t.body,e)],["vcenter"])}}),A({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){const r=zr(t),n=[],s=e.havingStyle(e.style.text());for(let l=0;lt.body.replace(/ /g,t.star?"\u2423":"\xA0");var I0=Ct;const Ar=`[ \r - ]`,y1="\\\\[a-zA-Z@]+",x1="\\\\[^\uD800-\uDFFF]",w1="("+y1+")"+Ar+"*",v1=`\\\\( -|[ \r ]+ -?)[ \r ]*`,at="[\u0300-\u036F]",k1=new RegExp(at+"+$"),S1="("+Ar+"+)|"+(v1+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(at+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(at+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+w1)+("|"+x1+")");class Tr{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(S1,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){const e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new d0("EOF",new o0(this,r,r));const n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new M("Unexpected character: '"+e[r]+"'",new d0(e[r],new o0(this,r,r+1)));const s=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[s]===14){const l=e.indexOf(` -`,this.tokenRegex.lastIndex);return l===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=l+1,this.lex()}return new d0(s,new o0(this,r,this.tokenRegex.lastIndex))}}class M1{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new M("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(let s=0;s0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{const s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var z1=rr;h("\\noexpand",function(t){const e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),h("\\expandafter",function(t){const e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),h("\\@firstoftwo",function(t){return{tokens:t.consumeArgs(2)[0],numArgs:0}}),h("\\@secondoftwo",function(t){return{tokens:t.consumeArgs(2)[1],numArgs:0}}),h("\\@ifnextchar",function(t){const e=t.consumeArgs(3);t.consumeSpaces();const r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),h("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),h("\\TextOrMath",function(t){const e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});const Br={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(t){let e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new M("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=Br[e.text],n==null||n>=r)throw new M("Invalid base-"+r+" digit "+e.text);let s;for(;(s=Br[t.future().text])!=null&&s{let n=t.consumeArg().tokens;if(n.length!==1)throw new M("\\newcommand's first argument must be a macro name");const s=n[0].text,l=t.isDefined(s);if(l&&!e)throw new M("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!l&&!r)throw new M("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");let o=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){let u="",m=t.expandNextToken();for(;m.text!=="]"&&m.text!=="EOF";)u+=m.text,m=t.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new M("Invalid number of arguments: "+u);o=parseInt(u),n=t.consumeArg().tokens}return t.macros.set(s,{tokens:n,numArgs:o}),""};h("\\newcommand",t=>lt(t,!1,!0)),h("\\renewcommand",t=>lt(t,!0,!1)),h("\\providecommand",t=>lt(t,!0,!0)),h("\\message",t=>{const e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""}),h("\\errmessage",t=>{const e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""}),h("\\show",t=>{const e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),I0[r],j.math[r],j.text[r]),""}),h("\\bgroup","{"),h("\\egroup","}"),h("~","\\nobreakspace"),h("\\lq","`"),h("\\rq","'"),h("\\aa","\\r a"),h("\\AA","\\r A"),h("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),h("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),h("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),h("\u212C","\\mathscr{B}"),h("\u2130","\\mathscr{E}"),h("\u2131","\\mathscr{F}"),h("\u210B","\\mathscr{H}"),h("\u2110","\\mathscr{I}"),h("\u2112","\\mathscr{L}"),h("\u2133","\\mathscr{M}"),h("\u211B","\\mathscr{R}"),h("\u212D","\\mathfrak{C}"),h("\u210C","\\mathfrak{H}"),h("\u2128","\\mathfrak{Z}"),h("\\Bbbk","\\Bbb{k}"),h("\xB7","\\cdotp"),h("\\llap","\\mathllap{\\textrm{#1}}"),h("\\rlap","\\mathrlap{\\textrm{#1}}"),h("\\clap","\\mathclap{\\textrm{#1}}"),h("\\mathstrut","\\vphantom{(}"),h("\\underbar","\\underline{\\text{#1}}"),h("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),h("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),h("\\ne","\\neq"),h("\u2260","\\neq"),h("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),h("\u2209","\\notin"),h("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),h("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),h("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),h("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),h("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),h("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),h("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),h("\u27C2","\\perp"),h("\u203C","\\mathclose{!\\mkern-0.8mu!}"),h("\u220C","\\notni"),h("\u231C","\\ulcorner"),h("\u231D","\\urcorner"),h("\u231E","\\llcorner"),h("\u231F","\\lrcorner"),h("\xA9","\\copyright"),h("\xAE","\\textregistered"),h("\uFE0F","\\textregistered"),h("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),h("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),h("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),h("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),h("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),h("\u22EE","\\vdots"),h("\\varGamma","\\mathit{\\Gamma}"),h("\\varDelta","\\mathit{\\Delta}"),h("\\varTheta","\\mathit{\\Theta}"),h("\\varLambda","\\mathit{\\Lambda}"),h("\\varXi","\\mathit{\\Xi}"),h("\\varPi","\\mathit{\\Pi}"),h("\\varSigma","\\mathit{\\Sigma}"),h("\\varUpsilon","\\mathit{\\Upsilon}"),h("\\varPhi","\\mathit{\\Phi}"),h("\\varPsi","\\mathit{\\Psi}"),h("\\varOmega","\\mathit{\\Omega}"),h("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),h("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),h("\\boxed","\\fbox{$\\displaystyle{#1}$}"),h("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),h("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),h("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");const Nr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\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(t){let e="\\dotso";const r=t.expandAfterFuture().text;return r in Nr?e=Nr[r]:(r.slice(0,4)==="\\not"||r in j.math&&C.contains(["bin","rel"],j.math[r].group))&&(e="\\dotsb"),e});const ot={")":!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(t){return t.future().text in ot?"\\ldots\\,":"\\ldots"}),h("\\dotsc",function(t){const e=t.future().text;return e in ot&&e!==","?"\\ldots\\,":"\\ldots"}),h("\\cdots",function(t){return t.future().text in ot?"\\@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",t=>{if(t.macros.get("\\df@tag"))throw new M("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}}");const Cr=z(y0["Main-Regular"]["T".charCodeAt(0)][1]-.7*y0["Main-Regular"]["A".charCodeAt(0)][1]);h("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Cr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),h("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Cr+"}{\\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");const Dr=t=>e=>{const r=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,l=e.consumeArg().tokens,o=e.macros.get("|"),u=e.macros.get("\\|");e.macros.beginGroup();const m=y=>w=>{t&&(w.macros.set("|",o),s.length&&w.macros.set("\\|",u));let v=y;return!y&&s.length&&w.future().text==="|"&&(w.popToken(),v=!0),{tokens:v?s:n,numArgs:0}};e.macros.set("|",m(!1)),s.length&&e.macros.set("\\|",m(!0));const f=e.consumeArg().tokens,b=e.expandTokens([...l,...f,...r]);return e.macros.endGroup(),{tokens:b.reverse(),numArgs:0}};h("\\bra@ket",Dr(!1)),h("\\bra@set",Dr(!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}");const qr={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class A1{constructor(e,r,n){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=r,this.expansionCount=0,this.feed(e),this.macros=new M1(z1,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Tr(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let r,n,s;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:s,end:n}=this.consumeArg(["]"])}else({tokens:s,start:r,end:n}=this.consumeArg());return this.pushToken(new d0("EOF",n.loc)),this.pushTokens(s),r.range(n,"")}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(e){const r=[],n=e&&e.length>0;n||this.consumeSpaces();const s=this.future();let l,o=0,u=0;do{if(l=this.popToken(),r.push(l),l.text==="{")++o;else if(l.text==="}"){if(--o,o===-1)throw new M("Extra }",l)}else if(l.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(e&&n?e[u]:"}")+"'",l);if(e&&n)if((o===0||o===1&&e[u]==="{")&&l.text===e[u]){if(++u,u===e.length){r.splice(-u,u);break}}else u=0}while(o!==0||n);return s.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:s,end:l}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new M("The length of delimiters doesn't match the number of args!");const s=r[0];for(let l=0;lthis.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){const r=this.popToken(),n=r.text,s=r.noexpand?null:this._getExpansion(n);if(s==null||e&&s.unexpandable){if(e&&s==null&&n[0]==="\\"&&!this.isDefined(n))throw new M("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);let l=s.tokens;const o=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){l=l.slice();for(let u=l.length-1;u>=0;--u){let m=l[u];if(m.text==="#"){if(u===0)throw new M("Incomplete placeholder at end of macro body",m);if(m=l[--u],m.text==="#")l.splice(u+1,1);else if(/^[1-9]$/.test(m.text))l.splice(u,2,...o[+m.text-1]);else throw new M("Not a valid argument number",m)}}}return this.pushTokens(l),l.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){const e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new d0(e)]):void 0}expandTokens(e){const r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){const s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),r.push(s)}return this.countExpansion(r.length),r}expandMacroAsText(e){const r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){const r=this.macros.get(e);if(r==null)return r;if(e.length===1){const s=this.lexer.catcodes[e];if(s!=null&&s!==13)return}const n=typeof r=="function"?r(this):r;if(typeof n=="string"){let s=0;if(n.indexOf("#")!==-1){const f=n.replace(/##/g,"");for(;f.indexOf("#"+(s+1))!==-1;)++s}const l=new Tr(n,this.settings),o=[];let u=l.lex();for(;u.text!=="EOF";)o.push(u),u=l.lex();return o.reverse(),{tokens:o,numArgs:s}}return n}isDefined(e){return this.macros.has(e)||I0.hasOwnProperty(e)||j.math.hasOwnProperty(e)||j.text.hasOwnProperty(e)||qr.hasOwnProperty(e)}isExpandable(e){const r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:I0.hasOwnProperty(e)&&!I0[e].primitive}}const Er=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ke=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"}),ct={"\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"}},Rr={\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"};class Se{constructor(e,r){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 A1(e,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new M("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){const r=this.nextToken;this.consume(),this.gullet.pushToken(new d0("}")),this.gullet.pushTokens(e);const n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){const n=[];for(;;){this.mode==="math"&&this.consumeSpaces();const s=this.fetch();if(Se.endOfExpression.indexOf(s.text)!==-1||r&&s.text===r||e&&I0[s.text]&&I0[s.text].infix)break;const l=this.parseAtom(r);if(l){if(l.type==="internal")continue}else break;n.push(l)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){let r=-1,n;for(let s=0;s=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);const l=j[this.mode][r].group,o=o0.range(e);let u;if(kn.hasOwnProperty(l)){const m=l;u={type:"atom",mode:this.mode,family:m,loc:o,text:r}}else u={type:l,mode:this.mode,loc:o,text:r};s=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(mt(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:o0.range(e),text:r};else return null;if(this.consume(),n)for(let l=0;l0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},n=[];const m={data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_key:"",send_button_app:"",send_button_desktop:""},ruleData:{screenshot_key:[{validator:(t,s,a)=>{s=s.trim(),s=s.substring(s.length-1),s&&!/^[A-Za-z0-9]?$/.test(s)?a(new Error(this.$L("\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6216\u6570\u5B57"))):a(),this.$nextTick(e=>{this.$set(this.formData,t.field,s.toUpperCase())})},trigger:"change"}]}}},mounted(){this.initData()},methods:{initData(){this.formData=$A.cloneJSON(this.$store.state.cacheKeyboard),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("handleKeyboard",this.formData).then(s=>{this.$Electron&&$A.bindScreenshotKey(s),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},o={};var p=i(m,r,n,!1,_,"3f2987a4",null,null);function _(t){for(let s in o)this[s]=o[s]}var H=function(){return p.exports}();export{H as default}; +import{n as i}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var r=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[t.$Electron?[a("FormItem",{attrs:{label:t.$L("\u622A\u56FE\u5FEB\u6377\u952E"),prop:"screenshot_key"}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("Shift"),a("div",{staticClass:"input-box-push"},[t._v("+")]),a("Input",{staticClass:"input-box-key",attrs:{maxlength:2},model:{value:t.formData.screenshot_key,callback:function(e){t.$set(t.formData,"screenshot_key",e)},expression:"formData.screenshot_key"}})],1)]),a("FormItem",{attrs:{label:t.$L("\u65B0\u5EFA\u9879\u76EE")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("B ")])]),a("FormItem",{attrs:{label:t.$L("\u65B0\u5EFA\u4EFB\u52A1")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("N (K) ")])]),a("FormItem",{attrs:{label:t.$L("\u65B0\u4F1A\u8BAE")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("J ")])]),a("FormItem",{attrs:{label:t.$L("\u8BBE\u7F6E")}},[a("div",{staticClass:"input-box"},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(", ")])])]:t._e(),t.$isEEUiApp?a("FormItem",{attrs:{label:t.$L("\u53D1\u9001\u6309\u94AE")}},[a("RadioGroup",{model:{value:t.formData.send_button_app,callback:function(e){t.$set(t.formData,"send_button_app",e)},expression:"formData.send_button_app"}},[a("Radio",{attrs:{label:"button"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"enter"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\uFF0C\u53D1\u9001\u6D88\u606F\u65F6\u952E\u76D8\u4E0A\u7684\u53D1\u9001\u6309\u94AE\u4F1A\u88AB\u66FF\u6362\u6210\u6362\u884C")))])],1):t.$Electron?a("FormItem",{attrs:{label:t.$L("\u53D1\u9001\u6309\u94AE")}},[a("RadioGroup",{attrs:{vertical:""},model:{value:t.formData.send_button_desktop,callback:function(e){t.$set(t.formData,"send_button_desktop",e)},expression:"formData.send_button_desktop"}},[a("Radio",{attrs:{label:"enter"}},[t._v("Enter "+t._s(t.$L("\u53D1\u9001")))]),a("Radio",{staticClass:"input-box",attrs:{label:"button"}},[t._v(" "+t._s(t.mateName)),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v("Enter "+t._s(t.$L("\u53D1\u9001"))+" ")])],1)],1):t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},n=[];const m={data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_key:"",send_button_app:"",send_button_desktop:""},ruleData:{screenshot_key:[{validator:(t,s,a)=>{s=s.trim(),s=s.substring(s.length-1),s&&!/^[A-Za-z0-9]?$/.test(s)?a(new Error(this.$L("\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6216\u6570\u5B57"))):a(),this.$nextTick(e=>{this.$set(this.formData,t.field,s.toUpperCase())})},trigger:"change"}]}}},mounted(){this.initData()},methods:{initData(){this.formData=$A.cloneJSON(this.$store.state.cacheKeyboard),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("handleKeyboard",this.formData).then(s=>{this.$Electron&&$A.bindScreenshotKey(s),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},o={};var p=i(m,r,n,!1,_,"3f2987a4",null,null);function _(t){for(let s in o)this[s]=o[s]}var H=function(){return p.exports}();export{H as default}; diff --git a/public/js/build/language.024a0634.js b/public/js/build/language.828bac9b.js similarity index 63% rename from public/js/build/language.024a0634.js rename to public/js/build/language.828bac9b.js index 0c3686981..9fad2cbac 100644 --- a/public/js/build/language.024a0634.js +++ b/public/js/build/language.828bac9b.js @@ -1 +1 @@ -import{a as m,l as n,f as s,n as l}from"./app.f8a6fa5e.js";import{m as p}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var u=function(){var t=this,r=t.$createElement,a=t._self._c||r;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[a("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(o){t.$set(t.formData,"language",o)},expression:"formData.language"}},t._l(t.languageList,function(o,i){return a("Option",{key:i,attrs:{value:i}},[t._v(t._s(o))])}),1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},f=[];const g={data(){return{loadIng:0,languageList:m,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...p(["formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"language",n),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&s(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},e={};var c=l(g,u,f,!1,_,null,null,null);function _(t){for(let r in e)this[r]=e[r]}var Y=function(){return c.exports}();export{Y as default}; +import{a as m,l as n,f as s,n as l}from"./app.57070a0d.js";import{m as p}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var u=function(){var t=this,r=t.$createElement,a=t._self._c||r;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[a("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(o){t.$set(t.formData,"language",o)},expression:"formData.language"}},t._l(t.languageList,function(o,i){return a("Option",{key:i,attrs:{value:i}},[t._v(t._s(o))])}),1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},f=[];const g={data(){return{loadIng:0,languageList:m,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...p(["formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"language",n),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&s(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},e={};var c=l(g,u,f,!1,_,null,null,null);function _(t){for(let r in e)this[r]=e[r]}var Y=function(){return c.exports}();export{Y as default}; diff --git a/public/js/build/le5le-store.bd86c9e9.js b/public/js/build/le5le-store.b40f9152.js similarity index 100% rename from public/js/build/le5le-store.bd86c9e9.js rename to public/js/build/le5le-store.b40f9152.js diff --git a/public/js/build/license.4f8d16fd.js b/public/js/build/license.8f9514f2.js similarity index 80% rename from public/js/build/license.4f8d16fd.js rename to public/js/build/license.8f9514f2.js index 55f301c95..daedd86bb 100644 --- a/public/js/build/license.4f8d16fd.js +++ b/public/js/build/license.8f9514f2.js @@ -1 +1 @@ -import{m as e}from"./vuex.cc7cb26e.js";import{n}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var i,t=this,s=t.$createElement,o=t._self._c||s;return o("div",{staticClass:"setting-item submit"},[o("Form",{ref:"formData",attrs:{model:t.formData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(a){a.preventDefault()}}},[o("FormItem",{attrs:{label:"License",prop:"license"}},[o("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:t.$L("\u8BF7\u8F93\u5165License...")},model:{value:t.formData.license,callback:function(a){t.$set(t.formData,"license",a)},expression:"formData.license"}})],1),o("FormItem",[o("div",{staticClass:"license-box"},[t.formData.info.sn?o("ul",[o("li",[o("em",[t._v("SN:")]),o("span",[t._v(t._s(t.formData.info.sn))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.formData.doo_sn))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v("IP:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.ip)))])]),o("li",[o("em",[t._v(t._s(t.$L("\u57DF\u540D"))+":")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.domain)))])]),o("li",[o("em",[t._v("MAC:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.mac)))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.infoJoin(t.formData.macs,"-")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),o("span",[t._v(t._s(t.formData.info.people||t.$L("\u65E0\u9650\u5236"))+" ("+t._s(t.$L("\u5DF2\u4F7F\u7528"))+": "+t._s(t.formData.user_count)+")")]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u9650\u5236\u6CE8\u518C\u4EBA\u6570")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.created_at))])]),o("li",[o("em",[t._v(t._s(t.$L("\u5230\u671F\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.expired_at||t.$L("\u6C38\u4E45")))]),t.formData.info.expired_at?o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5230\u671F\u540E\u9650\u5236\u6CE8\u518C\u5E10\u53F7")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1):t._e()],1)]):o("ul",[o("li",[t._v(" "+t._s(t.$L("\u52A0\u8F7D\u4E2D..."))+" ")])])])]),((i=t.formData.error)===null||i===void 0?void 0:i.length)>0?o("FormItem",{attrs:{label:t.$L("\u5F53\u524D\u73AF\u5883")}},[o("div",{staticClass:"license-box"},[o("ul",[o("li",[o("em",[t._v("SN:")]),o("span",[t._v(t._s(t.formData.doo_sn))])]),o("li",[o("em",[t._v("MAC:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.macs)))])]),t._l(t.formData.error,function(a){return o("li",{staticClass:"warning"},[t._v(t._s(a))])})],2)])]):t._e()],1),o("div",{staticClass:"setting-footer"},[o("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),o("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const _={data(){return{loadIng:0,formData:{license:"",info:{},macs:[],doo_sn:"",user_count:0,error:[]}}},mounted(){this.systemSetting()},computed:{...e(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formData.validate(i=>{i&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},systemSetting(i){this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:Object.assign(this.formData,{type:i?"save":"get"}),method:"post"}).then(({data:t})=>{i&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=t,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{i&&$A.modalError(t)}).finally(t=>{this.loadIng--})},infoJoin(i,t=null){return $A.isArray(i)&&(i=i.join(",")),i||(t===null?this.$L("\u65E0\u9650\u5236"):t)}}},r={};var c=n(_,m,l,!1,p,"0f9d4138",null,null);function p(i){for(let t in r)this[t]=r[t]}var U=function(){return c.exports}();export{U as default}; +import{m as e}from"./vuex.cc7cb26e.js";import{n}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var i,t=this,s=t.$createElement,o=t._self._c||s;return o("div",{staticClass:"setting-item submit"},[o("Form",{ref:"formData",attrs:{model:t.formData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(a){a.preventDefault()}}},[o("FormItem",{attrs:{label:"License",prop:"license"}},[o("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:t.$L("\u8BF7\u8F93\u5165License...")},model:{value:t.formData.license,callback:function(a){t.$set(t.formData,"license",a)},expression:"formData.license"}})],1),o("FormItem",[o("div",{staticClass:"license-box"},[t.formData.info.sn?o("ul",[o("li",[o("em",[t._v("SN:")]),o("span",[t._v(t._s(t.formData.info.sn))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.formData.doo_sn))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v("IP:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.ip)))])]),o("li",[o("em",[t._v(t._s(t.$L("\u57DF\u540D"))+":")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.domain)))])]),o("li",[o("em",[t._v("MAC:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.mac)))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.infoJoin(t.formData.macs,"-")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),o("span",[t._v(t._s(t.formData.info.people||t.$L("\u65E0\u9650\u5236"))+" ("+t._s(t.$L("\u5DF2\u4F7F\u7528"))+": "+t._s(t.formData.user_count)+")")]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u9650\u5236\u6CE8\u518C\u4EBA\u6570")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.created_at))])]),o("li",[o("em",[t._v(t._s(t.$L("\u5230\u671F\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.expired_at||t.$L("\u6C38\u4E45")))]),t.formData.info.expired_at?o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5230\u671F\u540E\u9650\u5236\u6CE8\u518C\u5E10\u53F7")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1):t._e()],1)]):o("ul",[o("li",[t._v(" "+t._s(t.$L("\u52A0\u8F7D\u4E2D..."))+" ")])])])]),((i=t.formData.error)===null||i===void 0?void 0:i.length)>0?o("FormItem",{attrs:{label:t.$L("\u5F53\u524D\u73AF\u5883")}},[o("div",{staticClass:"license-box"},[o("ul",[o("li",[o("em",[t._v("SN:")]),o("span",[t._v(t._s(t.formData.doo_sn))])]),o("li",[o("em",[t._v("MAC:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.macs)))])]),t._l(t.formData.error,function(a){return o("li",{staticClass:"warning"},[t._v(t._s(a))])})],2)])]):t._e()],1),o("div",{staticClass:"setting-footer"},[o("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),o("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const _={data(){return{loadIng:0,formData:{license:"",info:{},macs:[],doo_sn:"",user_count:0,error:[]}}},mounted(){this.systemSetting()},computed:{...e(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formData.validate(i=>{i&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},systemSetting(i){this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:Object.assign(this.formData,{type:i?"save":"get"}),method:"post"}).then(({data:t})=>{i&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=t,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{i&&$A.modalError(t)}).finally(t=>{this.loadIng--})},infoJoin(i,t=null){return $A.isArray(i)&&(i=i.join(",")),i||(t===null?this.$L("\u65E0\u9650\u5236"):t)}}},r={};var c=n(_,m,l,!1,p,"0f9d4138",null,null);function p(i){for(let t in r)this[t]=r[t]}var U=function(){return c.exports}();export{U as default}; diff --git a/public/js/build/linkify-it.43898b73.js b/public/js/build/linkify-it.3ecfda1e.js similarity index 99% rename from public/js/build/linkify-it.43898b73.js rename to public/js/build/linkify-it.3ecfda1e.js index a87f8820c..fe74f8a85 100644 --- a/public/js/build/linkify-it.43898b73.js +++ b/public/js/build/linkify-it.3ecfda1e.js @@ -1 +1 @@ -import{r as y,a as g,b as v,c as C}from"./uc.micro.3245408e.js";var k=function(_){var t={};_=_||{},t.src_Any=y.source,t.src_Cc=g.source,t.src_Z=v.source,t.src_P=C.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(_["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(_["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t};function p(_){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){!r||Object.keys(r).forEach(function(e){_[e]=r[e]})}),_}function l(_){return Object.prototype.toString.call(_)}function w(_){return l(_)==="[object String]"}function Z(_){return l(_)==="[object Object]"}function E(_){return l(_)==="[object RegExp]"}function f(_){return l(_)==="[object Function]"}function j(_){return _.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var x={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $(_){return Object.keys(_||{}).reduce(function(t,r){return t||x.hasOwnProperty(r)},!1)}var b={"http:":{validate:function(_,t,r){var e=_.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(e)?e.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(_,t,r){var e=_.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(e)?t>=3&&_[t-3]===":"||t>=3&&_[t-3]==="/"?0:e.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(_,t,r){var e=_.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(e)?e.match(r.re.mailto)[0].length:0}}},S="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",A="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function P(_){_.__index__=-1,_.__text_cache__=""}function R(_){return function(t,r){var e=t.slice(r);return _.test(e)?e.match(_)[0].length:0}}function z(){return function(_,t){t.normalize(_)}}function u(_){var t=_.re=k(_.__opts__),r=_.__tlds__.slice();_.onCompile(),_.__tlds_replaced__||r.push(S),r.push(t.src_xn),t.src_tlds=r.join("|");function e(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(e(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(e(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(e(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(e(t.tpl_host_fuzzy_test),"i");var c=[];_.__compiled__={};function a(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(_.__schemas__).forEach(function(i){var s=_.__schemas__[i];if(s!==null){var h={validate:null,link:null};if(_.__compiled__[i]=h,Z(s)){E(s.validate)?h.validate=R(s.validate):f(s.validate)?h.validate=s.validate:a(i,s),f(s.normalize)?h.normalize=s.normalize:s.normalize?a(i,s):h.normalize=z();return}if(w(s)){c.push(i);return}a(i,s)}}),c.forEach(function(i){!_.__compiled__[_.__schemas__[i]]||(_.__compiled__[i].validate=_.__compiled__[_.__schemas__[i]].validate,_.__compiled__[i].normalize=_.__compiled__[_.__schemas__[i]].normalize)}),_.__compiled__[""]={validate:null,normalize:z()};var o=Object.keys(_.__compiled__).filter(function(i){return i.length>0&&_.__compiled__[i]}).map(j).join("|");_.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+o+")","i"),_.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+o+")","ig"),_.re.schema_at_start=RegExp("^"+_.re.schema_search.source,"i"),_.re.pretest=RegExp("("+_.re.schema_test.source+")|("+_.re.host_fuzzy_test.source+")|@","i"),P(_)}function O(_,t){var r=_.__index__,e=_.__last_index__,c=_.__text_cache__.slice(r,e);this.schema=_.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=e+t,this.raw=c,this.text=c,this.url=c}function d(_,t){var r=new O(_,t);return _.__compiled__[r.schema].normalize(r,_),r}function n(_,t){if(!(this instanceof n))return new n(_,t);t||$(_)&&(t=_,_={}),this.__opts__=p({},x,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p({},b,_),this.__compiled__={},this.__tlds__=A,this.__tlds_replaced__=!1,this.re={},u(this)}n.prototype.add=function(t,r){return this.__schemas__[t]=r,u(this),this};n.prototype.set=function(t){return this.__opts__=p(this.__opts__,t),this};n.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,e,c,a,o,i,s,h,m;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(r=s.exec(t))!==null;)if(a=this.testSchemaAt(t,r[2],s.lastIndex),a){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,i=c.index+c[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0};n.prototype.pretest=function(t){return this.re.pretest.test(t)};n.prototype.testSchemaAt=function(t,r,e){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,e,this):0};n.prototype.match=function(t){var r=0,e=[];this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,r)),r=this.__last_index__);for(var c=r?t.slice(r):t;this.test(c);)e.push(d(this,r)),c=c.slice(this.__last_index__),r+=this.__last_index__;return e.length?e:null};n.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var r=this.re.schema_at_start.exec(t);if(!r)return null;var e=this.testSchemaAt(t,r[2],r[0].length);return e?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+e,d(this,0)):null};n.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(e,c,a){return e!==a[c-1]}).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)};n.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};n.prototype.onCompile=function(){};var I=n;export{I as l}; +import{r as y,a as g,b as v,c as C}from"./uc.micro.39573202.js";var k=function(_){var t={};_=_||{},t.src_Any=y.source,t.src_Cc=g.source,t.src_Z=v.source,t.src_P=C.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(_["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(_["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t};function p(_){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){!r||Object.keys(r).forEach(function(e){_[e]=r[e]})}),_}function l(_){return Object.prototype.toString.call(_)}function w(_){return l(_)==="[object String]"}function Z(_){return l(_)==="[object Object]"}function E(_){return l(_)==="[object RegExp]"}function f(_){return l(_)==="[object Function]"}function j(_){return _.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var x={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $(_){return Object.keys(_||{}).reduce(function(t,r){return t||x.hasOwnProperty(r)},!1)}var b={"http:":{validate:function(_,t,r){var e=_.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(e)?e.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(_,t,r){var e=_.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(e)?t>=3&&_[t-3]===":"||t>=3&&_[t-3]==="/"?0:e.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(_,t,r){var e=_.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(e)?e.match(r.re.mailto)[0].length:0}}},S="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",A="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function P(_){_.__index__=-1,_.__text_cache__=""}function R(_){return function(t,r){var e=t.slice(r);return _.test(e)?e.match(_)[0].length:0}}function z(){return function(_,t){t.normalize(_)}}function u(_){var t=_.re=k(_.__opts__),r=_.__tlds__.slice();_.onCompile(),_.__tlds_replaced__||r.push(S),r.push(t.src_xn),t.src_tlds=r.join("|");function e(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(e(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(e(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(e(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(e(t.tpl_host_fuzzy_test),"i");var c=[];_.__compiled__={};function a(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(_.__schemas__).forEach(function(i){var s=_.__schemas__[i];if(s!==null){var h={validate:null,link:null};if(_.__compiled__[i]=h,Z(s)){E(s.validate)?h.validate=R(s.validate):f(s.validate)?h.validate=s.validate:a(i,s),f(s.normalize)?h.normalize=s.normalize:s.normalize?a(i,s):h.normalize=z();return}if(w(s)){c.push(i);return}a(i,s)}}),c.forEach(function(i){!_.__compiled__[_.__schemas__[i]]||(_.__compiled__[i].validate=_.__compiled__[_.__schemas__[i]].validate,_.__compiled__[i].normalize=_.__compiled__[_.__schemas__[i]].normalize)}),_.__compiled__[""]={validate:null,normalize:z()};var o=Object.keys(_.__compiled__).filter(function(i){return i.length>0&&_.__compiled__[i]}).map(j).join("|");_.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+o+")","i"),_.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+o+")","ig"),_.re.schema_at_start=RegExp("^"+_.re.schema_search.source,"i"),_.re.pretest=RegExp("("+_.re.schema_test.source+")|("+_.re.host_fuzzy_test.source+")|@","i"),P(_)}function O(_,t){var r=_.__index__,e=_.__last_index__,c=_.__text_cache__.slice(r,e);this.schema=_.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=e+t,this.raw=c,this.text=c,this.url=c}function d(_,t){var r=new O(_,t);return _.__compiled__[r.schema].normalize(r,_),r}function n(_,t){if(!(this instanceof n))return new n(_,t);t||$(_)&&(t=_,_={}),this.__opts__=p({},x,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p({},b,_),this.__compiled__={},this.__tlds__=A,this.__tlds_replaced__=!1,this.re={},u(this)}n.prototype.add=function(t,r){return this.__schemas__[t]=r,u(this),this};n.prototype.set=function(t){return this.__opts__=p(this.__opts__,t),this};n.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,e,c,a,o,i,s,h,m;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(r=s.exec(t))!==null;)if(a=this.testSchemaAt(t,r[2],s.lastIndex),a){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,i=c.index+c[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0};n.prototype.pretest=function(t){return this.re.pretest.test(t)};n.prototype.testSchemaAt=function(t,r,e){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,e,this):0};n.prototype.match=function(t){var r=0,e=[];this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,r)),r=this.__last_index__);for(var c=r?t.slice(r):t;this.test(c);)e.push(d(this,r)),c=c.slice(this.__last_index__),r+=this.__last_index__;return e.length?e:null};n.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var r=this.re.schema_at_start.exec(t);if(!r)return null;var e=this.testSchemaAt(t,r[2],r[0].length);return e?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+e,d(this,0)):null};n.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(e,c,a){return e!==a[c-1]}).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)};n.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};n.prototype.onCompile=function(){};var I=n;export{I as l}; diff --git a/public/js/build/localforage.dae0aa5a.js b/public/js/build/localforage.879ac172.js similarity index 99% rename from public/js/build/localforage.dae0aa5a.js rename to public/js/build/localforage.879ac172.js index 45bd56f36..6c0ee1e16 100644 --- a/public/js/build/localforage.dae0aa5a.js +++ b/public/js/build/localforage.879ac172.js @@ -1,4 +1,4 @@ -import{c as ne,a as te}from"./@traptitech.4f5fb92a.js";var Fe={exports:{}};/*! +import{c as ne,a as te}from"./@traptitech.363dce05.js";var Fe={exports:{}};/*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage diff --git a/public/js/build/lodash.90965718.js b/public/js/build/lodash.9e3f755f.js similarity index 99% rename from public/js/build/lodash.90965718.js rename to public/js/build/lodash.9e3f755f.js index 0f1341a27..ddddd7458 100644 --- a/public/js/build/lodash.90965718.js +++ b/public/js/build/lodash.9e3f755f.js @@ -1,4 +1,4 @@ -import{c as jt}from"./@traptitech.4f5fb92a.js";var el={exports:{}};/** +import{c as jt}from"./@traptitech.363dce05.js";var el={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors diff --git a/public/js/build/lodash.clonedeep.4c06f0f7.js b/public/js/build/lodash.clonedeep.91f4d524.js similarity index 99% rename from public/js/build/lodash.clonedeep.4c06f0f7.js rename to public/js/build/lodash.clonedeep.91f4d524.js index c221bbf7f..45147df14 100644 --- a/public/js/build/lodash.clonedeep.4c06f0f7.js +++ b/public/js/build/lodash.clonedeep.91f4d524.js @@ -1 +1 @@ -import{c as P}from"./@traptitech.4f5fb92a.js";var Ut={exports:{}};(function(v,M){var $t=200,X="__lodash_hash_undefined__",Y=9007199254740991,G="[object Arguments]",Dt="[object Array]",Z="[object Boolean]",Q="[object Date]",Kt="[object Error]",B="[object Function]",z="[object GeneratorFunction]",A="[object Map]",k="[object Number]",R="[object Object]",tt="[object Promise]",rt="[object RegExp]",S="[object Set]",nt="[object String]",et="[object Symbol]",H="[object WeakMap]",at="[object ArrayBuffer]",C="[object DataView]",ot="[object Float32Array]",it="[object Float64Array]",ct="[object Int8Array]",st="[object Int16Array]",ut="[object Int32Array]",ft="[object Uint8Array]",lt="[object Uint8ClampedArray]",ht="[object Uint16Array]",pt="[object Uint32Array]",Nt=/[\\^$.*+?()[\]{}|]/g,Vt=/\w*$/,Wt=/^\[object .+?Constructor\]$/,qt=/^(?:0|[1-9]\d*)$/,a={};a[G]=a[Dt]=a[at]=a[C]=a[Z]=a[Q]=a[ot]=a[it]=a[ct]=a[st]=a[ut]=a[A]=a[k]=a[R]=a[rt]=a[S]=a[nt]=a[et]=a[ft]=a[lt]=a[ht]=a[pt]=!0,a[Kt]=a[B]=a[H]=!1;var Jt=typeof P=="object"&&P&&P.Object===Object&&P,Xt=typeof self=="object"&&self&&self.Object===Object&&self,u=Jt||Xt||Function("return this")(),dt=M&&!M.nodeType&&M,gt=dt&&!0&&v&&!v.nodeType&&v,Yt=gt&>.exports===dt;function Zt(t,r){return t.set(r[0],r[1]),t}function Qt(t,r){return t.add(r),t}function zt(t,r){for(var n=-1,e=t?t.length:0;++n-1}function Or(t,r){var n=this.__data__,e=x(n,t);return e<0?n.push([t,r]):n[e][1]=r,this}f.prototype.clear=vr,f.prototype.delete=Ar,f.prototype.get=Sr,f.prototype.has=Cr,f.prototype.set=Or;function g(t){var r=-1,n=t?t.length:0;for(this.clear();++r-1&&t%1==0&&t-1&&t%1==0&&t<=Y}function E(t){var r=typeof t;return!!t&&(r=="object"||r=="function")}function ln(t){return!!t&&typeof t=="object"}function q(t){return Gt(t)?Hr(t):Kr(t)}function hn(){return[]}function pn(){return!1}v.exports=on})(Ut,Ut.exports);export{Ut as l}; +import{c as P}from"./@traptitech.363dce05.js";var Ut={exports:{}};(function(v,M){var $t=200,X="__lodash_hash_undefined__",Y=9007199254740991,G="[object Arguments]",Dt="[object Array]",Z="[object Boolean]",Q="[object Date]",Kt="[object Error]",B="[object Function]",z="[object GeneratorFunction]",A="[object Map]",k="[object Number]",R="[object Object]",tt="[object Promise]",rt="[object RegExp]",S="[object Set]",nt="[object String]",et="[object Symbol]",H="[object WeakMap]",at="[object ArrayBuffer]",C="[object DataView]",ot="[object Float32Array]",it="[object Float64Array]",ct="[object Int8Array]",st="[object Int16Array]",ut="[object Int32Array]",ft="[object Uint8Array]",lt="[object Uint8ClampedArray]",ht="[object Uint16Array]",pt="[object Uint32Array]",Nt=/[\\^$.*+?()[\]{}|]/g,Vt=/\w*$/,Wt=/^\[object .+?Constructor\]$/,qt=/^(?:0|[1-9]\d*)$/,a={};a[G]=a[Dt]=a[at]=a[C]=a[Z]=a[Q]=a[ot]=a[it]=a[ct]=a[st]=a[ut]=a[A]=a[k]=a[R]=a[rt]=a[S]=a[nt]=a[et]=a[ft]=a[lt]=a[ht]=a[pt]=!0,a[Kt]=a[B]=a[H]=!1;var Jt=typeof P=="object"&&P&&P.Object===Object&&P,Xt=typeof self=="object"&&self&&self.Object===Object&&self,u=Jt||Xt||Function("return this")(),dt=M&&!M.nodeType&&M,gt=dt&&!0&&v&&!v.nodeType&&v,Yt=gt&>.exports===dt;function Zt(t,r){return t.set(r[0],r[1]),t}function Qt(t,r){return t.add(r),t}function zt(t,r){for(var n=-1,e=t?t.length:0;++n-1}function Or(t,r){var n=this.__data__,e=x(n,t);return e<0?n.push([t,r]):n[e][1]=r,this}f.prototype.clear=vr,f.prototype.delete=Ar,f.prototype.get=Sr,f.prototype.has=Cr,f.prototype.set=Or;function g(t){var r=-1,n=t?t.length:0;for(this.clear();++r-1&&t%1==0&&t-1&&t%1==0&&t<=Y}function E(t){var r=typeof t;return!!t&&(r=="object"||r=="function")}function ln(t){return!!t&&typeof t=="object"}function q(t){return Gt(t)?Hr(t):Kr(t)}function hn(){return[]}function pn(){return!1}v.exports=on})(Ut,Ut.exports);export{Ut as l}; diff --git a/public/js/build/lodash.isequal.d456a716.js b/public/js/build/lodash.isequal.0dd437dc.js similarity index 99% rename from public/js/build/lodash.isequal.d456a716.js rename to public/js/build/lodash.isequal.0dd437dc.js index 14dfdaf2a..020647ecf 100644 --- a/public/js/build/lodash.isequal.d456a716.js +++ b/public/js/build/lodash.isequal.0dd437dc.js @@ -1 +1 @@ -import{c as X}from"./@traptitech.4f5fb92a.js";var Nt={exports:{}};(function(D,Y){var Kt=200,Z="__lodash_hash_undefined__",M=1,ft=2,ut=9007199254740991,G="[object Arguments]",Q="[object Array]",$t="[object AsyncFunction]",ot="[object Boolean]",ct="[object Date]",lt="[object Error]",pt="[object Function]",qt="[object GeneratorFunction]",R="[object Map]",gt="[object Number]",Jt="[object Null]",I="[object Object]",dt="[object Promise]",Wt="[object Proxy]",_t="[object RegExp]",U="[object Set]",ht="[object String]",Xt="[object Symbol]",Yt="[object Undefined]",V="[object WeakMap]",yt="[object ArrayBuffer]",B="[object DataView]",Zt="[object Float32Array]",Qt="[object Float64Array]",Vt="[object Int8Array]",kt="[object Int16Array]",te="[object Int32Array]",ee="[object Uint8Array]",ne="[object Uint8ClampedArray]",re="[object Uint16Array]",ae="[object Uint32Array]",ie=/[\\^$.*+?()[\]{}|]/g,se=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,i={};i[Zt]=i[Qt]=i[Vt]=i[kt]=i[te]=i[ee]=i[ne]=i[re]=i[ae]=!0,i[G]=i[Q]=i[yt]=i[ot]=i[B]=i[ct]=i[lt]=i[pt]=i[R]=i[gt]=i[I]=i[_t]=i[U]=i[ht]=i[V]=!1;var vt=typeof X=="object"&&X&&X.Object===Object&&X,ue=typeof self=="object"&&self&&self.Object===Object&&self,y=vt||ue||Function("return this")(),Tt=Y&&!Y.nodeType&&Y,bt=Tt&&!0&&D&&!D.nodeType&&D,At=bt&&bt.exports===Tt,k=At&&vt.process,wt=function(){try{return k&&k.binding&&k.binding("util")}catch{}}(),St=wt&&wt.isTypedArray;function oe(t,e){for(var n=-1,r=t==null?0:t.length,s=0,a=[];++n-1}function Be(t,e){var n=this.__data__,r=K(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}v.prototype.clear=Me,v.prototype.delete=Ge,v.prototype.get=Re,v.prototype.has=Ue,v.prototype.set=Be;function x(t){var e=-1,n=t==null?0:t.length;for(this.clear();++eo))return!1;var f=a.get(t);if(f&&a.get(e))return f==e;var p=-1,_=!0,l=n&ft?new N:void 0;for(a.set(t,e),a.set(e,t);++p-1&&t%1==0&&t-1&&t%1==0&&t<=ut}function Bt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function z(t){return t!=null&&typeof t=="object"}var Ht=St?ge(St):nn;function yn(t){return _n(t)?Ve(t):rn(t)}function vn(){return[]}function Tn(){return!1}D.exports=hn})(Nt,Nt.exports);export{Nt as l}; +import{c as X}from"./@traptitech.363dce05.js";var Nt={exports:{}};(function(D,Y){var Kt=200,Z="__lodash_hash_undefined__",M=1,ft=2,ut=9007199254740991,G="[object Arguments]",Q="[object Array]",$t="[object AsyncFunction]",ot="[object Boolean]",ct="[object Date]",lt="[object Error]",pt="[object Function]",qt="[object GeneratorFunction]",R="[object Map]",gt="[object Number]",Jt="[object Null]",I="[object Object]",dt="[object Promise]",Wt="[object Proxy]",_t="[object RegExp]",U="[object Set]",ht="[object String]",Xt="[object Symbol]",Yt="[object Undefined]",V="[object WeakMap]",yt="[object ArrayBuffer]",B="[object DataView]",Zt="[object Float32Array]",Qt="[object Float64Array]",Vt="[object Int8Array]",kt="[object Int16Array]",te="[object Int32Array]",ee="[object Uint8Array]",ne="[object Uint8ClampedArray]",re="[object Uint16Array]",ae="[object Uint32Array]",ie=/[\\^$.*+?()[\]{}|]/g,se=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,i={};i[Zt]=i[Qt]=i[Vt]=i[kt]=i[te]=i[ee]=i[ne]=i[re]=i[ae]=!0,i[G]=i[Q]=i[yt]=i[ot]=i[B]=i[ct]=i[lt]=i[pt]=i[R]=i[gt]=i[I]=i[_t]=i[U]=i[ht]=i[V]=!1;var vt=typeof X=="object"&&X&&X.Object===Object&&X,ue=typeof self=="object"&&self&&self.Object===Object&&self,y=vt||ue||Function("return this")(),Tt=Y&&!Y.nodeType&&Y,bt=Tt&&!0&&D&&!D.nodeType&&D,At=bt&&bt.exports===Tt,k=At&&vt.process,wt=function(){try{return k&&k.binding&&k.binding("util")}catch{}}(),St=wt&&wt.isTypedArray;function oe(t,e){for(var n=-1,r=t==null?0:t.length,s=0,a=[];++n-1}function Be(t,e){var n=this.__data__,r=K(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}v.prototype.clear=Me,v.prototype.delete=Ge,v.prototype.get=Re,v.prototype.has=Ue,v.prototype.set=Be;function x(t){var e=-1,n=t==null?0:t.length;for(this.clear();++eo))return!1;var f=a.get(t);if(f&&a.get(e))return f==e;var p=-1,_=!0,l=n&ft?new N:void 0;for(a.set(t,e),a.set(e,t);++p-1&&t%1==0&&t-1&&t%1==0&&t<=ut}function Bt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function z(t){return t!=null&&typeof t=="object"}var Ht=St?ge(St):nn;function yn(t){return _n(t)?Ve(t):rn(t)}function vn(){return[]}function Tn(){return!1}D.exports=hn})(Nt,Nt.exports);export{Nt as l}; diff --git a/public/js/build/login.2f8a1aa0.js b/public/js/build/login.6c6c873f.js similarity index 93% rename from public/js/build/login.2f8a1aa0.js rename to public/js/build/login.6c6c873f.js index eb800ab98..b94f0e595 100644 --- a/public/js/build/login.2f8a1aa0.js +++ b/public/js/build/login.6c6c873f.js @@ -1 +1 @@ -import{m as c}from"./vuex.cc7cb26e.js";import{l as d}from"./le5le-store.bd86c9e9.js";import{a,l as n,f as h,n as p}from"./app.f8a6fa5e.js";import{i as g}from"./@chenfengyuan.dfd1ecb7.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"page-login"},[t("PageTitle",{attrs:{title:e.$L("\u767B\u5F55")}}),t("div",{staticClass:"login-body"},[t("div",{staticClass:"login-logo no-dark-content",class:{"can-click":e.needStartHome},on:{click:e.goHome}}),t("div",{staticClass:"login-box"},[t("div",{staticClass:"login-mode-switch"},[t("div",{staticClass:"login-mode-switch-box"},[t("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L(e.loginMode=="qrcode"?"\u5E10\u53F7\u767B\u5F55":"\u626B\u7801\u767B\u5F55"),placement:"left"}},[t("span",{staticClass:"login-mode-switch-icon",on:{click:e.switchLoginMode}},[e.loginMode=="qrcode"?t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"PcOutlined"}},[t("path",{attrs:{d:"M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",fill:"currentColor"}})]):t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"QrOutlined"}},[t("path",{attrs:{d:"M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z",fill:"currentColor"}}),t("path",{attrs:{d:"M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z",fill:"currentColor"}})])])])],1)]),t("div",{staticClass:"login-title"},[e._v(e._s(e.welcomeTitle))]),t("div",{staticClass:"login-subtitle"},[e._v(e._s(e.$L(e.subTitle)))]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="qrcode"?t("div",{staticClass:"login-qrcode",on:{click:e.qrcodeRefresh}},[t("VueQrcode",{attrs:{value:e.qrcodeUrl,options:{width:200,margin:2}}})],1):e._e()]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="access"?t("div",{staticClass:"login-access"},[e.$isSoftware&&e.cacheServerUrl?t("Input",{attrs:{value:e.$A.getDomain(e.cacheServerUrl),prefix:"ios-globe-outline",size:"large",readonly:"",clearable:""},on:{"on-clear":function(i){return e.setServerUrl("")}}}):e._e(),t("Input",{ref:"email",attrs:{prefix:"ios-mail-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u7535\u5B50\u90AE\u4EF6"),type:"email",size:"large",clearable:""},on:{"on-enter":e.onLogin,"on-blur":e.onBlur},model:{value:e.email,callback:function(i){e.email=i},expression:"email"}}),t("Input",{ref:"password",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.password,callback:function(i){e.password=i},expression:"password"}}),e.loginType=="reg"?t("Input",{ref:"password2",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.password2,callback:function(i){e.password2=i},expression:"password2"}}):e._e(),e.loginType=="reg"&&e.needInvite?t("Input",{ref:"invite",staticClass:"login-code",attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u6CE8\u518C\u9080\u8BF7\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.invite,callback:function(i){e.invite=i},expression:"invite"}},[t("span",{attrs:{slot:"prepend"},slot:"prepend"},[e._v("\xA0"+e._s(e.$L("\u9080\u8BF7\u7801"))+"\xA0")])]):e._e(),e.loginType=="login"&&e.codeNeed?t("Input",{ref:"code",staticClass:"login-code",attrs:{placeholder:e.$L("\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.code,callback:function(i){e.code=i},expression:"code"}},[t("Icon",{staticClass:"login-icon",attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),t("div",{staticClass:"login-code-end",attrs:{slot:"append"},on:{click:e.refreshCode},slot:"append"},[e.codeLoad>0?t("div",{staticClass:"code-load"},[t("Loading")],1):e.codeUrl==="error"?t("span",{staticClass:"code-error"},[e._v(e._s(e.$L("\u52A0\u8F7D\u5931\u8D25")))]):t("img",{attrs:{src:e.codeUrl}})])],1):e._e(),t("Button",{attrs:{type:"primary",loading:e.loadIng>0||e.loginJump,size:"large",long:""},on:{click:e.onLogin}},[e._v(e._s(e.$L(e.loginText)))]),e.loginType=="reg"?t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u5DF2\u7ECF\u6709\u5E10\u53F7\uFF1F"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="login"}}},[e._v(e._s(e.$L("\u767B\u5F55\u5E10\u53F7")))])]):t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u8FD8\u6CA1\u6709\u5E10\u53F7\uFF1F"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="reg"}}},[e._v(e._s(e.$L("\u6CE8\u518C\u5E10\u53F7")))])])],1):e._e()])],1),t("div",{staticClass:"login-bottom"},[t("Dropdown",{attrs:{trigger:"click",placement:"bottom-start"}},[t("div",{staticClass:"login-setting"},[e._v(" "+e._s(e.$L("\u8BBE\u7F6E"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE689")])]),t("DropdownMenu",{staticClass:"login-setting-menu",attrs:{slot:"list"},slot:"list"},[t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.setTheme}},[t("DropdownItem",[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.themeList,function(i,o){return t("DropdownItem",{key:o,attrs:{name:i.value,selected:e.themeConf===i.value}},[e._v(e._s(e.$L(i.name)))])}),1)],1),t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.onLanguage}},[t("DropdownItem",{attrs:{divided:""}},[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.currentLanguage)+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.languageList,function(i,o){return t("DropdownItem",{key:o,attrs:{name:o,selected:e.languageName===o}},[e._v(e._s(i))])}),1)],1)],1)],1),t("div",{staticClass:"login-forgot"},[e._v(e._s(e.$L("\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.forgotPassword}},[e._v(e._s(e.$L("\u91CD\u7F6E\u5BC6\u7801")))])])],1)]),t("Modal",{attrs:{title:e.$L("\u9690\u79C1\u534F\u8BAE"),"mask-closable":!1},model:{value:e.privacyShow,callback:function(i){e.privacyShow=i},expression:"privacyShow"}},[t("div",{staticClass:"privacy-content"},[t("div",[e._v(e._s(e.$L("\u6B22\u8FCE\u4F7F\u7528\u672C\u8F6F\u4EF6\uFF01")))]),t("p",[e._v(e._s(e.$L("\u5728\u60A8\u4F7F\u7528\u672C\u8F6F\u4EF6\u524D\uFF0C\u8BF7\u60A8\u8BA4\u771F\u9605\u8BFB\u5E76\u4E86\u89E3\u76F8\u5E94\u7684"))),t("a",{attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v("\u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B")]),e._v(", "+e._s(e.$L("\u4EE5\u4E86\u89E3\u6211\u4EEC\u7684\u670D\u52A1\u5185\u5BB9\u548C\u60A8\u76F8\u5173\u4E2A\u4EBA\u4FE1\u606F\u7684\u5904\u7406\u89C4\u5219\u3002"))+e._s(e.$L("\u6211\u4EEC\u5C06\u4E25\u683C\u7684\u6309\u7167\u9690\u79C1\u670D\u52A1\u534F\u8BAE\u4E3A\u60A8\u63D0\u4F9B\u670D\u52A1\uFF0C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\u3002")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){return e.onPrivacy(!1)}}},[e._v(e._s(e.$L("\u4E0D\u540C\u610F")))]),t("Button",{attrs:{type:"primary"},on:{click:function(i){return e.onPrivacy(!0)}}},[e._v(e._s(e.$L("\u540C\u610F")))])],1)])],1)},u=[];const v={components:{VueQrcode:g},data(){return{loadIng:0,languageList:a,languageName:n,qrcodeVal:"",qrcodeTimer:null,qrcodeLoad:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",loginMode:"access",loginType:"login",loginJump:!1,email:"",password:"",password2:"",code:"",invite:"",needStartHome:!1,needInvite:!1,subscribe:null,privacyShow:!1}},async mounted(){this.privacyShow=!!this.$isEEUiApp&&await $A.IDBString("cachePrivacyShow")!=="no",this.email=await $A.IDBString("cacheLoginEmail")||"",this.$isSoftware?this.chackServerUrl().catch(e=>{}):this.setServerUrl("").catch(e=>{}),this.qrcodeTimer=setInterval(this.qrcodeStatus,2e3),this.subscribe=d.Store.subscribe("useSSOLogin",()=>{this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},activated(){this.loginType=this.$route.query.type==="reg"?"reg":"login",this.getDemoAccount(),this.getNeedStartHome(),this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll"))},deactivated(){this.loginJump=!1,this.password="",this.password2="",this.code="",this.invite=""},computed:{...c(["cacheServerUrl","themeConf","themeList"]),currentLanguage(){return a[n]||"Language"},welcomeTitle(){if(this.loginMode=="qrcode")return this.$L("\u626B\u7801\u767B\u5F55");const e=window.systemInfo.title||"DooTask";return"Welcome "+e},subTitle(){const e=window.systemInfo.title||"DooTask";return this.loginMode=="qrcode"?this.$L(`\u8BF7\u4F7F\u7528${e}\u79FB\u52A8\u7AEF\u626B\u63CF\u4E8C\u7EF4\u7801\u3002`):this.loginType=="reg"?this.$L("\u8F93\u5165\u60A8\u7684\u4FE1\u606F\u4EE5\u521B\u5EFA\u5E10\u6237\u3002"):this.$L("\u8F93\u5165\u60A8\u7684\u51ED\u8BC1\u4EE5\u8BBF\u95EE\u60A8\u7684\u5E10\u6237\u3002")},loginText(){let e=this.loginType=="login"?"\u767B\u5F55":"\u6CE8\u518C";return this.loginJump&&(e+="\u6210\u529F..."),e},qrcodeUrl(){return $A.mainUrl("login?qrcode="+this.qrcodeVal)}},watch:{$route({query:e}){e.type=="reg"&&this.$nextTick(()=>{this.loginType="reg"})},loginMode(){this.qrcodeRefresh()},loginType(e){e=="reg"&&this.getNeedInvite()}},methods:{goHome(){this.needStartHome&&this.goForward("index")},setTheme(e){this.$store.dispatch("setTheme",e)},getDemoAccount(){this.isNotServer()||this.$store.dispatch("call",{url:"system/demo"}).then(({data:e})=>{e.account&&(this.email=e.account,this.password=e.password)}).catch(e=>{})},getNeedStartHome(){this.isNotServer()||this.$store.dispatch("needHome").then(e=>{this.needStartHome=!0}).catch(e=>{this.needStartHome=!1})},getNeedInvite(){this.$store.dispatch("call",{url:"users/reg/needinvite"}).then(({data:e})=>{this.needInvite=!!e.need}).catch(e=>{this.needInvite=!1})},switchLoginMode(){this.chackServerUrl(!0).then(()=>{this.loginMode==="qrcode"?this.loginMode="access":this.loginMode="qrcode"})},qrcodeRefresh(){this.loginMode=="qrcode"&&(this.qrcodeVal=$A.randomString(32))},qrcodeStatus(){this.$route.name!=="login"||this.loginMode!="qrcode"||this.qrcodeLoad||(this.qrcodeLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode?code="+this.qrcodeVal}).then(({data:e})=>{this.$store.dispatch("handleClearCache",e).then(this.goNext)}).catch(e=>{}).finally(e=>{this.qrcodeLoad=!1}))},forgotPassword(){$A.modalWarning("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")},refreshCode(){this.codeLoad>0||(setTimeout(e=>{this.codeLoad++},600),this.$store.dispatch("call",{url:"users/login/codejson"}).then(({data:e})=>{this.codeKey=e.key,this.codeUrl=e.img}).catch(e=>{this.codeUrl="error"}).finally(e=>{this.codeLoad--}))},inputServerUrl(){if(this.privacyShow)return;let e=$A.rightDelete(this.cacheServerUrl,"/api/");e=$A.leftDelete(e,"http://"),$A.modalInput({title:"\u4F7F\u7528 SSO \u767B\u5F55",value:e,placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740",onOk:s=>s?this.inputServerChack($A.trim(s)):"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740"})},inputServerChack(e){return new Promise((s,t)=>{let i=e;/\/api\/$/.test(i)||(i=i+($A.rightExists(i,"/")?"api/":"/api/")),/^https*:\/\//i.test(i)||(i=`https://${i}`),this.$store.dispatch("call",{url:`${i}system/setting`,checkNetwork:!1}).then(async({data:o})=>{typeof o.server_version=="undefined"&&typeof o.all_group_mute=="undefined"?t(`\u670D\u52A1\u5668\uFF08${$A.getDomain(e)}\uFF09\u7248\u672C\u8FC7\u4F4E`):(await this.setServerUrl(i),s())}).catch(({ret:o,msg:r})=>{if(o===-1001){if(!/^https*:\/\//i.test(e)){this.inputServerChack(`http://${e}`).then(s).catch(t);return}r="\u670D\u52A1\u5668\u5730\u5740\u65E0\u6548"}t(r)})})},chackServerUrl(e){return new Promise((s,t)=>{this.isNotServer()?(this.inputServerUrl(),e===!0&&this.$nextTick(i=>$A.messageWarning("\u8BF7\u8BBE\u7F6E\u670D\u52A1\u5668")),t()):s()})},async setServerUrl(e){await $A.IDBSet("cachePrivacyShow",e?"no":"yes"),e!=this.cacheServerUrl&&(await $A.IDBSet("cacheServerUrl",e),$A.reloadUrl())},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},onBlur(){if(this.loginType!="login"||!this.email){this.codeNeed=!1;return}this.loadIng++,this.$store.dispatch("call",{url:"users/login/needcode",data:{email:this.email}}).then(()=>{this.refreshCode(),this.codeNeed=!0}).catch(e=>{this.codeNeed=!1}).finally(e=>{this.loadIng--})},onPrivacy(e){e?(this.privacyShow=!1,this.chackServerUrl().catch(s=>{})):$A.eeuiAppGoDesktop()},onLogin(){this.chackServerUrl(!0).then(()=>{if(this.email=$A.trim(this.email),this.password=$A.trim(this.password),this.password2=$A.trim(this.password2),this.code=$A.trim(this.code),this.invite=$A.trim(this.invite),!$A.isEmail(this.email)){$A.messageWarning("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),this.$refs.email.focus();return}if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u5BC6\u7801"),this.$refs.password.focus();return}if(this.loginType=="reg"&&this.password!=this.password2){$A.messageWarning("\u786E\u8BA4\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),this.$refs.password2.focus();return}this.loadIng++,this.$store.dispatch("call",{url:"users/login",data:{type:this.loginType,email:this.email,password:this.password,code:this.code,code_key:this.codeKey,invite:this.invite}}).then(({data:e})=>{$A.IDBSave("cacheLoginEmail",this.email),this.codeNeed=!1,this.loadIng++,this.$store.dispatch("handleClearCache",e).then(this.goNext).finally(s=>{this.loadIng--})}).catch(({data:e,msg:s})=>{e.code==="email"?(this.loginType="login",$A.modalWarning(s)):$A.modalError({content:s,onOk:t=>{var i;(i=this.$refs.code)==null||i.focus()}}),e.code==="need"&&(this.refreshCode(),this.codeNeed=!0)}).finally(e=>{this.loadIng--})})},goNext(){this.loginJump=!0;const e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?$A.IDBSet("clearCache","login").then(s=>{window.location.replace(e)}):this.goForward({name:"manage-dashboard"},!0)},onLanguage(e){h(e)}}},l={};var f=p(v,m,u,!1,$,null,null,null);function $(e){for(let s in l)this[s]=l[s]}var ie=function(){return f.exports}();export{ie as default}; +import{m as c}from"./vuex.cc7cb26e.js";import{l as d}from"./le5le-store.b40f9152.js";import{a,l as n,f as h,n as p}from"./app.57070a0d.js";import{i as g}from"./@chenfengyuan.dfd1ecb7.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"page-login"},[t("PageTitle",{attrs:{title:e.$L("\u767B\u5F55")}}),t("div",{staticClass:"login-body"},[t("div",{staticClass:"login-logo no-dark-content",class:{"can-click":e.needStartHome},on:{click:e.goHome}}),t("div",{staticClass:"login-box"},[t("div",{staticClass:"login-mode-switch"},[t("div",{staticClass:"login-mode-switch-box"},[t("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L(e.loginMode=="qrcode"?"\u5E10\u53F7\u767B\u5F55":"\u626B\u7801\u767B\u5F55"),placement:"left"}},[t("span",{staticClass:"login-mode-switch-icon",on:{click:e.switchLoginMode}},[e.loginMode=="qrcode"?t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"PcOutlined"}},[t("path",{attrs:{d:"M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",fill:"currentColor"}})]):t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"QrOutlined"}},[t("path",{attrs:{d:"M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z",fill:"currentColor"}}),t("path",{attrs:{d:"M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z",fill:"currentColor"}})])])])],1)]),t("div",{staticClass:"login-title"},[e._v(e._s(e.welcomeTitle))]),t("div",{staticClass:"login-subtitle"},[e._v(e._s(e.$L(e.subTitle)))]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="qrcode"?t("div",{staticClass:"login-qrcode",on:{click:e.qrcodeRefresh}},[t("VueQrcode",{attrs:{value:e.qrcodeUrl,options:{width:200,margin:2}}})],1):e._e()]),t("transition",{attrs:{name:"login-mode"}},[e.loginMode=="access"?t("div",{staticClass:"login-access"},[e.$isSoftware&&e.cacheServerUrl?t("Input",{attrs:{value:e.$A.getDomain(e.cacheServerUrl),prefix:"ios-globe-outline",size:"large",readonly:"",clearable:""},on:{"on-clear":function(i){return e.setServerUrl("")}}}):e._e(),t("Input",{ref:"email",attrs:{prefix:"ios-mail-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u7535\u5B50\u90AE\u4EF6"),type:"email",size:"large",clearable:""},on:{"on-enter":e.onLogin,"on-blur":e.onBlur},model:{value:e.email,callback:function(i){e.email=i},expression:"email"}}),t("Input",{ref:"password",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u60A8\u7684\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.password,callback:function(i){e.password=i},expression:"password"}}),e.loginType=="reg"?t("Input",{ref:"password2",attrs:{prefix:"ios-lock-outline",placeholder:e.$L("\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.password2,callback:function(i){e.password2=i},expression:"password2"}}):e._e(),e.loginType=="reg"&&e.needInvite?t("Input",{ref:"invite",staticClass:"login-code",attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u6CE8\u518C\u9080\u8BF7\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.invite,callback:function(i){e.invite=i},expression:"invite"}},[t("span",{attrs:{slot:"prepend"},slot:"prepend"},[e._v("\xA0"+e._s(e.$L("\u9080\u8BF7\u7801"))+"\xA0")])]):e._e(),e.loginType=="login"&&e.codeNeed?t("Input",{ref:"code",staticClass:"login-code",attrs:{placeholder:e.$L("\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":e.onLogin},model:{value:e.code,callback:function(i){e.code=i},expression:"code"}},[t("Icon",{staticClass:"login-icon",attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),t("div",{staticClass:"login-code-end",attrs:{slot:"append"},on:{click:e.refreshCode},slot:"append"},[e.codeLoad>0?t("div",{staticClass:"code-load"},[t("Loading")],1):e.codeUrl==="error"?t("span",{staticClass:"code-error"},[e._v(e._s(e.$L("\u52A0\u8F7D\u5931\u8D25")))]):t("img",{attrs:{src:e.codeUrl}})])],1):e._e(),t("Button",{attrs:{type:"primary",loading:e.loadIng>0||e.loginJump,size:"large",long:""},on:{click:e.onLogin}},[e._v(e._s(e.$L(e.loginText)))]),e.loginType=="reg"?t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u5DF2\u7ECF\u6709\u5E10\u53F7\uFF1F"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="login"}}},[e._v(e._s(e.$L("\u767B\u5F55\u5E10\u53F7")))])]):t("div",{staticClass:"login-switch"},[e._v(e._s(e.$L("\u8FD8\u6CA1\u6709\u5E10\u53F7\uFF1F"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:function(i){e.loginType="reg"}}},[e._v(e._s(e.$L("\u6CE8\u518C\u5E10\u53F7")))])])],1):e._e()])],1),t("div",{staticClass:"login-bottom"},[t("Dropdown",{attrs:{trigger:"click",placement:"bottom-start"}},[t("div",{staticClass:"login-setting"},[e._v(" "+e._s(e.$L("\u8BBE\u7F6E"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE689")])]),t("DropdownMenu",{staticClass:"login-setting-menu",attrs:{slot:"list"},slot:"list"},[t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.setTheme}},[t("DropdownItem",[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.themeList,function(i,o){return t("DropdownItem",{key:o,attrs:{name:i.value,selected:e.themeConf===i.value}},[e._v(e._s(e.$L(i.name)))])}),1)],1),t("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":e.onLanguage}},[t("DropdownItem",{attrs:{divided:""}},[t("div",{staticClass:"login-setting-item"},[e._v(" "+e._s(e.currentLanguage)+" "),t("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},e._l(e.languageList,function(i,o){return t("DropdownItem",{key:o,attrs:{name:o,selected:e.languageName===o}},[e._v(e._s(i))])}),1)],1)],1)],1),t("div",{staticClass:"login-forgot"},[e._v(e._s(e.$L("\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.forgotPassword}},[e._v(e._s(e.$L("\u91CD\u7F6E\u5BC6\u7801")))])])],1)]),t("Modal",{attrs:{title:e.$L("\u9690\u79C1\u534F\u8BAE"),"mask-closable":!1},model:{value:e.privacyShow,callback:function(i){e.privacyShow=i},expression:"privacyShow"}},[t("div",{staticClass:"privacy-content"},[t("div",[e._v(e._s(e.$L("\u6B22\u8FCE\u4F7F\u7528\u672C\u8F6F\u4EF6\uFF01")))]),t("p",[e._v(e._s(e.$L("\u5728\u60A8\u4F7F\u7528\u672C\u8F6F\u4EF6\u524D\uFF0C\u8BF7\u60A8\u8BA4\u771F\u9605\u8BFB\u5E76\u4E86\u89E3\u76F8\u5E94\u7684"))),t("a",{attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v("\u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B")]),e._v(", "+e._s(e.$L("\u4EE5\u4E86\u89E3\u6211\u4EEC\u7684\u670D\u52A1\u5185\u5BB9\u548C\u60A8\u76F8\u5173\u4E2A\u4EBA\u4FE1\u606F\u7684\u5904\u7406\u89C4\u5219\u3002"))+e._s(e.$L("\u6211\u4EEC\u5C06\u4E25\u683C\u7684\u6309\u7167\u9690\u79C1\u670D\u52A1\u534F\u8BAE\u4E3A\u60A8\u63D0\u4F9B\u670D\u52A1\uFF0C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\u3002")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){return e.onPrivacy(!1)}}},[e._v(e._s(e.$L("\u4E0D\u540C\u610F")))]),t("Button",{attrs:{type:"primary"},on:{click:function(i){return e.onPrivacy(!0)}}},[e._v(e._s(e.$L("\u540C\u610F")))])],1)])],1)},u=[];const v={components:{VueQrcode:g},data(){return{loadIng:0,languageList:a,languageName:n,qrcodeVal:"",qrcodeTimer:null,qrcodeLoad:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",loginMode:"access",loginType:"login",loginJump:!1,email:"",password:"",password2:"",code:"",invite:"",needStartHome:!1,needInvite:!1,subscribe:null,privacyShow:!1}},async mounted(){this.privacyShow=!!this.$isEEUiApp&&await $A.IDBString("cachePrivacyShow")!=="no",this.email=await $A.IDBString("cacheLoginEmail")||"",this.$isSoftware?this.chackServerUrl().catch(e=>{}):this.setServerUrl("").catch(e=>{}),this.qrcodeTimer=setInterval(this.qrcodeStatus,2e3),this.subscribe=d.Store.subscribe("useSSOLogin",()=>{this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},activated(){this.loginType=this.$route.query.type==="reg"?"reg":"login",this.getDemoAccount(),this.getNeedStartHome(),this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll"))},deactivated(){this.loginJump=!1,this.password="",this.password2="",this.code="",this.invite=""},computed:{...c(["cacheServerUrl","themeConf","themeList"]),currentLanguage(){return a[n]||"Language"},welcomeTitle(){if(this.loginMode=="qrcode")return this.$L("\u626B\u7801\u767B\u5F55");const e=window.systemInfo.title||"DooTask";return"Welcome "+e},subTitle(){const e=window.systemInfo.title||"DooTask";return this.loginMode=="qrcode"?this.$L(`\u8BF7\u4F7F\u7528${e}\u79FB\u52A8\u7AEF\u626B\u63CF\u4E8C\u7EF4\u7801\u3002`):this.loginType=="reg"?this.$L("\u8F93\u5165\u60A8\u7684\u4FE1\u606F\u4EE5\u521B\u5EFA\u5E10\u6237\u3002"):this.$L("\u8F93\u5165\u60A8\u7684\u51ED\u8BC1\u4EE5\u8BBF\u95EE\u60A8\u7684\u5E10\u6237\u3002")},loginText(){let e=this.loginType=="login"?"\u767B\u5F55":"\u6CE8\u518C";return this.loginJump&&(e+="\u6210\u529F..."),e},qrcodeUrl(){return $A.mainUrl("login?qrcode="+this.qrcodeVal)}},watch:{$route({query:e}){e.type=="reg"&&this.$nextTick(()=>{this.loginType="reg"})},loginMode(){this.qrcodeRefresh()},loginType(e){e=="reg"&&this.getNeedInvite()}},methods:{goHome(){this.needStartHome&&this.goForward("index")},setTheme(e){this.$store.dispatch("setTheme",e)},getDemoAccount(){this.isNotServer()||this.$store.dispatch("call",{url:"system/demo"}).then(({data:e})=>{e.account&&(this.email=e.account,this.password=e.password)}).catch(e=>{})},getNeedStartHome(){this.isNotServer()||this.$store.dispatch("needHome").then(e=>{this.needStartHome=!0}).catch(e=>{this.needStartHome=!1})},getNeedInvite(){this.$store.dispatch("call",{url:"users/reg/needinvite"}).then(({data:e})=>{this.needInvite=!!e.need}).catch(e=>{this.needInvite=!1})},switchLoginMode(){this.chackServerUrl(!0).then(()=>{this.loginMode==="qrcode"?this.loginMode="access":this.loginMode="qrcode"})},qrcodeRefresh(){this.loginMode=="qrcode"&&(this.qrcodeVal=$A.randomString(32))},qrcodeStatus(){this.$route.name!=="login"||this.loginMode!="qrcode"||this.qrcodeLoad||(this.qrcodeLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode?code="+this.qrcodeVal}).then(({data:e})=>{this.$store.dispatch("handleClearCache",e).then(this.goNext)}).catch(e=>{}).finally(e=>{this.qrcodeLoad=!1}))},forgotPassword(){$A.modalWarning("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")},refreshCode(){this.codeLoad>0||(setTimeout(e=>{this.codeLoad++},600),this.$store.dispatch("call",{url:"users/login/codejson"}).then(({data:e})=>{this.codeKey=e.key,this.codeUrl=e.img}).catch(e=>{this.codeUrl="error"}).finally(e=>{this.codeLoad--}))},inputServerUrl(){if(this.privacyShow)return;let e=$A.rightDelete(this.cacheServerUrl,"/api/");e=$A.leftDelete(e,"http://"),$A.modalInput({title:"\u4F7F\u7528 SSO \u767B\u5F55",value:e,placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740",onOk:s=>s?this.inputServerChack($A.trim(s)):"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740"})},inputServerChack(e){return new Promise((s,t)=>{let i=e;/\/api\/$/.test(i)||(i=i+($A.rightExists(i,"/")?"api/":"/api/")),/^https*:\/\//i.test(i)||(i=`https://${i}`),this.$store.dispatch("call",{url:`${i}system/setting`,checkNetwork:!1}).then(async({data:o})=>{typeof o.server_version=="undefined"&&typeof o.all_group_mute=="undefined"?t(`\u670D\u52A1\u5668\uFF08${$A.getDomain(e)}\uFF09\u7248\u672C\u8FC7\u4F4E`):(await this.setServerUrl(i),s())}).catch(({ret:o,msg:r})=>{if(o===-1001){if(!/^https*:\/\//i.test(e)){this.inputServerChack(`http://${e}`).then(s).catch(t);return}r="\u670D\u52A1\u5668\u5730\u5740\u65E0\u6548"}t(r)})})},chackServerUrl(e){return new Promise((s,t)=>{this.isNotServer()?(this.inputServerUrl(),e===!0&&this.$nextTick(i=>$A.messageWarning("\u8BF7\u8BBE\u7F6E\u670D\u52A1\u5668")),t()):s()})},async setServerUrl(e){await $A.IDBSet("cachePrivacyShow",e?"no":"yes"),e!=this.cacheServerUrl&&(await $A.IDBSet("cacheServerUrl",e),$A.reloadUrl())},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},onBlur(){if(this.loginType!="login"||!this.email){this.codeNeed=!1;return}this.loadIng++,this.$store.dispatch("call",{url:"users/login/needcode",data:{email:this.email}}).then(()=>{this.refreshCode(),this.codeNeed=!0}).catch(e=>{this.codeNeed=!1}).finally(e=>{this.loadIng--})},onPrivacy(e){e?(this.privacyShow=!1,this.chackServerUrl().catch(s=>{})):$A.eeuiAppGoDesktop()},onLogin(){this.chackServerUrl(!0).then(()=>{if(this.email=$A.trim(this.email),this.password=$A.trim(this.password),this.password2=$A.trim(this.password2),this.code=$A.trim(this.code),this.invite=$A.trim(this.invite),!$A.isEmail(this.email)){$A.messageWarning("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),this.$refs.email.focus();return}if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u5BC6\u7801"),this.$refs.password.focus();return}if(this.loginType=="reg"&&this.password!=this.password2){$A.messageWarning("\u786E\u8BA4\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),this.$refs.password2.focus();return}this.loadIng++,this.$store.dispatch("call",{url:"users/login",data:{type:this.loginType,email:this.email,password:this.password,code:this.code,code_key:this.codeKey,invite:this.invite}}).then(({data:e})=>{$A.IDBSave("cacheLoginEmail",this.email),this.codeNeed=!1,this.loadIng++,this.$store.dispatch("handleClearCache",e).then(this.goNext).finally(s=>{this.loadIng--})}).catch(({data:e,msg:s})=>{e.code==="email"?(this.loginType="login",$A.modalWarning(s)):$A.modalError({content:s,onOk:t=>{var i;(i=this.$refs.code)==null||i.focus()}}),e.code==="need"&&(this.refreshCode(),this.codeNeed=!0)}).finally(e=>{this.loadIng--})})},goNext(){this.loginJump=!0;const e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?$A.IDBSet("clearCache","login").then(s=>{window.location.replace(e)}):this.goForward({name:"manage-dashboard"},!0)},onLanguage(e){h(e)}}},l={};var f=p(v,m,u,!1,$,null,null,null);function $(e){for(let s in l)this[s]=l[s]}var ie=function(){return f.exports}();export{ie as default}; diff --git a/public/js/build/manage.02d05877.js b/public/js/build/manage.02d05877.js deleted file mode 100644 index bb40784f0..000000000 --- a/public/js/build/manage.02d05877.js +++ /dev/null @@ -1 +0,0 @@ -import{m as d,a as f}from"./vuex.cc7cb26e.js";import{n,N as j,U as I,M}from"./app.f8a6fa5e.js";import{C as P,R as N,T as R}from"./CheckinExport.b0d38216.js";import{D as B}from"./index.04b74879.js";import{l as c}from"./le5le-store.bd86c9e9.js";import{T as E,a as U,b as O}from"./TaskDetail.2665236e.js";import{m as $}from"./@micro-zoe.c2e1472d.js";import{M as F}from"./MeetingManager.9bc138b1.js";import{l as V}from"./longpress.5305f240.js";import{D as z}from"./DialogWrapper.5184c28a.js";import{A as K}from"./ApproveExport.747b2304.js";import{n as Y}from"./notification-koro1.99b93615.js";import{M as H}from"./MicroApps.dba2f711.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.059db614.js";import"./ReportEdit.9f1df008.js";import"./ReportDetail.e430db44.js";import"./ProjectLog.297ef125.js";import"./TEditor.0841978b.js";import"./tinymce.286c5863.js";import"./ImgUpload.d82fa303.js";import"./quill-hi.a45c8e94.js";import"./quill-delta.a505f2bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.4c06f0f7.js";import"./lodash.isequal.d456a716.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f26fa3cb.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.23b1f28e.js";import"./details.ef31cd47.js";var W=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.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)])},X=[];const G={name:"ProjectArchived",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},k={};var J=n(G,W,X,!1,q,null,null,null);function q(t){for(let a in k)this[a]=k[a]}var Q=function(){return J.exports}(),Z=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},tt=[];const et={name:"ProjectManagement",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},b={};var at=n(et,Z,tt,!1,st,null,null,null);function st(t){for(let a in b)this[a]=b[a]}var it=function(){return at.exports}(),ot=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowPortrait?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s){return e("li",{class:{active:t.activeName===s.name},on:{click:function(i){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:s.name==="application"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber+t.approveUnreadNumber}})]:t._e()],2)}),0)],1)},rt=[];const nt={name:"MobileTabbar",components:{NetworkException:j},data(){return{navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"application",label:"\u5E94\u7528"}]}},computed:{...d(["cacheDialogs","reportUnreadNumber","approveUnreadNumber"]),...f(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return["manage-calendar","manage-file","manage-setting","manage-application","manage-approve","manage-apps"].includes(this.routeName)?"application":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(t){t||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}},methods:{toggleRoute(t){this.$emit("on-click",t);let a;switch(t){case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&c.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)}}},y={};var lt=n(nt,ot,rt,!1,ct,null,null,null);function ct(t){for(let a in y)this[a]=y[a]}var dt=function(){return lt.exports}(),ht=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"task-add"},[e("div",{staticClass:"head",class:{empty:t.addData.cascader.length==0,visible:t.cascaderShow}},[e("Cascader",{attrs:{data:t.cascaderData,clearable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":t.cascaderLoadData,filterable:""},on:{"on-change":t.cascaderChange,"on-input-change":t.cascaderInputChange,"on-visible-change":function(s){t.cascaderShow=!t.cascaderShow}},model:{value:t.addData.cascader,callback:function(s){t.$set(t.addData,"cascader",s)},expression:"addData.cascader"}})],1),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("TEditorTask",{staticClass:"desc",attrs:{placeholder:t.$L(t.windowLandscape?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}}),e("div",{staticClass:"advanced-option",class:{"advanced-open":t.advanced}},[e("Button",{on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(o){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)],1),t.advanced?e("Form",{staticClass:"task-add-advanced",attrs:{"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}})],1),e("FormItem",{attrs:{label:t.$L("\u534F\u52A9\u4EBA\u5458")}},[e("UserSelect",{attrs:{"multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),"project-id":t.addData.project_id,"disabled-choice":t.addData.owner,"avatar-size":24,border:""},model:{value:t.addData.assist,callback:function(s){t.$set(t.addData,"assist",s)},expression:"addData.assist"}})],1),e("FormItem",[e("div",{staticClass:"visibility-text",attrs:{slot:"label"},on:{click:t.showCisibleDropdown},slot:"label"},[t._v(" "+t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),t.addData.visibility_appoint==1||t.addData.visibility_appoint==2?e("div",{ref:"visibilityText",staticClass:"ivu-input task-add-visibility",on:{click:t.showCisibleDropdown}},[t._v(" "+t._s(t.addData.visibility_appoint==1?t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1"):t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1"))+" ")]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":24,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.addData.project_id,border:""},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.addData.visibility_appointor,callback:function(s){t.$set(t.addData,"visibility_appointor",s)},expression:"addData.visibility_appointor"}})],1),e("EDropdown",{ref:"eDropdownRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==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.addData.visibility_appoint==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.addData.visibility_appoint==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),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(o){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(o){t.$set(s,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"8",title:t.formatDate(s.times)}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:s.owner,callback:function(o){t.$set(s,"owner",o)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-enter":t.addSubTask},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)]),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onAdd:function(s){return t.onAdd(t.again,!0)}}})],1)},ut=[];const pt={name:"TaskAdd",components:{TEditorTask:E,UserSelect:I,TaskExistTips:U},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],assist:[],project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[],again:!1}},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>this.$refs.input.focus()),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...d(["cacheProjects","projectId","cacheColumns","taskPriority"]),taskDays(){const{times:t}=this.addData;let a=$A.date2string(t,"Y-m-d H:i");if(a[0]&&a[1]){let e=Math.ceil(($A.Date(a[1],!0)-$A.Date(a[0],!0))/86400);if(e>0)return e}return 0}},watch:{"addData.owner"(t){this.addData.assist=this.addData.assist.filter(a=>t.indexOf(a)===-1),this.addData.assist.length===0&&t.indexOf(this.userId)===-1&&(this.addData.assist=[this.userId])},"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.Date(e.top_at)-$A.Date(a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}this.taskPriority.length>0&&await this.choosePriority(this.taskPriority[0])},async taskTimeChange(t){const a=$A.date2string(t.times,"Y-m-d H:i");$A.rightExists(a[0],"00:00")&&$A.rightExists(a[1],"00:00")&&this.$set(t,"times",await this.$store.dispatch("taskDefaultTime",a))},taskTimeOpenChange(t){this.taskTimeOpen=t},formatDate(t){return t?$A.date2string(t):null},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){const a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("\u5929")+")"},async choosePriority(t){const a=new Date,e=$A.runNum(t.days);if(e>0){const s=new Date(new Date().setDate(a.getDate()+e));this.$set(this.addData,"times",await this.$store.dispatch("taskDefaultTime",$A.date2string([a,s])))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},async onAdd(t,a=!1){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}if(this.loadIng++,!a&&this.addData.owner.length>0){this.$refs.taskExistTipsRef.isExistTask({userids:this.addData.owner,timerange:this.addData.times}).then(e=>{e?(this.loadIng--,this.again=t):this.onAdd(t,!0)});return}this.$store.dispatch("taskAdd",this.addData).then(({msg:e})=>{this.loadIng--,$A.messageSuccess(e),t===!0?(this.addData=Object.assign({},this.addData,{name:"",content:"",subtasks:[]}),this.$refs.input.focus()):(this.addData={cascader:[],name:"",content:"",owner:[],assist:[],column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},this.close())}).catch(({msg:e})=>{this.loadIng--,$A.modalError(e)})},close(){this.$emit("input",!this.value)},showCisibleDropdown(t){var i;let a=null;if(t===null?a=(i=this.$refs.visibilityText)==null?void 0:i.getBoundingClientRect():a=t.target.getBoundingClientRect(),a===null)return;const e=this.$el.getBoundingClientRect(),s=this.$refs.eDropdownRef.$el;s.style.top=a.top-e.top+"px",s.style.left=a.left-e.left+"px",s.style.width=a.width+"px",s.style.height=a.height+"px",this.$refs.eDropdownRef.visible&&this.$refs.eDropdownRef.hide(),setTimeout(()=>{this.$refs.eDropdownRef.show()},0)},visibleUserSelectShowChange(t){if(!t&&(this.addData.visibility_appointor.length==0||!this.addData.visibility_appointor[0])){let a=this.addData.old_visibility_appoint;this.addData.visibility_appoint=a>2?1:a||1,this.addData.visibility_appoint<3}},dropVisible(t){switch(t){case 1:case 2:this.addData.visibility_appoint=t;break;case 3:this.addData.old_visibility_appoint=this.addData.visibility_appoint,this.addData.visibility_appoint=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}}}},w={};var mt=n(pt,ht,ut,!1,ft,null,null,null);function ft(t){for(let a in w)this[a]=w[a]}var gt=function(){return mt.exports}(),vt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-back"},[t.isVisible&&t.x>20?e("div",{staticClass:"back-semicircle",style:t.style}):t._e()])},_t=[];const $t={name:"MobileBack",props:{showTabbar:{type:Boolean,default:!1}},data(){return{x:0,y:0,isVisible:!1,isTouched:!1,isScrolling:void 0,touchesStart:{}}},created(){this.appAndroidEvents()},mounted(){document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove,{passive:!1}),document.addEventListener("touchend",this.touchend)},beforeDestroy(){document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...d(["fileLists","messengerSearchKey"]),style(){const a=Math.max(135,this.y)+this.windowScrollY,e=this.windowHeight-135;return{top:Math.min(a,e)+"px"}},routeName(){return this.$route.name},fileFolderId(){const{folderId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{isVisible(t){this.$store.state.touchBackInProgress=t}},methods:{getXY(t){const a=t.touches[0];this.x=a.clientX,this.y=a.clientY},touchstart(t){this.getXY(t),this.isTouched=this.canBack()&&this.x<20,this.isScrolling=void 0,this.touchesStart.x=t.type==="touchstart"?t.targetTouches[0].pageX:t.pageX,this.touchesStart.y=t.type==="touchstart"?t.targetTouches[0].pageY:t.pageY},touchmove(t){if(!this.isTouched)return;const a=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,e=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY;if(typeof this.isScrolling=="undefined"&&(this.isScrolling=!!(this.isScrolling||Math.abs(e-this.touchesStart.y)>Math.abs(a-this.touchesStart.x))),this.isScrolling){this.isTouched=!1;return}this.isVisible=!0,this.getXY(t),t.preventDefault()},touchend(){this.x>90&&this.isVisible&&this.onBack(),this.x=0,this.isVisible=!1},canBack(){if(!this.showTabbar||this.$Modal.visibles().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}let t=!1;return $.setGlobalData({type:"modalVisible",callback:(a,e)=>{e&&(t=!0)}}),!!t},onBack(){let t=!1;if($.setGlobalData({type:"route",action:"back",route:this.$route,callback:(a,e)=>{e&&(t=!0)}}),!t&&!this.$Modal.removeLast()){if(this.routeName==="manage-file"){if(this.fileFolderId>0){const a=this.fileLists.find(({id:e,permission:s})=>e==this.fileFolderId&&s>-1);if(a){const e=this.fileLists.find(({id:s,permission:i})=>s==a.pid&&i>-1);if(e){this.goForward({name:"manage-file",params:{folderId:e.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goForward({name:"manage-application"},!0);return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUiApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},t=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},D={};var kt=n($t,vt,_t,!1,bt,null,null,null);function bt(t){for(let a in D)this[a]=D[a]}var yt=function(){return kt.exports}(),wt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.show&&t.userid>0?e("transition",{attrs:{name:"mobile-notify"}},[e("div",{staticClass:"mobile-notification",class:{show:t.show},style:t.notifyStyle,on:{click:function(s){return s.stopPropagation(),t.onClick.apply(null,arguments)},touchstart:t.onTouchstart,touchmove:t.onTouchmove}},[e("UserAvatar",{attrs:{userid:t.userid,size:40,"show-name":"","name-text":t.title}}),e("div",{staticClass:"notification-desc no-dark-content"},[t._v(t._s(t.desc))])],1)]):t._e()},Dt=[];const xt={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},beforeDestroy(){this.timer&&clearTimeout(this.timer),this.show=!1},computed:{notifyStyle(){return{marginTop:this.$store.state.windowScrollY+"px"}}},methods:{open(t){!$A.isJson(t)||(this.userid=t.userid||0,this.title=t.title||"",this.desc=t.desc||"",this.duration=typeof t.duration=="number"?t.duration:6e3,this.callback=typeof t.callback=="function"?t.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(t){this.startY=t.touches[0].clientY},onTouchmove(t){this.startY>0&&this.startY-t.touches[0].clientY>10&&(this.startY=0,this.close())}}},x={};var Tt=n(xt,wt,Dt,!1,Ct,null,null,null);function Ct(t){for(let a in x)this[a]=x[a]}var St=function(){return Tt.exports}(),Lt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.visible,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["mobile-dialog",""],beforeClose:t.onBeforeClose,"class-name":"dialog-modal",fullscreen:""}},[t.windowPortrait&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose,location:"modal"}}):t._e()],1)},It=[];const At={name:"DialogModal",components:{DialogWrapper:z},data(){return{timer:null}},computed:{...d(["dialogId"]),visible(){return this.dialogId>0&&this.windowPortrait}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},T={};var jt=n(At,Lt,It,!1,Mt,null,null,null);function Mt(t){for(let a in T)this[a]=T[a]}var Pt=function(){return jt.exports}(),Nt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,beforeClose:t.onBeforeClose,"class-name":"task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},Rt=[];const Bt={name:"TaskModal",components:{TaskDetail:O},computed:{...d(["taskId"]),...f(["taskData"]),show(){return this.taskId>0},styles(){return{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0}}},C={};var Et=n(Bt,Nt,Rt,!1,Ut,null,null,null);function Ut(t){for(let a in C)this[a]=C[a]}var Ot=function(){return Et.exports}(),Ft=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Vt=[];const zt={name:"TaskExport",components:{UserSelect:I},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(({data:t})=>{this.show=!1,$A.modalSuccess(t.msg)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},S={};var Kt=n(zt,Ft,Vt,!1,Yt,null,null,null);function Yt(t){for(let a in S)this[a]=S[a]}var Ht=function(){return Kt.exports}(),Wt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-manage",class:{"show-tabbar":t.showMobileTabbar,"not-logged":t.userId<=0}},[e("div",{staticClass:"manage-box-menu",class:{"show-mobile-menu":t.showMobileMenu}},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),t.clientNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s){return[s.path==="taskBrowse"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.taskBrowseLists,function(i,o){return i.id>0&&o<10?e("DropdownItem",{key:o,staticClass:"task-title",attrs:{name:i.name},nativeOn:{click:function(l){return t.openTask(i)}}},[i.flow_item_name?e("span",{class:i.flow_item_status},[t._v(t._s(i.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(i.name))])]):t._e()}),1):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),e("DropdownItem",{attrs:{name:"exportApprove"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E")))]),e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])],1)],1):s.visible!==!1?e("DropdownItem",{style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):s.path==="approve"&&t.approveUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.approveUnreadNumber}}):t._e()],1)]):t._e()]})],2)],1),e("Scrollbar",{attrs:{"class-name":"manage-item"},on:{"on-scroll":function(s){t.operateVisible=!1}}},[e("div",{staticClass:"menu-base"},[e("ul",[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()],1),e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])]),e("li",{class:t.classNameRoute("application"),on:{click:function(s){return t.toggleRoute("application")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE60C")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u5E94\u7528")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:String(t.reportUnreadNumber+t.approveUnreadNumber||"")}})],1)])]),e("div",{ref:"menuProject",staticClass:"menu-project"},[e("ul",[t._l(t.projectLists,function(s,i){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`project_${s.id}`,refInFor:!0,class:t.classNameProject(s),attrs:{"data-id":s.id},on:{click:function(o){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(o){return o.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title"},[t._v(t._s(s.name))]),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):t._e()],2)])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1),t.projectKeyValue||(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("div",{staticClass:"search-pre"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Input",{attrs:{placeholder:t.$L(`\u5171${t.projectTotal||t.cacheProjects.length}\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...`),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}})],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:t.onAddShow}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],1),e("div",{staticClass:"manage-box-main"},[e("keep-alive",[e("router-view",{staticClass:"manage-box-view",on:{"on-click":t.onTabbarClick}})],1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addProject",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("ApproveExport",{model:{value:t.exportApproveShow,callback:function(s){t.exportApproveShow=s},expression:"exportApproveShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("MeetingManager"),e("transition",{attrs:{name:"mobile-slide"}},[t.showMobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MobileBack",{attrs:{showTabbar:t.showMobileTabbar}}),e("MobileNotification",{ref:"mobileNotification"}),t.$route.name!="manage-apps"?e("MicroApps",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{name:"okr-details",url:t.okrUrl,datas:t.okrWindow}}):t._e()],1)},Xt=[];const Gt={components:{TaskExport:Ht,CheckinExport:P,ApproveExport:K,TaskModal:Ot,DialogModal:Pt,MeetingManager:F,MobileNotification:St,MobileBack:yt,MobileTabbar:dt,TaskAdd:gt,Report:N,DrawerOverlay:B,ProjectManagement:it,TeamManagement:R,ProjectArchived:Q,MicroApps:H},directives:{longpress:V},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C112\u4E2A\u5B57\uFF01"),trigger:"change"}]},addTaskShow:!1,addTaskSubscribe:null,exportTaskShow:!1,exportCheckinShow:!1,exportApproveShow:!1,dialogMsgSubscribe:null,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,openMenu:{},visibleMenu:!1,showMobileMenu:!1,workReportShow:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,natificationReady:!1,notificationManage:null,reportTabs:"my",operateStyles:{},operateVisible:!1,operateItem:{},needStartHome:!1}},mounted(){this.notificationInit(),this.addTaskSubscribe=c.Store.subscribe("addTask",this.onAddTask),this.dialogMsgSubscribe=c.Store.subscribe("dialogMsgPush",this.addDialogMsg),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority").catch(t=>{}),this.$store.dispatch("getReportUnread",1e3),this.$store.dispatch("getApproveUnread",1e3),this.$store.dispatch("needHome").then(t=>{this.needStartHome=!0}).catch(t=>{this.needStartHome=!1})},beforeDestroy(){this.addTaskSubscribe&&(this.addTaskSubscribe.unsubscribe(),this.addTaskSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...d(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber","approveUnreadNumber","okrWindow"]),...f(["dashboardTask"]),routeName(){return this.$route.name},okrUrl(){return{}.VITE_OKR_WEB_URL||$A.mainUrl("apps/okr")},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},menu(){const{userIsAdmin:t,needStartHome:a}=this,e=[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1"}];return t?e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"license",name:"License Key"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"allProject",name:"\u6240\u6709\u9879\u76EE",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"},{path:"team",name:"\u56E2\u961F\u7BA1\u7406",divided:!0}):e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}),a?e.push({path:"goHome",name:"\u6253\u5F00\u9996\u9875",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}):e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}),e},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>s.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(s.top_at):i.id-s.id);return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},taskBrowseLists(){const{cacheTasks:t,cacheTaskBrowse:a,userId:e}=this;return a.filter(({userid:s})=>s===e).map(({id:s})=>t.find(i=>i.id===s)||{})},showMobileTabbar(){return this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?!0:["manage-dashboard","manage-messenger","manage-application"].includes(this.routeName)}},watch:{$route(){this.chackPass()},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){t&&this.$store.dispatch("getReportUnread",0)},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0}},methods:{chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){this.showMobileMenu=!1;let e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"exportApprove":this.exportApproveShow=!0;return;case"workReport":this.reportUnreadNumber>0&&(this.reportTabs="receive"),this.workReportShow=!0;return;case"version":c.Store.set("updateNotification",null);return;case"clearCache":$A.IDBSet("clearCache","handle").then(a=>{$A.reloadUrl()});return;case"goHome":this.needStartHome&&this.goForward("index");return;case"approve":this.menu.findIndex(a=>a.path==t)>-1&&this.goForward({name:"manage-approve"});return;case"okrManage":case"okrAnalyze":this.goForward({path:"/manage/apps/"+(t=="okrManage"?"/#/list":"/#/analysis")});return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(({data:e})=>{t(),this.$store.dispatch("downUrl",{url:e.url})}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t},classNameRoute(t){let a=this.routeName;return(a=="manage-approve"||a=="manage-apps")&&(a="manage-application"),{active:a===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"task":this.onAddTask(0);break;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break}},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){if(t.metaKey||t.ctrlKey)switch(t.keyCode){case 66:t.preventDefault(),this.onAddShow();break;case 74:t.preventDefault(),this.onAddMenu("createMeeting");break;case 75:case 78:t.preventDefault(),this.onAddMenu("task");break;case 83:this.$refs.taskModal.checkUpdate()&&t.preventDefault();break;case 188:t.preventDefault(),this.toggleRoute("setting");break}},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},addDialogMsg(t){var _;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((_=$A.last(this.dialogIns))==null?void 0:_.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,type:i,msg:o,userid:l}=t;if(l==this.userId)return;let h;switch(i){case"text":h=$A.getMsgTextPreview(o.type==="md"?M(o.text):o.text);break;case"file":h="["+this.$L(o.type=="img"?"\u56FE\u7247\u4FE1\u606F":"\u6587\u4EF6\u4FE1\u606F")+"]";break;default:return}this.__notificationId=a;const g=r=>{if(s==="group"){let u=this.cacheUserBasic.find(m=>m.userid==l);u?p(`${r} (${u.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[l]},skipAuthError:!0}).then(({data:m})=>{u=m.find(A=>A.userid==l),u&&p(`${r} (${u.nickname})`)}).catch(m=>{p(r)})}else p(r)},p=r=>{this.__notificationId===a&&(this.__notificationId=null,this.$isEEUiApp?this.$refs.mobileNotification.open({userid:l,title:r,desc:h,callback:()=>{this.goForward({name:"manage-messenger"}),this.$store.dispatch("openDialog",e)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:$A.originUrl("images/logo.png"),title:r,body:h,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:h,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(r),this.notificationManage.userAgreed()))},v=this.cacheDialogs.find(r=>r.id==e);v?g(v.name):this.$store.dispatch("getDialogOne",e).then(({data:r})=>g(r.name)).catch(()=>{})},handleLongpress(t,a){const e=$A.getAttr(a,"data-id"),s=this.projectLists.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},onTabbarClick(t){switch(t){case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break;case"allUser":case"workReport":this.settingRoute(t);break}},notificationInit(){this.notificationManage=new Y(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.registerMsgListener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.registerMsgListener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.goForward({name:"manage-messenger"}),this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",i),this.$store.dispatch("increaseMsgReplyNum",i),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})}}},L={};var Jt=n(Gt,Wt,Xt,!1,qt,null,null,null);function qt(t){for(let a in L)this[a]=L[a]}var na=function(){return Jt.exports}();export{na as default}; diff --git a/public/js/build/manage.2f051742.js b/public/js/build/manage.2f051742.js new file mode 100644 index 000000000..18a61eadb --- /dev/null +++ b/public/js/build/manage.2f051742.js @@ -0,0 +1 @@ +import{m as d,a as f}from"./vuex.cc7cb26e.js";import{n,N as j,U as I,M}from"./app.57070a0d.js";import{C as P,R as N,T as R}from"./CheckinExport.601957c7.js";import{D as B}from"./index.92bfd6b8.js";import{l as c}from"./le5le-store.b40f9152.js";import{T as E,a as U,b as O}from"./TaskDetail.1b7e7bb8.js";import{m as $}from"./@micro-zoe.c2e1472d.js";import{M as F}from"./MeetingManager.f1d05517.js";import{l as V}from"./longpress.5305f240.js";import{D as z}from"./DialogWrapper.4f742dbc.js";import{A as K}from"./ApproveExport.b1600867.js";import{n as Y}from"./notification-koro1.99b93615.js";import{M as H}from"./MicroApps.aa6194e7.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.e9c85d1f.js";import"./ReportEdit.e54407e0.js";import"./ReportDetail.822059d1.js";import"./ProjectLog.d2e94cb9.js";import"./TEditor.10324bed.js";import"./tinymce.e0553569.js";import"./ImgUpload.b233effb.js";import"./quill-hi.c85eceed.js";import"./quill-delta.72524c38.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.91f4d524.js";import"./lodash.isequal.0dd437dc.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.beaa1617.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.f3f58d09.js";import"./details.663d818a.js";var W=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.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)])},X=[];const G={name:"ProjectArchived",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},k={};var J=n(G,W,X,!1,q,null,null,null);function q(t){for(let a in k)this[a]=k[a]}var Q=function(){return J.exports}(),Z=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},tt=[];const et={name:"ProjectManagement",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},b={};var at=n(et,Z,tt,!1,st,null,null,null);function st(t){for(let a in b)this[a]=b[a]}var it=function(){return at.exports}(),ot=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowPortrait?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s){return e("li",{class:{active:t.activeName===s.name},on:{click:function(i){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:s.name==="application"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber+t.approveUnreadNumber}})]:t._e()],2)}),0)],1)},rt=[];const nt={name:"MobileTabbar",components:{NetworkException:j},data(){return{navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"application",label:"\u5E94\u7528"}]}},computed:{...d(["cacheDialogs","reportUnreadNumber","approveUnreadNumber"]),...f(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return["manage-calendar","manage-file","manage-setting","manage-application","manage-approve","manage-apps"].includes(this.routeName)?"application":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(t){t||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}},methods:{toggleRoute(t){this.$emit("on-click",t);let a;switch(t){case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&c.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)}}},y={};var lt=n(nt,ot,rt,!1,ct,null,null,null);function ct(t){for(let a in y)this[a]=y[a]}var dt=function(){return lt.exports}(),ht=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"task-add"},[e("div",{staticClass:"head",class:{empty:t.addData.cascader.length==0,visible:t.cascaderShow}},[e("Cascader",{attrs:{data:t.cascaderData,clearable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":t.cascaderLoadData,filterable:""},on:{"on-change":t.cascaderChange,"on-input-change":t.cascaderInputChange,"on-visible-change":function(s){t.cascaderShow=!t.cascaderShow}},model:{value:t.addData.cascader,callback:function(s){t.$set(t.addData,"cascader",s)},expression:"addData.cascader"}})],1),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("TEditorTask",{staticClass:"desc",attrs:{placeholder:t.$L(t.windowLandscape?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0...")},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}}),e("div",{staticClass:"advanced-option",class:{"advanced-open":t.advanced}},[e("Button",{on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(o){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)],1),t.advanced?e("Form",{staticClass:"task-add-advanced",attrs:{"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}})],1),e("FormItem",{attrs:{label:t.$L("\u534F\u52A9\u4EBA\u5458")}},[e("UserSelect",{attrs:{"multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458"),"project-id":t.addData.project_id,"disabled-choice":t.addData.owner,"avatar-size":24,border:""},model:{value:t.addData.assist,callback:function(s){t.$set(t.addData,"assist",s)},expression:"addData.assist"}})],1),e("FormItem",[e("div",{staticClass:"visibility-text",attrs:{slot:"label"},on:{click:t.showCisibleDropdown},slot:"label"},[t._v(" "+t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),t.addData.visibility_appoint==1||t.addData.visibility_appoint==2?e("div",{ref:"visibilityText",staticClass:"ivu-input task-add-visibility",on:{click:t.showCisibleDropdown}},[t._v(" "+t._s(t.addData.visibility_appoint==1?t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1"):t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1"))+" ")]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":24,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.addData.project_id,border:""},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.addData.visibility_appointor,callback:function(s){t.$set(t.addData,"visibility_appointor",s)},expression:"addData.visibility_appointor"}})],1),e("EDropdown",{ref:"eDropdownRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==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.addData.visibility_appoint==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.addData.visibility_appoint==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),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(o){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(o){t.$set(s,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"8",title:t.formatDate(s.times)}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:s.owner,callback:function(o){t.$set(s,"owner",o)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-enter":t.addSubTask},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)]),e("TaskExistTips",{ref:"taskExistTipsRef",on:{onAdd:function(s){return t.onAdd(t.again,!0)}}})],1)},ut=[];const pt={name:"TaskAdd",components:{TEditorTask:E,UserSelect:I,TaskExistTips:U},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],assist:[],project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[],again:!1}},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>this.$refs.input.focus()),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...d(["cacheProjects","projectId","cacheColumns","taskPriority"]),taskDays(){const{times:t}=this.addData;let a=$A.date2string(t,"Y-m-d H:i");if(a[0]&&a[1]){let e=Math.ceil(($A.Date(a[1],!0)-$A.Date(a[0],!0))/86400);if(e>0)return e}return 0}},watch:{"addData.owner"(t){this.addData.assist=this.addData.assist.filter(a=>t.indexOf(a)===-1),this.addData.assist.length===0&&t.indexOf(this.userId)===-1&&(this.addData.assist=[this.userId])},"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.Date(e.top_at)-$A.Date(a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}this.taskPriority.length>0&&await this.choosePriority(this.taskPriority[0])},async taskTimeChange(t){const a=$A.date2string(t.times,"Y-m-d H:i");$A.rightExists(a[0],"00:00")&&$A.rightExists(a[1],"00:00")&&this.$set(t,"times",await this.$store.dispatch("taskDefaultTime",a))},taskTimeOpenChange(t){this.taskTimeOpen=t},formatDate(t){return t?$A.date2string(t):null},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){const a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("\u5929")+")"},async choosePriority(t){const a=new Date,e=$A.runNum(t.days);if(e>0){const s=new Date(new Date().setDate(a.getDate()+e));this.$set(this.addData,"times",await this.$store.dispatch("taskDefaultTime",$A.date2string([a,s])))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},async onAdd(t,a=!1){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}if(this.loadIng++,!a&&this.addData.owner.length>0){this.$refs.taskExistTipsRef.isExistTask({userids:this.addData.owner,timerange:this.addData.times}).then(e=>{e?(this.loadIng--,this.again=t):this.onAdd(t,!0)});return}this.$store.dispatch("taskAdd",this.addData).then(({msg:e})=>{this.loadIng--,$A.messageSuccess(e),t===!0?(this.addData=Object.assign({},this.addData,{name:"",content:"",subtasks:[]}),this.$refs.input.focus()):(this.addData={cascader:[],name:"",content:"",owner:[],assist:[],column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},this.close())}).catch(({msg:e})=>{this.loadIng--,$A.modalError(e)})},close(){this.$emit("input",!this.value)},showCisibleDropdown(t){var i;let a=null;if(t===null?a=(i=this.$refs.visibilityText)==null?void 0:i.getBoundingClientRect():a=t.target.getBoundingClientRect(),a===null)return;const e=this.$el.getBoundingClientRect(),s=this.$refs.eDropdownRef.$el;s.style.top=a.top-e.top+"px",s.style.left=a.left-e.left+"px",s.style.width=a.width+"px",s.style.height=a.height+"px",this.$refs.eDropdownRef.visible&&this.$refs.eDropdownRef.hide(),setTimeout(()=>{this.$refs.eDropdownRef.show()},0)},visibleUserSelectShowChange(t){if(!t&&(this.addData.visibility_appointor.length==0||!this.addData.visibility_appointor[0])){let a=this.addData.old_visibility_appoint;this.addData.visibility_appoint=a>2?1:a||1,this.addData.visibility_appoint<3}},dropVisible(t){switch(t){case 1:case 2:this.addData.visibility_appoint=t;break;case 3:this.addData.old_visibility_appoint=this.addData.visibility_appoint,this.addData.visibility_appoint=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}}}},w={};var mt=n(pt,ht,ut,!1,ft,null,null,null);function ft(t){for(let a in w)this[a]=w[a]}var gt=function(){return mt.exports}(),vt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-back"},[t.isVisible&&t.x>20?e("div",{staticClass:"back-semicircle",style:t.style}):t._e()])},_t=[];const $t={name:"MobileBack",props:{showTabbar:{type:Boolean,default:!1}},data(){return{x:0,y:0,isVisible:!1,isTouched:!1,isScrolling:void 0,touchesStart:{}}},created(){this.appAndroidEvents()},mounted(){document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove,{passive:!1}),document.addEventListener("touchend",this.touchend)},beforeDestroy(){document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...d(["fileLists","messengerSearchKey"]),style(){const a=Math.max(135,this.y)+this.windowScrollY,e=this.windowHeight-135;return{top:Math.min(a,e)+"px"}},routeName(){return this.$route.name},fileFolderId(){const{folderId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{isVisible(t){this.$store.state.touchBackInProgress=t}},methods:{getXY(t){const a=t.touches[0];this.x=a.clientX,this.y=a.clientY},touchstart(t){this.getXY(t),this.isTouched=this.canBack()&&this.x<20,this.isScrolling=void 0,this.touchesStart.x=t.type==="touchstart"?t.targetTouches[0].pageX:t.pageX,this.touchesStart.y=t.type==="touchstart"?t.targetTouches[0].pageY:t.pageY},touchmove(t){if(!this.isTouched)return;const a=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,e=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY;if(typeof this.isScrolling=="undefined"&&(this.isScrolling=!!(this.isScrolling||Math.abs(e-this.touchesStart.y)>Math.abs(a-this.touchesStart.x))),this.isScrolling){this.isTouched=!1;return}this.isVisible=!0,this.getXY(t),t.preventDefault()},touchend(){this.x>90&&this.isVisible&&this.onBack(),this.x=0,this.isVisible=!1},canBack(){if(!this.showTabbar||this.$Modal.visibles().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}let t=!1;return $.setGlobalData({type:"modalVisible",callback:(a,e)=>{e&&(t=!0)}}),!!t},onBack(){let t=!1;if($.setGlobalData({type:"route",action:"back",route:this.$route,callback:(a,e)=>{e&&(t=!0)}}),!t&&!this.$Modal.removeLast()){if(this.routeName==="manage-file"){if(this.fileFolderId>0){const a=this.fileLists.find(({id:e,permission:s})=>e==this.fileFolderId&&s>-1);if(a){const e=this.fileLists.find(({id:s,permission:i})=>s==a.pid&&i>-1);if(e){this.goForward({name:"manage-file",params:{folderId:e.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goForward({name:"manage-application"},!0);return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUiApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},t=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},D={};var kt=n($t,vt,_t,!1,bt,null,null,null);function bt(t){for(let a in D)this[a]=D[a]}var yt=function(){return kt.exports}(),wt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.show&&t.userid>0?e("transition",{attrs:{name:"mobile-notify"}},[e("div",{staticClass:"mobile-notification",class:{show:t.show},style:t.notifyStyle,on:{click:function(s){return s.stopPropagation(),t.onClick.apply(null,arguments)},touchstart:t.onTouchstart,touchmove:t.onTouchmove}},[e("UserAvatar",{attrs:{userid:t.userid,size:40,"show-name":"","name-text":t.title}}),e("div",{staticClass:"notification-desc no-dark-content"},[t._v(t._s(t.desc))])],1)]):t._e()},Dt=[];const xt={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},beforeDestroy(){this.timer&&clearTimeout(this.timer),this.show=!1},computed:{notifyStyle(){return{marginTop:this.$store.state.windowScrollY+"px"}}},methods:{open(t){!$A.isJson(t)||(this.userid=t.userid||0,this.title=t.title||"",this.desc=t.desc||"",this.duration=typeof t.duration=="number"?t.duration:6e3,this.callback=typeof t.callback=="function"?t.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(t){this.startY=t.touches[0].clientY},onTouchmove(t){this.startY>0&&this.startY-t.touches[0].clientY>10&&(this.startY=0,this.close())}}},x={};var Tt=n(xt,wt,Dt,!1,Ct,null,null,null);function Ct(t){for(let a in x)this[a]=x[a]}var St=function(){return Tt.exports}(),Lt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.visible,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["mobile-dialog",""],beforeClose:t.onBeforeClose,"class-name":"dialog-modal",fullscreen:""}},[t.windowPortrait&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose,location:"modal"}}):t._e()],1)},It=[];const At={name:"DialogModal",components:{DialogWrapper:z},data(){return{timer:null}},computed:{...d(["dialogId"]),visible(){return this.dialogId>0&&this.windowPortrait}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},T={};var jt=n(At,Lt,It,!1,Mt,null,null,null);function Mt(t){for(let a in T)this[a]=T[a]}var Pt=function(){return jt.exports}(),Nt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,beforeClose:t.onBeforeClose,"class-name":"task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},Rt=[];const Bt={name:"TaskModal",components:{TaskDetail:O},computed:{...d(["taskId"]),...f(["taskData"]),show(){return this.taskId>0},styles(){return{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0}}},C={};var Et=n(Bt,Nt,Rt,!1,Ut,null,null,null);function Ut(t){for(let a in C)this[a]=C[a]}var Ot=function(){return Et.exports}(),Ft=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Vt=[];const zt={name:"TaskExport",components:{UserSelect:I},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(({data:t})=>{this.show=!1,$A.modalSuccess(t.msg)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},S={};var Kt=n(zt,Ft,Vt,!1,Yt,null,null,null);function Yt(t){for(let a in S)this[a]=S[a]}var Ht=function(){return Kt.exports}(),Wt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-manage",class:{"show-tabbar":t.showMobileTabbar,"not-logged":t.userId<=0}},[e("div",{staticClass:"manage-box-menu",class:{"show-mobile-menu":t.showMobileMenu}},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),t.clientNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s){return[s.path==="taskBrowse"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.taskBrowseLists,function(i,o){return i.id>0&&o<10?e("DropdownItem",{key:o,staticClass:"task-title",attrs:{name:i.name},nativeOn:{click:function(l){return t.openTask(i)}}},[i.flow_item_name?e("span",{class:i.flow_item_status},[t._v(t._s(i.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(i.name))])]):t._e()}),1):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),e("DropdownItem",{attrs:{name:"exportApprove"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E")))]),e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])],1)],1):s.visible!==!1?e("DropdownItem",{style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):s.path==="approve"&&t.approveUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.approveUnreadNumber}}):t._e()],1)]):t._e()]})],2)],1),e("Scrollbar",{attrs:{"class-name":"manage-item"},on:{"on-scroll":function(s){t.operateVisible=!1}}},[e("div",{staticClass:"menu-base"},[e("ul",[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()],1),e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])]),e("li",{class:t.classNameRoute("application"),on:{click:function(s){return t.toggleRoute("application")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE60C")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u5E94\u7528")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:String(t.reportUnreadNumber+t.approveUnreadNumber||"")}})],1)])]),e("div",{ref:"menuProject",staticClass:"menu-project"},[e("ul",[t._l(t.projectLists,function(s,i){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`project_${s.id}`,refInFor:!0,class:t.classNameProject(s),attrs:{"data-id":s.id},on:{click:function(o){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(o){return o.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title"},[t._v(t._s(s.name))]),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):t._e()],2)])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1),t.projectKeyValue||(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("div",{staticClass:"search-pre"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),e("Input",{attrs:{placeholder:t.$L(`\u5171${t.projectTotal||t.cacheProjects.length}\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...`),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}})],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:t.onAddShow}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],1),e("div",{staticClass:"manage-box-main"},[e("keep-alive",[e("router-view",{staticClass:"manage-box-view",on:{"on-click":t.onTabbarClick}})],1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addProject",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("ApproveExport",{model:{value:t.exportApproveShow,callback:function(s){t.exportApproveShow=s},expression:"exportApproveShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("MeetingManager"),e("transition",{attrs:{name:"mobile-slide"}},[t.showMobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MobileBack",{attrs:{showTabbar:t.showMobileTabbar}}),e("MobileNotification",{ref:"mobileNotification"}),t.$route.name!="manage-apps"?e("MicroApps",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{name:"okr-details",url:t.okrUrl,datas:t.okrWindow}}):t._e()],1)},Xt=[];const Gt={components:{TaskExport:Ht,CheckinExport:P,ApproveExport:K,TaskModal:Ot,DialogModal:Pt,MeetingManager:F,MobileNotification:St,MobileBack:yt,MobileTabbar:dt,TaskAdd:gt,Report:N,DrawerOverlay:B,ProjectManagement:it,TeamManagement:R,ProjectArchived:Q,MicroApps:H},directives:{longpress:V},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C112\u4E2A\u5B57\uFF01"),trigger:"change"}]},addTaskShow:!1,addTaskSubscribe:null,exportTaskShow:!1,exportCheckinShow:!1,exportApproveShow:!1,dialogMsgSubscribe:null,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,openMenu:{},visibleMenu:!1,showMobileMenu:!1,workReportShow:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,natificationReady:!1,notificationManage:null,reportTabs:"my",operateStyles:{},operateVisible:!1,operateItem:{},needStartHome:!1}},mounted(){this.notificationInit(),this.addTaskSubscribe=c.Store.subscribe("addTask",this.onAddTask),this.dialogMsgSubscribe=c.Store.subscribe("dialogMsgPush",this.addDialogMsg),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority").catch(t=>{}),this.$store.dispatch("getReportUnread",1e3),this.$store.dispatch("getApproveUnread",1e3),this.$store.dispatch("needHome").then(t=>{this.needStartHome=!0}).catch(t=>{this.needStartHome=!1})},beforeDestroy(){this.addTaskSubscribe&&(this.addTaskSubscribe.unsubscribe(),this.addTaskSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...d(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber","approveUnreadNumber","okrWindow"]),...f(["dashboardTask"]),routeName(){return this.$route.name},okrUrl(){return{}.VITE_OKR_WEB_URL||$A.mainUrl("apps/okr")},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},menu(){const{userIsAdmin:t,needStartHome:a}=this,e=[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1"}];return t?e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"license",name:"License Key"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"allProject",name:"\u6240\u6709\u9879\u76EE",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"},{path:"team",name:"\u56E2\u961F\u7BA1\u7406",divided:!0}):e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}),a?e.push({path:"goHome",name:"\u6253\u5F00\u9996\u9875",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}):e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}),e},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>s.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(s.top_at):i.id-s.id);return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},taskBrowseLists(){const{cacheTasks:t,cacheTaskBrowse:a,userId:e}=this;return a.filter(({userid:s})=>s===e).map(({id:s})=>t.find(i=>i.id===s)||{})},showMobileTabbar(){return this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?!0:["manage-dashboard","manage-messenger","manage-application"].includes(this.routeName)}},watch:{$route(){this.chackPass()},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){t&&this.$store.dispatch("getReportUnread",0)},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0}},methods:{chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){this.showMobileMenu=!1;let e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"exportApprove":this.exportApproveShow=!0;return;case"workReport":this.reportUnreadNumber>0&&(this.reportTabs="receive"),this.workReportShow=!0;return;case"version":c.Store.set("updateNotification",null);return;case"clearCache":$A.IDBSet("clearCache","handle").then(a=>{$A.reloadUrl()});return;case"goHome":this.needStartHome&&this.goForward("index");return;case"approve":this.menu.findIndex(a=>a.path==t)>-1&&this.goForward({name:"manage-approve"});return;case"okrManage":case"okrAnalyze":this.goForward({path:"/manage/apps/"+(t=="okrManage"?"/#/list":"/#/analysis")});return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(({data:e})=>{t(),this.$store.dispatch("downUrl",{url:e.url})}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t},classNameRoute(t){let a=this.routeName;return(a=="manage-approve"||a=="manage-apps")&&(a="manage-application"),{active:a===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"task":this.onAddTask(0);break;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break}},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){if(t.metaKey||t.ctrlKey)switch(t.keyCode){case 66:t.preventDefault(),this.onAddShow();break;case 74:t.preventDefault(),this.onAddMenu("createMeeting");break;case 75:case 78:t.preventDefault(),this.onAddMenu("task");break;case 83:this.$refs.taskModal.checkUpdate()&&t.preventDefault();break;case 188:t.preventDefault(),this.toggleRoute("setting");break}},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},addDialogMsg(t){var _;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((_=$A.last(this.dialogIns))==null?void 0:_.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,type:i,msg:o,userid:l}=t;if(l==this.userId)return;let h;switch(i){case"text":h=$A.getMsgTextPreview(o.type==="md"?M(o.text):o.text);break;case"file":h="["+this.$L(o.type=="img"?"\u56FE\u7247\u4FE1\u606F":"\u6587\u4EF6\u4FE1\u606F")+"]";break;default:return}this.__notificationId=a;const g=r=>{if(s==="group"){let u=this.cacheUserBasic.find(m=>m.userid==l);u?p(`${r} (${u.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[l]},skipAuthError:!0}).then(({data:m})=>{u=m.find(A=>A.userid==l),u&&p(`${r} (${u.nickname})`)}).catch(m=>{p(r)})}else p(r)},p=r=>{this.__notificationId===a&&(this.__notificationId=null,this.$isEEUiApp?this.$refs.mobileNotification.open({userid:l,title:r,desc:h,callback:()=>{this.goForward({name:"manage-messenger"}),this.$store.dispatch("openDialog",e)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:$A.originUrl("images/logo.png"),title:r,body:h,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:h,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(r),this.notificationManage.userAgreed()))},v=this.cacheDialogs.find(r=>r.id==e);v?g(v.name):this.$store.dispatch("getDialogOne",e).then(({data:r})=>g(r.name)).catch(()=>{})},handleLongpress(t,a){const e=$A.getAttr(a,"data-id"),s=this.projectLists.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},onTabbarClick(t){switch(t){case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break;case"allUser":case"workReport":this.settingRoute(t);break}},notificationInit(){this.notificationManage=new Y(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.registerMsgListener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.registerMsgListener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.goForward({name:"manage-messenger"}),this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",i),this.$store.dispatch("increaseMsgReplyNum",i),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})}}},L={};var Jt=n(Gt,Wt,Xt,!1,qt,null,null,null);function qt(t){for(let a in L)this[a]=L[a]}var ra=function(){return Jt.exports}();export{ra as default}; diff --git a/public/js/build/markdown-it.34483999.js b/public/js/build/markdown-it.f3afa976.js similarity index 99% rename from public/js/build/markdown-it.34483999.js rename to public/js/build/markdown-it.f3afa976.js index 810b62de3..af22e1eed 100644 --- a/public/js/build/markdown-it.34483999.js +++ b/public/js/build/markdown-it.f3afa976.js @@ -1,4 +1,4 @@ -import{r as Ue}from"./entities.797c3e49.js";import{u as Ge,c as We}from"./uc.micro.3245408e.js";import{m as Le}from"./mdurl.ddaf799d.js";import{l as Qe}from"./linkify-it.43898b73.js";import{r as Ve}from"./punycode.32c740ed.js";var E={},Oe=Ue;(function(n){function e(d){return Object.prototype.toString.call(d)}function r(d){return e(d)==="[object String]"}var i=Object.prototype.hasOwnProperty;function l(d,A){return i.call(d,A)}function o(d){var A=Array.prototype.slice.call(arguments,1);return A.forEach(function(g){if(!!g){if(typeof g!="object")throw new TypeError(g+"must be object");Object.keys(g).forEach(function(O){d[O]=g[O]})}}),d}function t(d,A,g){return[].concat(d.slice(0,A),g,d.slice(A+1))}function c(d){return!(d>=55296&&d<=57343||d>=64976&&d<=65007||(d&65535)===65535||(d&65535)===65534||d>=0&&d<=8||d===11||d>=14&&d<=31||d>=127&&d<=159||d>1114111)}function f(d){if(d>65535){d-=65536;var A=55296+(d>>10),g=56320+(d&1023);return String.fromCharCode(A,g)}return String.fromCharCode(d)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(s.source+"|"+u.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,a=Oe;function v(d,A){var g;return l(a,A)?a[A]:A.charCodeAt(0)===35&&h.test(A)&&(g=A[1].toLowerCase()==="x"?parseInt(A.slice(2),16):parseInt(A.slice(1),10),c(g))?f(g):d}function x(d){return d.indexOf("\\")<0?d:d.replace(s,"$1")}function C(d){return d.indexOf("\\")<0&&d.indexOf("&")<0?d:d.replace(p,function(A,g,O){return g||v(A,O)})}var _=/[&<>"]/,k=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function y(d){return b[d]}function S(d){return _.test(d)?d.replace(k,y):d}var m=/[.?*+^$[\]\\(){}|-]/g;function T(d){return d.replace(m,"\\$&")}function w(d){switch(d){case 9:case 32:return!0}return!1}function L(d){if(d>=8192&&d<=8202)return!0;switch(d){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 M=We;function P(d){return M.test(d)}function B(d){switch(d){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 H(d){return d=d.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(d=d.replace(/ẞ/g,"\xDF")),d.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Le,n.lib.ucmicro=Ge,n.assign=o,n.isString=r,n.has=l,n.unescapeMd=x,n.unescapeAll=C,n.isValidEntityCode=c,n.fromCodePoint=f,n.escapeHtml=S,n.arrayReplaceAt=t,n.isSpace=w,n.isWhiteSpace=L,n.isMdAsciiPunct=B,n.isPunctChar=P,n.escapeRE=T,n.normalizeReference=H})(E);var J={},Je=function(e,r,i){var l,o,t,c,f=-1,s=e.posMax,u=e.pos;for(e.pos=r+1,l=1;e.pos32))return c;if(l===41){if(o===0)break;o--}t++}return r===t||o!==0||(c.str=ke(e.slice(r,t)),c.pos=t,c.ok=!0),c},Ke=E.unescapeAll,Xe=function(e,r,i){var l,o,t=0,c=r,f={ok:!1,pos:0,lines:0,str:""};if(c>=i||(o=e.charCodeAt(c),o!==34&&o!==39&&o!==40))return f;for(c++,o===40&&(o=41);c"+F(o.content)+""};$.code_block=function(n,e,r,i,l){var o=n[e];return""+F(n[e].content)+`
    +import{r as Ue}from"./entities.797c3e49.js";import{u as Ge,c as We}from"./uc.micro.39573202.js";import{m as Le}from"./mdurl.2f66c031.js";import{l as Qe}from"./linkify-it.3ecfda1e.js";import{r as Ve}from"./punycode.87a5269f.js";var E={},Oe=Ue;(function(n){function e(d){return Object.prototype.toString.call(d)}function r(d){return e(d)==="[object String]"}var i=Object.prototype.hasOwnProperty;function l(d,A){return i.call(d,A)}function o(d){var A=Array.prototype.slice.call(arguments,1);return A.forEach(function(g){if(!!g){if(typeof g!="object")throw new TypeError(g+"must be object");Object.keys(g).forEach(function(O){d[O]=g[O]})}}),d}function t(d,A,g){return[].concat(d.slice(0,A),g,d.slice(A+1))}function c(d){return!(d>=55296&&d<=57343||d>=64976&&d<=65007||(d&65535)===65535||(d&65535)===65534||d>=0&&d<=8||d===11||d>=14&&d<=31||d>=127&&d<=159||d>1114111)}function f(d){if(d>65535){d-=65536;var A=55296+(d>>10),g=56320+(d&1023);return String.fromCharCode(A,g)}return String.fromCharCode(d)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(s.source+"|"+u.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,a=Oe;function v(d,A){var g;return l(a,A)?a[A]:A.charCodeAt(0)===35&&h.test(A)&&(g=A[1].toLowerCase()==="x"?parseInt(A.slice(2),16):parseInt(A.slice(1),10),c(g))?f(g):d}function x(d){return d.indexOf("\\")<0?d:d.replace(s,"$1")}function C(d){return d.indexOf("\\")<0&&d.indexOf("&")<0?d:d.replace(p,function(A,g,O){return g||v(A,O)})}var _=/[&<>"]/,k=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function y(d){return b[d]}function S(d){return _.test(d)?d.replace(k,y):d}var m=/[.?*+^$[\]\\(){}|-]/g;function T(d){return d.replace(m,"\\$&")}function w(d){switch(d){case 9:case 32:return!0}return!1}function L(d){if(d>=8192&&d<=8202)return!0;switch(d){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 M=We;function P(d){return M.test(d)}function B(d){switch(d){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 H(d){return d=d.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(d=d.replace(/ẞ/g,"\xDF")),d.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Le,n.lib.ucmicro=Ge,n.assign=o,n.isString=r,n.has=l,n.unescapeMd=x,n.unescapeAll=C,n.isValidEntityCode=c,n.fromCodePoint=f,n.escapeHtml=S,n.arrayReplaceAt=t,n.isSpace=w,n.isWhiteSpace=L,n.isMdAsciiPunct=B,n.isPunctChar=P,n.escapeRE=T,n.normalizeReference=H})(E);var J={},Je=function(e,r,i){var l,o,t,c,f=-1,s=e.posMax,u=e.pos;for(e.pos=r+1,l=1;e.pos32))return c;if(l===41){if(o===0)break;o--}t++}return r===t||o!==0||(c.str=ke(e.slice(r,t)),c.pos=t,c.ok=!0),c},Ke=E.unescapeAll,Xe=function(e,r,i){var l,o,t=0,c=r,f={ok:!1,pos:0,lines:0,str:""};if(c>=i||(o=e.charCodeAt(c),o!==34&&o!==39&&o!==40))return f;for(c++,o===40&&(o=41);c"+F(o.content)+""};$.code_block=function(n,e,r,i,l){var o=n[e];return""+F(n[e].content)+`
    `};$.fence=function(n,e,r,i,l){var o=n[e],t=o.info?rr(o.info).trim():"",c="",f="",s,u,p,h,a;return t&&(p=t.split(/(\s+)/g),c=p[0],f=p.slice(2).join("")),r.highlight?s=r.highlight(o.content,c,f)||F(o.content):s=F(o.content),s.indexOf(""+s+` `):"
    "+s+`
    diff --git a/public/js/build/mdurl.ddaf799d.js b/public/js/build/mdurl.2f66c031.js similarity index 100% rename from public/js/build/mdurl.ddaf799d.js rename to public/js/build/mdurl.2f66c031.js diff --git a/public/js/build/meeting-create.41663ea5.svg b/public/js/build/meeting.41663ea5.svg similarity index 100% rename from public/js/build/meeting-create.41663ea5.svg rename to public/js/build/meeting.41663ea5.svg diff --git a/public/js/build/meeting.e0cf6482.js b/public/js/build/meeting.e0cf6482.js deleted file mode 100644 index 693841faa..000000000 --- a/public/js/build/meeting.e0cf6482.js +++ /dev/null @@ -1 +0,0 @@ -import{M as e}from"./MeetingManager.9bc138b1.js";import{n as m}from"./app.f8a6fa5e.js";import"./le5le-store.bd86c9e9.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var r=this,t=r.$createElement,i=r._self._c||t;return i("div",[i("MeetingManager")],1)},n=[];const s={components:{MeetingManager:e},mounted(){this.$store.dispatch("showMeetingWindow",{type:"join",meetingid:this.$route.params.meetingId,meetingSharekey:this.$route.params.sharekey,meetingdisabled:!0})}},o={};var a=m(s,p,n,!1,_,null,null,null);function _(r){for(let t in o)this[t]=o[t]}var T=function(){return a.exports}();export{T as default}; diff --git a/public/js/build/meeting.f26583ce.js b/public/js/build/meeting.f26583ce.js new file mode 100644 index 000000000..19c889ac6 --- /dev/null +++ b/public/js/build/meeting.f26583ce.js @@ -0,0 +1 @@ +import{M as e}from"./MeetingManager.f1d05517.js";import{n as m}from"./app.57070a0d.js";import"./le5le-store.b40f9152.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var r=this,t=r.$createElement,i=r._self._c||t;return i("div",[i("MeetingManager")],1)},n=[];const s={components:{MeetingManager:e},mounted(){this.$store.dispatch("showMeetingWindow",{type:"join",meetingid:this.$route.params.meetingId,meetingSharekey:this.$route.params.sharekey,meetingdisabled:!0})}},o={};var a=m(s,p,n,!1,_,null,null,null);function _(r){for(let t in o)this[t]=o[t]}var T=function(){return a.exports}();export{T as default}; diff --git a/public/js/build/messenger.04c1715a.js b/public/js/build/messenger.04c1715a.js new file mode 100644 index 000000000..29d0a5f14 --- /dev/null +++ b/public/js/build/messenger.04c1715a.js @@ -0,0 +1 @@ +import{m as u}from"./vuex.cc7cb26e.js";import{D as p}from"./DialogWrapper.4f742dbc.js";import{l as g}from"./longpress.5305f240.js";import{l}from"./le5le-store.b40f9152.js";import{n as m}from"./app.57070a0d.js";import"./index.92bfd6b8.js";import"./quill-hi.c85eceed.js";import"./quill-delta.72524c38.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.91f4d524.js";import"./lodash.isequal.0dd437dc.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.beaa1617.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.f3f58d09.js";import"./vue.eaf71fac.js";import"./ImgUpload.b233effb.js";import"./view-design-hi.76cbd75d.js";import"./details.663d818a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.e9c85d1f.js";var f=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[e("div",{staticClass:"search-pre"},[t.searchLoading?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),t.tabActive==="dialog"?e("Input",{ref:"searchInput",attrs:{placeholder:t.$L(t.loadDialogs>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.dialogSearchKey,callback:function(s){t.dialogSearchKey=s},expression:"dialogSearchKey"}}):e("Input",{ref:"contactInput",attrs:{placeholder:t.$L("\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)]),t.tabActive==="dialog"&&!t.dialogSearchKey?e("div",{staticClass:"messenger-nav"},[e("EDropdown",{ref:"navMenu",staticClass:"nav-menu",attrs:{trigger:"click",placement:"bottom-start"},on:{command:t.onActive}},[e("div",{staticClass:"nav-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE634")])]),e("EDropdownMenu",{staticClass:"messenger-nav-menu",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.dialogMenus,function(s,a){return e("EDropdownItem",{key:a,attrs:{command:s.type}},[e("div",{staticClass:"messenger-nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),t._l(t.typeItems,function(s,a){return e("div",{key:a,class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])})],2):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{ref:"list",staticClass:"messenger-list",attrs:{"hide-bar":this.operateVisible},on:{"on-scroll":t.listScroll},nativeOn:{touchstart:function(s){return t.listTouch.apply(null,arguments)}}},[t.tabActive==="dialog"?e("ul",{ref:"ul",staticClass:"dialog"},[t.dialogList.length>0?t._l(t.dialogList,function(s,a){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:a,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),style:{"background-color":s.color},attrs:{"data-id":s.id},on:{click:function(o){return t.openDialog({dialog_id:s.id,dialog_msg_id:s.search_msg_id,search_msg_id:s.search_msg_id})}}},[s.type=="group"?[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:42}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):s.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(o){return o.color!="success"?[e("Tag",{attrs:{color:o.color,fade:!1},on:{"on-click":function(r){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(o.text)))])]:t._e()}),e("span",[t._v(t._s(s.name))]),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.formatTime(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.extra_draft_has&&s.id!=t.dialogId?[e("div",{staticClass:"last-draft"},[t._v("["+t._s(t.$L("\u8349\u7A3F"))+"]")]),e("div",{staticClass:"last-text"},[e("span",[t._v(t._s(t.formatDraft(s.extra_draft_content)))])])]:[s.type=="group"&&s.last_msg&&s.last_msg.userid?[s.last_msg.userid==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("\u4F60")))]):e("UserAvatar",{attrs:{userid:s.last_msg.userid,"show-name":!0,"show-icon":!1}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)))])])],s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2)}):t.dialogSearchLoad===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogSearchKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogSearchKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")]):t._e()],2):e("ul",{staticClass:"contacts"},[t.contactsFilter.length>0?[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(a,o){return e("li",{key:o,on:{click:function(r){return t.openContacts(a)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:30}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},t._l(a.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230"+t.contactsFilter.length+"\u4F4D\u8054\u7CFB\u4EBA")))]:[t._v(t._s(t.$L("\u5171"+t.contactsTotal+"\u4F4D\u8054\u7CFB\u4EBA")))]],2)]:t.contactsLoad==0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")]):t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",transferClassName:"scrollbar-hidden",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{staticClass:"messenger-dialog-operation",attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.top_at?"":"")}})])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleReadClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.$A.getDialogUnread(t.operateItem,!0)>0?"":"")}})])]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleSilenceClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.silence?"":"")}})])]),e("DropdownItem",{attrs:{disabled:!!t.operateItem.top_at},nativeOn:{click:function(s){return t.handleHideClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u8BE5\u4F1A\u8BDD"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE881")])])]),t._l(t.taskColorList,function(s,a){return a<6?e("DropdownItem",{key:"c_"+a,attrs:{divided:a==0},nativeOn:{click:function(o){return t.handleColorClick(s.color)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(s.name))+" "),e("i",{staticClass:"taskfont color",style:{color:s.primary||"#ddd"},domProps:{innerHTML:t._s(s.color==(t.operateItem.color||"")?"":"")}})])]):t._e()})],2)],1)],1)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)])],1),t.activeNum>0&&t.routeName==="manage-messenger"?e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLandscape&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop(),location:"messenger"},on:{"on-active":t.scrollIntoActive}}):t._e()],1):t._e()])],1)},_=[];const d={menuHistory:[]},v={components:{DialogWrapper:p},directives:{longpress:g},data(){return{firstLoad:!0,activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogActive:"",dialogMenus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"},{type:"mark",name:"\u6807\u6CE8"},{type:"@",name:"@\u6211"}],dialogHistory:d.menuHistory,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,clickAgainSubscribe:null}},async beforeRouteEnter(t,i,e){d.menuHistory=await $A.IDBArray("dialogMenuHistory"),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),this.clickAgainSubscribe=l.Store.subscribe("clickAgainDialog",this.shakeUnread)},beforeDestroy(){this.clickAgainSubscribe&&(this.clickAgainSubscribe.unsubscribe(),this.clickAgainSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(this.firstLoad?0:1e3),this.firstLoad=!1,this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...u(["cacheDialogs","loadDialogs","dialogId","dialogMsgId","dialogMsgs","messengerSearchKey","appNotificationPermission","taskColorList"]),routeName(){return this.$route.name},typeItems(){const{dialogActive:t,dialogMenus:i,dialogHistory:e}=this,s=[];return this.dialogHistory.includes(t)?s.push(...this.dialogHistory):(s.push(""),t&&s.push(t),e.some(a=>{s.includes(a)||s.push(a)}),["project","task","user"].some(a=>{s.includes(a)||s.push(a)}),this.dialogHistory=s.slice(0,4),$A.IDBSave("dialogMenuHistory",this.dialogHistory)),this.dialogHistory.map(a=>i.find(o=>o.type==a))},dialogList(){const{dialogActive:t,dialogSearchKey:i,dialogSearchList:e}=this;if(e.length>0)return e.sort((a,o)=>(a.is_search===!0?1:0)-(o.is_search===!0?1:0));if(t==""&&i=="")return this.cacheDialogs.filter(a=>this.filterDialog(a)).sort(this.dialogSort);if(t=="mark"&&!i){const a=[];return this.dialogMsgs.filter(o=>o.tag).forEach(o=>{let r=$A.cloneJSON(this.cacheDialogs).find(n=>n.id==o.dialog_id);r&&(r.last_msg=o,r.search_msg_id=o.id,a.push(r))}),a}return this.cacheDialogs.filter(a=>{if(!this.filterDialog(a))return!1;if(i){const{name:o,pinyin:r,last_msg:n}=a;let c=`${o} ${r}`;if(n)switch(n.type){case"text":c+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":c+=` ${n.msg.name}`;break}if(!$A.strExists(c,i))return!1}else if(t)switch(t){case"project":case"task":if(t!=a.group_type)return!1;break;case"user":if(t!=a.type||a.bot)return!1;break;case"group":if(t!=a.type||["project","task"].includes(a.group_type))return!1;break;case"bot":if(!a.bot)return!1;break;case"@":if(!$A.getDialogMention(a))return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const t=[];return this.contactsFilter.some(i=>{let e=i.az?i.az.toUpperCase():"#",s=t.find(a=>a.az==e);s?s.list.findIndex(({userid:a})=>a==i.userid)===-1&&s.list.push(i):t.push({az:e,list:[i]})}),t},msgUnread(){return function(t){let i=0;return this.cacheDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break;case"group":if(t!=e.type||["project","task"].includes(e.group_type))return!1;break;case"bot":if(!e.bot)return!1;break;case"mark":return!1;case"@":return!1}i+=$A.getDialogNum(e)}),i}},searchLoading({tabActive:t,loadDialogs:i,dialogSearchLoad:e,contactsLoad:s}){return t==="dialog"?i>0||e>0:s>0}},watch:{$route:{handler({params:t}){if(["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction),t.dialog_id){this.tabActive="dialog";const i=$A.runNum(t.dialog_id);i>0&&this.openDialog(i),this.clickAgainSubscribe=l.Store.subscribe("clickAgainDialog",this.shakeUnread)}},immediate:!0},messengerSearchKey:{handler(t){this.$nextTick(i=>{this.dialogSearchKey=t.dialog,this.contactsKey=t.contacts})},deep:!0},dialogSearchKey(t){if(this.$store.state.messengerSearchKey.dialog=t,$A.loadVConsole(t)){this.dialogSearchKey="";return}this.tabActive==="dialog"&&/^info\.\d+$/.test(t)&&console.log(this.cacheDialogs.find(i=>i.id==t.replace("info.",""))),this.dialogSearchList=[],t!=""&&(this.__search_timer&&clearTimeout(this.__search_timer),this.__search_timer=setTimeout(this.searchDialog,600),this.dialogSearchLoad++,setTimeout(i=>this.dialogSearchLoad--,600))},contactsKey(t){this.$store.state.messengerSearchKey.contacts=t,t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},windowActive(t){this.updateDialogs(t?1e3:-1)},tabActive:{handler(t){t=="contacts"?($A.Time()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):this.updateDialogs(1e3)},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0},dialogActive(){this.dialogSearchList=[],this.dialogActive=="mark"&&!this.dialogSearchKey&&this.searchTagDialog()}},methods:{listTouch(){var t;(t=this.$refs.navMenu)!=null&&t.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onKeydown(t){var i,e;t.key==="Escape"&&((i=this.$refs.searchInput)==null||i.handleClear(),(e=this.$refs.contactInput)==null||e.handleClear())},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>e.todo_num>0)),t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(e[0]),requestAnimationFrame(s=>{e[0].classList.add("common-shake"),setTimeout(a=>{e[0].classList.remove("common-shake")},600)})}}},dialogClass(t){return this.dialogSearchKey?null:{top:t.top_at,active:t.id==this.dialogId&&(t.search_msg_id==this.dialogMsgId||!this.dialogMsgId),operate:this.operateVisible&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},dialogSort(t,i){return t.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(t.top_at):t.todo_num>0||i.todo_num>0?i.todo_num-t.todo_num:t.extra_draft_has||i.extra_draft_has?i.extra_draft_has-t.extra_draft_has:$A.Date(i.last_at)-$A.Date(t.last_at)},openDialog(t){this.operateVisible||($A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")?this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:i})=>{$A.modalError(i)}):this.$store.dispatch("openDialog",t))},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).then(i=>{this.windowLandscape&&(this.tabActive="dialog")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.$set(t,"loading",!1)}))},tagField(t,i){switch($A.isJson(t)||(t={label:t}),i){case"style":return t.style||null;case"label":return t.label}return null},filterDialog(t){if(t.id>0&&t.id==this.dialogId||t.top_at||t.todo_num>0||$A.getDialogNum(t)>0)return!0;if(t.name===void 0||t.dialog_delete===1||t.hide||!t.last_at)return!1;if(t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0));if(5*86400+i<$A.Time())return!1}if(t.group_info.deleted_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0));if(2*86400+i<$A.Time())return!1}if(t.group_info.archived_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0));if(3*86400+i<$A.Time())return!1}}return!0},searchDialog(){const t=this.dialogSearchKey;t!=""&&(this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search",data:{key:t}}).then(({data:i})=>{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],a=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!a.includes(o.dialog_user.userid)&&a.push(o.dialog_user.userid)}),i.some(o=>{$A.leftExists(o.id,"u:")?a.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(i=>{this.dialogSearchLoad--}))},searchTagDialog(){this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search/tag"}).then(({data:t})=>{const i=[],e=[];this.dialogList.forEach(s=>{e.push(s),i.push(s.search_msg_id)}),t.some(s=>{(!s.last_msg||!i.includes(s.search_msg_id))&&e.push(Object.assign(s,{is_search:!0}))}),this.dialogSearchList=e}).finally(t=>{this.dialogSearchLoad--})},getContactsList(t){this.contactsLoad++;const i=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:i},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{i==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(a=>a.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{i==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.Time()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.Time()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,"").replace(/ /g," "))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.$nextTick(()=>{if(this.windowLandscape&&this.$refs.list){const t=this.$refs.list.querySelector(".active");t?$A.scrollIntoViewIfNeeded(t):this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))}})},handleLongpress(t,i){if(this.dialogSearchKey)return;const e=$A.getAttr(i,"data-id"),s=this.dialogList.find(a=>a.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const a=i.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${a.top+this.windowScrollY}px`,height:a.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t),this.$nextTick(this.scrollIntoActive)}).catch(({msg:t})=>{$A.modalError(t)})},handleReadClick(){this.$store.dispatch("showSpinner",600),this.$store.dispatch("dialogMsgMark",{type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread",dialog_id:this.operateItem.id}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},handleSilenceClick(){this.silenceDisabled(this.operateItem)||this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},handleHideClick(){this.$store.dispatch("call",{url:"dialog/hide",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.dialogId==this.operateItem.id&&this.$store.dispatch("openDialog",0),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},handleColorClick(t){this.$store.dispatch("call",{url:"dialog/msg/color",data:{dialog_id:this.operateItem.id,color:t}}).then(({data:i})=>{this.$store.dispatch("saveDialog",i)}).catch(({msg:i})=>{$A.modalError(i)})},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.routeName==="manage-messenger"&&this.$store.dispatch("getDialogAuto").catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"}}},h={};var $=m(v,f,_,!1,y,null,null,null);function y(t){for(let i in h)this[i]=h[i]}var vt=function(){return $.exports}();export{vt as default}; diff --git a/public/js/build/messenger.2e32994c.js b/public/js/build/messenger.2e32994c.js deleted file mode 100644 index e5826d647..000000000 --- a/public/js/build/messenger.2e32994c.js +++ /dev/null @@ -1 +0,0 @@ -import{m as u}from"./vuex.cc7cb26e.js";import{D as p}from"./DialogWrapper.5184c28a.js";import{l as g}from"./longpress.5305f240.js";import{l}from"./le5le-store.bd86c9e9.js";import{n as m}from"./app.f8a6fa5e.js";import"./index.04b74879.js";import"./quill-hi.a45c8e94.js";import"./quill-delta.a505f2bf.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.4c06f0f7.js";import"./lodash.isequal.d456a716.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f26fa3cb.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.23b1f28e.js";import"./vue.da9c4dc7.js";import"./ImgUpload.d82fa303.js";import"./view-design-hi.afe77d1e.js";import"./details.ef31cd47.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.059db614.js";var f=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[e("div",{staticClass:"search-pre"},[t.searchLoading?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1),t.tabActive==="dialog"?e("Input",{ref:"searchInput",attrs:{placeholder:t.$L(t.loadDialogs>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.dialogSearchKey,callback:function(s){t.dialogSearchKey=s},expression:"dialogSearchKey"}}):e("Input",{ref:"contactInput",attrs:{placeholder:t.$L("\u641C\u7D22"),clearable:""},on:{"on-keydown":t.onKeydown},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)]),t.tabActive==="dialog"&&!t.dialogSearchKey?e("div",{staticClass:"messenger-nav"},[e("EDropdown",{ref:"navMenu",staticClass:"nav-menu",attrs:{trigger:"click",placement:"bottom-start"},on:{command:t.onActive}},[e("div",{staticClass:"nav-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE634")])]),e("EDropdownMenu",{staticClass:"messenger-nav-menu",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.dialogMenus,function(s,a){return e("EDropdownItem",{key:a,attrs:{command:s.type}},[e("div",{staticClass:"messenger-nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),t._l(t.typeItems,function(s,a){return e("div",{key:a,class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])})],2):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{ref:"list",staticClass:"messenger-list",attrs:{"hide-bar":this.operateVisible},on:{"on-scroll":t.listScroll},nativeOn:{touchstart:function(s){return t.listTouch.apply(null,arguments)}}},[t.tabActive==="dialog"?e("ul",{ref:"ul",staticClass:"dialog"},[t.dialogList.length>0?t._l(t.dialogList,function(s,a){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:a,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),style:{"background-color":s.color},attrs:{"data-id":s.id},on:{click:function(o){return t.openDialog({dialog_id:s.id,dialog_msg_id:s.search_msg_id,search_msg_id:s.search_msg_id})}}},[s.type=="group"?[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:42}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):s.group_type=="okr"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(o){return o.color!="success"?[e("Tag",{attrs:{color:o.color,fade:!1},on:{"on-click":function(r){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(o.text)))])]:t._e()}),e("span",[t._v(t._s(s.name))]),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.formatTime(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.extra_draft_has&&s.id!=t.dialogId?[e("div",{staticClass:"last-draft"},[t._v("["+t._s(t.$L("\u8349\u7A3F"))+"]")]),e("div",{staticClass:"last-text"},[e("span",[t._v(t._s(t.formatDraft(s.extra_draft_content)))])])]:[s.type=="group"&&s.last_msg&&s.last_msg.userid?[s.last_msg.userid==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("\u4F60")))]):e("UserAvatar",{attrs:{userid:s.last_msg.userid,"show-name":!0,"show-icon":!1}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)))])])],s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2)}):t.dialogSearchLoad===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogSearchKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogSearchKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")]):t._e()],2):e("ul",{staticClass:"contacts"},[t.contactsFilter.length>0?[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(a,o){return e("li",{key:o,on:{click:function(r){return t.openContacts(a)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:30}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},t._l(a.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230"+t.contactsFilter.length+"\u4F4D\u8054\u7CFB\u4EBA")))]:[t._v(t._s(t.$L("\u5171"+t.contactsTotal+"\u4F4D\u8054\u7CFB\u4EBA")))]],2)]:t.contactsLoad==0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")]):t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",transferClassName:"scrollbar-hidden",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{staticClass:"messenger-dialog-operation",attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.top_at?"":"")}})])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleReadClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.$A.getDialogUnread(t.operateItem,!0)>0?"":"")}})])]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleSilenceClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.silence?"":"")}})])]),e("DropdownItem",{attrs:{disabled:!!t.operateItem.top_at},nativeOn:{click:function(s){return t.handleHideClick.apply(null,arguments)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u8BE5\u4F1A\u8BDD"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE881")])])]),t._l(t.taskColorList,function(s,a){return a<6?e("DropdownItem",{key:"c_"+a,attrs:{divided:a==0},nativeOn:{click:function(o){return t.handleColorClick(s.color)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(s.name))+" "),e("i",{staticClass:"taskfont color",style:{color:s.primary||"#ddd"},domProps:{innerHTML:t._s(s.color==(t.operateItem.color||"")?"":"")}})])]):t._e()})],2)],1)],1)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)])],1),t.activeNum>0&&t.routeName==="manage-messenger"?e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLandscape&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop(),location:"messenger"},on:{"on-active":t.scrollIntoActive}}):t._e()],1):t._e()])],1)},_=[];const d={menuHistory:[]},v={components:{DialogWrapper:p},directives:{longpress:g},data(){return{firstLoad:!0,activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogActive:"",dialogMenus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"},{type:"mark",name:"\u6807\u6CE8"},{type:"@",name:"@\u6211"}],dialogHistory:d.menuHistory,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,clickAgainSubscribe:null}},async beforeRouteEnter(t,i,e){d.menuHistory=await $A.IDBArray("dialogMenuHistory"),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),this.clickAgainSubscribe=l.Store.subscribe("clickAgainDialog",this.shakeUnread)},beforeDestroy(){this.clickAgainSubscribe&&(this.clickAgainSubscribe.unsubscribe(),this.clickAgainSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(this.firstLoad?0:1e3),this.firstLoad=!1,this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...u(["cacheDialogs","loadDialogs","dialogId","dialogMsgId","dialogMsgs","messengerSearchKey","appNotificationPermission","taskColorList"]),routeName(){return this.$route.name},typeItems(){const{dialogActive:t,dialogMenus:i,dialogHistory:e}=this,s=[];return this.dialogHistory.includes(t)?s.push(...this.dialogHistory):(s.push(""),t&&s.push(t),e.some(a=>{s.includes(a)||s.push(a)}),["project","task","user"].some(a=>{s.includes(a)||s.push(a)}),this.dialogHistory=s.slice(0,4),$A.IDBSave("dialogMenuHistory",this.dialogHistory)),this.dialogHistory.map(a=>i.find(o=>o.type==a))},dialogList(){const{dialogActive:t,dialogSearchKey:i,dialogSearchList:e}=this;if(e.length>0)return e.sort((a,o)=>(a.is_search===!0?1:0)-(o.is_search===!0?1:0));if(t==""&&i=="")return this.cacheDialogs.filter(a=>this.filterDialog(a)).sort(this.dialogSort);if(t=="mark"&&!i){const a=[];return this.dialogMsgs.filter(o=>o.tag).forEach(o=>{let r=$A.cloneJSON(this.cacheDialogs).find(n=>n.id==o.dialog_id);r&&(r.last_msg=o,r.search_msg_id=o.id,a.push(r))}),a}return this.cacheDialogs.filter(a=>{if(!this.filterDialog(a))return!1;if(i){const{name:o,pinyin:r,last_msg:n}=a;let c=`${o} ${r}`;if(n)switch(n.type){case"text":c+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":c+=` ${n.msg.name}`;break}if(!$A.strExists(c,i))return!1}else if(t)switch(t){case"project":case"task":if(t!=a.group_type)return!1;break;case"user":if(t!=a.type||a.bot)return!1;break;case"group":if(t!=a.type||["project","task"].includes(a.group_type))return!1;break;case"bot":if(!a.bot)return!1;break;case"@":if(!$A.getDialogMention(a))return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const t=[];return this.contactsFilter.some(i=>{let e=i.az?i.az.toUpperCase():"#",s=t.find(a=>a.az==e);s?s.list.findIndex(({userid:a})=>a==i.userid)===-1&&s.list.push(i):t.push({az:e,list:[i]})}),t},msgUnread(){return function(t){let i=0;return this.cacheDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break;case"group":if(t!=e.type||["project","task"].includes(e.group_type))return!1;break;case"bot":if(!e.bot)return!1;break;case"mark":return!1;case"@":return!1}i+=$A.getDialogNum(e)}),i}},searchLoading({tabActive:t,loadDialogs:i,dialogSearchLoad:e,contactsLoad:s}){return t==="dialog"?i>0||e>0:s>0}},watch:{$route:{handler({params:t}){if(["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction),t.dialog_id){this.tabActive="dialog";const i=$A.runNum(t.dialog_id);i>0&&this.openDialog(i),this.clickAgainSubscribe=l.Store.subscribe("clickAgainDialog",this.shakeUnread)}},immediate:!0},messengerSearchKey:{handler(t){this.$nextTick(i=>{this.dialogSearchKey=t.dialog,this.contactsKey=t.contacts})},deep:!0},dialogSearchKey(t){if(this.$store.state.messengerSearchKey.dialog=t,$A.loadVConsole(t)){this.dialogSearchKey="";return}this.tabActive==="dialog"&&/^info\.\d+$/.test(t)&&console.log(this.cacheDialogs.find(i=>i.id==t.replace("info.",""))),this.dialogSearchList=[],t!=""&&(this.__search_timer&&clearTimeout(this.__search_timer),this.__search_timer=setTimeout(this.searchDialog,600),this.dialogSearchLoad++,setTimeout(i=>this.dialogSearchLoad--,600))},contactsKey(t){this.$store.state.messengerSearchKey.contacts=t,t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},windowActive(t){this.updateDialogs(t?1e3:-1)},tabActive:{handler(t){t=="contacts"?($A.Time()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):this.updateDialogs(1e3)},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0},dialogActive(){this.dialogSearchList=[],this.dialogActive=="mark"&&!this.dialogSearchKey&&this.searchTagDialog()}},methods:{listTouch(){var t;(t=this.$refs.navMenu)!=null&&t.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onKeydown(t){var i,e;t.key==="Escape"&&((i=this.$refs.searchInput)==null||i.handleClear(),(e=this.$refs.contactInput)==null||e.handleClear())},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>e.todo_num>0)),t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(e[0]),requestAnimationFrame(s=>{e[0].classList.add("common-shake"),setTimeout(a=>{e[0].classList.remove("common-shake")},600)})}}},dialogClass(t){return this.dialogSearchKey?null:{top:t.top_at,active:t.id==this.dialogId&&(t.search_msg_id==this.dialogMsgId||!this.dialogMsgId),operate:this.operateVisible&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},dialogSort(t,i){return t.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(t.top_at):t.todo_num>0||i.todo_num>0?i.todo_num-t.todo_num:t.extra_draft_has||i.extra_draft_has?i.extra_draft_has-t.extra_draft_has:$A.Date(i.last_at)-$A.Date(t.last_at)},openDialog(t){this.operateVisible||($A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")?this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:i})=>{$A.modalError(i)}):this.$store.dispatch("openDialog",t))},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).then(i=>{this.windowLandscape&&(this.tabActive="dialog")}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.$set(t,"loading",!1)}))},tagField(t,i){switch($A.isJson(t)||(t={label:t}),i){case"style":return t.style||null;case"label":return t.label}return null},filterDialog(t){if(t.id>0&&t.id==this.dialogId||t.top_at||t.todo_num>0||$A.getDialogNum(t)>0)return!0;if(t.name===void 0||t.dialog_delete===1||t.hide||!t.last_at)return!1;if(t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0));if(5*86400+i<$A.Time())return!1}if(t.group_info.deleted_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0));if(2*86400+i<$A.Time())return!1}if(t.group_info.archived_at){let i=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0));if(3*86400+i<$A.Time())return!1}}return!0},searchDialog(){const t=this.dialogSearchKey;t!=""&&(this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search",data:{key:t}}).then(({data:i})=>{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],a=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!a.includes(o.dialog_user.userid)&&a.push(o.dialog_user.userid)}),i.some(o=>{$A.leftExists(o.id,"u:")?a.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(i=>{this.dialogSearchLoad--}))},searchTagDialog(){this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search/tag"}).then(({data:t})=>{const i=[],e=[];this.dialogList.forEach(s=>{e.push(s),i.push(s.search_msg_id)}),t.some(s=>{(!s.last_msg||!i.includes(s.search_msg_id))&&e.push(Object.assign(s,{is_search:!0}))}),this.dialogSearchList=e}).finally(t=>{this.dialogSearchLoad--})},getContactsList(t){this.contactsLoad++;const i=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:i},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{i==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(a=>a.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{i==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.Time()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.Time()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,"").replace(/ /g," "))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.$nextTick(()=>{if(this.windowLandscape&&this.$refs.list){const t=this.$refs.list.querySelector(".active");t?$A.scrollIntoViewIfNeeded(t):this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))}})},handleLongpress(t,i){if(this.dialogSearchKey)return;const e=$A.getAttr(i,"data-id"),s=this.dialogList.find(a=>a.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const a=i.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${a.top+this.windowScrollY}px`,height:a.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t),this.$nextTick(this.scrollIntoActive)}).catch(({msg:t})=>{$A.modalError(t)})},handleReadClick(){this.$store.dispatch("showSpinner",600),this.$store.dispatch("dialogMsgMark",{type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread",dialog_id:this.operateItem.id}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},handleSilenceClick(){this.silenceDisabled(this.operateItem)||this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},handleHideClick(){this.$store.dispatch("call",{url:"dialog/hide",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.dialogId==this.operateItem.id&&this.$store.dispatch("openDialog",0),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},handleColorClick(t){this.$store.dispatch("call",{url:"dialog/msg/color",data:{dialog_id:this.operateItem.id,color:t}}).then(({data:i})=>{this.$store.dispatch("saveDialog",i)}).catch(({msg:i})=>{$A.modalError(i)})},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.routeName==="manage-messenger"&&this.$store.dispatch("getDialogAuto").catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"}}},h={};var $=m(v,f,_,!1,y,null,null,null);function y(t){for(let i in h)this[i]=h[i]}var $t=function(){return $.exports}();export{$t as default}; diff --git a/public/js/build/password.82eec530.js b/public/js/build/password.b22d7fc3.js similarity index 79% rename from public/js/build/password.82eec530.js rename to public/js/build/password.b22d7fc3.js index f77e1500c..d849c91ec 100644 --- a/public/js/build/password.82eec530.js +++ b/public/js/build/password.b22d7fc3.js @@ -1 +1 @@ -import{m as a}from"./vuex.cc7cb26e.js";import{n as i}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,s=t.$createElement,r=t._self._c||s;return r("div",{staticClass:"setting-item submit"},[r("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(e){e.preventDefault()}}},[t.userInfo.changepass?r("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),r("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const n={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],newpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),r())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],checkpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):s!==this.formDatum.newpass?r(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):r()},required:!0,trigger:"change"}]}}},computed:{...a(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:s})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields()}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},o={};var l=i(n,m,p,!1,u,null,null,null);function u(t){for(let s in o)this[s]=o[s]}var Q=function(){return l.exports}();export{Q as default}; +import{m as a}from"./vuex.cc7cb26e.js";import{n as i}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,s=t.$createElement,r=t._self._c||s;return r("div",{staticClass:"setting-item submit"},[r("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(e){e.preventDefault()}}},[t.userInfo.changepass?r("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),r("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const n={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],newpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),r())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],checkpass:[{validator:(t,s,r)=>{s===""?r(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):s!==this.formDatum.newpass?r(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):r()},required:!0,trigger:"change"}]}}},computed:{...a(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:s})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields()}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},o={};var l=i(n,m,p,!1,u,null,null,null);function u(t){for(let s in o)this[s]=o[s]}var Q=function(){return l.exports}();export{Q as default}; diff --git a/public/js/build/personal.77b22863.js b/public/js/build/personal.f1b6bad4.js similarity index 78% rename from public/js/build/personal.77b22863.js rename to public/js/build/personal.f1b6bad4.js index 74baf038e..b0c9ab043 100644 --- a/public/js/build/personal.77b22863.js +++ b/public/js/build/personal.f1b6bad4.js @@ -1 +1 @@ -import{I as o}from"./ImgUpload.d82fa303.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as m}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.formData.userimg,callback:function(r){t.$set(t.formData,"userimg",r)},expression:"formData.userimg"}}),e("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200x200")))])],1),e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[e("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(r){t.$set(t.userInfo,"email",r)},expression:"userInfo.email"}})],1),e("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(r){t.$set(t.formData,"tel",r)},expression:"formData.tel"}})],1),e("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(r){t.$set(t.formData,"nickname",r)},expression:"formData.nickname"}})],1),e("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(r){t.$set(t.formData,"profession",r)},expression:"formData.profession"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const p={components:{ImgUpload:o},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:""},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C112\u4F4D\uFF01"),trigger:"change"}]}}},mounted(){this.initData()},computed:{...s(["userInfo","formLabelPosition","formLabelWidth"])},watch:{userInfo(){this.initData()}},methods:{initData(){this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{if(t){let a=$A.cloneJSON(this.formData);$A.count(a.userimg)==0&&(a.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:a}).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},i={};var f=m(p,n,l,!1,u,null,null,null);function u(t){for(let a in i)this[a]=i[a]}var V=function(){return f.exports}();export{V as default}; +import{I as o}from"./ImgUpload.b233effb.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as m}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.formData.userimg,callback:function(r){t.$set(t.formData,"userimg",r)},expression:"formData.userimg"}}),e("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200x200")))])],1),e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[e("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(r){t.$set(t.userInfo,"email",r)},expression:"userInfo.email"}})],1),e("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(r){t.$set(t.formData,"tel",r)},expression:"formData.tel"}})],1),e("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(r){t.$set(t.formData,"nickname",r)},expression:"formData.nickname"}})],1),e("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(r){t.$set(t.formData,"profession",r)},expression:"formData.profession"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const p={components:{ImgUpload:o},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:""},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C112\u4F4D\uFF01"),trigger:"change"}]}}},mounted(){this.initData()},computed:{...s(["userInfo","formLabelPosition","formLabelWidth"])},watch:{userInfo(){this.initData()}},methods:{initData(){this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{if(t){let a=$A.cloneJSON(this.formData);$A.count(a.userimg)==0&&(a.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:a}).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},i={};var f=m(p,n,l,!1,u,null,null,null);function u(t){for(let a in i)this[a]=i[a]}var V=function(){return f.exports}();export{V as default}; diff --git a/public/js/build/preview.2fd94df0.js b/public/js/build/preview.2fd94df0.js new file mode 100644 index 000000000..b8c634a36 --- /dev/null +++ b/public/js/build/preview.2fd94df0.js @@ -0,0 +1 @@ +import"./app.57070a0d.js";import{p as N}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";export{N as default}; diff --git a/public/js/build/preview.ac00254d.js b/public/js/build/preview.ac00254d.js deleted file mode 100644 index 7bb7be87c..000000000 --- a/public/js/build/preview.ac00254d.js +++ /dev/null @@ -1 +0,0 @@ -import"./app.f8a6fa5e.js";import{p as N}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";export{N as default}; diff --git a/public/js/build/pro.3ef8a217.js b/public/js/build/pro.3ef8a217.js new file mode 100644 index 000000000..0eabd8b80 --- /dev/null +++ b/public/js/build/pro.3ef8a217.js @@ -0,0 +1 @@ +import{n as p,l as o}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var r=this,t=r.$createElement,m=r._self._c||t;return m("div")},n=[];const l={mounted(){o==="zh"||o==="zh-CHT"?window.location.href=$A.mainUrl("site/zh/price.html"):window.location.href=$A.mainUrl("site/en/price.html")}},i={};var a=p(l,e,n,!1,s,null,null,null);function s(r){for(let t in i)this[t]=i[t]}var P=function(){return a.exports}();export{P as default}; diff --git a/public/js/build/pro.5e4dad3d.js b/public/js/build/pro.5e4dad3d.js deleted file mode 100644 index ed07bd9ed..000000000 --- a/public/js/build/pro.5e4dad3d.js +++ /dev/null @@ -1 +0,0 @@ -import{n as p,l as o}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var e=function(){var r=this,t=r.$createElement,m=r._self._c||t;return m("div")},n=[];const l={mounted(){o==="zh"||o==="zh-CHT"?window.location.href=$A.mainUrl("site/zh/price.html"):window.location.href=$A.mainUrl("site/en/price.html")}},i={};var a=p(l,e,n,!1,s,null,null,null);function s(r){for(let t in i)this[t]=i[t]}var P=function(){return a.exports}();export{P as default}; diff --git a/public/js/build/project.7145e58b.js b/public/js/build/project.7145e58b.js new file mode 100644 index 000000000..63125e88c --- /dev/null +++ b/public/js/build/project.7145e58b.js @@ -0,0 +1 @@ +import{m as h,a as g}from"./vuex.cc7cb26e.js";import{D as E}from"./vuedraggable.c8fae132.js";import{T as M,P as O}from"./ProjectLog.d2e94cb9.js";import{l as k}from"./le5le-store.b40f9152.js";import{n as d,T as F,U as W,g as z}from"./app.57070a0d.js";import{D as R}from"./index.92bfd6b8.js";import{U}from"./tip.e9c85d1f.js";import{D as B}from"./DialogWrapper.4f742dbc.js";import{l as V}from"./longpress.5305f240.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./sortablejs.8b819437.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./quill-hi.c85eceed.js";import"./quill-delta.72524c38.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.91f4d524.js";import"./lodash.isequal.0dd437dc.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.beaa1617.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.f3f58d09.js";import"./ImgUpload.b233effb.js";import"./details.663d818a.js";var H=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.rowMode?s("Row",{staticClass:"task-add-row"},[s("Col",{class:["row-add",t.active?"active":""],attrs:{span:"12"}},[s("div",{staticClass:"add-input",on:{mouseenter:function(a){t.mouseEnter=!0},mouseleave:function(a){t.mouseEnter=!1}}},[s("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(a){t.onFocus=!0},"on-blur":function(a){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}}),t.parentId==0?s("div",{staticClass:"priority"},[s("ul",t._l(t.taskPriority,function(a,o){return s("li",{key:o},[t.active?s("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(a)}},[s("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.addData.p_name==a.name?"":"")},on:{click:function(i){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1):t._e()],1),s("div",{staticClass:"add-btn",on:{click:t.openAdd}},[s("Icon",{staticClass:"add-icon",attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1)]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}})],1):s("div",{class:["task-add-simple",t.active?"active":""],on:{mouseenter:function(a){t.mouseEnter=!0},mouseleave:function(a){t.mouseEnter=!1}}},[s("Input",{ref:"input",attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(a){t.onFocus=!0},"on-blur":function(a){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}}),s("div",{staticClass:"add-placeholder",on:{click:t.openAdd}},[s("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1),s("div",{staticClass:"priority"},[s("ul",t._l(t.taskPriority,function(a,o){return s("li",{key:o},[t.active?s("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(a)}},[s("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.addData.p_name==a.name?"":"")},on:{click:function(i){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},K=[];const G={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{addData:{name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},active:!1,onFocus:!1,mouseEnter:!1}},mounted(){this.autoActive&&this.$nextTick(this.openAdd)},computed:{...h(["taskPriority"]),typeName(){return this.parentId>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}},watch:{active(t){t||this.$emit("on-close")},mouseEnter(){this.chackClose()},onFocus(){this.chackClose()}},methods:{getData(){return this.parentId>0?{task_id:this.parentId,name:this.addData.name}:(this.addData.project_id=this.projectId||this.$store.state.projectId,this.addData.column_id=this.columnId||"",this.addData.owner=[this.userId],this.addData.top=this.addTop?1:0,$A.cloneJSON(this.addData))},openAdd(){this.active=!0,this.defaultPriority(),this.$nextTick(()=>{this.$refs.input.focus()})},chackClose(){this.mouseEnter||this.onFocus||this.addData.name||(this.active=!1)},onPriority(){this.$emit("on-priority",this.getData()),this.active=!1},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onAdd(){if(!this.addData.name){$A.messageWarning("\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0");return}this.loadIng++;let t=this.parentId>0?"taskAddSub":"taskAdd";this.$store.dispatch(t,this.getData()).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.active=!1,this.addData={name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]}}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--})},taskPriorityContent(t){let e=$A.runNum(t.days);return e<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+e+this.$L("\u5929")+")"},choosePriority(t){if($A.runNum(t.days)>0){let e=new Date,s=new Date(new Date().setDate(e.getDate()+$A.runNum(t.days)));this.$set(this.addData,"times",$A.date2string([e,s]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color),this.$nextTick(()=>{this.$refs.input.focus()})},defaultPriority(){this.taskPriority.length!==0&&(this.addData.p_name||this.choosePriority(this.taskPriority[0]))}}},w={};var Y=d(G,H,K,!1,X,null,null,null);function X(t){for(let e in w)this[e]=w[e]}var N=function(){return Y.exports}(),J=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-rows"},[t._l(t.list,function(a,o){return s("div",{key:o},[s("Row",{staticClass:"task-row",style:a.color?{backgroundColor:a.color,borderBottomColor:a.color}:{}},[a.p_name?s("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):t._e(),s("Col",{class:["row-name",a.complete_at?"complete":""],attrs:{span:"12"}},[a.sub_num>0&&a.sub_top!==!0||a.parent_id===0&&t.fastAddTask?s("Icon",{class:["sub-icon",t.taskOpen[a.id]?"active":""],attrs:{type:"ios-arrow-forward"},on:{click:function(i){return t.getSublist(a)}}}):t._e(),s("TaskMenu",{ref:`taskMenu_${a.id}`,refInFor:!0,attrs:{task:a}}),s("div",{staticClass:"item-title",on:{click:function(i){return t.openTask(a)}}},[a.flow_item_name?s("span",{class:a.flow_item_status,on:{click:function(i){return i.stopPropagation(),t.openMenu(i,a)}}},[t._v(t._s(a.flow_item_name))]):t._e(),a.sub_top===!0?s("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),a.sub_my&&a.sub_my.length>0?s("span",[t._v("+"+t._s(a.sub_my.length))]):t._e(),t._v(" "+t._s(a.name)+" ")]),s("div",{staticClass:"item-icons",on:{click:function(i){return t.openTask(a)}}},[a.desc?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),a.file_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71C")]),s("em",[t._v(t._s(a.file_num))])]):t._e(),a.msg_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71E")]),s("em",[t._v(t._s(a.msg_num))])]):t._e(),a.sub_num>0?s("div",{staticClass:"item-icon",on:{click:function(i){return i.stopPropagation(),t.getSublist(a)}}},[s("i",{staticClass:"taskfont"},[t._v("\uE71F")]),s("em",[t._v(t._s(a.sub_complete)+"/"+t._s(a.sub_num))])]):t._e()])],1),s("Col",{staticClass:"row-column",attrs:{span:"3"}},[s("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:a.sub_top===!0},on:{command:function(i){return t.dropTask(a,i)}}},[s("div",{staticClass:"task-column"},[t._v(t._s(t.columnName(a.column_id)))]),s("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.columnList(a.project_id),function(i){return s("EDropdownItem",{key:i.id,attrs:{command:"column::"+i.id}},[t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-priority",attrs:{span:"3"}},[s("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:a.sub_top===!0},on:{command:function(i){return t.dropTask(a,i)}}},[s("TaskPriority",{attrs:{backgroundColor:a.p_color}},[t._v(t._s(a.p_name))]),s("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(i,r){return s("EDropdownItem",{key:r,attrs:{command:"priority::"+r}},[s("i",{staticClass:"taskfont",style:{color:i.color},domProps:{innerHTML:t._s(i.p_name==i.name?"":"")}}),t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-user",attrs:{span:"3"}},[s("ul",{on:{click:function(i){return t.openTask(a)}}},[t._l(t.ownerUser(a.task_user),function(i,r){return r<3?s("li",{key:r},[s("UserAvatar",{attrs:{userid:i.userid,size:"32",borderWitdh:2,borderColor:a.color,showName:t.ownerUser(a.task_user).length===1}})],1):t._e()}),t.ownerUser(a.task_user).length===0?s("li",{staticClass:"no-owner"},[s("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),t.openTask(a,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2)]),s("Col",{staticClass:"row-time",attrs:{span:"3"}},[!a.complete_at&&a.end_at?s("ETooltip",{class:["task-time",a.today?"today":"",a.overdue?"overdue":""],attrs:{disabled:t.$isEEUiApp||t.windowTouch,"open-delay":600,content:a.end_at}},[s("div",{on:{click:function(i){return t.openTask(a)}}},[t._v(t._s(t.expiresFormat(a.end_at)))])]):t.showCompleteAt&&a.complete_at?s("div",{attrs:{title:a.complete_at}},[t._v(t._s(t.completeAtFormat(a.complete_at)))]):t._e()],1)],1),t.taskOpen[a.id]===!0?s("TaskRow",{attrs:{list:t.subTask(a.id),"parent-id":a.id,"fast-add-task":a.parent_id===0&&t.fastAddTask,"open-key":t.openKey},on:{command:t.dropTask}}):t._e()],1)}),t.fastAddTask||t.parentId>0?s("TaskAddSimple",{attrs:{"parent-id":t.parentId,"row-mode":""},on:{"on-priority":t.onPriority}}):t._e()],2)},q=[];const Q={name:"TaskRow",components:{TaskMenu:F,TaskAddSimple:N,TaskPriority:M},props:{list:{type:Array,default:()=>[]},parentId:{type:Number,default:0},fastAddTask:{type:Boolean,default:!1},openKey:{type:String,default:"default"},showCompleteAt:{type:Boolean,default:!1}},data(){return{nowTime:$A.Time(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...h(["cacheTasks","taskPriority","cacheColumns"]),subTask(){return function(t){return this.cacheTasks.filter(e=>e.archived_at?!1:e.parent_id==t).sort((e,s)=>e.id-s.id)}}},methods:{columnName(t){const e=this.cacheColumns.find(({id:s})=>s==t);return e?e.name:""},dropTask(t,e){const s=this.$refs[`taskMenu_${t.id}`];if(!!s){if($A.leftExists(e,"column::")){s[0].updateTask({column_id:$A.leftDelete(e,"column::")});return}if($A.leftExists(e,"priority::")){let a=this.taskPriority[parseInt($A.leftDelete(e,"priority::"))];a&&s[0].updateTask({p_level:a.priority,p_name:a.name,p_color:a.color})}}},onPriority(t){this.$emit("on-priority",t)},getSublist(t){if(t.sub_top===!0){this.openTask(t);return}if(this.taskOpen[t.id]===!0){this.$set(this.taskOpen,t.id,!1);return}this.taskLoad[t.id]!==!0&&(this.$set(this.taskLoad,t.id,!0),this.$store.dispatch("getTaskForParent",t.id).then(()=>{this.$set(this.taskLoad,t.id,!1),this.$set(this.taskOpen,t.id,!0)}).catch(({msg:e})=>{$A.modalError(e),this.$set(this.taskLoad,t.id,!1)}))},columnList(t){return this.cacheColumns.filter(({project_id:e})=>e==t)},openTask(t,e){this.$store.dispatch("openTask",t),e===!0&&setTimeout(()=>{k.Store.set("receiveTask",!0)},300)},openMenu(t,e){const s=this.$refs[`taskMenu_${e.id}`];s&&s[0].handleClick(t)},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,s)=>e.id-s.id)},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},completeAtFormat(t){let e=$A.Date(t,!0);return $A.formatDate("Y")===$A.formatDate("Y",e)?$A.formatDate("m-d H:i",e):$A.formatDate("Y-m-d",e)}}},y={};var Z=d(Q,J,q,!1,tt,null,null,null);function tt(t){for(let e in y)this[e]=y[e]}var et=function(){return Z.exports}(),st=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-archived"},[s("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u4EFB\u52A1"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):t._e()],1)]),s("div",{staticClass:"search-container lr"},[s("ul",[s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),s("div",{staticClass:"search-content"},[s("Input",{attrs:{placeholder:t.$L("ID\u3001\u4EFB\u52A1\u540D..."),clearable:""},model:{value:t.keys.name,callback:function(a){t.$set(t.keys,"name",a)},expression:"keys.name"}})],1)]),s("li",{staticClass:"search-button"},[s("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),s("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?s("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):s("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),s("div",{staticClass:"table-page-box"},[s("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),s("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},at=[];const ot={name:"TaskArchived",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:s})=>t("TableAction",{props:{column:s,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",{on:{"on-click":()=>{this.$store.dispatch("openTask",e)}}},e.name)},{title:this.$L("\u5B8C\u6210\u65F6\u95F4"),key:"complete_at",width:168,render:(t,{row:e})=>t("div",{style:{color:e.complete_at?"":"#f00"}},e.complete_at||this.$L("\u672A\u5B8C\u6210"))},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:100,render:(t,{row:e})=>e.archived_userid?t("UserAvatar",{props:{userid:e.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,e)=>{if(this.cacheTasks.find(a=>a.id==e.row.id&&!a.archived_at))return t("div",{style:{color:"#888"}},this.$L("\u5DF2\u8FD8\u539F"));const s=[t("span",{style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{click:()=>{this.$store.dispatch("openTask",e.row)}}},this.$L("\u67E5\u770B")),t("Poptip",{props:{title:e.row.__restorePoptipTitle,confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88"),value:e.row.__restorePoptipShow,width:220},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)},"on-popper-hide":()=>{e.row.__restorePoptipLoadIng=!1,e.row.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.row.__restorePoptipShow=!1}}},[t("span",{on:{click:a=>{a.stopPropagation(),e.row.__restorePoptipLoadIng=!0,this.$store.dispatch("call",{url:"project/column/one",data:{column_id:e.row.column_id,deleted:"all"}}).then(({data:o})=>{o.deleted_at&&(e.row.__restorePoptipTitle=this.$L("\u68C0\u6D4B\u5230\u6240\u5C5E\u7684\u4EFB\u52A1\u5217\u8868\u5DF2\u88AB\u5220\u9664\uFF0C\u8BE5\u64CD\u4F5C\u5C06\u4F1A\u8FD8\u539F\u4EFB\u52A1\u5217\u8868\uFF0C\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F")),e.row.__restorePoptipShow=!0}).catch(({msg:o})=>{$A.modalError({content:o})}).finally(o=>{e.row.__restorePoptipLoadIng=!1})}}},[e.row.__restorePoptipLoadIng?t("Loading",{style:{width:"26px",height:"15px"}}):this.$L("\u8FD8\u539F")])]),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...h(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,archived:"yes",sorts:{archived_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data.map(e=>(e.__restorePoptipLoadIng=!1,e.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.__restorePoptipShow=!1,e)),this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("archivedTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})},delete(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists()}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},b={};var it=d(ot,st,at,!1,rt,null,null,null);function rt(t){for(let e in b)this[e]=b[e]}var nt=function(){return it.exports}(),lt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-workflow"},[s("div",{staticClass:"workflow-title"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):s("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getData}})],1)]),t.list.length>0?s("div",{staticClass:"workflow-content"},[s("Collapse",{attrs:{accordion:""},model:{value:t.openIndex,callback:function(a){t.openIndex=a},expression:"openIndex"}},t._l(t.list,function(a){return s("Panel",{key:a.id,attrs:{name:"index_"+a.id}},[s("div",{staticClass:"workflow-item"},[s("div",{staticClass:"workflow-name"},[t._v(t._s(a.name))]),s("div",{staticClass:"workflow-status"},t._l(a.project_flow_item,function(o){return s("div",{class:o.status},[t._v(t._s(o.name))])}),0),s("div",{staticClass:"workflow-save",on:{click:function(o){o.stopPropagation()}}},[t.contrast(a.project_flow_item,a.project_flow_bak)?[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(o){return t.onSave(a)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a.id>0?s("Button",{attrs:{disabled:t.loadIng>0,type:"primary",ghost:""},on:{click:function(o){return t.onReduction(a,o)}}},[t._v(t._s(t.$L("\u8FD8\u539F")))]):t._e()]:t._e(),s("Button",{attrs:{disabled:t.loadIng>0,type:"error",ghost:""},on:{click:function(o){return t.onDelete(a)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],2)]),s("div",{staticClass:"taskflow-config",attrs:{slot:"content"},slot:"content"},[s("div",{staticClass:"taskflow-config-table"},[s("div",{staticClass:"taskflow-config-table-left-container"},[s("div",{staticClass:"taskflow-config-table-column-header left-header"},[t._v(t._s(t.$L("\u914D\u7F6E\u9879")))]),s("div",{ref:`overlay_${a.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u8BBE\u7F6E\u72B6\u6001\u4E3A")))]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u5F00\u59CB\u72B6\u6001")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u9ED8\u8BA4\u72B6\u6001")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EF\u8BBE\u7F6E\u591A\u4E2A\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EA\u80FD\u8BBE\u7F6E\u5355\u4E2A\u72B6\u6001\u4E3A\u9A8C\u6536/\u6D4B\u8BD5")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u7ED3\u675F\u72B6\u6001")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u8BE5\u72B6\u6001\u4E0B\u4EFB\u52A1\u81EA\u52A8\u6807\u8BB0\u5B8C\u6210")))])])])]),s("div",{staticClass:"taskflow-config-table-block hr"},[s("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u53EF\u6D41\u8F6C\u5230")))]),t._l(a.project_flow_item,function(o){return s("div",{staticClass:"taskflow-config-table-block-item"},[s("span",{staticClass:"transform-status-name"},[t._v(t._s(o.name))])])})],2)])]),s("div",{staticClass:"taskflow-config-table-right-container"},[s("Draggable",{staticClass:"taskflow-config-table-list-wrapper",attrs:{list:a.project_flow_item,animation:150,disabled:t.$isEEUiApp||t.windowTouch,tag:"div",draggable:".column-border"},on:{sort:function(o){}}},[t._l(a.project_flow_item,function(o){return s("div",{staticClass:"taskflow-config-table-status-column column-border",class:o.status},[s("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[s("div",{staticClass:"status-label-with-menu",class:o.status},[s("div",{staticClass:"name"},[t._v(t._s(t.$L(o.name)))]),s("EDropdown",{staticClass:"more",class:{opacity:o.userids.length>0||o.columnid>0},attrs:{trigger:"click"},on:{command:function(i){return t.onMore(i,o)}}},[s("div",{staticClass:"more-icon"},[s("Badge",{attrs:{dot:o.userids.length>0||o.columnid>0}},[s("Icon",{attrs:{type:"ios-more"}})],1)],1),s("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[o.userids.length>0?s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"users"},t._l(o.userids,function(i,r){return s("UserAvatar",{key:r,attrs:{userid:i,size:28,borderWitdh:1,showName:o.userids.length===1}})}),1)]):t._e(),s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-settings"}}),s("Badge",{attrs:{dot:o.userids.length>0||o.columnid>0}},[t._v(" "+t._s(t.$L("\u72B6\u6001\u8BBE\u7F6E"))+" ")])],1)]),s("EDropdownItem",{attrs:{command:"name"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539\u540D\u79F0"))+" ")],1)]),s("EDropdownItem",{attrs:{command:"remove"}},[s("div",{staticClass:"item delete"},[s("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)])],1)],1)],1)]),s("div",{ref:`overlay_${a.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("RadioGroup",{model:{value:o.status,callback:function(i){t.$set(o,"status",i)},expression:"item.status"}},[s("Radio",{attrs:{label:"start"}},[s("span")]),s("Radio",{attrs:{label:"progress"}},[s("span")]),s("Radio",{attrs:{label:"test"}},[s("span")]),s("Radio",{attrs:{label:"end"}},[s("span")])],1)],1),s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("CheckboxGroup",{on:{"on-change":function(i){return t.onTurns(o)}},model:{value:o.turns,callback:function(i){t.$set(o,"turns",i)},expression:"item.turns"}},t._l(a.project_flow_item,function(i){return s("Checkbox",{key:i.id,attrs:{label:i.id,disabled:i.id==o.id}},[s("span")])}),1)],1)])])}),s("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(o){return t.onAdd(a)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u72B6\u6001")))])],2)],1)])])])}),1)],1):t.loadIng==0?s("div",{staticClass:"workflow-no"},[t._v(" "+t._s(t.$L("\u5F53\u524D\u9879\u76EE\u8FD8\u6CA1\u6709\u521B\u5EFA\u5DE5\u4F5C\u6D41"))+" "),s("Button",{attrs:{type:"primary"},on:{click:t.onCreate}},[t._v(t._s(t.$L("\u521B\u5EFA\u5DE5\u4F5C\u6D41")))])],1):t._e(),s("Modal",{attrs:{styles:{width:"90%",maxWidth:"640px"},title:`${t.$L("\u72B6\u6001\u8BBE\u7F6E")} (${t.settingData.name})`,"mask-closable":!1},model:{value:t.userShow,callback:function(a){t.userShow=a},expression:"userShow"}},[s("Form",{attrs:{model:t.settingData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[s("UserSelect",{attrs:{"project-id":t.projectId,"multiple-max":5,title:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.settingData.userids,callback:function(a){t.$set(t.settingData,"userids",a)},expression:"settingData.userids"}})],1),s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[s("RadioGroup",{model:{value:t.settingData.usertype,callback:function(a){t.$set(t.settingData,"usertype",a)},expression:"settingData.usertype"}},[s("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.settingData.usertype=="replace"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):t.settingData.usertype=="merge"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u72B6\u6001\u7684\u4EBA\u5458\uFF09\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u6DFB\u52A0\u72B6\u6001\u8D1F\u8D23\u4EBA\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u3002`)))])],1),s("FormItem",{attrs:{prop:"userlimit",label:t.$L("\u9650\u5236\u8D1F\u8D23\u4EBA")}},[s("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.settingData.userlimit,callback:function(a){t.$set(t.settingData,"userlimit",a)},expression:"settingData.userlimit"}}),t.settingData.userlimit===1?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))]):s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))])],1)],1)]),s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u5173\u8054\u5217\u8868")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u5173\u8054\u5217\u8868")}},[s("Select",{attrs:{placeholder:t.$L("\u9009\u62E9\u5173\u8054\u5217\u8868"),transfer:""},model:{value:t.settingData.columnid,callback:function(a){t.$set(t.settingData,"columnid",a)},expression:"settingData.columnid"}},t._l(t.columnList,function(a,o){return s("Option",{key:o,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1),s("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u81EA\u52A8\u5C06\u4EFB\u52A1\u79FB\u52A8\u81F3\u5173\u8054\u5217\u8868\u3002`))+" "),t.settingData.columnid?s("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){t.settingData.columnid=0}}},[t._v(t._s(t.$L("\u53D6\u6D88\u5173\u8054")))]):t._e()])],1)],1)])]),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(a){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary"},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1)],1)},ct=[];const dt={name:"ProjectWorkflow",components:{UserSelect:W,Draggable:E},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,settingData:{}}},mounted(){},computed:{...h(["cacheColumns"]),columnList({projectId:t,cacheColumns:e}){return e.filter(({project_id:s})=>s==t).sort((s,a)=>s.sort!=a.sort?s.sort-a.sort:s.id-a.id).map(s=>({id:s.id,name:s.name}))}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{this.list=t.map(e=>(e.project_flow_bak=JSON.stringify(e.project_flow_item),e)),this.openIndex=this.list.length===1?"index_"+this.list[0].id:"",this.$nextTick(this.syncScroller)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},syncScroller(){this.list.some(t=>{this.$refs[`overlay_${t.id}`]&&this.$refs[`overlay_${t.id}`].some(e=>{Object.keys(e.attributes).includes("sync-scroller")||(e.setAttribute("sync-scroller",!0),e.addEventListener("scroll",({target:s})=>{let a=s.scrollTop,o=s.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(i=>{i!=e&&i.scrollTo(o,a)})})}))})})},contrast(t,e){return JSON.stringify(t)!=e},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:"\u5F85\u5904\u7406",status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-11,name:"\u8FDB\u884C\u4E2D",status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-12,name:"\u5F85\u6D4B\u8BD5",status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-13,name:"\u5DF2\u5B8C\u6210",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-14,name:"\u5DF2\u53D6\u6D88",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0}]}),this.openIndex="index_"+t,this.$nextTick(this.syncScroller)},onDelete(t){$A.modalConfirm({title:"\u5220\u9664\u5DE5\u4F5C\u6D41",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5DE5\u4F5C\u6D41\u5417\uFF1F",loading:!0,onOk:()=>{if(t.id>0)return new Promise((s,a)=>{this.loadIng++,this.$store.dispatch("call",{url:"project/flow/delete",data:{project_id:this.projectId}}).then(({msg:o})=>{s(o);let i=this.list.findIndex(({id:r})=>r==t.id);i>-1&&this.list.splice(i,1)}).catch(({msg:o})=>{a(o)}).finally(o=>{this.loadIng--})});const e=this.list.findIndex(({id:s})=>s==t.id);e>-1&&this.list.splice(e,1)}})},onMore(t,e){switch(t){case"user":this.$set(this.settingData,"id",e.id),this.$set(this.settingData,"name",e.name),this.$set(this.settingData,"userids",e.userids),this.$set(this.settingData,"usertype",e.usertype),this.$set(this.settingData,"userlimit",e.userlimit),this.$set(this.settingData,"columnid",e.columnid),this.userShow=!0;break;case"name":this.onName(e);break;case"remove":this.onRemove(e);break}},onUser(){this.userShow=!1,this.list.some(t=>{let e=t.project_flow_item.find(s=>s.id==this.settingData.id);e&&(this.$set(e,"userids",this.settingData.userids),this.$set(e,"usertype",this.settingData.usertype),this.$set(e,"userlimit",this.settingData.userlimit),this.$set(e,"columnid",this.settingData.columnid))})},onName(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0";this.$set(t,"name",e)}})},onRemove(t){this.list.some(e=>{let s=e.project_flow_item.findIndex(({id:a})=>a==t.id);s>-1&&e.project_flow_item.splice(s,1)})},onTurns(t){this.$set(t,"turns",t.turns.sort())},onAdd(t){$A.modalInput({title:"\u6DFB\u52A0\u72B6\u6001",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0";const s=$A.randNum(1e5,999999)*-1,a=t.project_flow_item.map(({id:o})=>o);t.project_flow_item.push({id:s,name:e,status:"end",turns:a,userids:[],usertype:"add",userlimit:0,columnid:0}),t.project_flow_item.some(o=>{o.turns.push(s)})}})},onReduction(t){this.$set(t,"project_flow_item",JSON.parse(t.project_flow_bak))},onSave(t){let e=0;t.project_flow_item.some(s=>{s.sort=e++}),this.loadIng++,this.$store.dispatch("call",{url:"project/flow/save",data:{project_id:this.projectId,flows:t.project_flow_item},method:"post"}).then(({data:s,msg:a})=>{$.messageSuccess(a),s.project_flow_bak=JSON.stringify(s.project_flow_item);let o=this.list.findIndex(({id:i})=>i==t.id);o>-1?this.list.splice(o,1,s):this.list.push(s),this.openIndex="index_"+s.id,this.$nextTick(this.syncScroller)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})},saveAll(){this.list.some(t=>{this.contrast(t.project_flow_item,t.project_flow_bak)&&this.onSave(t)})}}},C={};var ut=d(dt,lt,ct,!1,pt,null,null,null);function pt(t){for(let e in C)this[e]=C[e]}var ht=function(){return ut.exports}(),mt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-permission"},[s("div",{staticClass:"permission-title"},[t._v(" "+t._s(t.$L("\u6743\u9650\u8BBE\u7F6E"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):s("Icon",{attrs:{type:"ios-refresh"},on:{click:function(a){return t.getData()}}})],1)]),s("div",{staticClass:"permission-content"},[s("Form",{attrs:{model:t.formData,"label-width":"90","label-position":"right"}},[s("div",{staticClass:"project-permission-title"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5217\u6743\u9650"))+":")]),s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_add,callback:function(a){t.$set(t.formData,"task_list_add",a)},expression:"formData.task_list_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_update,callback:function(a){t.$set(t.formData,"task_list_update",a)},expression:"formData.task_list_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_remove,callback:function(a){t.$set(t.formData,"task_list_remove",a)},expression:"formData.task_list_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u6392\u5E8F\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_sort,callback:function(a){t.$set(t.formData,"task_list_sort",a)},expression:"formData.task_list_sort"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("div",{staticClass:"project-permission-title"},[t._v(t._s(t.$L("\u4EFB\u52A1\u6743\u9650"))+":")]),s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_add,callback:function(a){t.$set(t.formData,"task_add",a)},expression:"formData.task_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_update,callback:function(a){t.$set(t.formData,"task_update",a)},expression:"formData.task_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u72B6\u6001")}},[s("CheckboxGroup",{model:{value:t.formData.task_status,callback:function(a){t.$set(t.formData,"task_status",a)},expression:"formData.task_status"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5F52\u6863\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_archived,callback:function(a){t.$set(t.formData,"task_archived",a)},expression:"formData.task_archived"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_remove,callback:function(a){t.$set(t.formData,"task_remove",a)},expression:"formData.task_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u79FB\u52A8\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_move,callback:function(a){t.$set(t.formData,"task_move",a)},expression:"formData.task_move"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)],1),s("div",{staticClass:"project-permission-footer",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.updateData}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),s("Button",{attrs:{type:"default"},on:{click:t.onClose}},[t._v(t._s(t.$L("\u53D6\u6D88")))])],1)])},ft=[];const _t={name:"ProjectPermission",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,formData:{project_task_list:[],task_add:[],task_update:[],task_status:[],task_archived:[],task_remove:[],task_move:[]}}},mounted(){},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission",data:{project_id:this.projectId}}).then(({data:t})=>{this.formData=t.permissions}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},updateData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission/update",method:"post",data:{project_id:this.projectId,...this.formData}}).then(({data:t})=>{this.formData=t.permissions,this.$Message.success(this.$L("\u4FEE\u6539\u6210\u529F"))}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onClose(){this.$emit("close")}}},D={};var vt=d(_t,mt,ft,!1,$t,null,null,null);function $t(t){for(let e in D)this[e]=D[e]}var kt=function(){return vt.exports}(),gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-deleted"},[s("div",{staticClass:"deleted-title"},[t._v(" "+t._s(t.$L("\u5220\u9664\u7684\u4EFB\u52A1"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):t._e()],1)]),s("div",{staticClass:"search-container lr"},[s("ul",[s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),s("div",{staticClass:"search-content"},[s("Input",{attrs:{placeholder:t.$L("ID\u3001\u4EFB\u52A1\u540D..."),clearable:""},model:{value:t.keys.name,callback:function(a){t.$set(t.keys,"name",a)},expression:"keys.name"}})],1)]),s("li",{staticClass:"search-button"},[s("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),s("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?s("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):s("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),s("div",{staticClass:"table-page-box"},[s("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),s("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},wt=[];const yt={name:"TaskDeleted",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:s})=>t("TableAction",{props:{column:s,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",e.name)},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u5220\u9664\u65F6\u95F4"),key:"deleted_at",width:168},{title:this.$L("\u5220\u9664\u4EBA\u5458"),key:"deleted_userid",minWidth:100,render:(t,{row:e})=>e.deleted_userid?t("UserAvatar",{props:{userid:e.deleted_userid,size:24,showName:!0}}):t("span","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,e)=>{const s=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)}}},this.$L("\u8FD8\u539F"))];return t("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...h(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,deleted:"yes",sorts:{deleted_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},L={};var bt=d(yt,gt,wt,!1,Ct,null,null,null);function Ct(t){for(let e in L)this[e]=L[e]}var Dt=function(){return bt.exports}(),Lt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"common-gantt"},[s("div",{staticClass:"gantt-left",style:{width:t.menuWidth+"px"}},[s("div",{staticClass:"gantt-title"},[s("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))])]),s("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(a){t.mouseType="item"}}},t._l(t.lists,function(a,o){return s("li",{key:o},[a.overdue?s("div",{staticClass:"item-overdue",on:{click:function(i){return t.clickItem(a)}}},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),s("div",{staticClass:"item-title",class:{complete:a.complete,overdue:a.overdue},on:{click:function(i){return t.clickItem(a)}}},[t._v(t._s(a.label))]),s("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(i){return t.scrollPosition(o)}}})],1)}),0)]),s("div",{ref:"ganttRight",staticClass:"gantt-right"},[s("div",{staticClass:"gantt-chart"},[s("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(a,o){return s("li",{key:o,style:t.monthStyle(o)},[s("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(o)))])])}),0),s("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(a,o){return s("li",{key:o,style:t.dateStyle(o)},[s("div",{staticClass:"date-format"},[s("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(o,"day")))]),t.dateWidth>46?s("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(o,"week")))]):t._e()])])}),0),s("ul",{ref:"ganttTimeline",staticClass:"gantt-timeline",on:{scroll:t.timelineScrollListener,mouseenter:function(a){t.mouseType="timeline"}}},t._l(t.lists,function(a,o){return s("li",{key:o},[s("div",{staticClass:"timeline-item",style:t.itemStyle(a),on:{mousedown:function(i){return t.itemMouseDown(i,a)}}},[s("div",{staticClass:"timeline-title",attrs:{title:a.label}},[t._v(t._s(a.label))]),s("div",{staticClass:"timeline-resizer"})])])}),0)])])])},jt=[];const Tt={name:"GanttView",props:{lists:{type:Array},menuWidth:{type:Number,default:300},itemWidth:{type:Number,default:100}},data(){return{mouseType:"",mouseWidth:0,mouseScaleWidth:0,dateWidth:100,ganttWidth:0,mouseItem:null,mouseBak:{},dateMove:null}},mounted(){this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t}},computed:{monthNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=new Date,i=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),r=new Date(i.getTime()+a*864e5),n=new Date(r.getFullYear(),r.getMonth()+1,0,23,59,59),l=(n-r)/1e3/60/60/24,c=e*l;return s>0&&(n=new Date(r.getFullYear(),r.getMonth()+1+s,0),c=n.getDate()*e),{width:c+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=new Date,i=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),r=new Date(i.getTime()+a*864e5);return s>0&&(r=new Date(r.getFullYear(),r.getMonth()+1+s,0)),$A.formatDate("Y-m",r)}},dateNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e)+2},dateStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){const a={};let o=t==0?0:t/e,i=Math.floor(o)+s;o==Math.floor(o)&&i--;let r=t==0?s-1:i,n=new Date(new Date().getTime()+r*864e5);[0,6].indexOf(n.getDay())!==-1&&(a.backgroundColor="#f9fafb");let l=e;return s==0&&(l=Math.abs((t%l-l)%l)),a.width=l+"px",a}},dateFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s,a){let o=t==0?0:t/e,i=Math.floor(o)+s;o==Math.floor(o)&&i--;let r=t==0?s-1:i,n=new Date(new Date().getTime()+r*864e5);return a=="day"?n.getDate():a=="week"?this.$L(`\u661F\u671F${"\u65E5\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D".charAt(n.getDay())}`):n}},itemStyle(){const{mouseWidth:t,dateWidth:e,ganttWidth:s}=this;return function(a){const{start:o,end:i}=a.time,{style:r,moveX:n,moveW:l}=a;let c=new Date,u=new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0).getTime(),f=(o-u)/1e3/60/60/24,v=(i-u)/1e3/60/60/24,p=e*f+t*-1,m=e*(v-f);typeof n=="number"&&(p+=n),typeof l=="number"&&(m+=l);const _={left:Math.min(Math.max(p,m*-1.2),s*1.2).toFixed(2)+"px",width:m.toFixed(2)+"px"};return p<0&&Math.abs(p)s&&pe.scrollHeight-e.clientHeight&&(s=e.scrollHeight-e.clientHeight),e.scrollTop!=s&&(this.mouseType="timeline",e.scrollTop=s)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateMouseDown(t){t.preventDefault(),this.mouseItem=null,this.dateMove={clientX:t.clientX}},itemMouseDown(t,e){t.preventDefault();let s="moveX";t.target.className=="timeline-resizer"&&(s="moveW"),typeof e[s]!="number"&&this.$set(e,s,0),this.mouseBak={type:s,clientX:t.clientX,value:e[s]},this.mouseItem=e,this.dateMove=null},itemMouseMove(t){if(this.mouseItem!=null){t.preventDefault();const e=this.mouseBak.value+(t.clientX-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const s=864e5/this.dateWidth,{start:a,end:o}=this.mouseItem.time;let i=e*s;if(o+i-a<=0)return}this.$set(this.mouseItem,this.mouseBak.type,e)}else if(this.dateMove!=null){t.preventDefault();let e=(this.dateMove.clientX-t.clientX)*5;this.dateMove.clientX=t.clientX,this.mouseWidth+=e,this.mouseScaleWidth+=e*(100/this.dateWidth)}},itemMouseUp(t){if(this.mouseItem!=null){const{start:e,end:s}=this.mouseItem.time;let a=!1,o=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let i=this.mouseItem.moveX*o;this.$set(this.mouseItem.time,"start",e+i),this.$set(this.mouseItem.time,"end",s+i),this.$set(this.mouseItem,"moveX",0),a=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let i=this.mouseItem.moveW*o;this.$set(this.mouseItem.time,"end",s+i),this.$set(this.mouseItem,"moveW",0),a=!0}a?this.$emit("on-change",this.mouseItem):t.target.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null}else this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let e=new Date,s=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=864e5/this.dateWidth,o=(this.lists[t].time.start-s)/a-this.dateWidth-this.mouseWidth;this.mouseWidth+=o,this.mouseScaleWidth+=o*(100/this.dateWidth)},clickItem(t){this.$emit("on-click",t)}}},j={};var It=d(Tt,Lt,jt,!1,xt,null,null,null);function xt(t){for(let e in j)this[e]=j[e]}var St=function(){return It.exports}(),At=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-gstc-gantt"},[s("GanttView",{attrs:{lists:t.lists,menuWidth:t.menuWidth,itemWidth:80},on:{"on-change":t.onChange,"on-click":t.onClick}}),s("Dropdown",{staticClass:"project-gstc-dropdown-filtr",style:t.dropStyle,attrs:{trigger:"click"},on:{"on-click":t.onSwitchColumn}},[s("Icon",{staticClass:"project-gstc-dropdown-icon",class:{filtr:t.filtrProjectId>0},attrs:{type:"md-funnel"}}),s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[s("DropdownItem",{class:{"dropdown-active":t.filtrProjectId==0},attrs:{name:0}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.projectColumn,function(a,o){return s("DropdownItem",{key:o,class:{"dropdown-active":t.filtrProjectId==a.id},attrs:{name:a.id}},[t._v(" "+t._s(a.name)+" "),a.tasks?s("span",[t._v("("+t._s(t.filtrLength(a.tasks))+")")]):t._e()])})],2)],1),s("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[s("div",{staticClass:"project-gstc-edit-info"},[s("Table",{attrs:{size:"small","max-height":"600",columns:t.editColumns,data:t.editData}}),s("div",{staticClass:"project-gstc-edit-btns"},[s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),s("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(a){t.editShowInfo=!1}}})],1)],1),s("div",{staticClass:"project-gstc-edit-small"},[s("div",{staticClass:"project-gstc-edit-text",on:{click:function(a){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?s("span",[t._v(t._s(t.editData.length))]):t._e()]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},Pt=[];const Et={name:"ProjectGantt",components:{GanttView:St},props:{projectColumn:{default:[]},flowInfo:{default:{}}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:150,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:e})=>e.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(e.baktime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(e.baktime.end/1e3)))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:e})=>t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(e.newTime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(e.newTime.end/1e3)))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...h(["taskPriority"]),...g(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},dropStyle(){return this.windowWidth<1440?{left:"142px"}:{}},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowInfo:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},filtrLength(t){return t.filter(e=>!(e.complete_at&&!this.completedTask||this.flowTask(e))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(e=>{let s=!e.start_at||!e.end_at,a=this.getTimeObj(e),o=a.start,i=a.end;if(e.complete_at&&!this.completedTask||this.flowTask(e))return!1;let r="#058ce4";this.taskPriority.some(u=>{if(u.priority===e.p_level)return r=u.color,!0});let n={start:o,end:i},l=$A.cloneJSON(n),c=this.editData.find(({id:u})=>u==e.id);c&&(n=$A.cloneJSON(c.newTime)),this.lists.push({id:e.id,label:e.name,complete:e.complete_at,overdue:e.overdue,time:n,notime:s,baktime:l,style:{background:r}})})},onChange(t){const{time:e,baktime:s}=t;if(Math.abs(s.end-e.end)>1e3||Math.abs(s.start-e.start)>1e3){let a=this.editData.find(({id:o})=>o==t.id);a?a.newTime=e:this.editData.push({id:t.id,label:t.label,notime:t.notime,baktime:t.baktime,newTime:e})}},onClick(t){this.$store.dispatch("openTask",t)},editSubmit(t){this.editData&&this.editData.forEach(e=>{let s=this.lists.find(({id:a})=>a==e.id);if(t){this.editLoad++;let a=$A.formatDate("Y-m-d H:i",Math.round(e.newTime.start/1e3)),o=$A.formatDate("Y-m-d H:i",Math.round(e.newTime.end/1e3)),i={task_id:e.id,times:[a,o]};this.$store.dispatch("taskUpdate",i).then(({msg:r})=>{this.editLoad--,this.editLoad===0&&$A.messageSuccess(r),s&&this.$set(s,"baktime",$A.cloneJSON(s.time))}).catch(({msg:r})=>{this.editLoad--,this.editLoad===0&&$A.modalError(r),s&&this.$set(s,"time",$A.cloneJSON(s.baktime))})}else s&&this.$set(s,"time",$A.cloneJSON(s.baktime))}),this.editData=[]},getTimeObj(t){let e=$A.Time(t.start_at)||$A.Time(t.created_at),s=$A.Time(t.end_at)||$A.Time(t.created_at)+86400;return s==e&&(s=Math.round(new Date($A.formatDate("Y-m-d 23:59:59",s)).getTime()/1e3)),s=Math.max(s,e+60),e*=1e3,s*=1e3,{start:e,end:s}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},T={};var Mt=d(Et,At,Pt,!1,Ft,null,null,null);function Ft(t){for(let e in T)this[e]=T[e]}var Wt=function(){return Mt.exports}(),Nt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"markdown-preview-nostyle",domProps:{innerHTML:t._s(t.html)}})},Ot=[];const zt={name:"markdown-preview-nostyle",props:{initialValue:{type:String,default:""}},data(){return{html:""}},mounted(){this.translateMarkdown()},methods:{translateMarkdown(){this.html=z(this.initialValue,{sanitize:!1}).replace(/href="/gi,'target="_blank" href="')}},watch:{initialValue(){this.translateMarkdown()}}},I={};var Rt=d(zt,Nt,Ot,!1,Ut,null,null,null);function Ut(t){for(let e in I)this[e]=I[e]}var Bt=function(){return Rt.exports}(),Vt=function(){var t=this,e=this,s=e.$createElement,a=e._self._c||s;return a("div",{staticClass:"project-panel",class:[e.tabTypeActive]},[a("PageTitle",{attrs:{title:e.projectData.name}}),a("div",{staticClass:"project-titbox"},[a("div",{staticClass:"project-title"},[a("div",{staticClass:"project-back",on:{click:e.onBack}},[a("i",{staticClass:"taskfont"},[e._v("\uE676")])]),a("h1",{on:{click:e.showName}},[e._v(e._s(e.projectData.name))]),e.loading?a("div",{staticClass:"project-load"},[a("Loading")],1):e._e()]),a("ul",{staticClass:"project-icons"},[a("li",{staticClass:"project-avatar",class:{"cursor-default":e.projectData.owner_userid!==e.userId},on:{click:function(o){return e.projectDropdown("user")}}},[a("ul",[a("li",[a("UserAvatarTip",{attrs:{userid:e.projectData.owner_userid,size:36,borderWitdh:2,openDelay:0}},[a("p",[e._v(e._s(e.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))])]),(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?a("Badge",{attrs:{type:"normal","overflow-count":999,count:e.projectData.project_user.length}}):e._e()],1),e._l(e.projectUser,function(o){return!(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?[o.userid===-1?a("li",{staticClass:"more"},[a("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u5171"+e.projectData.project_user.length+"\u4E2A\u6210\u5458")}},[a("Icon",{attrs:{type:"ios-more"}})],1)],1):a("li",[a("UserAvatarTip",{attrs:{userid:o.userid,size:36,borderWitdh:2,openDelay:0}})],1)]:e._e()})],2)]),a("li",{staticClass:"project-icon",on:{click:function(o){return e.addTaskOpen(0)}}},[a("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"md-add"}})],1)],1),a("li",{class:["project-icon",e.searchText!=""?"active":""]},[a("Tooltip",{attrs:{always:e.searchText!="",theme:"light",rawIndex:10},on:{"on-popper-show":e.searchFocus}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-search"},on:{click:e.searchFocus}}),a("div",{attrs:{slot:"content"},slot:"content"},[a("Input",{ref:"searchInput",staticClass:"search-input",attrs:{placeholder:e.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:e.searchText,callback:function(o){e.searchText=o},expression:"searchText"}})],1)],1)],1),a("li",{class:["project-icon",e.windowLandscape&&e.projectData.cacheParameter.chat?"active":""],on:{click:function(o){return e.toggleParameter("chat")}}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-chatbubbles"}}),a("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:e.msgUnread}})],1),a("li",{staticClass:"project-icon"},[a("EDropdown",{attrs:{trigger:"click",transfer:""},on:{command:e.projectDropdown}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-more"}}),e.projectData.owner_userid===e.userId?a("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"setting"}},[e._v(e._s(e.$L("\u9879\u76EE\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"permissions"}},[e._v(e._s(e.$L("\u6743\u9650\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"workflow"}},[e._v(e._s(e.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"user",divided:""}},[e._v(e._s(e.$L("\u6210\u5458\u7BA1\u7406")))]),a("EDropdownItem",{attrs:{command:"invite"}},[e._v(e._s(e.$L("\u9080\u8BF7\u94FE\u63A5")))]),a("EDropdownItem",{attrs:{command:"log",divided:""}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),a("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"transfer",divided:""}},[e._v(e._s(e.$L("\u79FB\u4EA4\u9879\u76EE")))]),a("EDropdownItem",{attrs:{command:"archived"}},[e._v(e._s(e.$L("\u5F52\u6863\u9879\u76EE")))]),a("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"delete"}},[e._v(e._s(e.$L("\u5220\u9664\u9879\u76EE")))])],1):a("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"log"}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),a("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),a("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"exit",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u9879\u76EE")))])],1)],1)],1)])]),a("div",{staticClass:"project-subbox"},[a("div",{staticClass:"project-subtitle",on:{click:e.showDesc}},[a("MarkdownPreviewNostyle",{ref:"descPreview",attrs:{initialValue:e.projectData.desc}})],1),a("div",{staticClass:"project-switch"},[e.completedCount>0?a("div",{staticClass:"project-checkbox"},[a("Checkbox",{attrs:{value:e.projectData.cacheParameter.completedTask},on:{"on-change":e.toggleCompleted}},[e._v(e._s(e.$L("\u663E\u793A\u5DF2\u5B8C\u6210")))])],1):e._e(),a("div",{staticClass:"project-select"},[a("Cascader",{ref:"flow",attrs:{data:e.flowData,"transfer-class-name":"project-panel-flow-cascader",transfer:""},on:{"on-change":e.flowChange}},[a("span",{class:`project-flow ${e.flowInfo.status||""}`},[e._v(e._s(e.flowTitle))])])],1),a("div",{staticClass:"project-switch-button"},[a("div",{staticClass:"slider",style:e.tabTypeStyle}),a("div",{class:{active:e.tabTypeActive==="column"},on:{click:function(o){return e.tabTypeChange("column")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),a("div",{class:{active:e.tabTypeActive==="table"},on:{click:function(o){return e.tabTypeChange("table")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE66A")])]),a("div",{class:{active:e.tabTypeActive==="gantt"},on:{click:function(o){return e.tabTypeChange("gantt")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE797")])])])])]),e.tabTypeActive==="column"?a("div",{staticClass:"project-column"},[a("Draggable",{staticClass:"column-list",attrs:{list:e.columnList,animation:150,disabled:e.sortDisabled||e.$isEEUiApp||e.windowTouch,tag:"ul",draggable:".column-item"},on:{sort:function(o){return e.sortUpdate(!0)}}},[e._l(e.columnList,function(o){return a("li",{staticClass:"column-item"},[a("div",{class:["column-head",o.color?"custom-color":""],style:o.color?{backgroundColor:o.color}:{}},[a("div",{staticClass:"column-head-title"},[a("AutoTip",[e._v(e._s(o.name))]),a("em",[e._v("("+e._s(e.panelTask(o.tasks).length)+")")])],1),a("div",{staticClass:"column-head-icon"},[e.columnLoad[o.id]===!0?a("div",{staticClass:"loading"},[a("Loading")],1):a("EDropdown",{attrs:{trigger:"click",size:"small"},on:{command:function(i){return e.dropColumn(o,i)}}},[a("Icon",{attrs:{type:"ios-more"}}),a("EDropdownMenu",{staticClass:"project-panel-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"title"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-create"}}),e._v(e._s(e.$L("\u4FEE\u6539"))+" ")],1)]),a("EDropdownItem",{attrs:{command:"remove"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]),e._l(e.$store.state.columnColorList,function(i,r){return a("EDropdownItem",{key:r,attrs:{divided:r==0,command:i}},[a("div",{staticClass:"item"},[a("i",{staticClass:"taskfont",style:{color:i.color||"#ddd"},domProps:{innerHTML:e._s(i.color==o.color?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])})],2)],1),a("Icon",{staticClass:"last",attrs:{type:"md-add"},on:{click:function(i){return e.addTopShow(o.id,!0)}}})],1)]),a("Scrollbar",{staticClass:"column-task"},[e.columnTopShow[o.id]?a("div",{staticClass:"task-item additem"},[a("TaskAddSimple",{attrs:{"column-id":o.id,"project-id":e.projectId,"add-top":!0,"auto-active":""},on:{"on-close":function(i){return e.addTopShow(o.id,!1)},"on-priority":e.addTaskOpen}})],1):e._e(),a("Draggable",{staticClass:"task-list",attrs:{list:o.tasks,animation:150,disabled:e.sortDisabled||e.$isEEUiApp||e.windowTouch,draggable:".task-draggable",filter:".complete",group:"task"},on:{sort:e.sortUpdate,remove:e.sortUpdate}},[e._l(o.tasks,function(i){return a("div",{class:["task-item task-draggable",i.complete_at?"complete":"",e.taskIsHidden(i)?"hidden":""],style:i.color?{backgroundColor:i.color}:{},on:{click:function(r){return e.openTask(i)}}},[a("div",{class:["task-head",i.desc?"has-desc":""]},[a("div",{staticClass:"task-title"},[i.flow_item_name?a("span",{class:i.flow_item_status,on:{click:function(r){return r.stopPropagation(),e.openMenu(r,i)}}},[e._v(e._s(i.flow_item_name))]):e._e(),a("pre",[e._v(e._s(i.name))])]),a("div",{staticClass:"task-menu",on:{click:function(r){r.stopPropagation()}}},[a("TaskMenu",{ref:`taskMenu_${i.id}`,refInFor:!0,attrs:{task:i,icon:"ios-more"}})],1)]),i.complete_at?e._e():[i.desc?a("div",{staticClass:"task-desc"},[a("pre",{domProps:{innerHTML:e._s(i.desc)}})]):e._e(),i.task_tag.length>0?a("div",{staticClass:"task-tags"},e._l(i.task_tag,function(r,n){return a("Tag",{key:n,attrs:{color:r.color}},[e._v(e._s(r.name))])}),1):e._e(),a("div",{staticClass:"task-users"},[a("ul",[e._l(e.ownerUser(i.task_user),function(r,n){return a("li",{key:n},[a("UserAvatar",{attrs:{userid:r.userid,size:"32",borderWitdh:2,borderColor:i.color}})],1)}),e.ownerUser(i.task_user).length===0?a("li",{staticClass:"no-owner"},[a("Button",{attrs:{type:"primary",size:"small",ghost:""},on:{click:function(r){return r.stopPropagation(),e.openTask(i,!0)}}},[e._v(e._s(e.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):e._e()],2),i.file_num>0?a("div",{staticClass:"task-icon"},[e._v(e._s(i.file_num)),a("Icon",{attrs:{type:"ios-link-outline"}})],1):e._e(),i.msg_num>0?a("div",{staticClass:"task-icon"},[e._v(e._s(i.msg_num)),a("Icon",{attrs:{type:"ios-chatbubbles-outline"}})],1):e._e()]),a("div",{staticClass:"task-progress"},[i.sub_num>0?a("div",{staticClass:"task-sub-num"},[e._v(e._s(i.sub_complete)+"/"+e._s(i.sub_num))]):e._e(),a("Progress",{attrs:{percent:i.percent,"stroke-width":6}}),i.end_at?a("ETooltip",{class:["task-time",i.today?"today":"",i.overdue?"overdue":""],attrs:{disabled:e.$isEEUiApp||e.windowTouch,"open-delay":600,content:i.end_at}},[i.complete_at?e._e():a("div",[a("i",{staticClass:"taskfont"},[e._v("\uE71D")]),e._v(e._s(e.expiresFormat(i.end_at)))])]):e._e()],1),i.p_name?a("em",{staticClass:"priority-color",style:{backgroundColor:i.p_color}}):e._e()]],2)}),a("div",{staticClass:"task-item additem"},[a("TaskAddSimple",{attrs:{"column-id":o.id,"project-id":e.projectId},on:{"on-priority":e.addTaskOpen}})],1)],2)],1)],1)}),a("li",{class:["add-column",e.addColumnShow?"show-input":""]},[a("div",{staticClass:"add-column-text",on:{click:e.addColumnOpen}},[a("Icon",{attrs:{type:"md-add"}}),e._v(e._s(e.$L("\u6DFB\u52A0\u5217\u8868"))+" ")],1),a("div",{staticClass:"add-column-input"},[a("Input",{ref:"addColumnName",attrs:{placeholder:e.$L("\u5217\u8868\u540D\u79F0\uFF0C\u56DE\u8F66\u521B\u5EFA"),clearable:""},on:{"on-blur":e.addColumnBlur,"on-enter":e.addColumnSubmit,"on-clear":function(o){e.addColumnShow=!1}},model:{value:e.addColumnName,callback:function(o){e.addColumnName=o},expression:"addColumnName"}})],1)])],2)],1):e.tabTypeActive==="table"?a("Scrollbar",{staticClass:"project-table",attrs:{"enable-x":""}},[a("div",{staticClass:"project-table-head"},[a("Row",{staticClass:"task-row"},[a("Col",{attrs:{span:"12"}},[a("span",{staticClass:"head-title"},[e._v("# "+e._s(e.$L("\u4EFB\u52A1\u540D\u79F0")))])]),a("Col",{attrs:{span:"3"}},[a("span",{staticClass:"head-title"},[e._v(e._s(e.$L("\u5217\u8868")))])]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"sort",on:{click:function(o){return e.onSort("level")}}},[a("span",{staticClass:"head-title"},[e._v(e._s(e.$L("\u4F18\u5148\u7EA7")))]),a("div",{staticClass:"task-sort"},[a("Icon",{class:{on:e.sortField=="level"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),a("Icon",{class:{on:e.sortField=="level"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])]),a("Col",{attrs:{span:"3"}},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA")))]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"sort",on:{click:function(o){return e.onSort("end_at")}}},[a("span",{staticClass:"head-title"},[e._v(e._s(e.$L("\u5230\u671F\u65F6\u95F4")))]),a("div",{staticClass:"task-sort"},[a("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),a("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])])],1)],1),a("div",{class:["project-table-body",e.projectData.cacheParameter.showMy?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showMy")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u6211\u7684\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.myList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showMy?a("TaskRow",{attrs:{list:e.transforTasks(e.myList),"open-key":"my","fast-add-task":""},on:{"on-priority":e.addTaskOpen}}):e._e()],1),e.helpList.length?a("div",{class:["project-table-body",e.projectData.cacheParameter.showHelp?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showHelp")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u534F\u52A9\u7684\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.helpList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showHelp?a("TaskRow",{attrs:{list:e.helpList,"open-key":"help"},on:{"on-priority":e.addTaskOpen}}):e._e()],1):e._e(),e.projectData.task_num>0?a("div",{class:["project-table-body",e.projectData.cacheParameter.showUndone?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showUndone")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.unList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showUndone?a("TaskRow",{attrs:{list:e.unList,"open-key":"undone"},on:{"on-priority":e.addTaskOpen}}):e._e()],1):e._e(),e.projectData.task_num>0?a("div",{class:["project-table-body",e.projectData.cacheParameter.showCompleted?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showCompleted")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.completedList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}},[e._v(e._s(e.projectData.task_num>0&&e.projectData.cacheParameter.showCompleted?e.$L("\u5B8C\u6210\u65F6\u95F4"):""))])],1),e.projectData.cacheParameter.showCompleted?a("TaskRow",{attrs:{list:e.completedList,"open-key":"completed",showCompleteAt:""},on:{"on-priority":e.addTaskOpen}}):e._e()],1):e._e()]):e.tabTypeActive==="gantt"?a("div",{staticClass:"project-gantt"},[a("ProjectGantt",{attrs:{projectColumn:e.columnList,flowInfo:e.flowInfo}})],1):e._e(),a("Modal",{attrs:{title:e.$L("\u9879\u76EE\u8BBE\u7F6E"),"mask-closable":!1},model:{value:e.settingShow,callback:function(o){e.settingShow=o},expression:"settingShow"}},[a("Form",{attrs:{model:e.settingData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{prop:"name",label:e.$L("\u9879\u76EE\u540D\u79F0")}},[a("Input",{ref:"projectName",attrs:{type:"text",maxlength:32,placeholder:e.$L("\u5FC5\u586B")},model:{value:e.settingData.name,callback:function(o){e.$set(e.settingData,"name",o)},expression:"settingData.name"}})],1),a("FormItem",{attrs:{prop:"desc",label:e.$L("\u9879\u76EE\u4ECB\u7ECD")}},[a("Input",{ref:"projectDesc",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},maxlength:255,placeholder:`${e.$L("\u9009\u586B")} (${e.$L("\u652F\u6301 Markdown \u683C\u5F0F")})`},model:{value:e.settingData.desc,callback:function(o){e.$set(e.settingData,"desc",o)},expression:"settingData.desc"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.settingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.settingLoad>0},on:{click:e.onSetting}},[e._v(e._s(e.$L("\u4FEE\u6539")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:650},model:{value:e.permissionShow,callback:function(o){e.permissionShow=o},expression:"permissionShow"}},[e.permissionShow?a("ProjectPermission",{ref:"permission",attrs:{"project-id":e.projectId},on:{close:function(){t.permissionShow=!1}}}):e._e()],1),a("Modal",{attrs:{title:e.$L("\u6210\u5458\u7BA1\u7406"),"mask-closable":!1},model:{value:e.userShow,callback:function(o){e.userShow=o},expression:"userShow"}},[a("Form",{attrs:{model:e.userData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{prop:"userids",label:e.$L("\u9879\u76EE\u6210\u5458")}},[a("UserSelect",{attrs:{uncancelable:e.userData.uncancelable,"multiple-max":100,title:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.userData.userids,callback:function(o){e.$set(e.userData,"userids",o)},expression:"userData.userids"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.userShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),e.userWaitRemove.length>0?a("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":e.onUser}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("p",[a("strong",[e._v(e._s(e.$L("\u79FB\u9664\u6210\u5458\u8D1F\u8D23\u7684\u4EFB\u52A1\u5C06\u53D8\u6210\u65E0\u8D1F\u8D23\u4EBA\uFF0C")))])]),a("p",[e._v(e._s(e.$L("\u6CE8\u610F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))]),a("ul",{staticClass:"project-panel-wait-remove"},[a("li",[e._v(e._s(e.$L("\u5373\u5C06\u79FB\u9664"))+"\uFF1A")]),e._l(e.userWaitRemove,function(o){return a("li",{key:o},[a("UserAvatar",{attrs:{userid:o,size:20,showName:""}})],1)})],2)]),a("Button",{attrs:{type:"primary",loading:e.userLoad>0}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1):a("Button",{attrs:{type:"primary",loading:e.userLoad>0},on:{click:e.onUser}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),a("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u94FE\u63A5"),"mask-closable":!1},model:{value:e.inviteShow,callback:function(o){e.inviteShow=o},expression:"inviteShow"}},[a("Form",{attrs:{model:e.inviteData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{label:e.$L("\u94FE\u63A5\u5730\u5740")}},[a("Input",{ref:"inviteInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.inviteFocus},model:{value:e.inviteData.url,callback:function(o){e.$set(e.inviteData,"url",o)},expression:"inviteData.url"}}),a("div",{staticClass:"form-tip"},[e._v(" "+e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u76F4\u63A5\u52A0\u5165\u9879\u76EE\u3002"))+" "),a("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(o){return e.inviteGet(!0)}}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("p",[a("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u9080\u8BF7\u94FE\u63A5\u5931\u6548\uFF01")))])])]),a("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.inviteShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.inviteLoad>0},on:{click:e.inviteCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)],1),a("Modal",{attrs:{title:e.$L("\u79FB\u4EA4\u9879\u76EE"),"mask-closable":!1},model:{value:e.transferShow,callback:function(o){e.transferShow=o},expression:"transferShow"}},[a("Form",{attrs:{model:e.transferData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{prop:"owner_userid",label:e.$L("\u65B0\u9879\u76EE\u8D1F\u8D23\u4EBA")}},[a("UserSelect",{attrs:{"multiple-max":1,title:e.$L("\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA")},model:{value:e.transferData.owner_userid,callback:function(o){e.$set(e.transferData,"owner_userid",o)},expression:"transferData.owner_userid"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.transferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.transferLoad>0},on:{click:e.onTransfer}},[e._v(e._s(e.$L("\u79FB\u4EA4")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",beforeClose:e.workflowBeforeClose,size:1280},model:{value:e.workflowShow,callback:function(o){e.workflowShow=o},expression:"workflowShow"}},[e.workflowShow?a("ProjectWorkflow",{ref:"workflow",attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:720},model:{value:e.logShow,callback:function(o){e.logShow=o},expression:"logShow"}},[e.logShow?a("ProjectLog",{attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:1e3},model:{value:e.archivedTaskShow,callback:function(o){e.archivedTaskShow=o},expression:"archivedTaskShow"}},[e.archivedTaskShow?a("TaskArchived",{attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:1e3},model:{value:e.deletedTaskShow,callback:function(o){e.deletedTaskShow=o},expression:"deletedTaskShow"}},[e.deletedTaskShow?a("TaskDeleted",{attrs:{"project-id":e.projectId}}):e._e()],1)],1)},Ht=[];const Kt={name:"ProjectPanel",components:{UserAvatarTip:U,UserSelect:W,MarkdownPreviewNostyle:Bt,TaskMenu:F,ProjectWorkflow:ht,ProjectPermission:kt,DrawerOverlay:R,ProjectLog:O,TaskArchived:nt,TaskRow:et,Draggable:E,TaskAddSimple:N,TaskPriority:M,TaskDeleted:Dt,ProjectGantt:Wt},data(){return{loading:!1,nowTime:$A.Time(),nowInterval:null,columnLoad:{},columnTopShow:{},sortField:"end_at",sortType:"desc",searchText:"",addColumnShow:!1,addColumnName:"",sortData:[],sortDisabled:!1,settingShow:!1,settingData:{},settingLoad:0,permissionShow:!1,permissionShowData:{},permissionShowLoad:0,userShow:!1,userData:{},userLoad:0,inviteShow:!1,inviteData:{},inviteLoad:0,transferShow:!1,transferData:{},transferLoad:0,workflowShow:!1,logShow:!1,archivedTaskShow:!1,deletedTaskShow:!1,flowInfo:{},flowList:[]}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...h(["cacheDialogs","projectId","projectLoad","cacheTasks","cacheColumns","taskCompleteTemps","cacheUserBasic"]),...g(["projectData","transforTasks"]),tabTypeActive(){return this.projectData.cacheParameter.menuType},tabTypeStyle(){const t={};switch(this.tabTypeActive){case"column":t.left="0";break;case"table":t.left="33.33%";break;case"gantt":t.left="66.66%";break;default:t.display="none"}return t},userWaitRemove(){const{userids:t,useridbak:e}=this.userData;if(!t)return[];let s=[];return e.some(a=>{t.includes(a)||s.push(a)}),s},msgUnread(){const{cacheDialogs:t,projectData:e}=this,s=t.find(({id:a})=>a===e.dialog_id);return $A.getDialogNum(s)},panelTask(){const{searchText:t,flowInfo:e}=this;return function(s){return this.projectData.cacheParameter.completedTask||(s=s.filter(({complete_at:a})=>!a)),$A.leftExists(e.value,"user:")?s=s.filter(({task_user:a})=>a.find(({userid:o,owner:i})=>o===e.userid&&i)):e.value>0?s=s.filter(({flow_item_id:a})=>a===e.value):e.value==-1&&(s=s.filter(({start_at:a})=>!a)),t&&(s=s.filter(({id:a,name:o,desc:i})=>a==t||$A.strExists(`${o} ${i}`,t))),s}},projectUser(){const{projectData:t,windowWidth:e}=this;if(!t.project_user)return[];let s=e>1200?8:3,a=t.project_user.filter(({userid:i})=>i!=t.owner_userid);if(a.length<=s)return a;let o=a.slice(0,s-1);return o.push({userid:-1}),o.push(a[a.length-1]),o},allTask(){const{cacheTasks:t,projectId:e}=this;return t.filter(s=>s.archived_at||!s.created_at?!1:s.project_id==e)},columnList(){const{projectId:t,cacheColumns:e,allTask:s}=this,a=e.filter(({project_id:o})=>o==t).sort((o,i)=>o.sort!=i.sort?o.sort-i.sort:o.id-i.id);return a.forEach(o=>{o.tasks=this.transforTasks(s.filter(i=>i.column_id==o.id)).sort((i,r)=>i.complete_at||r.complete_at?$A.Date(i.complete_at)-$A.Date(r.complete_at):i.sort!=r.sort?i.sort-r.sort:i.id-r.id)}),a},myList(){const{allTask:t,taskCompleteTemps:e,sortField:s,sortType:a}=this;let o=t.filter(i=>this.myFilter(i));if(e.length>0){let i=t.filter(r=>e.includes(r.id)&&this.myFilter(r,!1));i.length>0&&(o=$A.cloneJSON(o),o.push(...i))}return o.sort((i,r)=>{if(a=="asc"&&([i,r]=[r,i]),s=="level")return i.p_level-r.p_level;if(s=="end_at")return i.end_at==r.end_at?i.p_level-r.p_level:$A.Date(i.end_at||"2099-12-31 23:59:59")-$A.Date(r.end_at||"2099-12-31 23:59:59")})},helpList(){const{allTask:t,taskCompleteTemps:e,sortField:s,sortType:a}=this;let o=t.filter(i=>this.helpFilter(i));if(e.length>0){let i=t.filter(r=>e.includes(r.id)&&this.helpFilter(r,!1));i.length>0&&(o=$A.cloneJSON(o),o.push(...i))}return o.sort((i,r)=>{if(a=="asc"&&([i,r]=[r,i]),s=="level")return i.p_level-r.p_level;if(s=="end_at")return i.end_at==r.end_at?i.p_level-r.p_level:$A.Date(i.end_at||"2099-12-31 23:59:59")-$A.Date(r.end_at||"2099-12-31 23:59:59")})},unList(){const{allTask:t,searchText:e,sortField:s,sortType:a}=this;return t.filter(i=>i.parent_id>0||this.flowTask(i)||e&&i.id!=e&&!$A.strExists(i.name,e)&&!$A.strExists(i.desc,e)?!1:!i.complete_at).sort((i,r)=>{if(a=="asc"&&([i,r]=[r,i]),s=="level")return i.p_level-r.p_level;if(s=="end_at")return i.end_at==r.end_at?i.p_level-r.p_level:$A.Date(i.end_at||"2099-12-31 23:59:59")-$A.Date(r.end_at||"2099-12-31 23:59:59")})},completedList(){const{allTask:t,searchText:e}=this;return t.filter(a=>a.parent_id>0||this.flowTask(a)||e&&a.id!=e&&!$A.strExists(a.name,e)&&!$A.strExists(a.desc,e)?!1:a.complete_at).sort((a,o)=>{let i=$A.Date(a.complete_at);return $A.Date(o.complete_at)-i})},completedCount(){const{allTask:t}=this;return t.filter(e=>e.parent_id>0?!1:e.complete_at).length},flowTitle(){const{flowInfo:t,flowData:e,allTask:s}=this;if(t.value==-1)return t.label;if(t.value){const a=e.find(o=>o.value===t.value);return a?a.label:t.label}return`${this.$L("\u5168\u90E8")} (${s.length})`},flowData(){const{flowList:t,allTask:e,cacheUserBasic:s}=this,a=[{value:0,label:`${this.$L("\u5168\u90E8")} (${e.length})`,children:[]}];a.push({value:-1,label:`${this.$L("\u672A\u8BA1\u5212")} (${e.filter(({start_at:r,complete_at:n})=>!r&&!n).length})`,children:[]});const o=t.map(r=>({value:r.id,label:r.name,status:r.status,children:r.project_flow_item.map(n=>{const l=e.filter(({flow_item_id:c})=>c==n.id).length;return{value:n.id,label:`${n.name} (${l})`,status:n.status,class:n.status}})}));o.length===1?a.push(...o[0].children):o.length>0&&a.push(...o);const{project_user:i}=this.projectData;if($A.isArray(i)){let r=i.map((n,l)=>{const c=s.find(({userid:f})=>f===n.userid)||{},u=e.filter(({task_user:f,complete_at:v})=>!this.projectData.cacheParameter.completedTask&&v?!1:f.find(({userid:p,owner:m})=>p===n.userid&&m)).length;return{value:`user:${c.userid}`,label:`${c.nickname} (${u})`,userid:c.userid||0,length:u}}).filter(({userid:n,length:l})=>n>0&&l>0);r.length>0&&(r.sort((n,l)=>n.userid==this.userId?-1:1),r=r.map((n,l)=>(n.class=`user-${l}`,n)),a.push(...r))}return a}},watch:{projectData(){this.sortData=this.getSort()},projectLoad(t){this._loadTimeout&&clearTimeout(this._loadTimeout),t>0?this._loadTimeout=setTimeout(()=>{this.loading=!0},1e3):this.loading=!1},projectId:{handler(t){t>0&&this.getFlowData()},immediate:!0}},methods:{showName(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u540D\u79F0"),content:this.projectData.name})},showDesc(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u63CF\u8FF0"),content:this.$refs.descPreview.$el.innerHTML})},searchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},getSort(){const t=[];return this.columnList.forEach(e=>{t.push({id:e.id,task:e.tasks.map(({id:s})=>s)})}),t},sortUpdate(t){const e=this.sortData,s=this.getSort();if(JSON.stringify(e)===JSON.stringify(s))return;this.sortData=s;const a={project_id:this.projectId,sort:this.sortData,only_column:t===!0?1:0};this.sortDisabled=!0,this.$store.dispatch("call",{url:"project/sort",data:a,method:"post"}).then(({msg:o})=>{$A.messageSuccess(o),this.sortDisabled=!1;let i,r=[];a.only_column?(i=-1,a.sort.forEach(n=>{i++,r.push({id:n.id,sort:i})}),this.$store.dispatch("saveColumn",r)):(a.sort.forEach(n=>{i=-1,r.push(...n.task.map(l=>(i++,r.push(...this.allTask.filter(c=>c.parent_id==l).map(({id:c})=>({id:c,sort:i,column_id:n.id}))),{id:l,sort:i,column_id:n.id})))}),this.$store.dispatch("saveTask",r))}).catch(({msg:o})=>{$A.modalError(o),this.sortDisabled=!1,this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})})},addTopShow(t,e){this.$set(this.columnTopShow,t,e)},addTaskOpen(t){k.Store.set("addTask",t)},addColumnOpen(){this.addColumnShow=!0,this.$nextTick(()=>{this.$refs.addColumnName.focus()})},addColumnBlur(){this.addColumnName===""&&(this.addColumnShow=!1)},addColumnSubmit(){let t=this.addColumnName.trim();t!==""&&this.$store.dispatch("call",{url:"project/column/add",data:{project_id:this.projectId,name:t}}).then(({data:e,msg:s})=>{$A.messageSuccess(s),this.addColumnName="",this.$store.dispatch("saveColumn",e)}).catch(({msg:e})=>{$A.modalError(e)})},dropColumn(t,e){e==="title"?this.titleColumn(t):e==="remove"?this.removeColumn(t):e.name&&this.updateColumn(t,{color:e.color}).catch(s=>{$A.modalError(s)})},titleColumn(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u5217\u8868",placeholder:"\u8F93\u5165\u5217\u8868\u540D\u79F0",onOk:e=>e?this.updateColumn(t,{name:e}):"\u5217\u8868\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"})},updateColumn(t,e){return new Promise((s,a)=>{if(this.columnLoad[t.id]===!0){s();return}this.$set(this.columnLoad,t.id,!0),Object.keys(e).forEach(o=>this.$set(t,o,e[o])),this.$store.dispatch("call",{url:"project/column/update",data:Object.assign(e,{column_id:t.id})}).then(({data:o})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("saveColumn",o),s()}).catch(({msg:o})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("getColumns",this.projectId).catch(()=>{}),a(o)})})},removeColumn(t){$A.modalConfirm({title:"\u5220\u9664\u5217\u8868",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5217\u8868\u3010"+t.name+"\u3011\u53CA\u5217\u8868\u5185\u7684\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>{if(this.columnLoad[t.id]!==!0)return this.$set(this.columnLoad,t.id,!0),new Promise((e,s)=>{this.$store.dispatch("removeColumn",t.id).then(({msg:a})=>{e(a)}).catch(({msg:a})=>{s(a)}).finally(a=>{this.$set(this.columnLoad,t.id,!1)})})}})},onSort(t){this.sortField=t,this.sortType=this.sortType=="desc"?"asc":"desc"},onSetting(){this.settingLoad++,this.$store.dispatch("call",{url:"project/update",data:Object.assign(this.settingData,{project_id:this.projectId})}).then(({data:t,msg:e})=>{$A.messageSuccess(e),this.settingShow=!1,this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.settingLoad--})},onUser(){this.userLoad++,this.$store.dispatch("call",{url:"project/user",data:{project_id:this.projectId,userid:this.userData.userids}}).then(({msg:t})=>{$A.messageSuccess(t),this.userShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.userLoad--})},onTransfer(){this.transferLoad++,this.$store.dispatch("call",{url:"project/transfer",data:{project_id:this.projectId,owner_userid:this.transferData.owner_userid[0]}}).then(({msg:t})=>{$A.messageSuccess(t),this.transferShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.transferLoad--})},onArchived(){$A.modalConfirm({title:"\u5F52\u6863\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5F52\u6863\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("archivedProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},onDelete(){$A.modalConfirm({title:"\u5220\u9664\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("removeProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},onExit(){$A.modalConfirm({title:"\u9000\u51FA\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("exitProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},projectDropdown(t){switch(t){case"setting":this.$set(this.settingData,"name",this.projectData.name),this.$set(this.settingData,"desc",this.projectData.desc),this.settingShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus(),setTimeout(this.$refs.projectDesc.resizeTextarea,0)});break;case"permissions":this.permissionShow=!0;break;case"user":if(this.projectData.owner_userid!==this.userId)return;const e=this.projectData.project_user.map(({userid:s})=>s);this.$set(this.userData,"userids",e),this.$set(this.userData,"useridbak",e),this.$set(this.userData,"uncancelable",[this.projectData.owner_userid]),this.userShow=!0;break;case"invite":this.inviteData={},this.inviteShow=!0,this.inviteGet();break;case"workflow":this.workflowShow=!0;break;case"log":this.logShow=!0;break;case"archived_task":this.archivedTaskShow=!0;break;case"deleted_task":this.deletedTaskShow=!0;break;case"transfer":this.$set(this.transferData,"owner_userid",[]),this.transferShow=!0;break;case"archived":this.onArchived();break;case"delete":this.onDelete();break;case"exit":this.onExit();break}},openTask(t,e){this.$store.dispatch("openTask",t),e===!0&&setTimeout(()=>{k.Store.set("receiveTask",!0)},300)},openMenu(t,e){const s=this.$refs[`taskMenu_${e.id}`];s&&s[0].handleClick(t)},taskIsHidden(t){const{id:e,name:s,desc:a,complete_at:o}=t,{searchText:i}=this;return!!(!this.projectData.cacheParameter.completedTask&&o||this.flowTask(t)||i&&e!=i&&!$A.strExists(`${s} ${a}`,i))},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,s)=>e.id-s.id)},inviteGet(t){this.inviteLoad++,this.$store.dispatch("call",{url:"project/invite",data:{project_id:this.projectId,refresh:t===!0?"yes":"no"}}).then(({data:e})=>{this.inviteData=e,this.inviteCopy()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.inviteLoad--})},getFlowData(){this.flowInfo={},this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{var e;this.flowList=t,(e=this.$refs.flow)==null||e.clearSelect()}).catch(()=>{this.flowList=[]})},flowChange(t,e){this.flowInfo=e.pop()||{}},inviteCopy(){!this.inviteData.url||(this.inviteFocus(),this.copyText(this.inviteData.url))},inviteFocus(){this.$nextTick(t=>{this.$refs.inviteInput.focus({cursor:"all"})})},toggleCompleted(){this.toggleParameter("completedTask")},workflowBeforeClose(){return new Promise(t=>{if(!this.$refs.workflow){t();return}if(!this.$refs.workflow.existDiff()){t();return}$A.modalConfirm({content:"\u8BBE\u7F6E\u5C1A\u672A\u4FDD\u5B58\uFF0C\u662F\u5426\u653E\u5F03\u4FEE\u6539\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{t()}})})},myFilter(t,e=!0){return!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.owner==1},helpFilter(t,e=!0){return t.parent_id>0||!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.task_user&&t.task_user.find(({userid:s,owner:a})=>s==this.userId&&a==0)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)||this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value?!0:!!(this.flowInfo.value==-1&&t.start_at)},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},tabTypeChange(t){switch(t){case"column":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"column"});break;case"table":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"table"});break;case"gantt":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"gantt"});break}},toggleParameter(t){if(t==="completedTask")this.$store.dispatch("forgetTaskCompleteTemp",!0);else if(t==="chat"&&this.windowPortrait){this.$store.dispatch("openDialog",this.projectData.dialog_id);return}this.$store.dispatch("toggleProjectParameter",t)},onBack(){const{name:t,params:e}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(e.projectId)?this.goForward({name:this.$route.name,params:{projectId:"all"}}):this.goBack()}}},x={};var Gt=d(Kt,Vt,Ht,!1,Yt,null,null,null);function Yt(t){for(let e in x)this[e]=x[e]}var Xt=function(){return Gt.exports}(),Jt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.dialogShow?s("DialogWrapper",{staticClass:"project-dialog",attrs:{"dialog-id":t.projectData.dialog_id}},[s("template",{slot:"head"},[s("div",{staticClass:"dialog-user"},[s("div",{staticClass:"member-head"},[s("div",{staticClass:"member-title"},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458"))),s("span",{on:{click:function(a){t.memberShowAll=!t.memberShowAll}}},[t._v("("+t._s(t.projectData.project_user.length)+")")])]),s("div",{staticClass:"member-close",on:{click:t.onClose}},[s("Icon",{attrs:{type:"ios-close"}})],1)]),s("ul",{class:["member-list",t.memberShowAll?"member-all":""]},t._l(t.projectData.project_user,function(a){return s("li",[s("UserAvatar",{attrs:{userid:a.userid,size:36}})],1)}),0)]),s("div",{staticClass:"nav-wrapper"},[s("div",{staticClass:"dialog-title"},[s("h2",[t._v(t._s(t.$L("\u7FA4\u804A")))])])])])],2):t._e()},qt=[];const Qt={name:"ProjectDialog",components:{DialogWrapper:B},data(){return{loadIng:!1,memberShowAll:!1}},computed:{...g(["projectData"]),dialogShow(){return this.windowLandscape&&this.projectData.dialog_id&&this.projectData.cacheParameter.chat}},methods:{onClose(){this.$store.dispatch("toggleProjectParameter","chat")}}},S={};var Zt=d(Qt,Jt,qt,!1,te,null,null,null);function te(t){for(let e in S)this[e]=S[e]}var ee=function(){return Zt.exports}(),se=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-list"},[s("PageTitle",{attrs:{title:t.$L("\u9879\u76EE")}}),s("div",{staticClass:"list-search"},[s("div",{staticClass:"search-wrapper"},[s("div",{staticClass:"search-pre"},[t.loadProjects>0?s("Loading"):s("Icon",{attrs:{type:"ios-search"}})],1),s("Input",{attrs:{placeholder:t.$L(t.loadProjects>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},model:{value:t.projectKeyValue,callback:function(a){t.projectKeyValue=a},expression:"projectKeyValue"}})],1)]),s("ul",{on:{touchstart:t.onTouchStart,scroll:t.onScroll}},[t.projectLists.length===0?[t.projectKeyLoading>0?s("li",{staticClass:"loading"},[s("Loading")],1):s("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")])]:t._e(),t._l(t.projectLists,function(a,o){return s("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:o,class:{operate:a.id==t.operateItem.id&&t.operateVisible},attrs:{"data-id":a.id},on:{click:function(i){return t.toggleRoute("project",{projectId:a.id})}}},[s("div",{staticClass:"project-item"},[s("div",{staticClass:"item-left"},[s("div",{staticClass:"project-h1"},[s("div",{staticClass:"project-name"},[t._v(t._s(a.name))]),a.top_at?s("div",{staticClass:"icon-top"}):t._e(),a.task_my_num-a.task_my_complete>0?s("div",{staticClass:"num"},[t._v(t._s(a.task_my_num-a.task_my_complete))]):t._e()]),s("div",{staticClass:"project-h2"},[t._v(" "+t._s(a.desc)+" ")])]),a.task_num>0?s("div",{staticClass:"item-right",on:{click:function(i){return i.stopPropagation(),t.modalPercent(a)}}},[s("iCircle",{attrs:{type:"circle","trail-color":"rgba(132, 197, 106, 0.2)","trail-width":7,"stroke-color":a.task_percent===100?"rgba(132, 197, 106, 0)":"#84C56A","stroke-width":7,percent:a.task_percent,size:44}},[a.task_percent===100?s("Icon",{attrs:{type:"ios-checkmark"}}):s("span",{staticClass:"percent-text"},[t._v(t._s(a.task_percent)+"%")])],1)],1):t._e()])])})],2),s("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[s("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(a){t.operateVisible=!1}}},[s("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[s("DropdownItem",{nativeOn:{click:function(a){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1)],1)},ae=[];const oe={name:"ProjectList",directives:{longpress:V},data(){return{projectKeyValue:"",projectKeyLoading:0,operateStyles:{},operateVisible:!1,operateItem:{}}},computed:{...h(["cacheProjects","loadProjects"]),projectLists(){const{projectKeyValue:t,cacheProjects:e}=this,s=$A.cloneJSON(e).sort((a,o)=>a.top_at||o.top_at?$A.Date(o.top_at)-$A.Date(a.top_at):o.id-a.id);return t?s.filter(a=>$A.strExists(`${a.name} ${a.desc}`,t)):s}},watch:{projectKeyValue(t){if(t!=""){if($A.loadVConsole(t)){this.projectKeyValue="";return}this.projectKeyLoading++,setTimeout(()=>{this.projectKeyValue==t&&this.searchProject(),this.projectKeyLoading--},600)}}},methods:{searchProject(){this.projectKeyLoading++,this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},toggleRoute(t,e){this.operateVisible||this.goForward({name:"manage-"+t,params:e||{}})},onTouchStart(t){const e=document.activeElement;e&&e.blur()},onScroll(t){this.operateVisible=!1},modalPercent(t){if(this.operateVisible)return;let e=`

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

    `;e+=`

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

    `,e+=`

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

    `,e+=`

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

    `,e+=`

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

    `,e+=`

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

    `,$A.modalInfo({language:!1,title:`${t.name} ${this.$L("\u9879\u76EE\u8FDB\u5EA6")}`,content:e})},handleLongpress(t,e){const s=$A.getAttr(e,"data-id"),a=this.projectLists.find(o=>o.id==s);!a||(this.operateVisible=!1,this.operateItem=$A.isJson(a)?a:{},this.$nextTick(()=>{const o=e.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${o.top+this.windowScrollY}px`,height:o.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)})}}},A={};var ie=d(oe,se,ae,!1,re,null,null,null);function re(t){for(let e in A)this[e]=A[e]}var ne=function(){return ie.exports}(),le=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page-project"},[t.projectId>0?[s("ProjectPanel"),s("ProjectDialog")]:t._e(),t.windowPortrait?s("ProjectList",{directives:[{name:"show",rawName:"v-show",value:t.projectId===0,expression:"projectId === 0"}]}):t._e()],2)},ce=[];const de={components:{ProjectList:ne,ProjectDialog:ee,ProjectPanel:Xt},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...h(["cacheProjects","wsOpenNum"]),projectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{projectId:{handler(){this.getProjectData()},immediate:!0},wsOpenNum(t){t<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-project"&&this.getProjectData()},5e3))}},methods:{getProjectData(){if(this.projectId<=0)return;const t=this.projectId;this.$nextTick(()=>{this.$store.state.projectId=t,this.$store.dispatch("getProjectOne",t).then(()=>{this.$store.dispatch("getColumns",t).catch(()=>{}),this.$store.dispatch("getTaskForProject",t).catch(()=>{})}).catch(({msg:e})=>{t===this.projectId&&$A.modalWarning({content:e,onOk:()=>{const s=this.cacheProjects.find(({id:a})=>a);s?$A.goForward({name:"manage-project",params:{projectId:s.id}}):$A.goForward({name:"manage-dashboard"})}})}),this.$store.dispatch("forgetTaskCompleteTemp",!0)})}}},P={};var ue=d(de,le,ce,!1,pe,null,null,null);function pe(t){for(let e in P)this[e]=P[e]}var us=function(){return ue.exports}();export{us as default}; diff --git a/public/js/build/project.b20993c4.js b/public/js/build/project.b20993c4.js deleted file mode 100644 index 88335493d..000000000 --- a/public/js/build/project.b20993c4.js +++ /dev/null @@ -1 +0,0 @@ -import{m as h,a as g}from"./vuex.cc7cb26e.js";import{D as E}from"./vuedraggable.aaa0fd6a.js";import{T as M,P as O}from"./ProjectLog.297ef125.js";import{l as k}from"./le5le-store.bd86c9e9.js";import{n as d,T as F,U as W,g as z}from"./app.f8a6fa5e.js";import{D as R}from"./index.04b74879.js";import{U}from"./tip.059db614.js";import{D as B}from"./DialogWrapper.5184c28a.js";import{l as V}from"./longpress.5305f240.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./sortablejs.4880fe6b.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./quill-hi.a45c8e94.js";import"./quill-delta.a505f2bf.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.4c06f0f7.js";import"./lodash.isequal.d456a716.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f26fa3cb.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.23b1f28e.js";import"./ImgUpload.d82fa303.js";import"./details.ef31cd47.js";var H=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.rowMode?s("Row",{staticClass:"task-add-row"},[s("Col",{class:["row-add",t.active?"active":""],attrs:{span:"12"}},[s("div",{staticClass:"add-input",on:{mouseenter:function(a){t.mouseEnter=!0},mouseleave:function(a){t.mouseEnter=!1}}},[s("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(a){t.onFocus=!0},"on-blur":function(a){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}}),t.parentId==0?s("div",{staticClass:"priority"},[s("ul",t._l(t.taskPriority,function(a,o){return s("li",{key:o},[t.active?s("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(a)}},[s("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.addData.p_name==a.name?"":"")},on:{click:function(i){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1):t._e()],1),s("div",{staticClass:"add-btn",on:{click:t.openAdd}},[s("Icon",{staticClass:"add-icon",attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1)]),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}}),s("Col",{attrs:{span:"3"}})],1):s("div",{class:["task-add-simple",t.active?"active":""],on:{mouseenter:function(a){t.mouseEnter=!0},mouseleave:function(a){t.mouseEnter=!1}}},[s("Input",{ref:"input",attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:3},maxlength:255,placeholder:t.$L(t.typeName+"\u63CF\u8FF0\uFF0C\u56DE\u8F66\u521B\u5EFA"),enterkeyhint:"done"},on:{"on-focus":function(a){t.onFocus=!0},"on-blur":function(a){t.onFocus=!1},"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(a){t.$set(t.addData,"name",a)},expression:"addData.name"}}),s("div",{staticClass:"add-placeholder",on:{click:t.openAdd}},[s("Icon",{attrs:{type:"md-add"}}),t._v(t._s(t.$L("\u6DFB\u52A0"+t.typeName))+" ")],1),s("div",{staticClass:"priority"},[s("ul",t._l(t.taskPriority,function(a,o){return s("li",{key:o},[t.active?s("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(a)}},[s("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.addData.p_name==a.name?"":"")},on:{click:function(i){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},K=[];const G={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{addData:{name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},active:!1,onFocus:!1,mouseEnter:!1}},mounted(){this.autoActive&&this.$nextTick(this.openAdd)},computed:{...h(["taskPriority"]),typeName(){return this.parentId>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}},watch:{active(t){t||this.$emit("on-close")},mouseEnter(){this.chackClose()},onFocus(){this.chackClose()}},methods:{getData(){return this.parentId>0?{task_id:this.parentId,name:this.addData.name}:(this.addData.project_id=this.projectId||this.$store.state.projectId,this.addData.column_id=this.columnId||"",this.addData.owner=[this.userId],this.addData.top=this.addTop?1:0,$A.cloneJSON(this.addData))},openAdd(){this.active=!0,this.defaultPriority(),this.$nextTick(()=>{this.$refs.input.focus()})},chackClose(){this.mouseEnter||this.onFocus||this.addData.name||(this.active=!1)},onPriority(){this.$emit("on-priority",this.getData()),this.active=!1},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},onAdd(){if(!this.addData.name){$A.messageWarning("\u8BF7\u8F93\u5165\u4EFB\u52A1\u63CF\u8FF0");return}this.loadIng++;let t=this.parentId>0?"taskAddSub":"taskAdd";this.$store.dispatch(t,this.getData()).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.active=!1,this.addData={name:"",owner:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]}}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--})},taskPriorityContent(t){let e=$A.runNum(t.days);return e<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+e+this.$L("\u5929")+")"},choosePriority(t){if($A.runNum(t.days)>0){let e=new Date,s=new Date(new Date().setDate(e.getDate()+$A.runNum(t.days)));this.$set(this.addData,"times",$A.date2string([e,s]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color),this.$nextTick(()=>{this.$refs.input.focus()})},defaultPriority(){this.taskPriority.length!==0&&(this.addData.p_name||this.choosePriority(this.taskPriority[0]))}}},w={};var Y=d(G,H,K,!1,X,null,null,null);function X(t){for(let e in w)this[e]=w[e]}var N=function(){return Y.exports}(),J=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-rows"},[t._l(t.list,function(a,o){return s("div",{key:o},[s("Row",{staticClass:"task-row",style:a.color?{backgroundColor:a.color,borderBottomColor:a.color}:{}},[a.p_name?s("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):t._e(),s("Col",{class:["row-name",a.complete_at?"complete":""],attrs:{span:"12"}},[a.sub_num>0&&a.sub_top!==!0||a.parent_id===0&&t.fastAddTask?s("Icon",{class:["sub-icon",t.taskOpen[a.id]?"active":""],attrs:{type:"ios-arrow-forward"},on:{click:function(i){return t.getSublist(a)}}}):t._e(),s("TaskMenu",{ref:`taskMenu_${a.id}`,refInFor:!0,attrs:{task:a}}),s("div",{staticClass:"item-title",on:{click:function(i){return t.openTask(a)}}},[a.flow_item_name?s("span",{class:a.flow_item_status,on:{click:function(i){return i.stopPropagation(),t.openMenu(i,a)}}},[t._v(t._s(a.flow_item_name))]):t._e(),a.sub_top===!0?s("span",[t._v(t._s(t.$L("\u5B50\u4EFB\u52A1")))]):t._e(),a.sub_my&&a.sub_my.length>0?s("span",[t._v("+"+t._s(a.sub_my.length))]):t._e(),t._v(" "+t._s(a.name)+" ")]),s("div",{staticClass:"item-icons",on:{click:function(i){return t.openTask(a)}}},[a.desc?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71A")])]):t._e(),a.file_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71C")]),s("em",[t._v(t._s(a.file_num))])]):t._e(),a.msg_num>0?s("div",{staticClass:"item-icon"},[s("i",{staticClass:"taskfont"},[t._v("\uE71E")]),s("em",[t._v(t._s(a.msg_num))])]):t._e(),a.sub_num>0?s("div",{staticClass:"item-icon",on:{click:function(i){return i.stopPropagation(),t.getSublist(a)}}},[s("i",{staticClass:"taskfont"},[t._v("\uE71F")]),s("em",[t._v(t._s(a.sub_complete)+"/"+t._s(a.sub_num))])]):t._e()])],1),s("Col",{staticClass:"row-column",attrs:{span:"3"}},[s("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:a.sub_top===!0},on:{command:function(i){return t.dropTask(a,i)}}},[s("div",{staticClass:"task-column"},[t._v(t._s(t.columnName(a.column_id)))]),s("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.columnList(a.project_id),function(i){return s("EDropdownItem",{key:i.id,attrs:{command:"column::"+i.id}},[t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-priority",attrs:{span:"3"}},[s("EDropdown",{attrs:{trigger:"click",size:"small",placement:"bottom",disabled:a.sub_top===!0},on:{command:function(i){return t.dropTask(a,i)}}},[s("TaskPriority",{attrs:{backgroundColor:a.p_color}},[t._v(t._s(a.p_name))]),s("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(i,r){return s("EDropdownItem",{key:r,attrs:{command:"priority::"+r}},[s("i",{staticClass:"taskfont",style:{color:i.color},domProps:{innerHTML:t._s(i.p_name==i.name?"":"")}}),t._v(" "+t._s(i.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-user",attrs:{span:"3"}},[s("ul",{on:{click:function(i){return t.openTask(a)}}},[t._l(t.ownerUser(a.task_user),function(i,r){return r<3?s("li",{key:r},[s("UserAvatar",{attrs:{userid:i.userid,size:"32",borderWitdh:2,borderColor:a.color,showName:t.ownerUser(a.task_user).length===1}})],1):t._e()}),t.ownerUser(a.task_user).length===0?s("li",{staticClass:"no-owner"},[s("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),t.openTask(a,!0)}}},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):t._e()],2)]),s("Col",{staticClass:"row-time",attrs:{span:"3"}},[!a.complete_at&&a.end_at?s("ETooltip",{class:["task-time",a.today?"today":"",a.overdue?"overdue":""],attrs:{disabled:t.$isEEUiApp||t.windowTouch,"open-delay":600,content:a.end_at}},[s("div",{on:{click:function(i){return t.openTask(a)}}},[t._v(t._s(t.expiresFormat(a.end_at)))])]):t.showCompleteAt&&a.complete_at?s("div",{attrs:{title:a.complete_at}},[t._v(t._s(t.completeAtFormat(a.complete_at)))]):t._e()],1)],1),t.taskOpen[a.id]===!0?s("TaskRow",{attrs:{list:t.subTask(a.id),"parent-id":a.id,"fast-add-task":a.parent_id===0&&t.fastAddTask,"open-key":t.openKey},on:{command:t.dropTask}}):t._e()],1)}),t.fastAddTask||t.parentId>0?s("TaskAddSimple",{attrs:{"parent-id":t.parentId,"row-mode":""},on:{"on-priority":t.onPriority}}):t._e()],2)},q=[];const Q={name:"TaskRow",components:{TaskMenu:F,TaskAddSimple:N,TaskPriority:M},props:{list:{type:Array,default:()=>[]},parentId:{type:Number,default:0},fastAddTask:{type:Boolean,default:!1},openKey:{type:String,default:"default"},showCompleteAt:{type:Boolean,default:!1}},data(){return{nowTime:$A.Time(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...h(["cacheTasks","taskPriority","cacheColumns"]),subTask(){return function(t){return this.cacheTasks.filter(e=>e.archived_at?!1:e.parent_id==t).sort((e,s)=>e.id-s.id)}}},methods:{columnName(t){const e=this.cacheColumns.find(({id:s})=>s==t);return e?e.name:""},dropTask(t,e){const s=this.$refs[`taskMenu_${t.id}`];if(!!s){if($A.leftExists(e,"column::")){s[0].updateTask({column_id:$A.leftDelete(e,"column::")});return}if($A.leftExists(e,"priority::")){let a=this.taskPriority[parseInt($A.leftDelete(e,"priority::"))];a&&s[0].updateTask({p_level:a.priority,p_name:a.name,p_color:a.color})}}},onPriority(t){this.$emit("on-priority",t)},getSublist(t){if(t.sub_top===!0){this.openTask(t);return}if(this.taskOpen[t.id]===!0){this.$set(this.taskOpen,t.id,!1);return}this.taskLoad[t.id]!==!0&&(this.$set(this.taskLoad,t.id,!0),this.$store.dispatch("getTaskForParent",t.id).then(()=>{this.$set(this.taskLoad,t.id,!1),this.$set(this.taskOpen,t.id,!0)}).catch(({msg:e})=>{$A.modalError(e),this.$set(this.taskLoad,t.id,!1)}))},columnList(t){return this.cacheColumns.filter(({project_id:e})=>e==t)},openTask(t,e){this.$store.dispatch("openTask",t),e===!0&&setTimeout(()=>{k.Store.set("receiveTask",!0)},300)},openMenu(t,e){const s=this.$refs[`taskMenu_${e.id}`];s&&s[0].handleClick(t)},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,s)=>e.id-s.id)},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},completeAtFormat(t){let e=$A.Date(t,!0);return $A.formatDate("Y")===$A.formatDate("Y",e)?$A.formatDate("m-d H:i",e):$A.formatDate("Y-m-d",e)}}},y={};var Z=d(Q,J,q,!1,tt,null,null,null);function tt(t){for(let e in y)this[e]=y[e]}var et=function(){return Z.exports}(),st=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-archived"},[s("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u4EFB\u52A1"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):t._e()],1)]),s("div",{staticClass:"search-container lr"},[s("ul",[s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),s("div",{staticClass:"search-content"},[s("Input",{attrs:{placeholder:t.$L("ID\u3001\u4EFB\u52A1\u540D..."),clearable:""},model:{value:t.keys.name,callback:function(a){t.$set(t.keys,"name",a)},expression:"keys.name"}})],1)]),s("li",{staticClass:"search-button"},[s("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),s("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?s("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):s("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),s("div",{staticClass:"table-page-box"},[s("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),s("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},at=[];const ot={name:"TaskArchived",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:s})=>t("TableAction",{props:{column:s,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",{on:{"on-click":()=>{this.$store.dispatch("openTask",e)}}},e.name)},{title:this.$L("\u5B8C\u6210\u65F6\u95F4"),key:"complete_at",width:168,render:(t,{row:e})=>t("div",{style:{color:e.complete_at?"":"#f00"}},e.complete_at||this.$L("\u672A\u5B8C\u6210"))},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:100,render:(t,{row:e})=>e.archived_userid?t("UserAvatar",{props:{userid:e.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,e)=>{if(this.cacheTasks.find(a=>a.id==e.row.id&&!a.archived_at))return t("div",{style:{color:"#888"}},this.$L("\u5DF2\u8FD8\u539F"));const s=[t("span",{style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{click:()=>{this.$store.dispatch("openTask",e.row)}}},this.$L("\u67E5\u770B")),t("Poptip",{props:{title:e.row.__restorePoptipTitle,confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88"),value:e.row.__restorePoptipShow,width:220},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)},"on-popper-hide":()=>{e.row.__restorePoptipLoadIng=!1,e.row.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.row.__restorePoptipShow=!1}}},[t("span",{on:{click:a=>{a.stopPropagation(),e.row.__restorePoptipLoadIng=!0,this.$store.dispatch("call",{url:"project/column/one",data:{column_id:e.row.column_id,deleted:"all"}}).then(({data:o})=>{o.deleted_at&&(e.row.__restorePoptipTitle=this.$L("\u68C0\u6D4B\u5230\u6240\u5C5E\u7684\u4EFB\u52A1\u5217\u8868\u5DF2\u88AB\u5220\u9664\uFF0C\u8BE5\u64CD\u4F5C\u5C06\u4F1A\u8FD8\u539F\u4EFB\u52A1\u5217\u8868\uFF0C\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F")),e.row.__restorePoptipShow=!0}).catch(({msg:o})=>{$A.modalError({content:o})}).finally(o=>{e.row.__restorePoptipLoadIng=!1})}}},[e.row.__restorePoptipLoadIng?t("Loading",{style:{width:"26px",height:"15px"}}):this.$L("\u8FD8\u539F")])]),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"6px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...h(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,archived:"yes",sorts:{archived_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data.map(e=>(e.__restorePoptipLoadIng=!1,e.__restorePoptipTitle=this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),e.__restorePoptipShow=!1,e)),this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("archivedTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})},delete(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists()}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},b={};var it=d(ot,st,at,!1,rt,null,null,null);function rt(t){for(let e in b)this[e]=b[e]}var nt=function(){return it.exports}(),lt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-workflow"},[s("div",{staticClass:"workflow-title"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):s("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getData}})],1)]),t.list.length>0?s("div",{staticClass:"workflow-content"},[s("Collapse",{attrs:{accordion:""},model:{value:t.openIndex,callback:function(a){t.openIndex=a},expression:"openIndex"}},t._l(t.list,function(a){return s("Panel",{key:a.id,attrs:{name:"index_"+a.id}},[s("div",{staticClass:"workflow-item"},[s("div",{staticClass:"workflow-name"},[t._v(t._s(a.name))]),s("div",{staticClass:"workflow-status"},t._l(a.project_flow_item,function(o){return s("div",{class:o.status},[t._v(t._s(o.name))])}),0),s("div",{staticClass:"workflow-save",on:{click:function(o){o.stopPropagation()}}},[t.contrast(a.project_flow_item,a.project_flow_bak)?[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(o){return t.onSave(a)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),a.id>0?s("Button",{attrs:{disabled:t.loadIng>0,type:"primary",ghost:""},on:{click:function(o){return t.onReduction(a,o)}}},[t._v(t._s(t.$L("\u8FD8\u539F")))]):t._e()]:t._e(),s("Button",{attrs:{disabled:t.loadIng>0,type:"error",ghost:""},on:{click:function(o){return t.onDelete(a)}}},[t._v(t._s(t.$L("\u5220\u9664")))])],2)]),s("div",{staticClass:"taskflow-config",attrs:{slot:"content"},slot:"content"},[s("div",{staticClass:"taskflow-config-table"},[s("div",{staticClass:"taskflow-config-table-left-container"},[s("div",{staticClass:"taskflow-config-table-column-header left-header"},[t._v(t._s(t.$L("\u914D\u7F6E\u9879")))]),s("div",{ref:`overlay_${a.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u8BBE\u7F6E\u72B6\u6001\u4E3A")))]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u5F00\u59CB\u72B6\u6001")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1\u9ED8\u8BA4\u72B6\u6001")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u8FDB\u884C\u4E2D")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EF\u8BBE\u7F6E\u591A\u4E2A\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u9A8C\u6536/\u6D4B\u8BD5")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u53EA\u80FD\u8BBE\u7F6E\u5355\u4E2A\u72B6\u6001\u4E3A\u9A8C\u6536/\u6D4B\u8BD5")))])])]),s("div",{staticClass:"taskflow-config-table-block-item"},[s("div",[s("div",{staticClass:"title"},[t._v(t._s(t.$L("\u7ED3\u675F\u72B6\u6001")))]),s("div",{staticClass:"subtitle"},[t._v(t._s(t.$L("\u8BE5\u72B6\u6001\u4E0B\u4EFB\u52A1\u81EA\u52A8\u6807\u8BB0\u5B8C\u6210")))])])])]),s("div",{staticClass:"taskflow-config-table-block hr"},[s("div",{staticClass:"taskflow-config-table-block-title"},[t._v(t._s(t.$L("\u53EF\u6D41\u8F6C\u5230")))]),t._l(a.project_flow_item,function(o){return s("div",{staticClass:"taskflow-config-table-block-item"},[s("span",{staticClass:"transform-status-name"},[t._v(t._s(o.name))])])})],2)])]),s("div",{staticClass:"taskflow-config-table-right-container"},[s("Draggable",{staticClass:"taskflow-config-table-list-wrapper",attrs:{list:a.project_flow_item,animation:150,disabled:t.$isEEUiApp||t.windowTouch,tag:"div",draggable:".column-border"},on:{sort:function(o){}}},[t._l(a.project_flow_item,function(o){return s("div",{staticClass:"taskflow-config-table-status-column column-border",class:o.status},[s("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[s("div",{staticClass:"status-label-with-menu",class:o.status},[s("div",{staticClass:"name"},[t._v(t._s(t.$L(o.name)))]),s("EDropdown",{staticClass:"more",class:{opacity:o.userids.length>0||o.columnid>0},attrs:{trigger:"click"},on:{command:function(i){return t.onMore(i,o)}}},[s("div",{staticClass:"more-icon"},[s("Badge",{attrs:{dot:o.userids.length>0||o.columnid>0}},[s("Icon",{attrs:{type:"ios-more"}})],1)],1),s("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[o.userids.length>0?s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"users"},t._l(o.userids,function(i,r){return s("UserAvatar",{key:r,attrs:{userid:i,size:28,borderWitdh:1,showName:o.userids.length===1}})}),1)]):t._e(),s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-settings"}}),s("Badge",{attrs:{dot:o.userids.length>0||o.columnid>0}},[t._v(" "+t._s(t.$L("\u72B6\u6001\u8BBE\u7F6E"))+" ")])],1)]),s("EDropdownItem",{attrs:{command:"name"}},[s("div",{staticClass:"item"},[s("Icon",{attrs:{type:"md-create"}}),t._v(t._s(t.$L("\u4FEE\u6539\u540D\u79F0"))+" ")],1)]),s("EDropdownItem",{attrs:{command:"remove"}},[s("div",{staticClass:"item delete"},[s("Icon",{attrs:{type:"md-trash"}}),t._v(t._s(t.$L("\u5220\u9664"))+" ")],1)])],1)],1)],1)]),s("div",{ref:`overlay_${a.id}`,refInFor:!0,staticClass:"taskflow-config-table-column-body"},[s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("RadioGroup",{model:{value:o.status,callback:function(i){t.$set(o,"status",i)},expression:"item.status"}},[s("Radio",{attrs:{label:"start"}},[s("span")]),s("Radio",{attrs:{label:"progress"}},[s("span")]),s("Radio",{attrs:{label:"test"}},[s("span")]),s("Radio",{attrs:{label:"end"}},[s("span")])],1)],1),s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("CheckboxGroup",{on:{"on-change":function(i){return t.onTurns(o)}},model:{value:o.turns,callback:function(i){t.$set(o,"turns",i)},expression:"item.turns"}},t._l(a.project_flow_item,function(i){return s("Checkbox",{key:i.id,attrs:{label:i.id,disabled:i.id==o.id}},[s("span")])}),1)],1)])])}),s("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(o){return t.onAdd(a)}}},[t._v(t._s(t.$L("\u6DFB\u52A0\u72B6\u6001")))])],2)],1)])])])}),1)],1):t.loadIng==0?s("div",{staticClass:"workflow-no"},[t._v(" "+t._s(t.$L("\u5F53\u524D\u9879\u76EE\u8FD8\u6CA1\u6709\u521B\u5EFA\u5DE5\u4F5C\u6D41"))+" "),s("Button",{attrs:{type:"primary"},on:{click:t.onCreate}},[t._v(t._s(t.$L("\u521B\u5EFA\u5DE5\u4F5C\u6D41")))])],1):t._e(),s("Modal",{attrs:{styles:{width:"90%",maxWidth:"640px"},title:`${t.$L("\u72B6\u6001\u8BBE\u7F6E")} (${t.settingData.name})`,"mask-closable":!1},model:{value:t.userShow,callback:function(a){t.userShow=a},expression:"userShow"}},[s("Form",{attrs:{model:t.settingData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[s("UserSelect",{attrs:{"project-id":t.projectId,"multiple-max":5,title:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.settingData.userids,callback:function(a){t.$set(t.settingData,"userids",a)},expression:"settingData.userids"}})],1),s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[s("RadioGroup",{model:{value:t.settingData.usertype,callback:function(a){t.$set(t.settingData,"usertype",a)},expression:"settingData.usertype"}},[s("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.settingData.usertype=="replace"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):t.settingData.usertype=="merge"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u6539\u53D8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u4E3A\u72B6\u6001\u8D1F\u8D23\u4EBA\uFF08\u5E76\u4FDD\u7559\u64CD\u4F5C\u72B6\u6001\u7684\u4EBA\u5458\uFF09\uFF0C\u539F\u672C\u7684\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u79FB\u81F3\u534F\u52A9\u4EBA\u5458\u3002`)))]):s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u6DFB\u52A0\u72B6\u6001\u8D1F\u8D23\u4EBA\u81F3\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u3002`)))])],1),s("FormItem",{attrs:{prop:"userlimit",label:t.$L("\u9650\u5236\u8D1F\u8D23\u4EBA")}},[s("iSwitch",{attrs:{"true-value":1,"false-value":0},model:{value:t.settingData.userlimit,callback:function(a){t.$set(t.settingData,"userlimit",a)},expression:"settingData.userlimit"}}),t.settingData.userlimit===1?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))]):s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\uFF0C[\u4EFB\u52A1\u8D1F\u8D23\u4EBA] \u548C [\u9879\u76EE\u7BA1\u7406\u5458] \u53EF\u4EE5\u4FEE\u6539\u72B6\u6001\u3002`)))])],1)],1)]),s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u5173\u8054\u5217\u8868")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u5173\u8054\u5217\u8868")}},[s("Select",{attrs:{placeholder:t.$L("\u9009\u62E9\u5173\u8054\u5217\u8868"),transfer:""},model:{value:t.settingData.columnid,callback:function(a){t.$set(t.settingData,"columnid",a)},expression:"settingData.columnid"}},t._l(t.columnList,function(a,o){return s("Option",{key:o,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1),s("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${t.settingData.name}\u3011\u65F6\u81EA\u52A8\u5C06\u4EFB\u52A1\u79FB\u52A8\u81F3\u5173\u8054\u5217\u8868\u3002`))+" "),t.settingData.columnid?s("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){t.settingData.columnid=0}}},[t._v(t._s(t.$L("\u53D6\u6D88\u5173\u8054")))]):t._e()])],1)],1)])]),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(a){t.userShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{type:"primary"},on:{click:t.onUser}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)],1)],1)},ct=[];const dt={name:"ProjectWorkflow",components:{UserSelect:W,Draggable:E},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,settingData:{}}},mounted(){},computed:{...h(["cacheColumns"]),columnList({projectId:t,cacheColumns:e}){return e.filter(({project_id:s})=>s==t).sort((s,a)=>s.sort!=a.sort?s.sort-a.sort:s.id-a.id).map(s=>({id:s.id,name:s.name}))}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{this.list=t.map(e=>(e.project_flow_bak=JSON.stringify(e.project_flow_item),e)),this.openIndex=this.list.length===1?"index_"+this.list[0].id:"",this.$nextTick(this.syncScroller)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},syncScroller(){this.list.some(t=>{this.$refs[`overlay_${t.id}`]&&this.$refs[`overlay_${t.id}`].some(e=>{Object.keys(e.attributes).includes("sync-scroller")||(e.setAttribute("sync-scroller",!0),e.addEventListener("scroll",({target:s})=>{let a=s.scrollTop,o=s.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(i=>{i!=e&&i.scrollTo(o,a)})})}))})})},contrast(t,e){return JSON.stringify(t)!=e},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:"\u5F85\u5904\u7406",status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-11,name:"\u8FDB\u884C\u4E2D",status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-12,name:"\u5F85\u6D4B\u8BD5",status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-13,name:"\u5DF2\u5B8C\u6210",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-14,name:"\u5DF2\u53D6\u6D88",status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0}]}),this.openIndex="index_"+t,this.$nextTick(this.syncScroller)},onDelete(t){$A.modalConfirm({title:"\u5220\u9664\u5DE5\u4F5C\u6D41",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5DE5\u4F5C\u6D41\u5417\uFF1F",loading:!0,onOk:()=>{if(t.id>0)return new Promise((s,a)=>{this.loadIng++,this.$store.dispatch("call",{url:"project/flow/delete",data:{project_id:this.projectId}}).then(({msg:o})=>{s(o);let i=this.list.findIndex(({id:r})=>r==t.id);i>-1&&this.list.splice(i,1)}).catch(({msg:o})=>{a(o)}).finally(o=>{this.loadIng--})});const e=this.list.findIndex(({id:s})=>s==t.id);e>-1&&this.list.splice(e,1)}})},onMore(t,e){switch(t){case"user":this.$set(this.settingData,"id",e.id),this.$set(this.settingData,"name",e.name),this.$set(this.settingData,"userids",e.userids),this.$set(this.settingData,"usertype",e.usertype),this.$set(this.settingData,"userlimit",e.userlimit),this.$set(this.settingData,"columnid",e.columnid),this.userShow=!0;break;case"name":this.onName(e);break;case"remove":this.onRemove(e);break}},onUser(){this.userShow=!1,this.list.some(t=>{let e=t.project_flow_item.find(s=>s.id==this.settingData.id);e&&(this.$set(e,"userids",this.settingData.userids),this.$set(e,"usertype",this.settingData.usertype),this.$set(e,"userlimit",this.settingData.userlimit),this.$set(e,"columnid",this.settingData.columnid))})},onName(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0";this.$set(t,"name",e)}})},onRemove(t){this.list.some(e=>{let s=e.project_flow_item.findIndex(({id:a})=>a==t.id);s>-1&&e.project_flow_item.splice(s,1)})},onTurns(t){this.$set(t,"turns",t.turns.sort())},onAdd(t){$A.modalInput({title:"\u6DFB\u52A0\u72B6\u6001",placeholder:"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0",onOk:e=>{if(!e)return"\u8BF7\u8F93\u5165\u72B6\u6001\u540D\u79F0";const s=$A.randNum(1e5,999999)*-1,a=t.project_flow_item.map(({id:o})=>o);t.project_flow_item.push({id:s,name:e,status:"end",turns:a,userids:[],usertype:"add",userlimit:0,columnid:0}),t.project_flow_item.some(o=>{o.turns.push(s)})}})},onReduction(t){this.$set(t,"project_flow_item",JSON.parse(t.project_flow_bak))},onSave(t){let e=0;t.project_flow_item.some(s=>{s.sort=e++}),this.loadIng++,this.$store.dispatch("call",{url:"project/flow/save",data:{project_id:this.projectId,flows:t.project_flow_item},method:"post"}).then(({data:s,msg:a})=>{$.messageSuccess(a),s.project_flow_bak=JSON.stringify(s.project_flow_item);let o=this.list.findIndex(({id:i})=>i==t.id);o>-1?this.list.splice(o,1,s):this.list.push(s),this.openIndex="index_"+s.id,this.$nextTick(this.syncScroller)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})},saveAll(){this.list.some(t=>{this.contrast(t.project_flow_item,t.project_flow_bak)&&this.onSave(t)})}}},C={};var ut=d(dt,lt,ct,!1,pt,null,null,null);function pt(t){for(let e in C)this[e]=C[e]}var ht=function(){return ut.exports}(),mt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-permission"},[s("div",{staticClass:"permission-title"},[t._v(" "+t._s(t.$L("\u6743\u9650\u8BBE\u7F6E"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):s("Icon",{attrs:{type:"ios-refresh"},on:{click:function(a){return t.getData()}}})],1)]),s("div",{staticClass:"permission-content"},[s("Form",{attrs:{model:t.formData,"label-width":"90","label-position":"right"}},[s("div",{staticClass:"project-permission-title"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5217\u6743\u9650"))+":")]),s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_add,callback:function(a){t.$set(t.formData,"task_list_add",a)},expression:"formData.task_list_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_update,callback:function(a){t.$set(t.formData,"task_list_update",a)},expression:"formData.task_list_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_remove,callback:function(a){t.$set(t.formData,"task_list_remove",a)},expression:"formData.task_list_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u6392\u5E8F\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_sort,callback:function(a){t.$set(t.formData,"task_list_sort",a)},expression:"formData.task_list_sort"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("div",{staticClass:"project-permission-title"},[t._v(t._s(t.$L("\u4EFB\u52A1\u6743\u9650"))+":")]),s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_add,callback:function(a){t.$set(t.formData,"task_add",a)},expression:"formData.task_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_update,callback:function(a){t.$set(t.formData,"task_update",a)},expression:"formData.task_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u72B6\u6001")}},[s("CheckboxGroup",{model:{value:t.formData.task_status,callback:function(a){t.$set(t.formData,"task_status",a)},expression:"formData.task_status"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5F52\u6863\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_archived,callback:function(a){t.$set(t.formData,"task_archived",a)},expression:"formData.task_archived"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_remove,callback:function(a){t.$set(t.formData,"task_remove",a)},expression:"formData.task_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u79FB\u52A8\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_move,callback:function(a){t.$set(t.formData,"task_move",a)},expression:"formData.task_move"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)],1),s("div",{staticClass:"project-permission-footer",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.updateData}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),s("Button",{attrs:{type:"default"},on:{click:t.onClose}},[t._v(t._s(t.$L("\u53D6\u6D88")))])],1)])},ft=[];const _t={name:"ProjectPermission",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,formData:{project_task_list:[],task_add:[],task_update:[],task_status:[],task_archived:[],task_remove:[],task_move:[]}}},mounted(){},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission",data:{project_id:this.projectId}}).then(({data:t})=>{this.formData=t.permissions}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},updateData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission/update",method:"post",data:{project_id:this.projectId,...this.formData}}).then(({data:t})=>{this.formData=t.permissions,this.$Message.success(this.$L("\u4FEE\u6539\u6210\u529F"))}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onClose(){this.$emit("close")}}},D={};var vt=d(_t,mt,ft,!1,$t,null,null,null);function $t(t){for(let e in D)this[e]=D[e]}var kt=function(){return vt.exports}(),gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-deleted"},[s("div",{staticClass:"deleted-title"},[t._v(" "+t._s(t.$L("\u5220\u9664\u7684\u4EFB\u52A1"))+" "),s("div",{staticClass:"title-icon"},[t.loadIng>0?s("Loading"):t._e()],1)]),s("div",{staticClass:"search-container lr"},[s("ul",[s("li",[s("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),s("div",{staticClass:"search-content"},[s("Input",{attrs:{placeholder:t.$L("ID\u3001\u4EFB\u52A1\u540D..."),clearable:""},model:{value:t.keys.name,callback:function(a){t.$set(t.keys,"name",a)},expression:"keys.name"}})],1)]),s("li",{staticClass:"search-button"},[s("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),s("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?s("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):s("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),s("div",{staticClass:"table-page-box"},[s("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),s("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},wt=[];const yt={name:"TaskDeleted",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:e,column:s})=>t("TableAction",{props:{column:s,align:"left"}},[t("div",e.id)])},{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:e})=>t("AutoTip",e.name)},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u5220\u9664\u65F6\u95F4"),key:"deleted_at",width:168},{title:this.$L("\u5220\u9664\u4EBA\u5458"),key:"deleted_userid",minWidth:100,render:(t,{row:e})=>e.deleted_userid?t("UserAvatar",{props:{userid:e.deleted_userid,size:24,showName:!0}}):t("span","-")},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,e)=>{const s=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(e.row)}}},this.$L("\u8FD8\u539F"))];return t("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){},computed:{...h(["cacheTasks"])},watch:{projectId:{handler(){this.getLists()},immediate:!0},keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){!this.projectId||(this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/task/lists",data:{keys:this.keys,project_id:this.projectId,parent_id:-1,deleted:"yes",sorts:{deleted_at:"desc"},page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--}))},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:e})=>e!=t.id),this.loadIng++,this.$store.dispatch("removeTask",{task_id:t.id,type:"recovery"}).then(({msg:e})=>{$A.messageSuccess(e),this.loadIng--,this.getLists(),this.$store.dispatch("openTask",t)}).catch(({msg:e})=>{$A.modalError(e),this.loadIng--,this.getLists()})}}},L={};var bt=d(yt,gt,wt,!1,Ct,null,null,null);function Ct(t){for(let e in L)this[e]=L[e]}var Dt=function(){return bt.exports}(),Lt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"common-gantt"},[s("div",{staticClass:"gantt-left",style:{width:t.menuWidth+"px"}},[s("div",{staticClass:"gantt-title"},[s("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))])]),s("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(a){t.mouseType="item"}}},t._l(t.lists,function(a,o){return s("li",{key:o},[a.overdue?s("div",{staticClass:"item-overdue",on:{click:function(i){return t.clickItem(a)}}},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),s("div",{staticClass:"item-title",class:{complete:a.complete,overdue:a.overdue},on:{click:function(i){return t.clickItem(a)}}},[t._v(t._s(a.label))]),s("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(i){return t.scrollPosition(o)}}})],1)}),0)]),s("div",{ref:"ganttRight",staticClass:"gantt-right"},[s("div",{staticClass:"gantt-chart"},[s("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(a,o){return s("li",{key:o,style:t.monthStyle(o)},[s("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(o)))])])}),0),s("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(a,o){return s("li",{key:o,style:t.dateStyle(o)},[s("div",{staticClass:"date-format"},[s("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(o,"day")))]),t.dateWidth>46?s("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(o,"week")))]):t._e()])])}),0),s("ul",{ref:"ganttTimeline",staticClass:"gantt-timeline",on:{scroll:t.timelineScrollListener,mouseenter:function(a){t.mouseType="timeline"}}},t._l(t.lists,function(a,o){return s("li",{key:o},[s("div",{staticClass:"timeline-item",style:t.itemStyle(a),on:{mousedown:function(i){return t.itemMouseDown(i,a)}}},[s("div",{staticClass:"timeline-title",attrs:{title:a.label}},[t._v(t._s(a.label))]),s("div",{staticClass:"timeline-resizer"})])])}),0)])])])},jt=[];const Tt={name:"GanttView",props:{lists:{type:Array},menuWidth:{type:Number,default:300},itemWidth:{type:Number,default:100}},data(){return{mouseType:"",mouseWidth:0,mouseScaleWidth:0,dateWidth:100,ganttWidth:0,mouseItem:null,mouseBak:{},dateMove:null}},mounted(){this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t}},computed:{monthNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=new Date,i=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),r=new Date(i.getTime()+a*864e5),n=new Date(r.getFullYear(),r.getMonth()+1,0,23,59,59),l=(n-r)/1e3/60/60/24,c=e*l;return s>0&&(n=new Date(r.getFullYear(),r.getMonth()+1+s,0),c=n.getDate()*e),{width:c+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=new Date,i=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),r=new Date(i.getTime()+a*864e5);return s>0&&(r=new Date(r.getFullYear(),r.getMonth()+1+s,0)),$A.formatDate("Y-m",r)}},dateNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e)+2},dateStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){const a={};let o=t==0?0:t/e,i=Math.floor(o)+s;o==Math.floor(o)&&i--;let r=t==0?s-1:i,n=new Date(new Date().getTime()+r*864e5);[0,6].indexOf(n.getDay())!==-1&&(a.backgroundColor="#f9fafb");let l=e;return s==0&&(l=Math.abs((t%l-l)%l)),a.width=l+"px",a}},dateFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s,a){let o=t==0?0:t/e,i=Math.floor(o)+s;o==Math.floor(o)&&i--;let r=t==0?s-1:i,n=new Date(new Date().getTime()+r*864e5);return a=="day"?n.getDate():a=="week"?this.$L(`\u661F\u671F${"\u65E5\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D".charAt(n.getDay())}`):n}},itemStyle(){const{mouseWidth:t,dateWidth:e,ganttWidth:s}=this;return function(a){const{start:o,end:i}=a.time,{style:r,moveX:n,moveW:l}=a;let c=new Date,u=new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0).getTime(),f=(o-u)/1e3/60/60/24,v=(i-u)/1e3/60/60/24,p=e*f+t*-1,m=e*(v-f);typeof n=="number"&&(p+=n),typeof l=="number"&&(m+=l);const _={left:Math.min(Math.max(p,m*-1.2),s*1.2).toFixed(2)+"px",width:m.toFixed(2)+"px"};return p<0&&Math.abs(p)s&&pe.scrollHeight-e.clientHeight&&(s=e.scrollHeight-e.clientHeight),e.scrollTop!=s&&(this.mouseType="timeline",e.scrollTop=s)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateMouseDown(t){t.preventDefault(),this.mouseItem=null,this.dateMove={clientX:t.clientX}},itemMouseDown(t,e){t.preventDefault();let s="moveX";t.target.className=="timeline-resizer"&&(s="moveW"),typeof e[s]!="number"&&this.$set(e,s,0),this.mouseBak={type:s,clientX:t.clientX,value:e[s]},this.mouseItem=e,this.dateMove=null},itemMouseMove(t){if(this.mouseItem!=null){t.preventDefault();const e=this.mouseBak.value+(t.clientX-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const s=864e5/this.dateWidth,{start:a,end:o}=this.mouseItem.time;let i=e*s;if(o+i-a<=0)return}this.$set(this.mouseItem,this.mouseBak.type,e)}else if(this.dateMove!=null){t.preventDefault();let e=(this.dateMove.clientX-t.clientX)*5;this.dateMove.clientX=t.clientX,this.mouseWidth+=e,this.mouseScaleWidth+=e*(100/this.dateWidth)}},itemMouseUp(t){if(this.mouseItem!=null){const{start:e,end:s}=this.mouseItem.time;let a=!1,o=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let i=this.mouseItem.moveX*o;this.$set(this.mouseItem.time,"start",e+i),this.$set(this.mouseItem.time,"end",s+i),this.$set(this.mouseItem,"moveX",0),a=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let i=this.mouseItem.moveW*o;this.$set(this.mouseItem.time,"end",s+i),this.$set(this.mouseItem,"moveW",0),a=!0}a?this.$emit("on-change",this.mouseItem):t.target.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null}else this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let e=new Date,s=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=864e5/this.dateWidth,o=(this.lists[t].time.start-s)/a-this.dateWidth-this.mouseWidth;this.mouseWidth+=o,this.mouseScaleWidth+=o*(100/this.dateWidth)},clickItem(t){this.$emit("on-click",t)}}},j={};var It=d(Tt,Lt,jt,!1,xt,null,null,null);function xt(t){for(let e in j)this[e]=j[e]}var St=function(){return It.exports}(),At=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-gstc-gantt"},[s("GanttView",{attrs:{lists:t.lists,menuWidth:t.menuWidth,itemWidth:80},on:{"on-change":t.onChange,"on-click":t.onClick}}),s("Dropdown",{staticClass:"project-gstc-dropdown-filtr",style:t.dropStyle,attrs:{trigger:"click"},on:{"on-click":t.onSwitchColumn}},[s("Icon",{staticClass:"project-gstc-dropdown-icon",class:{filtr:t.filtrProjectId>0},attrs:{type:"md-funnel"}}),s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[s("DropdownItem",{class:{"dropdown-active":t.filtrProjectId==0},attrs:{name:0}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.projectColumn,function(a,o){return s("DropdownItem",{key:o,class:{"dropdown-active":t.filtrProjectId==a.id},attrs:{name:a.id}},[t._v(" "+t._s(a.name)+" "),a.tasks?s("span",[t._v("("+t._s(t.filtrLength(a.tasks))+")")]):t._e()])})],2)],1),s("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[s("div",{staticClass:"project-gstc-edit-info"},[s("Table",{attrs:{size:"small","max-height":"600",columns:t.editColumns,data:t.editData}}),s("div",{staticClass:"project-gstc-edit-btns"},[s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),s("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(a){t.editShowInfo=!1}}})],1)],1),s("div",{staticClass:"project-gstc-edit-small"},[s("div",{staticClass:"project-gstc-edit-text",on:{click:function(a){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?s("span",[t._v(t._s(t.editData.length))]):t._e()]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},Pt=[];const Et={name:"ProjectGantt",components:{GanttView:St},props:{projectColumn:{default:[]},flowInfo:{default:{}}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:150,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:e})=>e.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(e.baktime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(e.baktime.end/1e3)))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),minWidth:135,align:"center",render:(t,{row:e})=>t("div",{style:{}},[t("div",$A.formatDate("Y-m-d H:i",Math.round(e.newTime.start/1e3))),t("div",$A.formatDate("Y-m-d H:i",Math.round(e.newTime.end/1e3)))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...h(["taskPriority"]),...g(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},dropStyle(){return this.windowWidth<1440?{left:"142px"}:{}},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowInfo:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},filtrLength(t){return t.filter(e=>!(e.complete_at&&!this.completedTask||this.flowTask(e))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(e=>{let s=!e.start_at||!e.end_at,a=this.getTimeObj(e),o=a.start,i=a.end;if(e.complete_at&&!this.completedTask||this.flowTask(e))return!1;let r="#058ce4";this.taskPriority.some(u=>{if(u.priority===e.p_level)return r=u.color,!0});let n={start:o,end:i},l=$A.cloneJSON(n),c=this.editData.find(({id:u})=>u==e.id);c&&(n=$A.cloneJSON(c.newTime)),this.lists.push({id:e.id,label:e.name,complete:e.complete_at,overdue:e.overdue,time:n,notime:s,baktime:l,style:{background:r}})})},onChange(t){const{time:e,baktime:s}=t;if(Math.abs(s.end-e.end)>1e3||Math.abs(s.start-e.start)>1e3){let a=this.editData.find(({id:o})=>o==t.id);a?a.newTime=e:this.editData.push({id:t.id,label:t.label,notime:t.notime,baktime:t.baktime,newTime:e})}},onClick(t){this.$store.dispatch("openTask",t)},editSubmit(t){this.editData&&this.editData.forEach(e=>{let s=this.lists.find(({id:a})=>a==e.id);if(t){this.editLoad++;let a=$A.formatDate("Y-m-d H:i",Math.round(e.newTime.start/1e3)),o=$A.formatDate("Y-m-d H:i",Math.round(e.newTime.end/1e3)),i={task_id:e.id,times:[a,o]};this.$store.dispatch("taskUpdate",i).then(({msg:r})=>{this.editLoad--,this.editLoad===0&&$A.messageSuccess(r),s&&this.$set(s,"baktime",$A.cloneJSON(s.time))}).catch(({msg:r})=>{this.editLoad--,this.editLoad===0&&$A.modalError(r),s&&this.$set(s,"time",$A.cloneJSON(s.baktime))})}else s&&this.$set(s,"time",$A.cloneJSON(s.baktime))}),this.editData=[]},getTimeObj(t){let e=$A.Time(t.start_at)||$A.Time(t.created_at),s=$A.Time(t.end_at)||$A.Time(t.created_at)+86400;return s==e&&(s=Math.round(new Date($A.formatDate("Y-m-d 23:59:59",s)).getTime()/1e3)),s=Math.max(s,e+60),e*=1e3,s*=1e3,{start:e,end:s}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},T={};var Mt=d(Et,At,Pt,!1,Ft,null,null,null);function Ft(t){for(let e in T)this[e]=T[e]}var Wt=function(){return Mt.exports}(),Nt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"markdown-preview-nostyle",domProps:{innerHTML:t._s(t.html)}})},Ot=[];const zt={name:"markdown-preview-nostyle",props:{initialValue:{type:String,default:""}},data(){return{html:""}},mounted(){this.translateMarkdown()},methods:{translateMarkdown(){this.html=z(this.initialValue,{sanitize:!1}).replace(/href="/gi,'target="_blank" href="')}},watch:{initialValue(){this.translateMarkdown()}}},I={};var Rt=d(zt,Nt,Ot,!1,Ut,null,null,null);function Ut(t){for(let e in I)this[e]=I[e]}var Bt=function(){return Rt.exports}(),Vt=function(){var t=this,e=this,s=e.$createElement,a=e._self._c||s;return a("div",{staticClass:"project-panel",class:[e.tabTypeActive]},[a("PageTitle",{attrs:{title:e.projectData.name}}),a("div",{staticClass:"project-titbox"},[a("div",{staticClass:"project-title"},[a("div",{staticClass:"project-back",on:{click:e.onBack}},[a("i",{staticClass:"taskfont"},[e._v("\uE676")])]),a("h1",{on:{click:e.showName}},[e._v(e._s(e.projectData.name))]),e.loading?a("div",{staticClass:"project-load"},[a("Loading")],1):e._e()]),a("ul",{staticClass:"project-icons"},[a("li",{staticClass:"project-avatar",class:{"cursor-default":e.projectData.owner_userid!==e.userId},on:{click:function(o){return e.projectDropdown("user")}}},[a("ul",[a("li",[a("UserAvatarTip",{attrs:{userid:e.projectData.owner_userid,size:36,borderWitdh:2,openDelay:0}},[a("p",[e._v(e._s(e.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))])]),(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?a("Badge",{attrs:{type:"normal","overflow-count":999,count:e.projectData.project_user.length}}):e._e()],1),e._l(e.projectUser,function(o){return!(e.windowWidth<=980||e.projectData.cacheParameter.chat)&&e.projectUser.length>0?[o.userid===-1?a("li",{staticClass:"more"},[a("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u5171"+e.projectData.project_user.length+"\u4E2A\u6210\u5458")}},[a("Icon",{attrs:{type:"ios-more"}})],1)],1):a("li",[a("UserAvatarTip",{attrs:{userid:o.userid,size:36,borderWitdh:2,openDelay:0}})],1)]:e._e()})],2)]),a("li",{staticClass:"project-icon",on:{click:function(o){return e.addTaskOpen(0)}}},[a("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"md-add"}})],1)],1),a("li",{class:["project-icon",e.searchText!=""?"active":""]},[a("Tooltip",{attrs:{always:e.searchText!="",theme:"light",rawIndex:10},on:{"on-popper-show":e.searchFocus}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-search"},on:{click:e.searchFocus}}),a("div",{attrs:{slot:"content"},slot:"content"},[a("Input",{ref:"searchInput",staticClass:"search-input",attrs:{placeholder:e.$L("ID\u3001\u540D\u79F0\u3001\u63CF\u8FF0..."),clearable:""},model:{value:e.searchText,callback:function(o){e.searchText=o},expression:"searchText"}})],1)],1)],1),a("li",{class:["project-icon",e.windowLandscape&&e.projectData.cacheParameter.chat?"active":""],on:{click:function(o){return e.toggleParameter("chat")}}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-chatbubbles"}}),a("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,count:e.msgUnread}})],1),a("li",{staticClass:"project-icon"},[a("EDropdown",{attrs:{trigger:"click",transfer:""},on:{command:e.projectDropdown}},[a("Icon",{staticClass:"menu-icon",attrs:{type:"ios-more"}}),e.projectData.owner_userid===e.userId?a("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"setting"}},[e._v(e._s(e.$L("\u9879\u76EE\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"permissions"}},[e._v(e._s(e.$L("\u6743\u9650\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"workflow"}},[e._v(e._s(e.$L("\u5DE5\u4F5C\u6D41\u8BBE\u7F6E")))]),a("EDropdownItem",{attrs:{command:"user",divided:""}},[e._v(e._s(e.$L("\u6210\u5458\u7BA1\u7406")))]),a("EDropdownItem",{attrs:{command:"invite"}},[e._v(e._s(e.$L("\u9080\u8BF7\u94FE\u63A5")))]),a("EDropdownItem",{attrs:{command:"log",divided:""}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),a("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"transfer",divided:""}},[e._v(e._s(e.$L("\u79FB\u4EA4\u9879\u76EE")))]),a("EDropdownItem",{attrs:{command:"archived"}},[e._v(e._s(e.$L("\u5F52\u6863\u9879\u76EE")))]),a("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"delete"}},[e._v(e._s(e.$L("\u5220\u9664\u9879\u76EE")))])],1):a("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"log"}},[e._v(e._s(e.$L("\u9879\u76EE\u52A8\u6001")))]),a("EDropdownItem",{attrs:{command:"archived_task"}},[e._v(e._s(e.$L("\u5DF2\u5F52\u6863\u4EFB\u52A1")))]),a("EDropdownItem",{attrs:{command:"deleted_task"}},[e._v(e._s(e.$L("\u5DF2\u5220\u9664\u4EFB\u52A1")))]),a("EDropdownItem",{staticStyle:{color:"#f40"},attrs:{command:"exit",divided:""}},[e._v(e._s(e.$L("\u9000\u51FA\u9879\u76EE")))])],1)],1)],1)])]),a("div",{staticClass:"project-subbox"},[a("div",{staticClass:"project-subtitle",on:{click:e.showDesc}},[a("MarkdownPreviewNostyle",{ref:"descPreview",attrs:{initialValue:e.projectData.desc}})],1),a("div",{staticClass:"project-switch"},[e.completedCount>0?a("div",{staticClass:"project-checkbox"},[a("Checkbox",{attrs:{value:e.projectData.cacheParameter.completedTask},on:{"on-change":e.toggleCompleted}},[e._v(e._s(e.$L("\u663E\u793A\u5DF2\u5B8C\u6210")))])],1):e._e(),a("div",{staticClass:"project-select"},[a("Cascader",{ref:"flow",attrs:{data:e.flowData,"transfer-class-name":"project-panel-flow-cascader",transfer:""},on:{"on-change":e.flowChange}},[a("span",{class:`project-flow ${e.flowInfo.status||""}`},[e._v(e._s(e.flowTitle))])])],1),a("div",{staticClass:"project-switch-button"},[a("div",{staticClass:"slider",style:e.tabTypeStyle}),a("div",{class:{active:e.tabTypeActive==="column"},on:{click:function(o){return e.tabTypeChange("column")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE60C")])]),a("div",{class:{active:e.tabTypeActive==="table"},on:{click:function(o){return e.tabTypeChange("table")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE66A")])]),a("div",{class:{active:e.tabTypeActive==="gantt"},on:{click:function(o){return e.tabTypeChange("gantt")}}},[a("i",{staticClass:"taskfont"},[e._v("\uE797")])])])])]),e.tabTypeActive==="column"?a("div",{staticClass:"project-column"},[a("Draggable",{staticClass:"column-list",attrs:{list:e.columnList,animation:150,disabled:e.sortDisabled||e.$isEEUiApp||e.windowTouch,tag:"ul",draggable:".column-item"},on:{sort:function(o){return e.sortUpdate(!0)}}},[e._l(e.columnList,function(o){return a("li",{staticClass:"column-item"},[a("div",{class:["column-head",o.color?"custom-color":""],style:o.color?{backgroundColor:o.color}:{}},[a("div",{staticClass:"column-head-title"},[a("AutoTip",[e._v(e._s(o.name))]),a("em",[e._v("("+e._s(e.panelTask(o.tasks).length)+")")])],1),a("div",{staticClass:"column-head-icon"},[e.columnLoad[o.id]===!0?a("div",{staticClass:"loading"},[a("Loading")],1):a("EDropdown",{attrs:{trigger:"click",size:"small"},on:{command:function(i){return e.dropColumn(o,i)}}},[a("Icon",{attrs:{type:"ios-more"}}),a("EDropdownMenu",{staticClass:"project-panel-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[a("EDropdownItem",{attrs:{command:"title"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-create"}}),e._v(e._s(e.$L("\u4FEE\u6539"))+" ")],1)]),a("EDropdownItem",{attrs:{command:"remove"}},[a("div",{staticClass:"item"},[a("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]),e._l(e.$store.state.columnColorList,function(i,r){return a("EDropdownItem",{key:r,attrs:{divided:r==0,command:i}},[a("div",{staticClass:"item"},[a("i",{staticClass:"taskfont",style:{color:i.color||"#ddd"},domProps:{innerHTML:e._s(i.color==o.color?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])})],2)],1),a("Icon",{staticClass:"last",attrs:{type:"md-add"},on:{click:function(i){return e.addTopShow(o.id,!0)}}})],1)]),a("Scrollbar",{staticClass:"column-task"},[e.columnTopShow[o.id]?a("div",{staticClass:"task-item additem"},[a("TaskAddSimple",{attrs:{"column-id":o.id,"project-id":e.projectId,"add-top":!0,"auto-active":""},on:{"on-close":function(i){return e.addTopShow(o.id,!1)},"on-priority":e.addTaskOpen}})],1):e._e(),a("Draggable",{staticClass:"task-list",attrs:{list:o.tasks,animation:150,disabled:e.sortDisabled||e.$isEEUiApp||e.windowTouch,draggable:".task-draggable",filter:".complete",group:"task"},on:{sort:e.sortUpdate,remove:e.sortUpdate}},[e._l(o.tasks,function(i){return a("div",{class:["task-item task-draggable",i.complete_at?"complete":"",e.taskIsHidden(i)?"hidden":""],style:i.color?{backgroundColor:i.color}:{},on:{click:function(r){return e.openTask(i)}}},[a("div",{class:["task-head",i.desc?"has-desc":""]},[a("div",{staticClass:"task-title"},[i.flow_item_name?a("span",{class:i.flow_item_status,on:{click:function(r){return r.stopPropagation(),e.openMenu(r,i)}}},[e._v(e._s(i.flow_item_name))]):e._e(),a("pre",[e._v(e._s(i.name))])]),a("div",{staticClass:"task-menu",on:{click:function(r){r.stopPropagation()}}},[a("TaskMenu",{ref:`taskMenu_${i.id}`,refInFor:!0,attrs:{task:i,icon:"ios-more"}})],1)]),i.complete_at?e._e():[i.desc?a("div",{staticClass:"task-desc"},[a("pre",{domProps:{innerHTML:e._s(i.desc)}})]):e._e(),i.task_tag.length>0?a("div",{staticClass:"task-tags"},e._l(i.task_tag,function(r,n){return a("Tag",{key:n,attrs:{color:r.color}},[e._v(e._s(r.name))])}),1):e._e(),a("div",{staticClass:"task-users"},[a("ul",[e._l(e.ownerUser(i.task_user),function(r,n){return a("li",{key:n},[a("UserAvatar",{attrs:{userid:r.userid,size:"32",borderWitdh:2,borderColor:i.color}})],1)}),e.ownerUser(i.task_user).length===0?a("li",{staticClass:"no-owner"},[a("Button",{attrs:{type:"primary",size:"small",ghost:""},on:{click:function(r){return r.stopPropagation(),e.openTask(i,!0)}}},[e._v(e._s(e.$L("\u9886\u53D6\u4EFB\u52A1")))])],1):e._e()],2),i.file_num>0?a("div",{staticClass:"task-icon"},[e._v(e._s(i.file_num)),a("Icon",{attrs:{type:"ios-link-outline"}})],1):e._e(),i.msg_num>0?a("div",{staticClass:"task-icon"},[e._v(e._s(i.msg_num)),a("Icon",{attrs:{type:"ios-chatbubbles-outline"}})],1):e._e()]),a("div",{staticClass:"task-progress"},[i.sub_num>0?a("div",{staticClass:"task-sub-num"},[e._v(e._s(i.sub_complete)+"/"+e._s(i.sub_num))]):e._e(),a("Progress",{attrs:{percent:i.percent,"stroke-width":6}}),i.end_at?a("ETooltip",{class:["task-time",i.today?"today":"",i.overdue?"overdue":""],attrs:{disabled:e.$isEEUiApp||e.windowTouch,"open-delay":600,content:i.end_at}},[i.complete_at?e._e():a("div",[a("i",{staticClass:"taskfont"},[e._v("\uE71D")]),e._v(e._s(e.expiresFormat(i.end_at)))])]):e._e()],1),i.p_name?a("em",{staticClass:"priority-color",style:{backgroundColor:i.p_color}}):e._e()]],2)}),a("div",{staticClass:"task-item additem"},[a("TaskAddSimple",{attrs:{"column-id":o.id,"project-id":e.projectId},on:{"on-priority":e.addTaskOpen}})],1)],2)],1)],1)}),a("li",{class:["add-column",e.addColumnShow?"show-input":""]},[a("div",{staticClass:"add-column-text",on:{click:e.addColumnOpen}},[a("Icon",{attrs:{type:"md-add"}}),e._v(e._s(e.$L("\u6DFB\u52A0\u5217\u8868"))+" ")],1),a("div",{staticClass:"add-column-input"},[a("Input",{ref:"addColumnName",attrs:{placeholder:e.$L("\u5217\u8868\u540D\u79F0\uFF0C\u56DE\u8F66\u521B\u5EFA"),clearable:""},on:{"on-blur":e.addColumnBlur,"on-enter":e.addColumnSubmit,"on-clear":function(o){e.addColumnShow=!1}},model:{value:e.addColumnName,callback:function(o){e.addColumnName=o},expression:"addColumnName"}})],1)])],2)],1):e.tabTypeActive==="table"?a("Scrollbar",{staticClass:"project-table",attrs:{"enable-x":""}},[a("div",{staticClass:"project-table-head"},[a("Row",{staticClass:"task-row"},[a("Col",{attrs:{span:"12"}},[a("span",{staticClass:"head-title"},[e._v("# "+e._s(e.$L("\u4EFB\u52A1\u540D\u79F0")))])]),a("Col",{attrs:{span:"3"}},[a("span",{staticClass:"head-title"},[e._v(e._s(e.$L("\u5217\u8868")))])]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"sort",on:{click:function(o){return e.onSort("level")}}},[a("span",{staticClass:"head-title"},[e._v(e._s(e.$L("\u4F18\u5148\u7EA7")))]),a("div",{staticClass:"task-sort"},[a("Icon",{class:{on:e.sortField=="level"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),a("Icon",{class:{on:e.sortField=="level"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])]),a("Col",{attrs:{span:"3"}},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA")))]),a("Col",{attrs:{span:"3"}},[a("div",{staticClass:"sort",on:{click:function(o){return e.onSort("end_at")}}},[a("span",{staticClass:"head-title"},[e._v(e._s(e.$L("\u5230\u671F\u65F6\u95F4")))]),a("div",{staticClass:"task-sort"},[a("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="asc"},attrs:{type:"md-arrow-dropup"}}),a("Icon",{class:{on:e.sortField=="end_at"&&e.sortType=="desc"},attrs:{type:"md-arrow-dropdown"}})],1)])])],1)],1),a("div",{class:["project-table-body",e.projectData.cacheParameter.showMy?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showMy")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u6211\u7684\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.myList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showMy?a("TaskRow",{attrs:{list:e.transforTasks(e.myList),"open-key":"my","fast-add-task":""},on:{"on-priority":e.addTaskOpen}}):e._e()],1),e.helpList.length?a("div",{class:["project-table-body",e.projectData.cacheParameter.showHelp?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showHelp")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u534F\u52A9\u7684\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.helpList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showHelp?a("TaskRow",{attrs:{list:e.helpList,"open-key":"help"},on:{"on-priority":e.addTaskOpen}}):e._e()],1):e._e(),e.projectData.task_num>0?a("div",{class:["project-table-body",e.projectData.cacheParameter.showUndone?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showUndone")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.unList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}})],1),e.projectData.cacheParameter.showUndone?a("TaskRow",{attrs:{list:e.unList,"open-key":"undone"},on:{"on-priority":e.addTaskOpen}}):e._e()],1):e._e(),e.projectData.task_num>0?a("div",{class:["project-table-body",e.projectData.cacheParameter.showCompleted?"":"project-table-hide"]},[a("Row",{staticClass:"task-row"},[a("Col",{staticClass:"row-title",attrs:{span:"12"}},[a("i",{staticClass:"taskfont",on:{click:function(o){return e.toggleParameter("showCompleted")}}},[e._v("\uE689")]),a("div",{staticClass:"row-h1"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210\u4EFB\u52A1")))]),a("div",{staticClass:"row-num"},[e._v("("+e._s(e.completedList.length)+")")])]),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}}),a("Col",{attrs:{span:"3"}},[e._v(e._s(e.projectData.task_num>0&&e.projectData.cacheParameter.showCompleted?e.$L("\u5B8C\u6210\u65F6\u95F4"):""))])],1),e.projectData.cacheParameter.showCompleted?a("TaskRow",{attrs:{list:e.completedList,"open-key":"completed",showCompleteAt:""},on:{"on-priority":e.addTaskOpen}}):e._e()],1):e._e()]):e.tabTypeActive==="gantt"?a("div",{staticClass:"project-gantt"},[a("ProjectGantt",{attrs:{projectColumn:e.columnList,flowInfo:e.flowInfo}})],1):e._e(),a("Modal",{attrs:{title:e.$L("\u9879\u76EE\u8BBE\u7F6E"),"mask-closable":!1},model:{value:e.settingShow,callback:function(o){e.settingShow=o},expression:"settingShow"}},[a("Form",{attrs:{model:e.settingData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{prop:"name",label:e.$L("\u9879\u76EE\u540D\u79F0")}},[a("Input",{ref:"projectName",attrs:{type:"text",maxlength:32,placeholder:e.$L("\u5FC5\u586B")},model:{value:e.settingData.name,callback:function(o){e.$set(e.settingData,"name",o)},expression:"settingData.name"}})],1),a("FormItem",{attrs:{prop:"desc",label:e.$L("\u9879\u76EE\u4ECB\u7ECD")}},[a("Input",{ref:"projectDesc",attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},maxlength:255,placeholder:`${e.$L("\u9009\u586B")} (${e.$L("\u652F\u6301 Markdown \u683C\u5F0F")})`},model:{value:e.settingData.desc,callback:function(o){e.$set(e.settingData,"desc",o)},expression:"settingData.desc"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.settingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.settingLoad>0},on:{click:e.onSetting}},[e._v(e._s(e.$L("\u4FEE\u6539")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:650},model:{value:e.permissionShow,callback:function(o){e.permissionShow=o},expression:"permissionShow"}},[e.permissionShow?a("ProjectPermission",{ref:"permission",attrs:{"project-id":e.projectId},on:{close:function(){t.permissionShow=!1}}}):e._e()],1),a("Modal",{attrs:{title:e.$L("\u6210\u5458\u7BA1\u7406"),"mask-closable":!1},model:{value:e.userShow,callback:function(o){e.userShow=o},expression:"userShow"}},[a("Form",{attrs:{model:e.userData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{prop:"userids",label:e.$L("\u9879\u76EE\u6210\u5458")}},[a("UserSelect",{attrs:{uncancelable:e.userData.uncancelable,"multiple-max":100,title:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.userData.userids,callback:function(o){e.$set(e.userData,"userids",o)},expression:"userData.userids"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.userShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),e.userWaitRemove.length>0?a("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":e.onUser}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("p",[a("strong",[e._v(e._s(e.$L("\u79FB\u9664\u6210\u5458\u8D1F\u8D23\u7684\u4EFB\u52A1\u5C06\u53D8\u6210\u65E0\u8D1F\u8D23\u4EBA\uFF0C")))])]),a("p",[e._v(e._s(e.$L("\u6CE8\u610F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))]),a("ul",{staticClass:"project-panel-wait-remove"},[a("li",[e._v(e._s(e.$L("\u5373\u5C06\u79FB\u9664"))+"\uFF1A")]),e._l(e.userWaitRemove,function(o){return a("li",{key:o},[a("UserAvatar",{attrs:{userid:o,size:20,showName:""}})],1)})],2)]),a("Button",{attrs:{type:"primary",loading:e.userLoad>0}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1):a("Button",{attrs:{type:"primary",loading:e.userLoad>0},on:{click:e.onUser}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),a("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u94FE\u63A5"),"mask-closable":!1},model:{value:e.inviteShow,callback:function(o){e.inviteShow=o},expression:"inviteShow"}},[a("Form",{attrs:{model:e.inviteData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{label:e.$L("\u94FE\u63A5\u5730\u5740")}},[a("Input",{ref:"inviteInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.inviteFocus},model:{value:e.inviteData.url,callback:function(o){e.$set(e.inviteData,"url",o)},expression:"inviteData.url"}}),a("div",{staticClass:"form-tip"},[e._v(" "+e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u76F4\u63A5\u52A0\u5165\u9879\u76EE\u3002"))+" "),a("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(o){return e.inviteGet(!0)}}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("p",[a("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u9080\u8BF7\u94FE\u63A5\u5931\u6548\uFF01")))])])]),a("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.inviteShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.inviteLoad>0},on:{click:e.inviteCopy}},[e._v(e._s(e.$L("\u590D\u5236")))])],1)],1),a("Modal",{attrs:{title:e.$L("\u79FB\u4EA4\u9879\u76EE"),"mask-closable":!1},model:{value:e.transferShow,callback:function(o){e.transferShow=o},expression:"transferShow"}},[a("Form",{attrs:{model:e.transferData,"label-width":"auto"},nativeOn:{submit:function(o){o.preventDefault()}}},[a("FormItem",{attrs:{prop:"owner_userid",label:e.$L("\u65B0\u9879\u76EE\u8D1F\u8D23\u4EBA")}},[a("UserSelect",{attrs:{"multiple-max":1,title:e.$L("\u9009\u62E9\u9879\u76EE\u8D1F\u8D23\u4EBA")},model:{value:e.transferData.owner_userid,callback:function(o){e.$set(e.transferData,"owner_userid",o)},expression:"transferData.owner_userid"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(o){e.transferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:e.transferLoad>0},on:{click:e.onTransfer}},[e._v(e._s(e.$L("\u79FB\u4EA4")))])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",beforeClose:e.workflowBeforeClose,size:1280},model:{value:e.workflowShow,callback:function(o){e.workflowShow=o},expression:"workflowShow"}},[e.workflowShow?a("ProjectWorkflow",{ref:"workflow",attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:720},model:{value:e.logShow,callback:function(o){e.logShow=o},expression:"logShow"}},[e.logShow?a("ProjectLog",{attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:1e3},model:{value:e.archivedTaskShow,callback:function(o){e.archivedTaskShow=o},expression:"archivedTaskShow"}},[e.archivedTaskShow?a("TaskArchived",{attrs:{"project-id":e.projectId}}):e._e()],1),a("DrawerOverlay",{attrs:{placement:"right",size:1e3},model:{value:e.deletedTaskShow,callback:function(o){e.deletedTaskShow=o},expression:"deletedTaskShow"}},[e.deletedTaskShow?a("TaskDeleted",{attrs:{"project-id":e.projectId}}):e._e()],1)],1)},Ht=[];const Kt={name:"ProjectPanel",components:{UserAvatarTip:U,UserSelect:W,MarkdownPreviewNostyle:Bt,TaskMenu:F,ProjectWorkflow:ht,ProjectPermission:kt,DrawerOverlay:R,ProjectLog:O,TaskArchived:nt,TaskRow:et,Draggable:E,TaskAddSimple:N,TaskPriority:M,TaskDeleted:Dt,ProjectGantt:Wt},data(){return{loading:!1,nowTime:$A.Time(),nowInterval:null,columnLoad:{},columnTopShow:{},sortField:"end_at",sortType:"desc",searchText:"",addColumnShow:!1,addColumnName:"",sortData:[],sortDisabled:!1,settingShow:!1,settingData:{},settingLoad:0,permissionShow:!1,permissionShowData:{},permissionShowLoad:0,userShow:!1,userData:{},userLoad:0,inviteShow:!1,inviteData:{},inviteLoad:0,transferShow:!1,transferData:{},transferLoad:0,workflowShow:!1,logShow:!1,archivedTaskShow:!1,deletedTaskShow:!1,flowInfo:{},flowList:[]}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...h(["cacheDialogs","projectId","projectLoad","cacheTasks","cacheColumns","taskCompleteTemps","cacheUserBasic"]),...g(["projectData","transforTasks"]),tabTypeActive(){return this.projectData.cacheParameter.menuType},tabTypeStyle(){const t={};switch(this.tabTypeActive){case"column":t.left="0";break;case"table":t.left="33.33%";break;case"gantt":t.left="66.66%";break;default:t.display="none"}return t},userWaitRemove(){const{userids:t,useridbak:e}=this.userData;if(!t)return[];let s=[];return e.some(a=>{t.includes(a)||s.push(a)}),s},msgUnread(){const{cacheDialogs:t,projectData:e}=this,s=t.find(({id:a})=>a===e.dialog_id);return $A.getDialogNum(s)},panelTask(){const{searchText:t,flowInfo:e}=this;return function(s){return this.projectData.cacheParameter.completedTask||(s=s.filter(({complete_at:a})=>!a)),$A.leftExists(e.value,"user:")?s=s.filter(({task_user:a})=>a.find(({userid:o,owner:i})=>o===e.userid&&i)):e.value>0?s=s.filter(({flow_item_id:a})=>a===e.value):e.value==-1&&(s=s.filter(({start_at:a})=>!a)),t&&(s=s.filter(({id:a,name:o,desc:i})=>a==t||$A.strExists(`${o} ${i}`,t))),s}},projectUser(){const{projectData:t,windowWidth:e}=this;if(!t.project_user)return[];let s=e>1200?8:3,a=t.project_user.filter(({userid:i})=>i!=t.owner_userid);if(a.length<=s)return a;let o=a.slice(0,s-1);return o.push({userid:-1}),o.push(a[a.length-1]),o},allTask(){const{cacheTasks:t,projectId:e}=this;return t.filter(s=>s.archived_at||!s.created_at?!1:s.project_id==e)},columnList(){const{projectId:t,cacheColumns:e,allTask:s}=this,a=e.filter(({project_id:o})=>o==t).sort((o,i)=>o.sort!=i.sort?o.sort-i.sort:o.id-i.id);return a.forEach(o=>{o.tasks=this.transforTasks(s.filter(i=>i.column_id==o.id)).sort((i,r)=>i.complete_at||r.complete_at?$A.Date(i.complete_at)-$A.Date(r.complete_at):i.sort!=r.sort?i.sort-r.sort:i.id-r.id)}),a},myList(){const{allTask:t,taskCompleteTemps:e,sortField:s,sortType:a}=this;let o=t.filter(i=>this.myFilter(i));if(e.length>0){let i=t.filter(r=>e.includes(r.id)&&this.myFilter(r,!1));i.length>0&&(o=$A.cloneJSON(o),o.push(...i))}return o.sort((i,r)=>{if(a=="asc"&&([i,r]=[r,i]),s=="level")return i.p_level-r.p_level;if(s=="end_at")return i.end_at==r.end_at?i.p_level-r.p_level:$A.Date(i.end_at||"2099-12-31 23:59:59")-$A.Date(r.end_at||"2099-12-31 23:59:59")})},helpList(){const{allTask:t,taskCompleteTemps:e,sortField:s,sortType:a}=this;let o=t.filter(i=>this.helpFilter(i));if(e.length>0){let i=t.filter(r=>e.includes(r.id)&&this.helpFilter(r,!1));i.length>0&&(o=$A.cloneJSON(o),o.push(...i))}return o.sort((i,r)=>{if(a=="asc"&&([i,r]=[r,i]),s=="level")return i.p_level-r.p_level;if(s=="end_at")return i.end_at==r.end_at?i.p_level-r.p_level:$A.Date(i.end_at||"2099-12-31 23:59:59")-$A.Date(r.end_at||"2099-12-31 23:59:59")})},unList(){const{allTask:t,searchText:e,sortField:s,sortType:a}=this;return t.filter(i=>i.parent_id>0||this.flowTask(i)||e&&i.id!=e&&!$A.strExists(i.name,e)&&!$A.strExists(i.desc,e)?!1:!i.complete_at).sort((i,r)=>{if(a=="asc"&&([i,r]=[r,i]),s=="level")return i.p_level-r.p_level;if(s=="end_at")return i.end_at==r.end_at?i.p_level-r.p_level:$A.Date(i.end_at||"2099-12-31 23:59:59")-$A.Date(r.end_at||"2099-12-31 23:59:59")})},completedList(){const{allTask:t,searchText:e}=this;return t.filter(a=>a.parent_id>0||this.flowTask(a)||e&&a.id!=e&&!$A.strExists(a.name,e)&&!$A.strExists(a.desc,e)?!1:a.complete_at).sort((a,o)=>{let i=$A.Date(a.complete_at);return $A.Date(o.complete_at)-i})},completedCount(){const{allTask:t}=this;return t.filter(e=>e.parent_id>0?!1:e.complete_at).length},flowTitle(){const{flowInfo:t,flowData:e,allTask:s}=this;if(t.value==-1)return t.label;if(t.value){const a=e.find(o=>o.value===t.value);return a?a.label:t.label}return`${this.$L("\u5168\u90E8")} (${s.length})`},flowData(){const{flowList:t,allTask:e,cacheUserBasic:s}=this,a=[{value:0,label:`${this.$L("\u5168\u90E8")} (${e.length})`,children:[]}];a.push({value:-1,label:`${this.$L("\u672A\u8BA1\u5212")} (${e.filter(({start_at:r,complete_at:n})=>!r&&!n).length})`,children:[]});const o=t.map(r=>({value:r.id,label:r.name,status:r.status,children:r.project_flow_item.map(n=>{const l=e.filter(({flow_item_id:c})=>c==n.id).length;return{value:n.id,label:`${n.name} (${l})`,status:n.status,class:n.status}})}));o.length===1?a.push(...o[0].children):o.length>0&&a.push(...o);const{project_user:i}=this.projectData;if($A.isArray(i)){let r=i.map((n,l)=>{const c=s.find(({userid:f})=>f===n.userid)||{},u=e.filter(({task_user:f,complete_at:v})=>!this.projectData.cacheParameter.completedTask&&v?!1:f.find(({userid:p,owner:m})=>p===n.userid&&m)).length;return{value:`user:${c.userid}`,label:`${c.nickname} (${u})`,userid:c.userid||0,length:u}}).filter(({userid:n,length:l})=>n>0&&l>0);r.length>0&&(r.sort((n,l)=>n.userid==this.userId?-1:1),r=r.map((n,l)=>(n.class=`user-${l}`,n)),a.push(...r))}return a}},watch:{projectData(){this.sortData=this.getSort()},projectLoad(t){this._loadTimeout&&clearTimeout(this._loadTimeout),t>0?this._loadTimeout=setTimeout(()=>{this.loading=!0},1e3):this.loading=!1},projectId:{handler(t){t>0&&this.getFlowData()},immediate:!0}},methods:{showName(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u540D\u79F0"),content:this.projectData.name})},showDesc(){this.windowLandscape||$A.modalInfo({language:!1,title:this.$L("\u9879\u76EE\u63CF\u8FF0"),content:this.$refs.descPreview.$el.innerHTML})},searchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},getSort(){const t=[];return this.columnList.forEach(e=>{t.push({id:e.id,task:e.tasks.map(({id:s})=>s)})}),t},sortUpdate(t){const e=this.sortData,s=this.getSort();if(JSON.stringify(e)===JSON.stringify(s))return;this.sortData=s;const a={project_id:this.projectId,sort:this.sortData,only_column:t===!0?1:0};this.sortDisabled=!0,this.$store.dispatch("call",{url:"project/sort",data:a,method:"post"}).then(({msg:o})=>{$A.messageSuccess(o),this.sortDisabled=!1;let i,r=[];a.only_column?(i=-1,a.sort.forEach(n=>{i++,r.push({id:n.id,sort:i})}),this.$store.dispatch("saveColumn",r)):(a.sort.forEach(n=>{i=-1,r.push(...n.task.map(l=>(i++,r.push(...this.allTask.filter(c=>c.parent_id==l).map(({id:c})=>({id:c,sort:i,column_id:n.id}))),{id:l,sort:i,column_id:n.id})))}),this.$store.dispatch("saveTask",r))}).catch(({msg:o})=>{$A.modalError(o),this.sortDisabled=!1,this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})})},addTopShow(t,e){this.$set(this.columnTopShow,t,e)},addTaskOpen(t){k.Store.set("addTask",t)},addColumnOpen(){this.addColumnShow=!0,this.$nextTick(()=>{this.$refs.addColumnName.focus()})},addColumnBlur(){this.addColumnName===""&&(this.addColumnShow=!1)},addColumnSubmit(){let t=this.addColumnName.trim();t!==""&&this.$store.dispatch("call",{url:"project/column/add",data:{project_id:this.projectId,name:t}}).then(({data:e,msg:s})=>{$A.messageSuccess(s),this.addColumnName="",this.$store.dispatch("saveColumn",e)}).catch(({msg:e})=>{$A.modalError(e)})},dropColumn(t,e){e==="title"?this.titleColumn(t):e==="remove"?this.removeColumn(t):e.name&&this.updateColumn(t,{color:e.color}).catch(s=>{$A.modalError(s)})},titleColumn(t){$A.modalInput({value:t.name,title:"\u4FEE\u6539\u5217\u8868",placeholder:"\u8F93\u5165\u5217\u8868\u540D\u79F0",onOk:e=>e?this.updateColumn(t,{name:e}):"\u5217\u8868\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"})},updateColumn(t,e){return new Promise((s,a)=>{if(this.columnLoad[t.id]===!0){s();return}this.$set(this.columnLoad,t.id,!0),Object.keys(e).forEach(o=>this.$set(t,o,e[o])),this.$store.dispatch("call",{url:"project/column/update",data:Object.assign(e,{column_id:t.id})}).then(({data:o})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("saveColumn",o),s()}).catch(({msg:o})=>{this.$set(this.columnLoad,t.id,!1),this.$store.dispatch("getColumns",this.projectId).catch(()=>{}),a(o)})})},removeColumn(t){$A.modalConfirm({title:"\u5220\u9664\u5217\u8868",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5217\u8868\u3010"+t.name+"\u3011\u53CA\u5217\u8868\u5185\u7684\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>{if(this.columnLoad[t.id]!==!0)return this.$set(this.columnLoad,t.id,!0),new Promise((e,s)=>{this.$store.dispatch("removeColumn",t.id).then(({msg:a})=>{e(a)}).catch(({msg:a})=>{s(a)}).finally(a=>{this.$set(this.columnLoad,t.id,!1)})})}})},onSort(t){this.sortField=t,this.sortType=this.sortType=="desc"?"asc":"desc"},onSetting(){this.settingLoad++,this.$store.dispatch("call",{url:"project/update",data:Object.assign(this.settingData,{project_id:this.projectId})}).then(({data:t,msg:e})=>{$A.messageSuccess(e),this.settingShow=!1,this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.settingLoad--})},onUser(){this.userLoad++,this.$store.dispatch("call",{url:"project/user",data:{project_id:this.projectId,userid:this.userData.userids}}).then(({msg:t})=>{$A.messageSuccess(t),this.userShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.userLoad--})},onTransfer(){this.transferLoad++,this.$store.dispatch("call",{url:"project/transfer",data:{project_id:this.projectId,owner_userid:this.transferData.owner_userid[0]}}).then(({msg:t})=>{$A.messageSuccess(t),this.transferShow=!1,this.$store.dispatch("getProjectOne",this.projectId).catch(()=>{}),this.$store.dispatch("getTaskForProject",this.projectId).catch(()=>{})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.transferLoad--})},onArchived(){$A.modalConfirm({title:"\u5F52\u6863\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5F52\u6863\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("archivedProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},onDelete(){$A.modalConfirm({title:"\u5220\u9664\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("removeProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},onExit(){$A.modalConfirm({title:"\u9000\u51FA\u9879\u76EE",content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u9879\u76EE\u3010"+this.projectData.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,e)=>{this.$store.dispatch("exitProject",this.projectId).then(({msg:s})=>{t(s)}).catch(({msg:s})=>{e(s)})})})},projectDropdown(t){switch(t){case"setting":this.$set(this.settingData,"name",this.projectData.name),this.$set(this.settingData,"desc",this.projectData.desc),this.settingShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus(),setTimeout(this.$refs.projectDesc.resizeTextarea,0)});break;case"permissions":this.permissionShow=!0;break;case"user":if(this.projectData.owner_userid!==this.userId)return;const e=this.projectData.project_user.map(({userid:s})=>s);this.$set(this.userData,"userids",e),this.$set(this.userData,"useridbak",e),this.$set(this.userData,"uncancelable",[this.projectData.owner_userid]),this.userShow=!0;break;case"invite":this.inviteData={},this.inviteShow=!0,this.inviteGet();break;case"workflow":this.workflowShow=!0;break;case"log":this.logShow=!0;break;case"archived_task":this.archivedTaskShow=!0;break;case"deleted_task":this.deletedTaskShow=!0;break;case"transfer":this.$set(this.transferData,"owner_userid",[]),this.transferShow=!0;break;case"archived":this.onArchived();break;case"delete":this.onDelete();break;case"exit":this.onExit();break}},openTask(t,e){this.$store.dispatch("openTask",t),e===!0&&setTimeout(()=>{k.Store.set("receiveTask",!0)},300)},openMenu(t,e){const s=this.$refs[`taskMenu_${e.id}`];s&&s[0].handleClick(t)},taskIsHidden(t){const{id:e,name:s,desc:a,complete_at:o}=t,{searchText:i}=this;return!!(!this.projectData.cacheParameter.completedTask&&o||this.flowTask(t)||i&&e!=i&&!$A.strExists(`${s} ${a}`,i))},ownerUser(t){return t.filter(({owner:e})=>e==1).sort((e,s)=>e.id-s.id)},inviteGet(t){this.inviteLoad++,this.$store.dispatch("call",{url:"project/invite",data:{project_id:this.projectId,refresh:t===!0?"yes":"no"}}).then(({data:e})=>{this.inviteData=e,this.inviteCopy()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.inviteLoad--})},getFlowData(){this.flowInfo={},this.$store.dispatch("call",{url:"project/flow/list",data:{project_id:this.projectId}}).then(({data:t})=>{var e;this.flowList=t,(e=this.$refs.flow)==null||e.clearSelect()}).catch(()=>{this.flowList=[]})},flowChange(t,e){this.flowInfo=e.pop()||{}},inviteCopy(){!this.inviteData.url||(this.inviteFocus(),this.copyText(this.inviteData.url))},inviteFocus(){this.$nextTick(t=>{this.$refs.inviteInput.focus({cursor:"all"})})},toggleCompleted(){this.toggleParameter("completedTask")},workflowBeforeClose(){return new Promise(t=>{if(!this.$refs.workflow){t();return}if(!this.$refs.workflow.existDiff()){t();return}$A.modalConfirm({content:"\u8BBE\u7F6E\u5C1A\u672A\u4FDD\u5B58\uFF0C\u662F\u5426\u653E\u5F03\u4FEE\u6539\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{t()}})})},myFilter(t,e=!0){return!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.owner==1},helpFilter(t,e=!0){return t.parent_id>0||!this.projectData.cacheParameter.completedTask&&e===!0&&t.complete_at||this.flowTask(t)||this.searchText&&t.id!=this.searchText&&!$A.strExists(t.name,this.searchText)&&!$A.strExists(t.desc,this.searchText)?!1:t.task_user&&t.task_user.find(({userid:s,owner:a})=>s==this.userId&&a==0)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)||this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value?!0:!!(this.flowInfo.value==-1&&t.start_at)},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},tabTypeChange(t){switch(t){case"column":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"column"});break;case"table":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"table"});break;case"gantt":this.toggleParameter({project_id:this.projectId,key:"menuType",value:"gantt"});break}},toggleParameter(t){if(t==="completedTask")this.$store.dispatch("forgetTaskCompleteTemp",!0);else if(t==="chat"&&this.windowPortrait){this.$store.dispatch("openDialog",this.projectData.dialog_id);return}this.$store.dispatch("toggleProjectParameter",t)},onBack(){const{name:t,params:e}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(e.projectId)?this.goForward({name:this.$route.name,params:{projectId:"all"}}):this.goBack()}}},x={};var Gt=d(Kt,Vt,Ht,!1,Yt,null,null,null);function Yt(t){for(let e in x)this[e]=x[e]}var Xt=function(){return Gt.exports}(),Jt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.dialogShow?s("DialogWrapper",{staticClass:"project-dialog",attrs:{"dialog-id":t.projectData.dialog_id}},[s("template",{slot:"head"},[s("div",{staticClass:"dialog-user"},[s("div",{staticClass:"member-head"},[s("div",{staticClass:"member-title"},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458"))),s("span",{on:{click:function(a){t.memberShowAll=!t.memberShowAll}}},[t._v("("+t._s(t.projectData.project_user.length)+")")])]),s("div",{staticClass:"member-close",on:{click:t.onClose}},[s("Icon",{attrs:{type:"ios-close"}})],1)]),s("ul",{class:["member-list",t.memberShowAll?"member-all":""]},t._l(t.projectData.project_user,function(a){return s("li",[s("UserAvatar",{attrs:{userid:a.userid,size:36}})],1)}),0)]),s("div",{staticClass:"nav-wrapper"},[s("div",{staticClass:"dialog-title"},[s("h2",[t._v(t._s(t.$L("\u7FA4\u804A")))])])])])],2):t._e()},qt=[];const Qt={name:"ProjectDialog",components:{DialogWrapper:B},data(){return{loadIng:!1,memberShowAll:!1}},computed:{...g(["projectData"]),dialogShow(){return this.windowLandscape&&this.projectData.dialog_id&&this.projectData.cacheParameter.chat}},methods:{onClose(){this.$store.dispatch("toggleProjectParameter","chat")}}},S={};var Zt=d(Qt,Jt,qt,!1,te,null,null,null);function te(t){for(let e in S)this[e]=S[e]}var ee=function(){return Zt.exports}(),se=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"project-list"},[s("PageTitle",{attrs:{title:t.$L("\u9879\u76EE")}}),s("div",{staticClass:"list-search"},[s("div",{staticClass:"search-wrapper"},[s("div",{staticClass:"search-pre"},[t.loadProjects>0?s("Loading"):s("Icon",{attrs:{type:"ios-search"}})],1),s("Input",{attrs:{placeholder:t.$L(t.loadProjects>0?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22"),clearable:""},model:{value:t.projectKeyValue,callback:function(a){t.projectKeyValue=a},expression:"projectKeyValue"}})],1)]),s("ul",{on:{touchstart:t.onTouchStart,scroll:t.onScroll}},[t.projectLists.length===0?[t.projectKeyLoading>0?s("li",{staticClass:"loading"},[s("Loading")],1):s("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.projectKeyValue?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.projectKeyValue}"\u76F8\u5173\u7684\u7ED3\u679C`:"\u6CA1\u6709\u4EFB\u4F55\u9879\u76EE"))+" ")])]:t._e(),t._l(t.projectLists,function(a,o){return s("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:o,class:{operate:a.id==t.operateItem.id&&t.operateVisible},attrs:{"data-id":a.id},on:{click:function(i){return t.toggleRoute("project",{projectId:a.id})}}},[s("div",{staticClass:"project-item"},[s("div",{staticClass:"item-left"},[s("div",{staticClass:"project-h1"},[s("div",{staticClass:"project-name"},[t._v(t._s(a.name))]),a.top_at?s("div",{staticClass:"icon-top"}):t._e(),a.task_my_num-a.task_my_complete>0?s("div",{staticClass:"num"},[t._v(t._s(a.task_my_num-a.task_my_complete))]):t._e()]),s("div",{staticClass:"project-h2"},[t._v(" "+t._s(a.desc)+" ")])]),a.task_num>0?s("div",{staticClass:"item-right",on:{click:function(i){return i.stopPropagation(),t.modalPercent(a)}}},[s("iCircle",{attrs:{type:"circle","trail-color":"rgba(132, 197, 106, 0.2)","trail-width":7,"stroke-color":a.task_percent===100?"rgba(132, 197, 106, 0)":"#84C56A","stroke-width":7,percent:a.task_percent,size:44}},[a.task_percent===100?s("Icon",{attrs:{type:"ios-checkmark"}}):s("span",{staticClass:"percent-text"},[t._v(t._s(a.task_percent)+"%")])],1)],1):t._e()])])})],2),s("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[s("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(a){t.operateVisible=!1}}},[s("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[s("DropdownItem",{nativeOn:{click:function(a){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1)],1)},ae=[];const oe={name:"ProjectList",directives:{longpress:V},data(){return{projectKeyValue:"",projectKeyLoading:0,operateStyles:{},operateVisible:!1,operateItem:{}}},computed:{...h(["cacheProjects","loadProjects"]),projectLists(){const{projectKeyValue:t,cacheProjects:e}=this,s=$A.cloneJSON(e).sort((a,o)=>a.top_at||o.top_at?$A.Date(o.top_at)-$A.Date(a.top_at):o.id-a.id);return t?s.filter(a=>$A.strExists(`${a.name} ${a.desc}`,t)):s}},watch:{projectKeyValue(t){if(t!=""){if($A.loadVConsole(t)){this.projectKeyValue="";return}this.projectKeyLoading++,setTimeout(()=>{this.projectKeyValue==t&&this.searchProject(),this.projectKeyLoading--},600)}}},methods:{searchProject(){this.projectKeyLoading++,this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},toggleRoute(t,e){this.operateVisible||this.goForward({name:"manage-"+t,params:e||{}})},onTouchStart(t){const e=document.activeElement;e&&e.blur()},onScroll(t){this.operateVisible=!1},modalPercent(t){if(this.operateVisible)return;let e=`

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

    `;e+=`

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

    `,e+=`

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

    `,e+=`

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

    `,e+=`

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

    `,e+=`

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

    `,$A.modalInfo({language:!1,title:`${t.name} ${this.$L("\u9879\u76EE\u8FDB\u5EA6")}`,content:e})},handleLongpress(t,e){const s=$A.getAttr(e,"data-id"),a=this.projectLists.find(o=>o.id==s);!a||(this.operateVisible=!1,this.operateItem=$A.isJson(a)?a:{},this.$nextTick(()=>{const o=e.getBoundingClientRect();this.operateStyles={left:`${t.clientX}px`,top:`${o.top+this.windowScrollY}px`,height:o.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t)}).catch(({msg:t})=>{$A.modalError(t)})}}},A={};var ie=d(oe,se,ae,!1,re,null,null,null);function re(t){for(let e in A)this[e]=A[e]}var ne=function(){return ie.exports}(),le=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page-project"},[t.projectId>0?[s("ProjectPanel"),s("ProjectDialog")]:t._e(),t.windowPortrait?s("ProjectList",{directives:[{name:"show",rawName:"v-show",value:t.projectId===0,expression:"projectId === 0"}]}):t._e()],2)},ce=[];const de={components:{ProjectList:ne,ProjectDialog:ee,ProjectPanel:Xt},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0)},computed:{...h(["cacheProjects","wsOpenNum"]),projectId(){const{projectId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{projectId:{handler(){this.getProjectData()},immediate:!0},wsOpenNum(t){t<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-project"&&this.getProjectData()},5e3))}},methods:{getProjectData(){if(this.projectId<=0)return;const t=this.projectId;this.$nextTick(()=>{this.$store.state.projectId=t,this.$store.dispatch("getProjectOne",t).then(()=>{this.$store.dispatch("getColumns",t).catch(()=>{}),this.$store.dispatch("getTaskForProject",t).catch(()=>{})}).catch(({msg:e})=>{t===this.projectId&&$A.modalWarning({content:e,onOk:()=>{const s=this.cacheProjects.find(({id:a})=>a);s?$A.goForward({name:"manage-project",params:{projectId:s.id}}):$A.goForward({name:"manage-dashboard"})}})}),this.$store.dispatch("forgetTaskCompleteTemp",!0)})}}},P={};var ue=d(de,le,ce,!1,pe,null,null,null);function pe(t){for(let e in P)this[e]=P[e]}var ps=function(){return ue.exports}();export{ps as default}; diff --git a/public/js/build/projectInvite.6f7f7a52.js b/public/js/build/projectInvite.1a76d49e.js similarity index 75% rename from public/js/build/projectInvite.6f7f7a52.js rename to public/js/build/projectInvite.1a76d49e.js index 0c704f496..47cf80f77 100644 --- a/public/js/build/projectInvite.6f7f7a52.js +++ b/public/js/build/projectInvite.1a76d49e.js @@ -1 +1 @@ -import{m as r}from"./vuex.cc7cb26e.js";import{n as a}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,o=t.$createElement,i=t._self._c||o;return i("div",{staticClass:"page-invite"},[i("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?i("div",{staticClass:"invite-load"},[i("Loading")],1):i("div",{staticClass:"invite-warp"},[t.project.id>0?i("Card",[i("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.project.name))]),t.project.desc?i("div",{staticClass:"invite-desc"},[t._v(t._s(t.project.desc))]):i("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),i("div",{staticClass:"invite-footer"},[t.already?i("Button",{attrs:{type:"success",icon:"ios-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):i("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):i("Card",[i("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},n=[];const c={data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},computed:{...r(["dialogId","windowPortrait"])},watch:{$route:{handler(t){if(t.name=="manage-project-invite"){if(!$A.Electron&&!$A.isEEUiApp&&navigator.userAgent.indexOf("MicroMessenger")===-1&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))try{/Android/i.test(navigator.userAgent)?window.open("dootask://"+t.fullPath):window.location.href="dootask://"+t.fullPath}catch{}this.windowPortrait&&this.dialogId>0&&this.$store.dispatch("openDialog",0),this.code=t.query?t.query.code:"",this.getData()}},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},e={};var p=a(c,s,n,!1,d,"935768d6",null,null);function d(t){for(let o in e)this[o]=e[o]}var N=function(){return p.exports}();export{N as default}; +import{m as r}from"./vuex.cc7cb26e.js";import{n as a}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,o=t.$createElement,i=t._self._c||o;return i("div",{staticClass:"page-invite"},[i("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?i("div",{staticClass:"invite-load"},[i("Loading")],1):i("div",{staticClass:"invite-warp"},[t.project.id>0?i("Card",[i("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.project.name))]),t.project.desc?i("div",{staticClass:"invite-desc"},[t._v(t._s(t.project.desc))]):i("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),i("div",{staticClass:"invite-footer"},[t.already?i("Button",{attrs:{type:"success",icon:"ios-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):i("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):i("Card",[i("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},n=[];const c={data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},computed:{...r(["dialogId","windowPortrait"])},watch:{$route:{handler(t){if(t.name=="manage-project-invite"){if(!$A.Electron&&!$A.isEEUiApp&&navigator.userAgent.indexOf("MicroMessenger")===-1&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))try{/Android/i.test(navigator.userAgent)?window.open("dootask://"+t.fullPath):window.location.href="dootask://"+t.fullPath}catch{}this.windowPortrait&&this.dialogId>0&&this.$store.dispatch("openDialog",0),this.code=t.query?t.query.code:"",this.getData()}},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},e={};var p=a(c,s,n,!1,d,"935768d6",null,null);function d(t){for(let o in e)this[o]=e[o]}var N=function(){return p.exports}();export{N as default}; diff --git a/public/js/build/punycode.32c740ed.js b/public/js/build/punycode.87a5269f.js similarity index 97% rename from public/js/build/punycode.32c740ed.js rename to public/js/build/punycode.87a5269f.js index 20dcddcfb..aa1e9bd5c 100644 --- a/public/js/build/punycode.32c740ed.js +++ b/public/js/build/punycode.87a5269f.js @@ -1 +1 @@ -import{g as L}from"./@traptitech.4f5fb92a.js";const C=2147483647,l=36,m=1,v=26,q=38,N=700,k=72,j=128,B="-",U=/^xn--/,V=/[^\0-\x7F]/,$=/[\x2E\u3002\uFF0E\uFF61]/g,z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-m,f=Math.floor,F=String.fromCharCode;function p(e){throw new RangeError(z[e])}function R(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}function D(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace($,".");const c=e.split("."),s=R(c,t).join(".");return o+s}function I(e){const t=[];let n=0;const o=e.length;for(;n=55296&&c<=56319&&nString.fromCodePoint(...e),G=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:l},T=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},_=function(e,t,n){let o=0;for(e=n?f(e/N):e>>1,e+=f(e/t);e>w*v>>1;o+=l)e=f(e/w);return f(o+(w+1)*e/(e+q))},A=function(e){const t=[],n=e.length;let o=0,c=j,s=k,a=e.lastIndexOf(B);a<0&&(a=0);for(let r=0;r=128&&p("not-basic"),t.push(e.charCodeAt(r));for(let r=a>0?a+1:0;r=n&&p("invalid-input");const h=G(e.charCodeAt(r++));h>=l&&p("invalid-input"),h>f((C-o)/u)&&p("overflow"),o+=h*u;const g=d<=s?m:d>=s+v?v:d-s;if(hf(C/b)&&p("overflow"),u*=b}const x=t.length+1;s=_(o-i,x,i==0),f(o/x)>C-c&&p("overflow"),c+=f(o/x),o%=x,t.splice(o++,0,c)}return String.fromCodePoint(...t)},S=function(e){const t=[];e=I(e);const n=e.length;let o=j,c=0,s=k;for(const i of e)i<128&&t.push(F(i));const a=t.length;let r=a;for(a&&t.push(B);r=o&&uf((C-c)/x)&&p("overflow"),c+=(i-o)*x,o=i;for(const u of e)if(uC&&p("overflow"),u===o){let d=c;for(let h=l;;h+=l){const g=h<=s?m:h>=s+v?v:h-s;if(d= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-m,f=Math.floor,F=String.fromCharCode;function p(e){throw new RangeError(z[e])}function R(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}function D(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace($,".");const c=e.split("."),s=R(c,t).join(".");return o+s}function I(e){const t=[];let n=0;const o=e.length;for(;n=55296&&c<=56319&&nString.fromCodePoint(...e),G=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:l},T=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},_=function(e,t,n){let o=0;for(e=n?f(e/N):e>>1,e+=f(e/t);e>w*v>>1;o+=l)e=f(e/w);return f(o+(w+1)*e/(e+q))},A=function(e){const t=[],n=e.length;let o=0,c=j,s=k,a=e.lastIndexOf(B);a<0&&(a=0);for(let r=0;r=128&&p("not-basic"),t.push(e.charCodeAt(r));for(let r=a>0?a+1:0;r=n&&p("invalid-input");const h=G(e.charCodeAt(r++));h>=l&&p("invalid-input"),h>f((C-o)/u)&&p("overflow"),o+=h*u;const g=d<=s?m:d>=s+v?v:d-s;if(hf(C/b)&&p("overflow"),u*=b}const x=t.length+1;s=_(o-i,x,i==0),f(o/x)>C-c&&p("overflow"),c+=f(o/x),o%=x,t.splice(o++,0,c)}return String.fromCodePoint(...t)},S=function(e){const t=[];e=I(e);const n=e.length;let o=j,c=0,s=k;for(const i of e)i<128&&t.push(F(i));const a=t.length;let r=a;for(a&&t.push(B);r=o&&uf((C-c)/x)&&p("overflow"),c+=(i-o)*x,o=i;for(const u of e)if(uC&&p("overflow"),u===o){let d=c;for(let h=l;;h+=l){const g=h<=s?m:h>=s+v?v:h-s;if(d(m[h]!=null&&(a[h]=m[h]),a),{}));for(const a in r)r[a]!==void 0&&f[a]===void 0&&(m[a]=r[a]);return Object.keys(m).length>0?m:void 0}j.compose=u;function l(r={},f={}){typeof r!="object"&&(r={}),typeof f!="object"&&(f={});const y=Object.keys(r).concat(Object.keys(f)).reduce((m,a)=>(S(r[a],f[a])||(m[a]=f[a]===void 0?null:f[a]),m),{});return Object.keys(y).length>0?y:void 0}j.diff=l;function k(r={},f={}){r=r||{};const y=Object.keys(f).reduce((m,a)=>(f[a]!==r[a]&&r[a]!==void 0&&(m[a]=f[a]),m),{});return Object.keys(r).reduce((m,a)=>(r[a]!==f[a]&&f[a]===void 0&&(m[a]=null),m),y)}j.invert=k;function O(r,f,y=!1){if(typeof r!="object")return f;if(typeof f!="object")return;if(!y)return f;const m=Object.keys(f).reduce((a,h)=>(r[h]===void 0&&(a[h]=f[h]),a),{});return Object.keys(m).length>0?m:void 0}j.transform=O})(I||(I={}));N.default=I;var v={};Object.defineProperty(v,"__esModule",{value:!0});var M;(function(j){function u(l){return typeof l.delete=="number"?l.delete:typeof l.retain=="number"?l.retain:typeof l.retain=="object"&&l.retain!==null?1:typeof l.insert=="string"?l.insert.length:1}j.length=u})(M||(M={}));v.default=M;var A={};Object.defineProperty(A,"__esModule",{value:!0});const $=v;class U{constructor(u){this.ops=u,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(u){u||(u=1/0);const l=this.ops[this.index];if(l){const k=this.offset,O=$.default.length(l);if(u>=O-k?(u=O-k,this.index+=1,this.offset=0):this.offset+=u,typeof l.delete=="number")return{delete:u};{const r={};return l.attributes&&(r.attributes=l.attributes),typeof l.retain=="number"?r.retain=u:typeof l.retain=="object"&&l.retain!==null?r.retain=l.retain:typeof l.insert=="string"?r.insert=l.insert.substr(k,u):r.insert=l.insert,r}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?$.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const u=this.ops[this.index];return u?typeof u.delete=="number"?"delete":typeof u.retain=="number"||typeof u.retain=="object"&&u.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const u=this.offset,l=this.index,k=this.next(),O=this.ops.slice(this.index);return this.offset=u,this.index=l,[k].concat(O)}}else return[]}}A.default=U;(function(j,u){Object.defineProperty(u,"__esModule",{value:!0}),u.AttributeMap=u.OpIterator=u.Op=void 0;const l=q,k=P.exports,O=C.exports,r=N;u.AttributeMap=r.default;const f=v;u.Op=f.default;const y=A;u.OpIterator=y.default;const m=String.fromCharCode(0),a=(L,e)=>{if(typeof L!="object"||L===null)throw new Error(`cannot retain a ${typeof L}`);if(typeof e!="object"||e===null)throw new Error(`cannot retain a ${typeof e}`);const t=Object.keys(L)[0];if(!t||t!==Object.keys(e)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(e)[0]}`);return[t,L[t],e[t]]};class h{constructor(e){Array.isArray(e)?this.ops=e:e!=null&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return typeof e=="string"&&e.length===0?this:(n.insert=e,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if(typeof e=="number"&&e<=0)return this;const n={retain:e};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=k(e),typeof n=="object"){if(typeof e.delete=="number"&&typeof n.delete=="number")return this.ops[t-1]={delete:n.delete+e.delete},this;if(typeof n.delete=="number"&&e.insert!=null&&(t-=1,n=this.ops[t-1],typeof n!="object"))return this.ops.unshift(e),this;if(O(e.attributes,n.attributes)){if(typeof e.insert=="string"&&typeof n.insert=="string")return this.ops[t-1]={insert:n.insert+e.insert},typeof e.attributes=="object"&&(this.ops[t-1].attributes=e.attributes),this;if(typeof e.retain=="number"&&typeof n.retain=="number")return this.ops[t-1]={retain:n.retain+e.retain},typeof e.attributes=="object"&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&typeof e.retain=="number"&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach(s=>{(e(s)?t:n).push(s)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce((e,t)=>t.insert?e+f.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+f.default.length(t),0)}slice(e=0,t=1/0){const n=[],s=new y.default(this.ops);let i=0;for(;i0&&n.next(i.retain-p)}const o=new h(s);for(;t.hasNext()||n.hasNext();)if(n.peekType()==="insert")o.push(n.next());else if(t.peekType()==="delete")o.push(t.next());else{const p=Math.min(t.peekLength(),n.peekLength()),d=t.next(p),b=n.next(p);if(b.retain){const c={};if(typeof d.retain=="number")c.retain=typeof b.retain=="number"?p:b.retain;else if(typeof b.retain=="number")d.retain==null?c.insert=d.insert:c.retain=d.retain;else{const x=d.retain==null?"insert":"retain",[w,E,H]=a(d[x],b.retain),D=h.getHandler(w);c[x]={[w]:D.compose(E,H,x==="retain")}}const g=r.default.compose(d.attributes,b.attributes,typeof d.retain=="number");if(g&&(c.attributes=g),o.push(c),!n.hasNext()&&O(o.ops[o.ops.length-1],c)){const x=new h(t.rest());return o.concat(x).chop()}}else typeof b.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&o.push(b)}return o.chop()}concat(e){const t=new h(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new h;const n=[this,e].map(d=>d.map(b=>{if(b.insert!=null)return typeof b.insert=="string"?b.insert:m;const c=d===e?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")),s=new h,i=l(n[0],n[1],t,!0),o=new y.default(this.ops),p=new y.default(e.ops);return i.forEach(d=>{let b=d[1].length;for(;b>0;){let c=0;switch(d[0]){case l.INSERT:c=Math.min(p.peekLength(),b),s.push(p.next(c));break;case l.DELETE:c=Math.min(b,o.peekLength()),o.next(c),s.delete(c);break;case l.EQUAL:c=Math.min(o.peekLength(),p.peekLength(),b);const g=o.next(c),x=p.next(c);O(g.insert,x.insert)?s.retain(c,r.default.diff(g.attributes,x.attributes)):s.push(x).delete(c);break}b-=c}}),s.chop()}eachLine(e,t=` +import{b as R}from"./@traptitech.363dce05.js";import{d as q}from"./fast-diff.f17881f3.js";import{l as P}from"./lodash.clonedeep.91f4d524.js";import{l as C}from"./lodash.isequal.0dd437dc.js";var T={exports:{}},N={};Object.defineProperty(N,"__esModule",{value:!0});const _=P.exports,S=C.exports;var I;(function(j){function u(r={},f={},y=!1){typeof r!="object"&&(r={}),typeof f!="object"&&(f={});let m=_(f);y||(m=Object.keys(m).reduce((a,h)=>(m[h]!=null&&(a[h]=m[h]),a),{}));for(const a in r)r[a]!==void 0&&f[a]===void 0&&(m[a]=r[a]);return Object.keys(m).length>0?m:void 0}j.compose=u;function l(r={},f={}){typeof r!="object"&&(r={}),typeof f!="object"&&(f={});const y=Object.keys(r).concat(Object.keys(f)).reduce((m,a)=>(S(r[a],f[a])||(m[a]=f[a]===void 0?null:f[a]),m),{});return Object.keys(y).length>0?y:void 0}j.diff=l;function k(r={},f={}){r=r||{};const y=Object.keys(f).reduce((m,a)=>(f[a]!==r[a]&&r[a]!==void 0&&(m[a]=f[a]),m),{});return Object.keys(r).reduce((m,a)=>(r[a]!==f[a]&&f[a]===void 0&&(m[a]=null),m),y)}j.invert=k;function O(r,f,y=!1){if(typeof r!="object")return f;if(typeof f!="object")return;if(!y)return f;const m=Object.keys(f).reduce((a,h)=>(r[h]===void 0&&(a[h]=f[h]),a),{});return Object.keys(m).length>0?m:void 0}j.transform=O})(I||(I={}));N.default=I;var v={};Object.defineProperty(v,"__esModule",{value:!0});var M;(function(j){function u(l){return typeof l.delete=="number"?l.delete:typeof l.retain=="number"?l.retain:typeof l.retain=="object"&&l.retain!==null?1:typeof l.insert=="string"?l.insert.length:1}j.length=u})(M||(M={}));v.default=M;var A={};Object.defineProperty(A,"__esModule",{value:!0});const $=v;class U{constructor(u){this.ops=u,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(u){u||(u=1/0);const l=this.ops[this.index];if(l){const k=this.offset,O=$.default.length(l);if(u>=O-k?(u=O-k,this.index+=1,this.offset=0):this.offset+=u,typeof l.delete=="number")return{delete:u};{const r={};return l.attributes&&(r.attributes=l.attributes),typeof l.retain=="number"?r.retain=u:typeof l.retain=="object"&&l.retain!==null?r.retain=l.retain:typeof l.insert=="string"?r.insert=l.insert.substr(k,u):r.insert=l.insert,r}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?$.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const u=this.ops[this.index];return u?typeof u.delete=="number"?"delete":typeof u.retain=="number"||typeof u.retain=="object"&&u.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const u=this.offset,l=this.index,k=this.next(),O=this.ops.slice(this.index);return this.offset=u,this.index=l,[k].concat(O)}}else return[]}}A.default=U;(function(j,u){Object.defineProperty(u,"__esModule",{value:!0}),u.AttributeMap=u.OpIterator=u.Op=void 0;const l=q,k=P.exports,O=C.exports,r=N;u.AttributeMap=r.default;const f=v;u.Op=f.default;const y=A;u.OpIterator=y.default;const m=String.fromCharCode(0),a=(L,e)=>{if(typeof L!="object"||L===null)throw new Error(`cannot retain a ${typeof L}`);if(typeof e!="object"||e===null)throw new Error(`cannot retain a ${typeof e}`);const t=Object.keys(L)[0];if(!t||t!==Object.keys(e)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(e)[0]}`);return[t,L[t],e[t]]};class h{constructor(e){Array.isArray(e)?this.ops=e:e!=null&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return typeof e=="string"&&e.length===0?this:(n.insert=e,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if(typeof e=="number"&&e<=0)return this;const n={retain:e};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=k(e),typeof n=="object"){if(typeof e.delete=="number"&&typeof n.delete=="number")return this.ops[t-1]={delete:n.delete+e.delete},this;if(typeof n.delete=="number"&&e.insert!=null&&(t-=1,n=this.ops[t-1],typeof n!="object"))return this.ops.unshift(e),this;if(O(e.attributes,n.attributes)){if(typeof e.insert=="string"&&typeof n.insert=="string")return this.ops[t-1]={insert:n.insert+e.insert},typeof e.attributes=="object"&&(this.ops[t-1].attributes=e.attributes),this;if(typeof e.retain=="number"&&typeof n.retain=="number")return this.ops[t-1]={retain:n.retain+e.retain},typeof e.attributes=="object"&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&typeof e.retain=="number"&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach(s=>{(e(s)?t:n).push(s)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce((e,t)=>t.insert?e+f.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+f.default.length(t),0)}slice(e=0,t=1/0){const n=[],s=new y.default(this.ops);let i=0;for(;i0&&n.next(i.retain-p)}const o=new h(s);for(;t.hasNext()||n.hasNext();)if(n.peekType()==="insert")o.push(n.next());else if(t.peekType()==="delete")o.push(t.next());else{const p=Math.min(t.peekLength(),n.peekLength()),d=t.next(p),b=n.next(p);if(b.retain){const c={};if(typeof d.retain=="number")c.retain=typeof b.retain=="number"?p:b.retain;else if(typeof b.retain=="number")d.retain==null?c.insert=d.insert:c.retain=d.retain;else{const x=d.retain==null?"insert":"retain",[w,E,H]=a(d[x],b.retain),D=h.getHandler(w);c[x]={[w]:D.compose(E,H,x==="retain")}}const g=r.default.compose(d.attributes,b.attributes,typeof d.retain=="number");if(g&&(c.attributes=g),o.push(c),!n.hasNext()&&O(o.ops[o.ops.length-1],c)){const x=new h(t.rest());return o.concat(x).chop()}}else typeof b.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&o.push(b)}return o.chop()}concat(e){const t=new h(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new h;const n=[this,e].map(d=>d.map(b=>{if(b.insert!=null)return typeof b.insert=="string"?b.insert:m;const c=d===e?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")),s=new h,i=l(n[0],n[1],t,!0),o=new y.default(this.ops),p=new y.default(e.ops);return i.forEach(d=>{let b=d[1].length;for(;b>0;){let c=0;switch(d[0]){case l.INSERT:c=Math.min(p.peekLength(),b),s.push(p.next(c));break;case l.DELETE:c=Math.min(b,o.peekLength()),o.next(c),s.delete(c);break;case l.EQUAL:c=Math.min(o.peekLength(),p.peekLength(),b);const g=o.next(c),x=p.next(c);O(g.insert,x.insert)?s.retain(c,r.default.diff(g.attributes,x.attributes)):s.push(x).delete(c);break}b-=c}}),s.chop()}eachLine(e,t=` `){const n=new y.default(this.ops);let s=new h,i=0;for(;n.hasNext();){if(n.peekType()!=="insert")return;const o=n.peek(),p=f.default.length(o)-n.peekLength(),d=typeof o.insert=="string"?o.insert.indexOf(t,p)-p:-1;if(d<0)s.push(n.next());else if(d>0)s.push(n.next(d));else{if(e(s,n.next(1).attributes||{},i)===!1)return;i+=1,s=new h}}s.length()>0&&e(s,{},i)}invert(e){const t=new h;return this.reduce((n,s)=>{if(s.insert)t.delete(f.default.length(s));else{if(typeof s.retain=="number"&&s.attributes==null)return t.retain(s.retain),n+s.retain;if(s.delete||typeof s.retain=="number"){const i=s.delete||s.retain;return e.slice(n,n+i).forEach(p=>{s.delete?t.push(p):s.retain&&s.attributes&&t.retain(f.default.length(p),r.default.invert(s.attributes,p.attributes))}),n+i}else if(typeof s.retain=="object"&&s.retain!==null){const i=e.slice(n,n+1),o=new y.default(i.ops).next(),[p,d,b]=a(s.retain,o.insert),c=h.getHandler(p);return t.retain({[p]:c.invert(d,b)},r.default.invert(s.attributes,o.attributes)),n+1}}return n},0),t.chop()}transform(e,t=!1){if(t=!!t,typeof e=="number")return this.transformPosition(e,t);const n=e,s=new y.default(this.ops),i=new y.default(n.ops),o=new h;for(;s.hasNext()||i.hasNext();)if(s.peekType()==="insert"&&(t||i.peekType()!=="insert"))o.retain(f.default.length(s.next()));else if(i.peekType()==="insert")o.push(i.next());else{const p=Math.min(s.peekLength(),i.peekLength()),d=s.next(p),b=i.next(p);if(d.delete)continue;if(b.delete)o.push(b);else{const c=d.retain,g=b.retain;let x=typeof g=="object"&&g!==null?g:p;if(typeof c=="object"&&c!==null&&typeof g=="object"&&g!==null){const w=Object.keys(c)[0];if(w===Object.keys(g)[0]){const E=h.getHandler(w);E&&(x={[w]:E.transform(c[w],g[w],t)})}}o.retain(x,r.default.transform(d.attributes,b.attributes,t))}}return o.chop()}transformPosition(e,t=!1){t=!!t;const n=new y.default(this.ops);let s=0;for(;n.hasNext()&&s<=e;){const i=n.peekLength(),o=n.peekType();if(n.next(),o==="delete"){e-=Math.min(i,e-s);continue}else o==="insert"&&(st in r?Ss(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var d=(r,t,e)=>(Cs(r,typeof t!="symbol"?t+"":t,e),e);import{D as m,a as I}from"./quill-delta.a505f2bf.js";import{E as Rs}from"./eventemitter3.78b735ad.js";import{i as ue,c as dt,m as Q}from"./lodash-es.df04b444.js";var g=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(g||{});class ${constructor(t,e,s={}){this.attrName=t,this.keyName=e;const i=g.TYPE&g.ATTRIBUTE;this.scope=s.scope!=null?s.scope&g.LEVEL|i:g.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class ft extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const Xe=class Xt{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let s=null;try{s=t.parentNode}catch{return null}return this.find(s,e)}return null}create(t,e,s){const i=this.query(e);if(i==null)throw new ft(`Unable to create ${e} blot`);const n=i,l=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(s),o=new n(t,l,s);return Xt.blots.set(o.domNode,o),o}find(t,e=!1){return Xt.find(t,e)}query(t,e=g.ANY){let s;return typeof t=="string"?s=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?s=this.types.text:typeof t=="number"?t&g.LEVEL&g.BLOCK?s=this.types.block:t&g.LEVEL&g.INLINE&&(s=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(s=this.classes[i],!!s)),s=s||this.tags[t.tagName]),s==null?null:"scope"in s&&e&g.LEVEL&s.scope&&e&g.TYPE&s.scope?s:null}register(...t){return t.map(e=>{const s="blotName"in e,i="attrName"in e;if(!s&&!i)throw new ft("Invalid definition");if(s&&e.blotName==="abstract")throw new ft("Cannot register abstract class");const n=s?e.blotName:i?e.attrName:void 0;return this.types[n]=e,i?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):s&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(l=>l.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(l=>{(this.tags[l]==null||e.className==null)&&(this.tags[l]=e)}))),e})}};Xe.blots=new WeakMap;let gt=Xe;function Le(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class Os extends ${static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){Le(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(Le(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const M=Os;function $t(r){const t=r.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}class Is extends ${static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[$t(this.keyName)]=e,!0):!1}remove(t){t.style[$t(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[$t(this.keyName)];return this.canAdd(t,e)?e:""}}const J=Is;class Bs{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=gt.find(this.domNode);if(t==null)return;const e=$.keys(this.domNode),s=M.keys(this.domNode),i=J.keys(this.domNode);e.concat(s).concat(i).forEach(n=>{const l=t.scroll.query(n,g.ATTRIBUTE);l instanceof $&&(this.attributes[l.attrName]=l)})}copy(t){Object.keys(this.attributes).forEach(e=>{const s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const Mt=Bs,Ye=class{constructor(t,e){this.scroll=t,this.domNode=e,gt.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new ft("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),gt.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,i){const n=this.isolate(t,e);if(this.scroll.query(s,g.BLOT)!=null&&i)n.wrap(s,i);else if(this.scroll.query(s,g.ATTRIBUTE)!=null){const l=this.scroll.create(this.statics.scope);n.wrap(l),l.format(s,i)}}insertAt(t,e,s){const i=s==null?this.scroll.create("text",e):this.scroll.create(e,s),n=this.split(t);this.parent.insertBefore(i,n||void 0)}isolate(t,e){const s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new ft(`Cannot wrap ${t}`);return s.appendChild(this),s}};Ye.blotName="abstract";let Qe=Ye;const Je=class extends Qe{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Je.scope=g.INLINE_BLOT;let Ds=Je;const A=Ds;class Ms{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){const e=this.iterator();let s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){const e=this.iterator();let s=e(),i=0;for(;s;){if(s===t)return i;i+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const s=this.iterator();let i=s();for(;i;){const n=i.length();if(tl?s(a,t-l,Math.min(e,l+c-t)):s(a,0,Math.min(c,t+e-l)),l+=c,a=o()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){const s=this.iterator();let i=s();for(;i;)e=t(e,i),i=s();return e}}function ke(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const s=t.create(g.INLINE);return Array.from(r.childNodes).forEach(i=>{s.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}const ts=class V extends Qe{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,V.uiClass&&this.uiNode.classList.add(V.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ms,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=ke(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof ft)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(s,i,n)=>{s.deleteAt(i,n)})}descendant(t,e=0){const[s,i]=this.children.find(e);return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,i]:s instanceof V?s.descendant(t,i):[null,-1]}descendants(t,e=0,s=Number.MAX_VALUE){let i=[],n=s;return this.children.forEachAt(e,s,(l,o,a)=>{(t.blotName==null&&t(l)||t.blotName!=null&&l instanceof t)&&i.push(l),l instanceof V&&(i=i.concat(l.descendants(t,o,n))),n-=a}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(s=>e instanceof s)||(e.statics.scope===g.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof V?e.unwrap():e.remove())})}formatAt(t,e,s,i){this.children.forEachAt(t,e,(n,l,o)=>{n.formatAt(l,o,s,i)})}insertAt(t,e,s){const[i,n]=this.children.find(t);if(i)i.insertAt(n,e,s);else{const l=s==null?this.scroll.create("text",e):this.scroll.create(e,s);this.appendChild(l)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let s=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(s=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==s)&&this.domNode.insertBefore(t.domNode,s),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(s=>{t.insertBefore(s,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[s,i]=this.children.find(t,e),n=[[this,t]];return s instanceof V?n.concat(s.path(i,e)):(s!=null&&n.push([s,i]),n)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return s instanceof V&&this.moveChildren(s),super.replaceWith(s)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.clone();return this.parent&&this.parent.insertBefore(s,this.next||void 0),this.children.forEachAt(t,this.length(),(i,n,l)=>{const o=i.split(n,e);o!=null&&s.appendChild(o)}),s}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const s=[],i=[];t.forEach(n=>{n.target===this.domNode&&n.type==="childList"&&(s.push(...n.addedNodes),i.push(...n.removedNodes))}),i.forEach(n=>{if(n.parentNode!=null&&n.tagName!=="IFRAME"&&document.body.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const l=this.scroll.find(n);l!=null&&(l.domNode.parentNode==null||l.domNode.parentNode===this.domNode)&&l.detach()}),s.filter(n=>n.parentNode===this.domNode&&n!==this.uiNode).sort((n,l)=>n===l?0:n.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(n=>{let l=null;n.nextSibling!=null&&(l=this.scroll.find(n.nextSibling));const o=ke(n,this.scroll);(o.next!==l||o.next==null)&&(o.parent!=null&&o.parent.removeChild(this),this.insertBefore(o,l||void 0))}),this.enforceAllowedChildren()}};ts.uiClass="";let Us=ts;const B=Us;function Ps(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const rt=class lt extends B{static create(t){return super.create(t)}static formats(t,e){const s=e.query(lt.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new Mt(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof lt||(s=s.wrap(lt.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{const s=this.scroll.query(t,g.INLINE);if(s==null)return;s instanceof $?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,i){this.formats()[s]!=null||this.scroll.query(s,g.ATTRIBUTE)?this.isolate(t,e).format(s,i):super.formatAt(t,e,s,i)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const s=this.next;s instanceof lt&&s.prev===this&&Ps(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){const s=super.wrap(t,e);return s instanceof lt&&this.attributes.move(s),s}};rt.allowedChildren=[rt,A],rt.blotName="inline",rt.scope=g.INLINE_BLOT,rt.tagName="SPAN";let _s=rt;const de=_s,ot=class Yt extends B{static create(t){return super.create(t)}static formats(t,e){const s=e.query(Yt.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new Mt(this.domNode)}format(t,e){const s=this.scroll.query(t,g.BLOCK);s!=null&&(s instanceof $?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(Yt.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,i){this.scroll.query(s,g.BLOCK)!=null?this.format(s,i):super.formatAt(t,e,s,i)}insertAt(t,e,s){if(s==null||this.scroll.query(e,g.INLINE)!=null)super.insertAt(t,e,s);else{const i=this.split(t);if(i!=null){const n=this.scroll.create(e,s);i.parent.insertBefore(n,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};ot.blotName="block",ot.scope=g.BLOCK_BLOT,ot.tagName="P",ot.allowedChildren=[de,ot,A];let Fs=ot;const Et=Fs,Qt=class extends B{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,i){super.formatAt(t,e,s,i),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Qt.blotName="container",Qt.scope=g.BLOCK_BLOT;let $s=Qt;const Ut=$s;class Hs extends A{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,i){t===0&&e===this.length()?this.format(s,i):super.formatAt(t,e,s,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const L=Hs,zs={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},js=100,at=class extends B{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,zs),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const s=this.registry.find(t,e);return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=g.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,i){this.update(),super.formatAt(t,e,s,i)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);const s=e.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const n=(a,c=!0)=>{a==null||a===this||a.domNode.parentNode!=null&&(s.has(a.domNode)||s.set(a.domNode,[]),c&&n(a.parent))},l=a=>{s.has(a.domNode)&&(a instanceof B&&a.children.forEach(l),s.delete(a.domNode),a.optimize(e))};let o=t;for(let a=0;o.length>0;a+=1){if(a>=js)throw new Error("[Parchment] Maximum optimize iterations reached");for(o.forEach(c=>{const u=this.find(c.target,!0);u!=null&&(u.domNode===c.target&&(c.type==="childList"?(n(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(p=>{const y=this.find(p,!1);n(y,!1),y instanceof B&&y.children.forEach(N=>{n(N,!1)})})):c.type==="attributes"&&n(u.prev)),n(u))}),this.children.forEach(l),o=Array.from(this.observer.takeRecords()),i=o.slice();i.length>0;)t.push(i.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const s=new WeakMap;t.map(i=>{const n=this.find(i.target,!0);return n==null?null:s.has(n.domNode)?(s.get(n.domNode).push(i),null):(s.set(n.domNode,[i]),n)}).forEach(i=>{i!=null&&i!==this&&s.has(i.domNode)&&i.update(s.get(i.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};at.blotName="scroll",at.defaultChild=Et,at.allowedChildren=[Et,Ut],at.scope=g.BLOCK_BLOT,at.tagName="DIV";let Ks=at;const fe=Ks,Jt=class es extends A{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof es&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Jt.blotName="text",Jt.scope=g.INLINE_BLOT;let Vs=Jt;const Dt=Vs;var Ws=Object.freeze(Object.defineProperty({__proto__:null,Attributor:$,AttributorStore:Mt,BlockBlot:Et,ClassAttributor:M,ContainerBlot:Ut,EmbedBlot:L,InlineBlot:de,LeafBlot:A,ParentBlot:B,Registry:gt,Scope:g,ScrollBlot:fe,StyleAttributor:J,TextBlot:Dt},Symbol.toStringTag,{value:"Module"}));class U extends L{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}U.blotName="break";U.tagName="BR";class D extends Dt{}function Pt(r){return r.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t])}const W=class extends de{static compare(t,e){const s=W.order.indexOf(t),i=W.order.indexOf(e);return s>=0||i>=0?s-i:t===e?0:t0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};let R=W;d(R,"allowedChildren",[W,U,L,D]),d(R,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);const Te=1;class q extends Et{constructor(){super(...arguments);d(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=ss(this)),this.cache.delta}deleteAt(e,s){super.deleteAt(e,s),this.cache={}}formatAt(e,s,i,n){s<=0||(this.scroll.query(i,g.BLOCK)?e+s===this.length()&&this.format(i,n):super.formatAt(e,Math.min(s,this.length()-e-1),i,n),this.cache={})}insertAt(e,s,i){if(i!=null){super.insertAt(e,s,i),this.cache={};return}if(s.length===0)return;const n=s.split(` -`),l=n.shift();l.length>0&&(e(o=o.split(a,!0),o.insertAt(0,c),c.length),e+l.length)}insertBefore(e,s){const{head:i}=this.children;super.insertBefore(e,s),i instanceof U&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Te),this.cache.length}moveChildren(e,s){super.moveChildren(e,s),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s&&(e===0||e>=this.length()-Te)){const n=this.clone();return e===0?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}const i=super.split(e,s);return this.cache={},i}}q.blotName="block";q.tagName="P";q.defaultChild=U;q.allowedChildren=[U,R,L,D];class C extends L{attach(){super.attach(),this.attributes=new Mt(this.domNode)}delta(){return new m().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const s=this.scroll.query(t,g.BLOCK_ATTRIBUTE);s!=null&&this.attributes.attribute(s,e)}formatAt(t,e,s,i){this.format(s,i)}insertAt(t,e,s){if(s!=null){super.insertAt(t,e,s);return}const i=e.split(` -`),n=i.pop(),l=i.map(a=>{const c=this.scroll.create(q.blotName);return c.insertAt(0,a),c}),o=this.split(t);l.forEach(a=>{this.parent.insertBefore(a,o)}),n&&this.parent.insertBefore(this.scroll.create("text",n),o)}}C.scope=g.BLOCK_BLOT;function ss(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(A).reduce((e,s)=>s.length()===0?e:e.insert(s.value(),T(s,{},t)),new m).insert(` -`,T(r))}function T(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(t={...t,...r.formats()},e&&delete t["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?t:T(r.parent,t,e)}const G=class extends L{static value(){}constructor(t,e,s){super(t,e),this.selection=s,this.textNode=document.createTextNode(G.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,e){if(this.savedLength!==0){super.format(t,e);return}let s=this,i=0;for(;s!=null&&s.statics.scope!==g.BLOCK_BLOT;)i+=s.offset(s.parent),s=s.parent;s!=null&&(this.savedLength=G.CONTENTS.length,s.optimize(),s.formatAt(i,G.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof D?this.prev:null,s=e?e.length():0,i=this.next instanceof D?this.next:null,n=i?i.text:"",{textNode:l}=this,o=l.data.split(G.CONTENTS).join("");l.data=G.CONTENTS;let a;if(e)a=e,(o||i)&&(e.insertAt(e.length(),o+n),i&&i.remove());else if(i)a=i,i.insertAt(0,o);else{const c=document.createTextNode(o);a=this.scroll.create(c),this.parent.insertBefore(a,this)}if(this.remove(),t){const c=(y,N)=>e&&y===e.domNode?N:y===l?s+N-1:i&&y===i.domNode?s+o.length+N:null,u=c(t.start.node,t.start.offset),p=c(t.end.node,t.end.offset);if(u!==null&&p!==null)return{startNode:a.domNode,startOffset:u,endNode:a.domNode,endOffset:p}}return null}update(t,e){if(t.some(s=>s.type==="characterData"&&s.target===this.textNode)){const s=this.restore();s&&(e.range=s)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if(e.domNode.tagName==="A"){this.savedLength=G.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}};let _=G;d(_,"blotName","cursor"),d(_,"className","ql-cursor"),d(_,"tagName","span"),d(_,"CONTENTS","\uFEFF");var te=new WeakMap;const ee=["error","warn","log","info"];let se="warn";function is(r){if(se&&ee.indexOf(r)<=ee.indexOf(se)){for(var t=arguments.length,e=new Array(t>1?t-1:0),s=1;s(t[e]=is.bind(console,e,r),t),{})}K.level=r=>{se=r};is.level=K.level;const Ht=K("quill:events"),Gs=["selectionchange","mousedown","mouseup","click"];Gs.forEach(r=>{document.addEventListener(r,function(){for(var t=arguments.length,e=new Array(t),s=0;s{const n=te.get(i);n&&n.emitter&&n.emitter.handleDOM(...e)})})});class f extends Rs{constructor(){super(),this.domListeners={},this.on("error",Ht.error)}emit(){for(var t=arguments.length,e=new Array(t),s=0;s1?e-1:0),i=1;i{let{node:l,handler:o}=n;(t.target===l||l.contains(t.target))&&o(t,...s)})}listenDOM(t,e,s){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:s})}}d(f,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),d(f,"sources",{API:"api",SILENT:"silent",USER:"user"});const zt=K("quill:selection");class tt{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=e}}class Zs{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new tt(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,f.sources.USER),1)}),this.emitter.on(f.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const s=this.getNativeRange();s!=null&&s.start.node!==this.cursor.textNode&&this.emitter.once(f.events.SCROLL_UPDATE,(i,n)=>{try{this.root.contains(s.start.node)&&this.root.contains(s.end.node)&&this.setNativeRange(s.start.node,s.start.offset,s.end.node,s.end.offset);const l=n.some(o=>o.type==="characterData"||o.type==="childList"||o.type==="attributes"&&o.target===this.root);this.update(l?f.sources.SILENT:i)}catch{}})}),this.emitter.on(f.events.SCROLL_OPTIMIZE,(s,i)=>{if(i.range){const{startNode:n,startOffset:l,endNode:o,endOffset:a}=i.range;this.setNativeRange(n,l,o,a),this.update(f.sources.SILENT)}}),this.update(f.sources.SILENT)}handleComposition(){this.emitter.on(f.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(f.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(f.sources.USER)})}focus(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const s=this.getNativeRange();if(!(s==null||!s.native.collapsed||this.scroll.query(t,g.BLOCK))){if(s.start.node!==this.cursor.textNode){const i=this.scroll.find(s.start.node,!1);if(i==null)return;if(i instanceof A){const n=i.split(s.start.offset);i.parent.insertBefore(this.cursor,n)}else i.insertBefore(this.cursor,s.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const s=this.scroll.length();t=Math.min(t,s-1),e=Math.min(t+e,s-1)-t;let i,[n,l]=this.scroll.leaf(t);if(n==null)return null;if(e>0&&l===n.length()){const[u]=this.scroll.leaf(t+1);if(u){const[p]=this.scroll.line(t),[y]=this.scroll.line(t+1);p===y&&(n=u,l=0)}}[i,l]=n.position(l,!0);const o=document.createRange();if(e>0)return o.setStart(i,l),[n,l]=this.scroll.leaf(t+e),n==null?null:([i,l]=n.position(l,!0),o.setEnd(i,l),o.getBoundingClientRect());let a="left",c;if(i instanceof Text){if(!i.data.length)return null;l0&&(a="right")}return{bottom:c.top+c.height,height:c.height,left:c[a],right:c[a],top:c.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(e==null)return null;const s=this.normalizeNative(e);return zt.info("getNativeRange",s),s}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const e=this.getNativeRange();return e==null?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&jt(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const s=e.map(l=>{const[o,a]=l,c=this.scroll.find(o,!0),u=c.offset(this.scroll);return a===0?u:c instanceof A?u+c.index(o,a):u+c.length()}),i=Math.min(Math.max(...s),this.scroll.length()-1),n=Math.min(i,...s);return new tt(n,i-n)}normalizeNative(t){if(!jt(this.root,t.startContainer)||!t.collapsed&&!jt(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(s=>{let{node:i,offset:n}=s;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>n)i=i.childNodes[n],n=0;else if(i.childNodes.length===n)i=i.lastChild,i instanceof Text?n=i.data.length:i.childNodes.length>0?n=i.childNodes.length:n=i.childNodes.length+1;else break;s.node=i,s.offset=n}),e}rangeToNative(t){const e=this.scroll.length(),s=(i,n)=>{i=Math.min(e-1,i);const[l,o]=this.scroll.leaf(i);return l?l.position(o,n):[null,-1]};return[...s(t.index,!1),...s(t.index+t.length,!0)]}setNativeRange(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(zt.info("setNativeRange",t,e,s,i),t!=null&&(this.root.parentNode==null||t.parentNode==null||s.parentNode==null))return;const l=document.getSelection();if(l!=null)if(t!=null){this.hasFocus()||this.root.focus();const{native:o}=this.getNativeRange()||{};if(o==null||n||t!==o.startContainer||e!==o.startOffset||s!==o.endContainer||i!==o.endOffset){t instanceof Element&&t.tagName==="BR"&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),s instanceof Element&&s.tagName==="BR"&&(i=Array.from(s.parentNode.childNodes).indexOf(s),s=s.parentNode);const a=document.createRange();a.setStart(t,e),a.setEnd(s,i),l.removeAllRanges(),l.addRange(a)}}else l.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.sources.API;if(typeof e=="string"&&(s=e,e=!1),zt.info("setRange",t),t!=null){const i=this.rangeToNative(t);this.setNativeRange(...i,e)}else this.setNativeRange(null);this.update(s)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.sources.USER;const e=this.lastRange,[s,i]=this.getRange();if(this.lastRange=s,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!ue(e,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}const n=[f.events.SELECTION_CHANGE,dt(this.lastRange),dt(e),t];this.emitter.emit(f.events.EDITOR_CHANGE,...n),t!==f.sources.SILENT&&this.emitter.emit(...n)}}}function jt(r,t){try{t.parentNode}catch{return!1}return r.contains(t)}const Xs=/^[ -~]*$/;class Ys{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const s=Se(t),i=new m;return Js(s.ops.slice()).reduce((l,o)=>{const a=I.exports.Op.length(o);let c=o.attributes||{},u=!1,p=!1;if(o.insert!=null){if(i.retain(a),typeof o.insert=="string"){const b=o.insert;p=!b.endsWith(` -`)&&(e<=l||!!this.scroll.descendant(C,l)[0]),this.scroll.insertAt(l,b);const[k,E]=this.scroll.line(l);let x=Q({},T(k));if(k instanceof q){const[nt]=k.descendant(A,E);nt&&(x=Q(x,T(nt)))}c=I.exports.AttributeMap.diff(x,c)||{}}else if(typeof o.insert=="object"){const b=Object.keys(o.insert)[0];if(b==null)return l;const k=this.scroll.query(b,g.INLINE)!=null;if(k)(e<=l||!!this.scroll.descendant(C,l)[0])&&(p=!0);else if(l>0){const[E,x]=this.scroll.descendant(A,l-1);E instanceof D?E.value()[x]!==` -`&&(u=!0):E instanceof L&&E.statics.scope===g.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(l,b,o.insert[b]),k){const[E]=this.scroll.descendant(A,l);if(E){const x=Q({},T(E));c=I.exports.AttributeMap.diff(x,c)||{}}}}e+=a}else if(i.push(o),o.retain!==null&&typeof o.retain=="object"){const b=Object.keys(o.retain)[0];if(b==null)return l;this.scroll.updateEmbedAt(l,b,o.retain[b])}Object.keys(c).forEach(b=>{this.scroll.formatAt(l,a,b,c[b])});const y=u?1:0,N=p?1:0;return e+=y+N,i.retain(y),i.delete(N),l+a+y+N},0),i.reduce((l,o)=>typeof o.delete=="number"?(this.scroll.deleteAt(l,o.delete),l):l+I.exports.Op.length(o),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(s)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update(new m().retain(t).delete(e))}formatLine(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(s).forEach(n=>{this.scroll.lines(t,Math.max(e,1)).forEach(l=>{l.format(n,s[n])})}),this.scroll.optimize();const i=new m().retain(t).retain(e,dt(s));return this.update(i)}formatText(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(s).forEach(n=>{this.scroll.formatAt(t,e,n,s[n])});const i=new m().retain(t).retain(e,dt(s));return this.update(i)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new m)}getFormat(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=[],i=[];e===0?this.scroll.path(t).forEach(o=>{const[a]=o;a instanceof q?s.push(a):a instanceof A&&i.push(a)}):(s=this.scroll.lines(t,e),i=this.scroll.descendants(A,t,e));const[n,l]=[s,i].map(o=>{const a=o.shift();if(a==null)return{};let c=T(a);for(;Object.keys(c).length>0;){const u=o.shift();if(u==null)return c;c=Qs(T(u),c)}return c});return{...n,...l}}getHTML(t,e){const[s,i]=this.scroll.line(t);if(s){const n=s.length();return s.length()>=i+e&&!(i===0&&e===n)?xt(s,i,e,!0):xt(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(s=>typeof s.insert=="string").map(s=>s.insert).join("")}insertContents(t,e){const s=Se(e),i=new m().retain(t).concat(s);return this.scroll.insertContents(t,s),this.update(i)}insertEmbed(t,e,s){return this.scroll.insertAt(t,e,s),this.update(new m().retain(t).insert({[e]:s}))}insertText(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e=e.replace(/\r\n/g,` -`).replace(/\r/g,` -`),this.scroll.insertAt(t,e),Object.keys(s).forEach(i=>{this.scroll.formatAt(t,e.length,i,s[i])}),this.update(new m().retain(t).insert(e,dt(s)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==q.blotName)return!1;const e=t;return e.children.length>1?!1:e.children.head instanceof U}removeFormat(t,e){const s=this.getText(t,e),[i,n]=this.scroll.line(t+e);let l=0,o=new m;i!=null&&(l=i.length()-n,o=i.delta().slice(n,n+l-1).insert(` -`));const c=this.getContents(t,e+l).diff(new m().insert(s).concat(o)),u=new m().retain(t).concat(c);return this.applyDelta(u)}update(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(e.length===1&&e[0].type==="characterData"&&e[0].target.data.match(Xs)&&this.scroll.find(e[0].target)){const n=this.scroll.find(e[0].target),l=T(n),o=n.offset(this.scroll),a=e[0].oldValue.replace(_.CONTENTS,""),c=new m().insert(a),u=new m().insert(n.value()),p=s&&{oldRange:Ce(s.oldRange,-o),newRange:Ce(s.newRange,-o)};t=new m().retain(o).concat(c.diff(u,p)).reduce((N,b)=>b.insert?N.insert(b.insert,l):N.push(b),new m),this.delta=i.compose(t)}else this.delta=this.getDelta(),(!t||!ue(i.compose(t),this.delta))&&(t=i.diff(this.delta,s));return t}}function ct(r,t,e){if(r.length===0){const[N]=Kt(e.pop());return t<=0?``:`${ct([],t-1,e)}`}const[{child:s,offset:i,length:n,indent:l,type:o},...a]=r,[c,u]=Kt(o);if(l>t)return e.push(o),l===t+1?`<${c}>${xt(s,i,n)}${ct(a,l,e)}`:`<${c}>
  • ${ct(r,t+1,e)}`;const p=e[e.length-1];if(l===t&&o===p)return`
  • ${xt(s,i,n)}${ct(a,l,e)}`;const[y]=Kt(e.pop());return`${ct(r,t-1,e)}`}function xt(r,t,e){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in r&&typeof r.html=="function")return r.html(t,e);if(r instanceof D)return Pt(r.value().slice(t,t+e));if(r instanceof B){if(r.statics.blotName==="list-container"){const c=[];return r.children.forEachAt(t,e,(u,p,y)=>{const N="formats"in u&&typeof u.formats=="function"?u.formats():{};c.push({child:u,offset:p,length:y,indent:N.indent||0,type:N.list})}),ct(c,-1,[])}const i=[];if(r.children.forEachAt(t,e,(c,u,p)=>{i.push(xt(c,u,p))}),s||r.statics.blotName==="list")return i.join("");const{outerHTML:n,innerHTML:l}=r.domNode,[o,a]=n.split(`>${l}<`);return o==="${i.join("")}<${a}`:`${o}>${i.join("")}<${a}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function Qs(r,t){return Object.keys(t).reduce((e,s)=>{if(r[s]==null)return e;const i=t[s];return i===r[s]?e[s]=i:Array.isArray(i)?i.indexOf(r[s])<0?e[s]=i.concat([r[s]]):e[s]=i:e[s]=[i,r[s]],e},{})}function Kt(r){const t=r==="ordered"?"ol":"ul";switch(r){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function Se(r){return r.reduce((t,e)=>{if(typeof e.insert=="string"){const s=e.insert.replace(/\r\n/g,` -`).replace(/\r/g,` -`);return t.insert(s,e.attributes)}return t.push(e)},new m)}function Ce(r,t){let{index:e,length:s}=r;return new tt(e+t,s)}function Js(r){const t=[];return r.forEach(e=>{typeof e.insert=="string"?e.insert.split(` -`).forEach((i,n)=>{n&&t.push({insert:` -`,attributes:e.attributes}),i&&t.push({insert:i,attributes:e.attributes})}):t.push(e)}),t}class P{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=e}}d(P,"DEFAULTS",{});const Tt="\uFEFF";class me extends L{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(s=>{this.contentNode.appendChild(s)}),this.leftGuard=document.createTextNode(Tt),this.rightGuard=document.createTextNode(Tt),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e=null,s;const i=t.data.split(Tt).join("");if(t===this.leftGuard)if(this.prev instanceof D){const n=this.prev.length();this.prev.insertAt(n,i),e={startNode:this.prev.domNode,startOffset:n+i.length}}else s=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(s),this),e={startNode:s,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof D?(this.next.insertAt(0,i),e={startNode:this.next.domNode,startOffset:i.length}):(s=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(s),this.next),e={startNode:s,startOffset:i.length}));return t.data=Tt,e}update(t,e){t.forEach(s=>{if(s.type==="characterData"&&(s.target===this.leftGuard||s.target===this.rightGuard)){const i=this.restore(s.target);i&&(e.range=i)}})}}class ti{constructor(t,e){d(this,"isComposing",!1);this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;e&&!(e instanceof me)&&(this.emitter.emit(f.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(f.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(f.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(f.events.COMPOSITION_END,t),this.isComposing=!1}}const we=class{constructor(t,e){d(this,"modules",{});this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}};let Z=we;d(Z,"DEFAULTS",{modules:{}}),d(Z,"themes",{default:we});const ei=r=>r.parentElement||r.getRootNode().host||null,si=r=>{const t=r.getBoundingClientRect(),e="offsetWidth"in r&&Math.abs(t.width)/r.offsetWidth||1,s="offsetHeight"in r&&Math.abs(t.height)/r.offsetHeight||1;return{top:t.top,right:t.left+r.clientWidth*e,bottom:t.top+r.clientHeight*s,left:t.left}},St=r=>{const t=parseInt(r,10);return Number.isNaN(t)?0:t},Re=(r,t,e,s,i,n)=>rs?0:rs?t-r>s-e?r+i-e:t-s+n:0,ii=(r,t)=>{var n,l,o,a,c;const e=r.ownerDocument;let s=t,i=r;for(;i;){const u=i===e.body,p=u?{top:0,right:(l=(n=window.visualViewport)==null?void 0:n.width)!=null?l:e.documentElement.clientWidth,bottom:(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:e.documentElement.clientHeight,left:0}:si(i),y=getComputedStyle(i),N=Re(s.left,s.right,p.left,p.right,St(y.scrollPaddingLeft),St(y.scrollPaddingRight)),b=Re(s.top,s.bottom,p.top,p.bottom,St(y.scrollPaddingTop),St(y.scrollPaddingBottom));if(N||b)if(u)(c=e.defaultView)==null||c.scrollBy(N,b);else{const{scrollLeft:k,scrollTop:E}=i;b&&(i.scrollTop+=b),N&&(i.scrollLeft+=N);const x=i.scrollLeft-k,nt=i.scrollTop-E;s={left:s.left-x,top:s.top-nt,right:s.right-x,bottom:s.bottom-nt}}i=u||y.position==="fixed"?null:ei(i)}},ni=100,ri=["block","break","cursor","inline","scroll","text"],li=(r,t,e)=>{const s=new gt;return ri.forEach(i=>{const n=t.query(i);n&&s.register(n)}),r.forEach(i=>{var o;let n=t.query(i);n||e.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let l=0;for(;n;)if(s.register(n),n="blotName"in n&&(o=n.requiredContainer)!=null?o:null,l+=1,l>ni){e.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),s},mt=K("quill"),Ct=new gt;B.uiClass="ql-ui";const ut=class{static debug(t){t===!0&&(t="log"),K.level(t)}static find(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return te.get(t)||Ct.find(t,e)}static import(t){return this.imports[t]==null&&mt.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof t!="string"){const i="attrName"in t?t.attrName:t.blotName;typeof i=="string"?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(n=>{this.register(n,t[n],e)})}else this.imports[t]!=null&&!s&&mt.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&typeof e!="boolean"&&e.blotName!=="abstract"&&Ct.register(e),typeof e.register=="function"&&e.register(Ct)}constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=oi(t,e),this.container=this.options.container,this.container==null){mt.error("Invalid Quill container",t);return}this.options.debug&&ut.debug(this.options.debug);const s=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",te.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new f;const i=fe.blotName,n=this.options.registry.query(i);if(!n||!("blotName"in n))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new n(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Ys(this.scroll),this.selection=new Zs(this.scroll,this.emitter),this.composition=new ti(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(f.events.COMPOSITION_START,()=>{this.root.classList.toggle("ql-blank",!1)}),this.emitter.on(f.events.COMPOSITION_END,()=>{this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(f.events.EDITOR_CHANGE,l=>{l===f.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(f.events.SCROLL_UPDATE,(l,o)=>{const a=this.selection.lastRange,[c]=this.selection.getRange(),u=a&&c?{oldRange:a,newRange:c}:void 0;O.call(this,()=>this.editor.update(null,o,u),l)}),this.emitter.on(f.events.SCROLL_EMBED_UPDATE,(l,o)=>{const a=this.selection.lastRange,[c]=this.selection.getRange(),u=a&&c?{oldRange:a,newRange:c}:void 0;O.call(this,()=>{const p=new m().retain(l.offset(this)).retain({[l.statics.blotName]:o});return this.editor.update(p,[],u)},ut.sources.USER)}),s){const l=this.clipboard.convert({html:`${s}


    `,text:` -`});this.setContents(l)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const s=t;t=document.createElement("div"),t.classList.add(s)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,s){return[t,e,,s]=H(t,e,s),O.call(this,()=>this.editor.deleteText(t,e),s,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){this.selection.focus(),this.scrollSelectionIntoView()}format(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.sources.API;return O.call(this,()=>{const i=this.getSelection(!0);let n=new m;if(i==null)return n;if(this.scroll.query(t,g.BLOCK))n=this.editor.formatLine(i.index,i.length,{[t]:e});else{if(i.length===0)return this.selection.format(t,e),n;n=this.editor.formatText(i.index,i.length,{[t]:e})}return this.setSelection(i,f.sources.SILENT),n},s)}formatLine(t,e,s,i,n){let l;return[t,e,l,n]=H(t,e,s,i,n),O.call(this,()=>this.editor.formatLine(t,e,l),n,t,0)}formatText(t,e,s,i,n){let l;return[t,e,l,n]=H(t,e,s,i,n),O.call(this,()=>this.editor.formatText(t,e,l),n,t,0)}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=null;if(typeof t=="number"?s=this.selection.getBounds(t,e):s=this.selection.getBounds(t.index,t.length),!s)return null;const i=this.container.getBoundingClientRect();return{bottom:s.bottom-i.top,height:s.height,left:s.left-i.left,right:s.right-i.left,top:s.top-i.top,width:s.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,e]=H(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e!=null?e:this.getLength()-t),[t,e]=H(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e!=null?e:this.getLength()-t),[t,e]=H(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ut.sources.API;return O.call(this,()=>this.editor.insertEmbed(t,e,s),i,t)}insertText(t,e,s,i,n){let l;return[t,,l,n]=H(t,0,s,i,n),O.call(this,()=>this.editor.insertText(t,e,l),n,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,s){return[t,e,,s]=H(t,e,s),O.call(this,()=>this.editor.removeFormat(t,e),s,t)}scrollRectIntoView(t){ii(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.sources.API;return O.call(this,()=>{t=new m(t);const s=this.getLength(),i=this.editor.deleteText(0,s),n=this.editor.insertContents(0,t),l=this.editor.deleteText(this.getLength()-1,1);return i.compose(n).compose(l)},e)}setSelection(t,e,s){t==null?this.selection.setRange(null,e||ut.sources.API):([t,e,,s]=H(t,e,s),this.selection.setRange(new tt(Math.max(0,t),e),s),s!==f.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.sources.API;const s=new m().insert(t);return this.setContents(s,e)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.sources.API;return O.call(this,()=>(t=new m(t),this.editor.applyDelta(t)),e,!0)}};let h=ut;d(h,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Ct,theme:"default"}),d(h,"events",f.events),d(h,"sources",f.sources),d(h,"version","2.0.0"),d(h,"imports",{delta:m,parchment:Ws,"core/module":P,"core/theme":Z});function Oe(r){return typeof r=="string"?document.querySelector(r):r}function Vt(r){return Object.entries(r!=null?r:{}).reduce((t,e)=>{let[s,i]=e;return{...t,[s]:i===!0?{}:i}},{})}function Ie(r){return Object.fromEntries(Object.entries(r).filter(t=>t[1]!==void 0))}function oi(r,t){const e=Oe(r);if(!e)throw new Error("Invalid Quill container");const i=!t.theme||t.theme===h.DEFAULTS.theme?Z:h.import(`themes/${t.theme}`);if(!i)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:n,...l}=h.DEFAULTS,{modules:o,...a}=i.DEFAULTS,c=Q({},Vt(n),Vt(o),Vt(t.modules));c!=null&&c.toolbar&&c.toolbar.constructor!==Object&&(c.toolbar={container:c.toolbar});const u={...l,...Ie(a),...Ie(t)};let p=t.registry;return p?t.formats&&mt.warn('Ignoring "formats" option because "registry" is specified'):p=t.formats?li(t.formats,u.registry,mt):u.registry,{...u,registry:p,container:e,theme:i,modules:Object.entries(c).reduce((y,N)=>{let[b,k]=N;if(!k)return y;const E=h.import(`modules/${b}`);return E==null?(mt.error(`Cannot load ${b} module. Are you sure you registered it?`),y):{...y,[b]:Q({},E.DEFAULTS||{},k)}},{}),bounds:Oe(u.bounds)}}function O(r,t,e,s){if(!this.isEnabled()&&t===f.sources.USER&&!this.allowReadOnlyEdits)return new m;let i=e==null?null:this.getSelection();const n=this.editor.delta,l=r();if(i!=null&&(e===!0&&(e=i.index),s==null?i=Be(i,l,t):s!==0&&(i=Be(i,e,s,t)),this.setSelection(i,f.sources.SILENT)),l.length()>0){const o=[f.events.TEXT_CHANGE,l,n,t];this.emitter.emit(f.events.EDITOR_CHANGE,...o),t!==f.sources.SILENT&&this.emitter.emit(...o)}return l}function H(r,t,e,s,i){let n={};return typeof r.index=="number"&&typeof r.length=="number"?typeof t!="number"?(i=s,s=e,e=t,t=r.length,r=r.index):(t=r.length,r=r.index):typeof t!="number"&&(i=s,s=e,e=t,t=0),typeof e=="object"?(n=e,i=s):typeof e=="string"&&(s!=null?n[e]=s:i=e),i=i||f.sources.API,[r,t,n,i]}function Be(r,t,e,s){const i=typeof e=="number"?e:0;if(r==null)return null;let n,l;return t&&typeof t.transformPosition=="function"?[n,l]=[r.index,r.index+r.length].map(o=>t.transformPosition(o,s!==f.sources.USER)):[n,l]=[r.index,r.index+r.length].map(o=>o=0?o+i:Math.max(t,o+i)),new tt(n,l-n)}class et extends Ut{}function De(r){return r instanceof q||r instanceof C}function Me(r){return typeof r.updateContent=="function"}class ht extends fe{constructor(t,e,s){let{emitter:i}=s;super(t,e),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",n=>this.handleDragStart(n))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(f.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(f.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(f.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[s,i]=this.line(t),[n]=this.line(t+e);if(super.deleteAt(t,e),n!=null&&s!==n&&i>0){if(s instanceof C||n instanceof C){this.optimize();return}const l=n.children.head instanceof U?null:n.children.head;s.moveChildren(n,l),s.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,s,i){super.formatAt(t,e,s,i),this.optimize()}insertAt(t,e,s){if(t>=this.length())if(s==null||this.scroll.query(e,g.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),s==null&&e.endsWith(` -`)?i.insertAt(0,e.slice(0,-1),s):i.insertAt(0,e,s)}else{const i=this.scroll.create(e,s);this.appendChild(i)}else super.insertAt(t,e,s);this.optimize()}insertBefore(t,e){if(t.statics.scope===g.INLINE_BLOT){const s=this.scroll.create(this.statics.defaultChild.blotName);s.appendChild(t),super.insertBefore(s,e)}else super.insertBefore(t,e)}insertContents(t,e){const s=this.deltaToRenderBlocks(e.concat(new m().insert(` -`))),i=s.pop();if(i==null)return;this.batchStart();const n=s.shift();if(n){const a=n.type==="block"&&(n.delta.length()===0||!this.descendant(C,t)[0]&&t{this.formatAt(p-1,1,b,N[b])}),t=p}let[l,o]=this.children.find(t);if(s.length&&(l&&(l=l.split(o),o=0),s.forEach(a=>{if(a.type==="block"){const c=this.createBlock(a.attributes,l||void 0);Wt(c,0,a.delta)}else{const c=this.create(a.key,a.value);this.insertBefore(c,l||void 0),Object.keys(a.attributes).forEach(u=>{c.format(u,a.attributes[u])})}})),i.type==="block"&&i.delta.length()){const a=l?l.offset(l.scroll)+o:this.length();Wt(this,a,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[s,i]=e;return s instanceof A?[s,i]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(De,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const s=(i,n,l)=>{let o=[],a=l;return i.children.forEachAt(n,l,(c,u,p)=>{De(c)?o.push(c):c instanceof Ut&&(o=o.concat(s(c,u,a))),a-=p}),o};return s(this,t,e)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(f.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let e=f.sources.USER;typeof t=="string"&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(s=>{let{target:i}=s;const n=this.find(i,!0);return n&&!Me(n)}),t.length>0&&this.emitter.emit(f.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(f.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,s){const[i]=this.descendant(n=>n instanceof C,t);i&&i.statics.blotName===e&&Me(i)&&i.updateContent(s)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let s=new m;return t.forEach(i=>{var l;const n=i==null?void 0:i.insert;if(!!n)if(typeof n=="string"){const o=n.split(` -`);o.slice(0,-1).forEach(c=>{var u;s.insert(c,i.attributes),e.push({type:"block",delta:s,attributes:(u=i.attributes)!=null?u:{}}),s=new m});const a=o[o.length-1];a&&s.insert(a,i.attributes)}else{const o=Object.keys(n)[0];if(!o)return;this.query(o,g.INLINE)?s.push(i):(s.length()&&e.push({type:"block",delta:s,attributes:{}}),s=new m,e.push({type:"blockEmbed",key:o,value:n[o],attributes:(l=i.attributes)!=null?l:{}}))}}),s.length()&&e.push({type:"block",delta:s,attributes:{}}),e}createBlock(t,e){let s;const i={};Object.entries(t).forEach(o=>{let[a,c]=o;this.query(a,g.BLOCK&g.BLOT)!=null?s=a:i[a]=c});const n=this.create(s||this.statics.defaultChild.blotName,s?t[s]:void 0);this.insertBefore(n,e||void 0);const l=n.length();return Object.entries(i).forEach(o=>{let[a,c]=o;n.formatAt(0,l,a,c)}),n}}d(ht,"blotName","scroll"),d(ht,"className","ql-editor"),d(ht,"tagName","DIV"),d(ht,"defaultChild",q),d(ht,"allowedChildren",[q,C,et]);function Wt(r,t,e){e.reduce((s,i)=>{const n=I.exports.Op.length(i);let l=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const o=i.insert;r.insertAt(s,o);const[a]=r.descendant(A,s),c=T(a);l=I.exports.AttributeMap.diff(c,l)||{}}else if(typeof i.insert=="object"){const o=Object.keys(i.insert)[0];if(o==null)return s;if(r.insertAt(s,o,i.insert[o]),r.scroll.query(o,g.INLINE)!=null){const[c]=r.descendant(A,s),u=T(c);l=I.exports.AttributeMap.diff(u,l)||{}}}}return Object.keys(l).forEach(o=>{r.formatAt(s,n,o,l[o])}),s+n},t)}const ge={scope:g.BLOCK,whitelist:["right","center","justify"]},ai=new $("align","align",ge),ns=new M("align","ql-align",ge),rs=new J("align","text-align",ge);class ls extends J{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):e}}const ci=new M("color","ql-color",{scope:g.INLINE}),pe=new ls("color","color",{scope:g.INLINE}),hi=new M("background","ql-bg",{scope:g.INLINE}),be=new ls("background","background-color",{scope:g.INLINE});class st extends et{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(s=>s.length()<=1?"":s.domNode.innerText).join(` -`).slice(t,t+e)}html(t,e){return`
    -${Pt(this.code(t,e))}
    -
    `}}class w extends q{static register(){h.register(st)}}d(w,"TAB"," ");class ye extends R{}ye.blotName="code";ye.tagName="CODE";w.blotName="code-block";w.className="ql-code-block";w.tagName="DIV";st.blotName="code-block-container";st.className="ql-code-block-container";st.tagName="DIV";st.allowedChildren=[w];w.allowedChildren=[D,U,_];w.requiredContainer=st;const Ne={scope:g.BLOCK,whitelist:["rtl"]},os=new $("direction","dir",Ne),as=new M("direction","ql-direction",Ne),cs=new J("direction","direction",Ne),hs={scope:g.INLINE,whitelist:["serif","monospace"]},us=new M("font","ql-font",hs);class ui extends J{value(t){return super.value(t).replace(/["']/g,"")}}const ds=new ui("font","font-family",hs),fs=new M("size","ql-size",{scope:g.INLINE,whitelist:["small","large","huge"]}),ms=new J("size","font-size",{scope:g.INLINE,whitelist:["10px","18px","32px"]}),di=K("quill:keyboard"),fi=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class _t extends P{static match(t,e){return["altKey","ctrlKey","metaKey","shiftKey"].some(s=>!!e[s]!==t[s]&&e[s]!==null)?!1:e.key===t.key||e.key===t.which}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(s=>{this.options.bindings[s]&&this.addBinding(this.options.bindings[s])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=gi(t);if(i==null){di.warn("Attempted to add invalid keyboard binding",i);return}typeof e=="function"&&(e={handler:e}),typeof s=="function"&&(s={handler:s}),(Array.isArray(i.key)?i.key:[i.key]).forEach(l=>{const o={...i,key:l,...e,...s};this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return;const s=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(E=>_t.match(t,E));if(s.length===0)return;const i=h.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const n=this.quill.getSelection();if(n==null||!this.quill.hasFocus())return;const[l,o]=this.quill.getLine(n.index),[a,c]=this.quill.getLeaf(n.index),[u,p]=n.length===0?[a,c]:this.quill.getLeaf(n.index+n.length),y=a instanceof Dt?a.value().slice(0,c):"",N=u instanceof Dt?u.value().slice(p):"",b={collapsed:n.length===0,empty:n.length===0&&l.length()<=1,format:this.quill.getFormat(n),line:l,offset:o,prefix:y,suffix:N,event:t};s.some(E=>{if(E.collapsed!=null&&E.collapsed!==b.collapsed||E.empty!=null&&E.empty!==b.empty||E.offset!=null&&E.offset!==b.offset)return!1;if(Array.isArray(E.format)){if(E.format.every(x=>b.format[x]==null))return!1}else if(typeof E.format=="object"&&!Object.keys(E.format).every(x=>E.format[x]===!0?b.format[x]!=null:E.format[x]===!1?b.format[x]==null:ue(E.format[x],b.format[x])))return!1;return E.prefix!=null&&!E.prefix.test(b.prefix)||E.suffix!=null&&!E.suffix.test(b.suffix)?!1:E.handler.call(this,n,b,E)!==!0})&&t.preventDefault()})}handleBackspace(t,e){const s=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let i={};const[n]=this.quill.getLine(t.index);let l=new m().retain(t.index-s).delete(s);if(e.offset===0){const[o]=this.quill.getLine(t.index-1);if(o&&!(o.statics.blotName==="block"&&o.length()<=1)){const c=n.formats(),u=this.quill.getFormat(t.index-1,1);if(i=I.exports.AttributeMap.diff(c,u)||{},Object.keys(i).length>0){const p=new m().retain(t.index+n.length()-2).retain(1,i);l=l.compose(p)}}}this.quill.updateContents(l,h.sources.USER),this.quill.focus()}handleDelete(t,e){const s=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-s)return;let i={};const[n]=this.quill.getLine(t.index);let l=new m().retain(t.index).delete(s);if(e.offset>=n.length()-1){const[o]=this.quill.getLine(t.index+1);if(o){const a=n.formats(),c=this.quill.getFormat(t.index,1);i=I.exports.AttributeMap.diff(a,c)||{},Object.keys(i).length>0&&(l=l.retain(o.length()-1).retain(1,i))}}this.quill.updateContents(l,h.sources.USER),this.quill.focus()}handleDeleteRange(t){Ee({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const s=Object.keys(e.format).reduce((n,l)=>(this.quill.scroll.query(l,g.BLOCK)&&!Array.isArray(e.format[l])&&(n[l]=e.format[l]),n),{}),i=new m().retain(t.index).delete(t.length).insert(` -`,s);this.quill.updateContents(i,h.sources.USER),this.quill.setSelection(t.index+1,h.sources.SILENT),this.quill.focus()}}const mi={bindings:{bold:Gt("bold"),italic:Gt("italic"),underline:Gt("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",h.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",h.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,t){t.format.indent!=null?this.quill.format("indent","-1",h.sources.USER):t.format.list!=null&&this.quill.format("list",!1,h.sources.USER)}},"indent code-block":Ue(!0),"outdent code-block":Ue(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,h.sources.USER)}},tab:{key:"Tab",handler(r,t){if(t.format.table)return!0;this.quill.history.cutoff();const e=new m().retain(r.index).delete(r.length).insert(" ");return this.quill.updateContents(e,h.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,h.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,h.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,t){const e={list:!1};t.format.indent&&(e.indent=!1),this.quill.formatLine(r.index,r.length,e,h.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[t,e]=this.quill.getLine(r.index),s={...t.formats(),list:"checked"},i=new m().retain(r.index).insert(` -`,s).retain(t.length()-e-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,h.sources.USER),this.quill.setSelection(r.index+1,h.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,t){const[e,s]=this.quill.getLine(r.index),i=new m().retain(r.index).insert(` -`,t.format).retain(e.length()-s-1).retain(1,{header:null});this.quill.updateContents(i,h.sources.USER),this.quill.setSelection(r.index+1,h.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){const t=this.quill.getModule("table");if(t){const[e,s,i,n]=t.getTable(r),l=pi(e,s,i,n);if(l==null)return;let o=e.offset();if(l<0){const a=new m().retain(o).insert(` -`);this.quill.updateContents(a,h.sources.USER),this.quill.setSelection(r.index+1,r.length,h.sources.SILENT)}else if(l>0){o+=e.length();const a=new m().retain(o).insert(` -`);this.quill.updateContents(a,h.sources.USER),this.quill.setSelection(o,h.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,t){const{event:e,line:s}=t,i=s.offset(this.quill.scroll);e.shiftKey?this.quill.setSelection(i-1,h.sources.USER):this.quill.setSelection(i+s.length(),h.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,t){if(this.quill.scroll.query("list")==null)return!0;const{length:e}=t.prefix,[s,i]=this.quill.getLine(r.index);if(i>e)return!0;let n;switch(t.prefix.trim()){case"[]":case"[ ]":n="unchecked";break;case"[x]":n="checked";break;case"-":case"*":n="bullet";break;default:n="ordered"}this.quill.insertText(r.index," ",h.sources.USER),this.quill.history.cutoff();const l=new m().retain(r.index-i).delete(e+1).retain(s.length()-2-i).retain(1,{list:n});return this.quill.updateContents(l,h.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-e,h.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[t,e]=this.quill.getLine(r.index);let s=2,i=t;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,s-=1,s<=0){const n=new m().retain(r.index+t.length()-e-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(n,h.sources.USER),this.quill.setSelection(r.index-1,h.sources.SILENT),!1}return!0}},"embed left":Rt("ArrowLeft",!1),"embed left shift":Rt("ArrowLeft",!0),"embed right":Rt("ArrowRight",!1),"embed right shift":Rt("ArrowRight",!0),"table down":Pe(!1),"table up":Pe(!0)}};_t.DEFAULTS=mi;function Ue(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(t,e){let{event:s}=e;const i=this.quill.scroll.query("code-block"),{TAB:n}=i;if(t.length===0&&!s.shiftKey){this.quill.insertText(t.index,n,h.sources.USER),this.quill.setSelection(t.index+n.length,h.sources.SILENT);return}const l=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:o,length:a}=t;l.forEach((c,u)=>{r?(c.insertAt(0,n),u===0?o+=n.length:a+=n.length):c.domNode.textContent.startsWith(n)&&(c.deleteAt(0,n.length),u===0?o-=n.length:a-=n.length)}),this.quill.update(h.sources.USER),this.quill.setSelection(o,a,h.sources.SILENT)}}}function Rt(r,t){return{key:r,shiftKey:t,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(s){let{index:i}=s;r==="ArrowRight"&&(i+=s.length+1);const[n]=this.quill.getLeaf(i);return n instanceof L?(r==="ArrowLeft"?t?this.quill.setSelection(s.index-1,s.length+1,h.sources.USER):this.quill.setSelection(s.index-1,h.sources.USER):t?this.quill.setSelection(s.index,s.length+1,h.sources.USER):this.quill.setSelection(s.index+s.length+1,h.sources.USER),!1):!0}}}function Gt(r){return{key:r[0],shortKey:!0,handler(t,e){this.quill.format(r,!e.format[r],h.sources.USER)}}}function Pe(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,e){const s=r?"prev":"next",i=e.line,n=i.parent[s];if(n!=null){if(n.statics.blotName==="table-row"){let l=n.children.head,o=i;for(;o.prev!=null;)o=o.prev,l=l.next;const a=l.offset(this.quill.scroll)+Math.min(e.offset,l.length()-1);this.quill.setSelection(a,0,h.sources.USER)}}else{const l=i.table()[s];l!=null&&(r?this.quill.setSelection(l.offset(this.quill.scroll)+l.length()-1,0,h.sources.USER):this.quill.setSelection(l.offset(this.quill.scroll),0,h.sources.USER))}return!1}}}function gi(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=dt(r);else return null;return r.shortKey&&(r[fi]=r.shortKey,delete r.shortKey),r}function Ee(r){let{quill:t,range:e}=r;const s=t.getLines(e);let i={};if(s.length>1){const n=s[0].formats(),l=s[s.length-1].formats();i=I.exports.AttributeMap.diff(l,n)||{}}t.deleteText(e,h.sources.USER),Object.keys(i).length>0&&t.formatLine(e.index,1,i,h.sources.USER),t.setSelection(e.index,h.sources.SILENT)}function pi(r,t,e,s){return t.prev==null&&t.next==null?e.prev==null&&e.next==null?s===0?-1:1:e.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}const bi=/font-weight:\s*normal/,yi=["P","OL","UL"],_e=r=>r&&yi.includes(r.tagName),Ni=r=>{Array.from(r.querySelectorAll("br")).filter(t=>_e(t.previousElementSibling)&&_e(t.nextElementSibling)).forEach(t=>{var e;(e=t.parentNode)==null||e.removeChild(t)})},Ei=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var e;return(e=t.getAttribute("style"))==null?void 0:e.match(bi)}).forEach(t=>{var s;const e=r.createDocumentFragment();e.append(...t.childNodes),(s=t.parentNode)==null||s.replaceChild(e,t)})};function xi(r){r.querySelector('[id^="docs-internal-guid-"]')&&(Ei(r),Ni(r))}const qi=/\bmso-list:[^;]*ignore/i,Ai=/\bmso-list:[^;]*\bl(\d+)/i,wi=/\bmso-list:[^;]*\blevel(\d+)/i,vi=(r,t)=>{const e=r.getAttribute("style"),s=e==null?void 0:e.match(Ai);if(!s)return null;const i=Number(s[1]),n=e==null?void 0:e.match(wi),l=n?Number(n[1]):1,o=new RegExp(`@list l${i}:level${l}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),a=t.match(o),c=a&&a[1]==="bullet"?"bullet":"ordered";return{id:i,indent:l,type:c,element:r}},Li=r=>{var l,o;const t=Array.from(r.querySelectorAll("[style*=mso-list]")),e=[],s=[];t.forEach(a=>{(a.getAttribute("style")||"").match(qi)?e.push(a):s.push(a)}),e.forEach(a=>{var c;return(c=a.parentNode)==null?void 0:c.removeChild(a)});const i=r.documentElement.innerHTML,n=s.map(a=>vi(a,i)).filter(a=>a);for(;n.length;){const a=[];let c=n.shift();for(;c;)a.push(c),c=n.length&&((l=n[0])==null?void 0:l.element)===c.element.nextElementSibling&&n[0].id===c.id?n.shift():null;const u=document.createElement("ul");a.forEach(N=>{const b=document.createElement("li");b.setAttribute("data-list",N.type),N.indent>1&&b.setAttribute("class",`ql-indent-${N.indent-1}`),b.innerHTML=N.element.innerHTML,u.appendChild(b)});const p=(o=a[0])==null?void 0:o.element,{parentNode:y}=p!=null?p:{};p&&(y==null||y.replaceChild(u,p)),a.slice(1).forEach(N=>{let{element:b}=N;y==null||y.removeChild(b)})}};function ki(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Li(r)}const Ti=[ki,xi],Si=r=>{r.documentElement&&Ti.forEach(t=>{t(r)})},Ci=K("quill:clipboard"),Ri=[[Node.TEXT_NODE,zi],[Node.TEXT_NODE,$e],["br",Mi],[Node.ELEMENT_NODE,$e],[Node.ELEMENT_NODE,Di],[Node.ELEMENT_NODE,Bi],[Node.ELEMENT_NODE,$i],["li",_i],["ol, ul",Fi],["pre",Ui],["tr",Hi],["b",Zt("bold")],["i",Zt("italic")],["strike",Zt("strike")],["style",Pi]],Oi=[ai,os].reduce((r,t)=>(r[t.keyName]=t,r),{}),Fe=[rs,be,pe,cs,ds,ms].reduce((r,t)=>(r[t.keyName]=t,r),{});class gs extends P{constructor(t,e){var s;super(t,e),this.quill.root.addEventListener("copy",i=>this.onCaptureCopy(i,!1)),this.quill.root.addEventListener("cut",i=>this.onCaptureCopy(i,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Ri.concat((s=this.options.matchers)!=null?s:[]).forEach(i=>{let[n,l]=i;this.addMatcher(n,l)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:s}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[w.blotName])return new m().insert(s||"",{[w.blotName]:i[w.blotName]});if(!e)return new m().insert(s||"",i);const n=this.convertHTML(e);return wt(n,` -`)&&(n.ops[n.ops.length-1].attributes==null||i.table)?n.compose(new m().retain(n.length()-1).delete(1)):n}normalizeHTML(t){Si(t)}convertHTML(t){const e=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(e);const s=e.body,i=new WeakMap,[n,l]=this.prepareMatching(s,i);return xe(this.quill.scroll,s,n,l,i)}dangerouslyPasteHTML(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.sources.API;if(typeof t=="string"){const i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,h.sources.SILENT)}else{const i=this.convert({html:e,text:""});this.quill.updateContents(new m().retain(t).concat(i),s),this.quill.setSelection(t+i.length(),h.sources.SILENT)}}onCaptureCopy(t){var l,o;let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[s]=this.quill.selection.getRange();if(s==null)return;const{html:i,text:n}=this.onCopy(s,e);(l=t.clipboardData)==null||l.setData("text/plain",n),(o=t.clipboardData)==null||o.setData("text/html",i),e&&Ee({range:s,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(e=>e[0]!=="#").join(` -`)}onCapturePaste(t){var l,o,a,c,u;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(e==null)return;const s=(l=t.clipboardData)==null?void 0:l.getData("text/html");let i=(o=t.clipboardData)==null?void 0:o.getData("text/plain");if(!s&&!i){const p=(a=t.clipboardData)==null?void 0:a.getData("text/uri-list");p&&(i=this.normalizeURIList(p))}const n=Array.from(((c=t.clipboardData)==null?void 0:c.files)||[]);if(!s&&n.length>0){this.quill.uploader.upload(e,n);return}if(s&&n.length>0){const p=new DOMParser().parseFromString(s,"text/html");if(p.body.childElementCount===1&&((u=p.body.firstElementChild)==null?void 0:u.tagName)==="IMG"){this.quill.uploader.upload(e,n);return}}this.onPaste(e,{html:s,text:i})}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:s,html:i}=e;const n=this.quill.getFormat(t.index),l=this.convert({text:s,html:i},n);Ci.log("onPaste",l,{text:s,html:i});const o=new m().retain(t.index).delete(t.length).concat(l);this.quill.updateContents(o,h.sources.USER),this.quill.setSelection(o.length()-t.length,h.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const s=[],i=[];return this.matchers.forEach(n=>{const[l,o]=n;switch(l){case Node.TEXT_NODE:i.push(o);break;case Node.ELEMENT_NODE:s.push(o);break;default:Array.from(t.querySelectorAll(l)).forEach(a=>{if(e.has(a)){const c=e.get(a);c==null||c.push(o)}else e.set(a,[o])});break}}),[s,i]}}d(gs,"DEFAULTS",{matchers:[]});function it(r,t,e,s){return s.query(t)?r.reduce((i,n)=>{if(!n.insert)return i;if(n.attributes&&n.attributes[t])return i.push(n);const l=e?{[t]:e}:{};return i.insert(n.insert,{...l,...n.attributes})},new m):r}function wt(r,t){let e="";for(let s=r.ops.length-1;s>=0&&e.lengthl(t,n,r),new m):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((n,l)=>{let o=xe(r,l,e,s,i);return l.nodeType===t.ELEMENT_NODE&&(o=e.reduce((a,c)=>c(l,a,r),o),o=(i.get(l)||[]).reduce((a,c)=>c(l,a,r),o)),n.concat(o)},new m):new m}function Zt(r){return(t,e,s)=>it(e,r,!0,s)}function Bi(r,t,e){const s=$.keys(r),i=M.keys(r),n=J.keys(r),l={};return s.concat(i).concat(n).forEach(o=>{let a=e.query(o,g.ATTRIBUTE);a!=null&&(l[a.attrName]=a.value(r),l[a.attrName])||(a=Oi[o],a!=null&&(a.attrName===o||a.keyName===o)&&(l[a.attrName]=a.value(r)||void 0),a=Fe[o],a!=null&&(a.attrName===o||a.keyName===o)&&(a=Fe[o],l[a.attrName]=a.value(r)||void 0))}),Object.entries(l).reduce((o,a)=>{let[c,u]=a;return it(o,c,u,e)},t)}function Di(r,t,e){const s=e.query(r);if(s==null)return t;if(s.prototype instanceof L){const i={},n=s.value(r);if(n!=null)return i[s.blotName]=n,new m().insert(i,s.formats(r,e))}else if(s.prototype instanceof Et&&!wt(t,` -`)&&t.insert(` -`),"blotName"in s&&"formats"in s&&typeof s.formats=="function")return it(t,s.blotName,s.formats(r,e),e);return t}function Mi(r,t){return wt(t,` -`)||t.insert(` -`),t}function Ui(r,t,e){const s=e.query("code-block"),i=s&&"formats"in s&&typeof s.formats=="function"?s.formats(r,e):!0;return it(t,"code-block",i,e)}function Pi(){return new m}function _i(r,t,e){const s=e.query(r);if(s==null||s.blotName!=="list"||!wt(t,` -`))return t;let i=-1,n=r.parentNode;for(;n!=null;)["OL","UL"].includes(n.tagName)&&(i+=1),n=n.parentNode;return i<=0?t:t.reduce((l,o)=>o.insert?o.attributes&&typeof o.attributes.indent=="number"?l.push(o):l.insert(o.insert,{indent:i,...o.attributes||{}}):l,new m)}function Fi(r,t,e){const s=r;let i=s.tagName==="OL"?"ordered":"bullet";const n=s.getAttribute("data-checked");return n&&(i=n==="true"?"checked":"unchecked"),it(t,"list",i,e)}function $e(r,t,e){if(!wt(t,` -`)){if(X(r,e)&&(r.childNodes.length>0||r instanceof HTMLParagraphElement))return t.insert(` -`);if(t.length()>0&&r.nextSibling){let s=r.nextSibling;for(;s!=null;){if(X(s,e))return t.insert(` -`);const i=e.query(s);if(i&&i.prototype instanceof C)return t.insert(` -`);s=s.firstChild}}}return t}function $i(r,t,e){var n;const s={},i=r.style||{};return i.fontStyle==="italic"&&(s.italic=!0),i.textDecoration==="underline"&&(s.underline=!0),i.textDecoration==="line-through"&&(s.strike=!0),(((n=i.fontWeight)==null?void 0:n.startsWith("bold"))||parseInt(i.fontWeight,10)>=700)&&(s.bold=!0),t=Object.entries(s).reduce((l,o)=>{let[a,c]=o;return it(l,a,c,e)},t),parseFloat(i.textIndent||0)>0?new m().insert(" ").concat(t):t}function Hi(r,t,e){var i,n;const s=((i=r.parentElement)==null?void 0:i.tagName)==="TABLE"?r.parentElement:(n=r.parentElement)==null?void 0:n.parentElement;if(s!=null){const o=Array.from(s.querySelectorAll("tr")).indexOf(r)+1;return it(t,"table",o,e)}return t}function zi(r,t,e){var i;let s=r.data;if(((i=r.parentElement)==null?void 0:i.tagName)==="O:P")return t.insert(s.trim());if(!ps(r)){if(s.trim().length===0&&s.includes(` -`)&&!Ii(r,e))return t;const n=(l,o)=>{const a=o.replace(/[^\u00a0]/g,"");return a.length<1&&l?" ":a};s=s.replace(/\r\n/g," ").replace(/\n/g," "),s=s.replace(/\s\s+/g,n.bind(n,!0)),(r.previousSibling==null&&r.parentElement!=null&&X(r.parentElement,e)||r.previousSibling instanceof Element&&X(r.previousSibling,e))&&(s=s.replace(/^\s+/,n.bind(n,!1))),(r.nextSibling==null&&r.parentElement!=null&&X(r.parentElement,e)||r.nextSibling instanceof Element&&X(r.nextSibling,e))&&(s=s.replace(/\s+$/,n.bind(n,!1)))}return t.insert(s)}class bs extends P{constructor(e,s){super(e,s);d(this,"lastRecorded",0);d(this,"ignoreChange",!1);d(this,"stack",{undo:[],redo:[]});d(this,"currentRange",null);this.quill.on(h.events.EDITOR_CHANGE,(i,n,l,o)=>{i===h.events.SELECTION_CHANGE?n&&o!==h.sources.SILENT&&(this.currentRange=n):i===h.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||o===h.sources.USER?this.record(n,l):this.transform(n)),this.currentRange=ie(this.currentRange,n))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(e,s){if(this.stack[e].length===0)return;const i=this.stack[e].pop();if(!i)return;const n=this.quill.getContents(),l=i.delta.invert(n);this.stack[s].push({delta:l,range:ie(i.range,l)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,h.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,s){if(e.ops.length===0)return;this.stack.redo=[];let i=e.invert(s),n=this.currentRange;const l=Date.now();if(this.lastRecorded+this.options.delay>l&&this.stack.undo.length>0){const o=this.stack.undo.pop();o&&(i=i.compose(o.delta),n=o.range)}else this.lastRecorded=l;i.length()!==0&&(this.stack.undo.push({delta:i,range:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){He(this.stack.undo,e),He(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,h.sources.USER);else{const s=Ki(this.quill.scroll,e.delta);this.quill.setSelection(s,h.sources.USER)}}}d(bs,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function He(r,t){let e=t;for(let s=r.length-1;s>=0;s-=1){const i=r[s];r[s]={delta:e.transform(i.delta,!0),range:i.range&&ie(i.range,e)},e=i.delta.transform(e),r[s].delta.length()===0&&r.splice(s,1)}}function ji(r,t){const e=t.ops[t.ops.length-1];return e==null?!1:e.insert!=null?typeof e.insert=="string"&&e.insert.endsWith(` -`):e.attributes!=null?Object.keys(e.attributes).some(s=>r.query(s,g.BLOCK)!=null):!1}function Ki(r,t){const e=t.reduce((i,n)=>i+(n.delete||0),0);let s=t.length()-e;return ji(r,t)&&(s-=1),s}function ie(r,t){if(!r)return r;const e=t.transformPosition(r.index),s=t.transformPosition(r.index+r.length);return{index:e,length:s-e}}class ys extends P{constructor(t,e){super(t,e),t.root.addEventListener("drop",s=>{var l;s.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(s.clientX,s.clientY);else if(document.caretPositionFromPoint){const o=document.caretPositionFromPoint(s.clientX,s.clientY);i=document.createRange(),i.setStart(o.offsetNode,o.offset),i.setEnd(o.offsetNode,o.offset)}const n=i&&t.selection.normalizeNative(i);if(n){const o=t.selection.normalizedToRange(n);(l=s.dataTransfer)!=null&&l.files&&this.upload(o,s.dataTransfer.files)}})}upload(t,e){const s=[];Array.from(e).forEach(i=>{var n;i&&((n=this.options.mimetypes)==null?void 0:n.includes(i.type))&&s.push(i)}),s.length>0&&this.options.handler.call(this,t,s)}}ys.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,t){const e=t.map(s=>new Promise(i=>{const n=new FileReader;n.onload=l=>{i(l.target.result)},n.readAsDataURL(s)}));Promise.all(e).then(s=>{const i=s.reduce((n,l)=>n.insert({image:l}),new m().retain(r.index).delete(r.length));this.quill.updateContents(i,f.sources.USER),this.quill.setSelection(r.index+s.length,f.sources.SILENT)})}};const Vi=["insertText","insertReplacementText"];class Wi extends P{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",s=>{this.handleBeforeInput(s)}),/Android/i.test(navigator.userAgent)||t.on(h.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){Ee({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(e){const s=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new m().retain(t.index).insert(e,s),h.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,h.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!Vi.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||e.collapsed===!0)return;const s=Gi(t);if(s==null)return;const i=this.quill.selection.normalizeNative(e),n=i?this.quill.selection.normalizedToRange(i):null;n&&this.replaceText(n,s)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function Gi(r){var t;return typeof r.data=="string"?r.data:(t=r.dataTransfer)!=null&&t.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}const Zi=/Mac/i.test(navigator.platform),Xi=100,Yi=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||Zi&&r.key==="a"&&r.ctrlKey===!0);class Qi extends P{constructor(e,s){super(e,s);d(this,"isListening",!1);d(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,s){let{line:i,event:n}=s;if(!(i instanceof B)||!i.uiNode)return!0;const l=getComputedStyle(i.domNode).direction==="rtl";return l&&n.key!=="ArrowRight"||!l&&n.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(n.shiftKey?1:0),h.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&Yi(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Xi,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const s=e.getRangeAt(0);if(s.collapsed!==!0||s.startOffset!==0)return;const i=this.quill.scroll.find(s.startContainer);if(!(i instanceof B)||!i.uiNode)return;const n=document.createRange();n.setStartAfter(i.uiNode),n.setEndAfter(i.uiNode),e.removeAllRanges(),e.addRange(n)}}h.register({"blots/block":q,"blots/block/embed":C,"blots/break":U,"blots/container":et,"blots/cursor":_,"blots/embed":me,"blots/inline":R,"blots/scroll":ht,"blots/text":D,"modules/clipboard":gs,"modules/history":bs,"modules/keyboard":_t,"modules/uploader":ys,"modules/input":Wi,"modules/uiNode":Qi});class Ji extends M{add(t,e){let s=0;if(e==="+1"||e==="-1"){const i=this.value(t)||0;s=e==="+1"?i+1:i-1}else typeof e=="number"&&(s=e);return s===0?(this.remove(t),!0):super.add(t,s.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}const tn=new Ji("indent","ql-indent",{scope:g.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class ne extends q{}d(ne,"blotName","blockquote"),d(ne,"tagName","blockquote");class re extends q{static formats(t){return this.tagName.indexOf(t.tagName)+1}}d(re,"blotName","header"),d(re,"tagName",["H1","H2","H3","H4","H5","H6"]);class vt extends et{}vt.blotName="list-container";vt.tagName="OL";class Lt extends q{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){h.register(vt)}constructor(t,e){super(t,e);const s=e.ownerDocument.createElement("span"),i=n=>{if(!t.isEnabled())return;const l=this.statics.formats(e,t);l==="checked"?(this.format("list","unchecked"),n.preventDefault()):l==="unchecked"&&(this.format("list","checked"),n.preventDefault())};s.addEventListener("mousedown",i),s.addEventListener("touchstart",i),this.attachUI(s)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}Lt.blotName="list";Lt.tagName="LI";vt.allowedChildren=[Lt];Lt.requiredContainer=vt;class qt extends R{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}d(qt,"blotName","bold"),d(qt,"tagName",["STRONG","B"]);class le extends qt{}d(le,"blotName","italic"),d(le,"tagName",["EM","I"]);class Y extends R{static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return Ns(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t!==this.statics.blotName||!e?super.format(t,e):this.domNode.setAttribute("href",this.constructor.sanitize(e))}}d(Y,"blotName","link"),d(Y,"tagName","A"),d(Y,"SANITIZED_URL","about:blank"),d(Y,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Ns(r,t){const e=document.createElement("a");e.href=r;const s=e.href.slice(0,e.href.indexOf(":"));return t.indexOf(s)>-1}class oe extends R{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}d(oe,"blotName","script"),d(oe,"tagName",["SUB","SUP"]);class ae extends qt{}d(ae,"blotName","strike"),d(ae,"tagName",["S","STRIKE"]);class ce extends R{}d(ce,"blotName","underline"),d(ce,"tagName","U");class It extends me{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return typeof t=="string"&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`${t}`}}d(It,"blotName","formula"),d(It,"className","ql-formula"),d(It,"tagName","SPAN");const ze=["alt","height","width"];class he extends L{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return ze.reduce((e,s)=>(t.hasAttribute(s)&&(e[s]=t.getAttribute(s)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return Ns(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){ze.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}}d(he,"blotName","image"),d(he,"tagName","IMG");const je=["height","width"];class Bt extends C{static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return je.reduce((e,s)=>(t.hasAttribute(s)&&(e[s]=t.getAttribute(s)),e),{})}static sanitize(t){return Y.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){je.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`
    ${t}`}}d(Bt,"blotName","video"),d(Bt,"className","ql-video"),d(Bt,"tagName","IFRAME");const yt=new M("code-token","hljs",{scope:g.INLINE});class z extends R{static formats(t,e){for(;t!=null&&t!==e.domNode;){if(t.classList&&t.classList.contains(w.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,s){super(t,e,s),yt.add(this.domNode,s)}format(t,e){t!==z.blotName?super.format(t,e):e?yt.add(this.domNode,e):(yt.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),yt.value(this.domNode)||this.unwrap()}}z.blotName="code-token";z.className="ql-token";class S extends w{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),z.blotName,!1),super.replaceWith(t,e)}}class Nt extends st{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===S.blotName&&(this.forceNext=!0,this.children.forEach(s=>{s.format(t,e)}))}formatAt(t,e,s,i){s===S.blotName&&(this.forceNext=!0),super.formatAt(t,e,s,i)}highlight(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(l=>l!==this.uiNode).map(l=>l.textContent).join(` -`)} -`,n=S.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const l=this.children.reduce((a,c)=>a.concat(ss(c,!1)),new m),o=t(i,n);l.diff(o).reduce((a,c)=>{let{retain:u,attributes:p}=c;return u?(p&&Object.keys(p).forEach(y=>{[S.blotName,z.blotName].includes(y)&&this.formatAt(a,u,y,p[y])}),a+u):a},0)}this.cachedText=i,this.forceNext=!1}}html(t,e){const[s]=this.children.find(t);return`
    -${Pt(this.code(t,e))}
    -
    `}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const e=S.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}Nt.allowedChildren=[S];S.requiredContainer=Nt;S.allowedChildren=[z,_,D,U];const en=(r,t,e)=>{if(typeof r.versionString=="string"){const s=r.versionString.split(".")[0];if(parseInt(s,10)>=11)return r.highlight(e,{language:t}).value}return r.highlight(t,e).value};class Es extends P{static register(){h.register(z,!0),h.register(S,!0),h.register(Nt,!0)}constructor(t,e){if(super(t,e),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((s,i)=>{let{key:n}=i;return s[n]=!0,s},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(h.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof Nt))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(s=>{let{key:i,label:n}=s;const l=e.ownerDocument.createElement("option");l.textContent=n,l.setAttribute("value",i),e.appendChild(l)}),e.addEventListener("change",()=>{t.format(S.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(e),t.children.head&&(e.value=S.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(h.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(h.sources.USER);const s=this.quill.getSelection();(t==null?this.quill.scroll.descendants(Nt):[t]).forEach(n=>{n.highlight(this.highlightBlot,e)}),this.quill.update(h.sources.SILENT),s!=null&&this.quill.setSelection(s,h.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(e=this.languages[e]?e:"plain",e==="plain")return Pt(t).split(` -`).reduce((i,n,l)=>(l!==0&&i.insert(` -`,{[w.blotName]:e}),i.insert(n)),new m);const s=this.quill.root.ownerDocument.createElement("div");return s.classList.add(w.className),s.innerHTML=en(this.options.hljs,e,t),xe(this.quill.scroll,s,[(i,n)=>{const l=yt.value(i);return l?n.compose(new m().retain(n.length(),{[z.blotName]:l})):n}],[(i,n)=>i.data.split(` -`).reduce((l,o,a)=>(a!==0&&l.insert(` -`,{[w.blotName]:e}),l.insert(o)),n)],new WeakMap)}}Es.DEFAULTS={hljs:(()=>window.hljs)(),interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const ve=class extends q{static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",qe()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===ve.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};let v=ve;d(v,"blotName","table"),d(v,"tagName","TD");class j extends et{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),e=this.children.tail.formats(),s=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===e.table&&t.table===s.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(e=>{if(e.next==null)return;const s=e.formats(),i=e.next.formats();if(s.table!==i.table){const n=this.splitAfter(e);n&&n.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}d(j,"blotName","table-row"),d(j,"tagName","TR");class F extends et{}d(F,"blotName","table-body"),d(F,"tagName","TBODY");class pt extends et{balanceCells(){const t=this.descendants(j),e=t.reduce((s,i)=>Math.max(i.children.length,s),0);t.forEach(s=>{new Array(e-s.children.length).fill(0).forEach(()=>{let i;s.children.head!=null&&(i=v.formats(s.children.head.domNode));const n=this.scroll.create(v.blotName,i);s.appendChild(n),n.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(F);e==null||e.children.head==null||e.children.forEach(s=>{const i=s.children.at(t);i!=null&&i.remove()})}insertColumn(t){const[e]=this.descendant(F);e==null||e.children.head==null||e.children.forEach(s=>{const i=s.children.at(t),n=v.formats(s.children.head.domNode),l=this.scroll.create(v.blotName,n);s.insertBefore(l,i)})}insertRow(t){const[e]=this.descendant(F);if(e==null||e.children.head==null)return;const s=qe(),i=this.scroll.create(j.blotName);e.children.head.children.forEach(()=>{const l=this.scroll.create(v.blotName,s);i.appendChild(l)});const n=e.children.at(t);e.insertBefore(i,n)}rows(){const t=this.children.head;return t==null?[]:t.children.map(e=>e)}}d(pt,"blotName","table-container"),d(pt,"tagName","TABLE");pt.allowedChildren=[F];F.requiredContainer=pt;F.allowedChildren=[j];j.requiredContainer=F;j.allowedChildren=[v];v.requiredContainer=j;function qe(){return`row-${Math.random().toString(36).slice(2,6)}`}class sn extends P{static register(){h.register(v),h.register(j),h.register(F),h.register(pt)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(pt).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();e!=null&&(t.deleteColumn(e.cellOffset()),this.quill.update(h.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(h.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove(),this.quill.update(h.sources.USER),this.quill.setSelection(e,h.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,s]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==v.blotName)return[null,null,null,-1];const i=e.parent;return[i.parent.parent,i,e,s]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[s,i,n]=this.getTable(e);if(n==null)return;const l=n.cellOffset();s.insertColumn(l+t),this.quill.update(h.sources.USER);let o=i.rowOffset();t===0&&(o+=1),this.quill.setSelection(e.index+o,e.length,h.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[s,i,n]=this.getTable(e);if(n==null)return;const l=i.rowOffset();s.insertRow(l+t),this.quill.update(h.sources.USER),t>0?this.quill.setSelection(e,h.sources.SILENT):this.quill.setSelection(e.index+i.children.length,e.length,h.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const s=this.quill.getSelection();if(s==null)return;const i=new Array(t).fill(0).reduce(n=>{const l=new Array(e).fill(` -`).join("");return n.insert(l,{table:qe()})},new m().retain(s.index));this.quill.updateContents(i,h.sources.USER),this.quill.setSelection(s.index,h.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(h.events.SCROLL_OPTIMIZE,t=>{t.some(e=>["TD","TR","TBODY","TABLE"].includes(e.target.tagName)?(this.quill.once(h.events.TEXT_CHANGE,(s,i,n)=>{n===h.sources.USER&&this.balanceTables()}),!0):!1)})}}const Ke=K("quill:toolbar");class Ae extends P{constructor(t,e){var s,i;if(super(t,e),Array.isArray(this.options.container)){const n=document.createElement("div");n.setAttribute("role","toolbar"),nn(n,this.options.container),(i=(s=t.container)==null?void 0:s.parentNode)==null||i.insertBefore(n,t.container),this.container=n}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){Ke.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(n=>{var o;const l=(o=this.options.handlers)==null?void 0:o[n];l&&this.addHandler(n,l)}),Array.from(this.container.querySelectorAll("button, select")).forEach(n=>{this.attach(n)}),this.quill.on(h.events.EDITOR_CHANGE,()=>{const[n]=this.quill.selection.getRange();this.update(n)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){Ke.warn("ignoring attaching to nonexistent format",e,t);return}const s=t.tagName==="SELECT"?"change":"click";t.addEventListener(s,i=>{let n;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const o=t.options[t.selectedIndex];o.hasAttribute("selected")?n=!1:n=o.value||!1}else t.classList.contains("ql-active")?n=!1:n=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[l]=this.quill.selection.getRange();if(this.handlers[e]!=null)this.handlers[e].call(this,n);else if(this.quill.scroll.query(e).prototype instanceof L){if(n=prompt(`Enter ${e}`),!n)return;this.quill.updateContents(new m().retain(l.index).delete(l.length).insert({[e]:n}),h.sources.USER)}else this.quill.format(e,n,h.sources.USER);this.update(l)}),this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach(s=>{const[i,n]=s;if(n.tagName==="SELECT"){let l=null;if(t==null)l=null;else if(e[i]==null)l=n.querySelector("option[selected]");else if(!Array.isArray(e[i])){let o=e[i];typeof o=="string"&&(o=o.replace(/"/g,'\\"')),l=n.querySelector(`option[value="${o}"]`)}l==null?(n.value="",n.selectedIndex=-1):l.selected=!0}else if(t==null)n.classList.remove("ql-active"),n.setAttribute("aria-pressed","false");else if(n.hasAttribute("value")){const l=e[i],o=l===n.getAttribute("value")||l!=null&&l.toString()===n.getAttribute("value")||l==null&&!n.getAttribute("value");n.classList.toggle("ql-active",o),n.setAttribute("aria-pressed",o.toString())}else{const l=e[i]!=null;n.classList.toggle("ql-active",l),n.setAttribute("aria-pressed",l.toString())}})}}Ae.DEFAULTS={};function Ve(r,t,e){const s=document.createElement("button");s.setAttribute("type","button"),s.classList.add(`ql-${t}`),s.setAttribute("aria-pressed","false"),e!=null?(s.value=e,s.setAttribute("aria-label",`${t}: ${e}`)):s.setAttribute("aria-label",t),r.appendChild(s)}function nn(r,t){Array.isArray(t[0])||(t=[t]),t.forEach(e=>{const s=document.createElement("span");s.classList.add("ql-formats"),e.forEach(i=>{if(typeof i=="string")Ve(s,i);else{const n=Object.keys(i)[0],l=i[n];Array.isArray(l)?rn(s,n,l):Ve(s,n,l)}}),r.appendChild(s)})}function rn(r,t,e){const s=document.createElement("select");s.classList.add(`ql-${t}`),e.forEach(i=>{const n=document.createElement("option");i!==!1?n.setAttribute("value",String(i)):n.setAttribute("selected","selected"),s.appendChild(n)}),r.appendChild(s)}Ae.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(e=>{this.quill.scroll.query(e,g.INLINE)!=null&&this.quill.format(e,!1,h.sources.USER)})}else this.quill.removeFormat(r,h.sources.USER)},direction(r){const{align:t}=this.quill.getFormat();r==="rtl"&&t==null?this.quill.format("align","right",h.sources.USER):!r&&t==="right"&&this.quill.format("align",!1,h.sources.USER),this.quill.format("direction",r,h.sources.USER)},indent(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t),s=parseInt(e.indent||0,10);if(r==="+1"||r==="-1"){let i=r==="+1"?1:-1;e.direction==="rtl"&&(i*=-1),this.quill.format("indent",s+i,h.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,h.sources.USER)},list(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t);r==="check"?e.list==="checked"||e.list==="unchecked"?this.quill.format("list",!1,h.sources.USER):this.quill.format("list","unchecked",h.sources.USER):this.quill.format("list",r,h.sources.USER)}}};const ln='',on='',an='',cn='',hn='',un='',dn='',fn='',We='',mn='',gn='',pn='',bn='',yn='',Nn='',En='',xn='',qn='',An='',wn='',vn='',Ln='',kn='',Tn='',Sn='',Cn='',Rn='',On='',In='';var At={align:{"":ln,center:on,right:an,justify:cn},background:hn,blockquote:un,bold:dn,clean:fn,code:We,"code-block":We,color:mn,direction:{"":gn,rtl:pn},formula:bn,header:{1:yn,2:Nn},italic:En,image:xn,indent:{"+1":qn,"-1":An},link:wn,list:{bullet:vn,check:Ln,ordered:kn},script:{sub:Tn,super:Sn},strike:Cn,table:Rn,underline:On,video:In};const Bn='';let Ge=0;function Ze(r,t){r.setAttribute(t,`${r.getAttribute(t)!=="true"}`)}class Ft{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Ze(this.label,"aria-expanded"),Ze(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const s=t.getAttribute("value");return s&&e.setAttribute("data-value",s),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(e,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=Bn,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${Ge}`,Ge+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const s=this.buildItem(e);t.appendChild(s),e.selected===!0&&this.selectItem(s)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=this.container.querySelector(".ql-selected");t!==s&&(s!=null&&s.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class xs extends Ft{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(s=>{s.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const s=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=i:s.style.fill=i)}}class qs extends Ft{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(s=>{s.innerHTML=e[s.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const s=t||this.defaultItem;if(s!=null){if(this.label.innerHTML===s.innerHTML)return;this.label.innerHTML=s.innerHTML}}}const Dn=r=>{const{overflowY:t}=getComputedStyle(r,null);return t!=="visible"&&t!=="clip"};class As{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Dn(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,s=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${s}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),n=this.root.getBoundingClientRect();let l=0;if(n.right>i.right&&(l=i.right-n.right,this.root.style.left=`${e+l}px`),n.lefti.bottom){const o=n.bottom-n.top,a=t.bottom-t.top+o;this.root.style.top=`${s-a}px`,this.root.classList.add("ql-flip")}return l}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Mn=[!1,"center","right","justify"],Un=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Pn=[!1,"serif","monospace"],_n=["1","2","3",!1],Fn=["small",!1,"large","huge"];class kt extends Z{constructor(t,e){super(t,e);const s=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",s);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(n=>{n.container.contains(i.target)||n.close()})};t.emitter.listenDOM("click",document.body,s)}addModule(t){const e=super.addModule(t);return t==="toolbar"&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(s=>{(s.getAttribute("class")||"").split(/\s+/).forEach(n=>{if(!!n.startsWith("ql-")&&(n=n.slice(3),e[n]!=null))if(n==="direction")s.innerHTML=e[n][""]+e[n].rtl;else if(typeof e[n]=="string")s.innerHTML=e[n];else{const l=s.value||"";l!=null&&e[n][l]&&(s.innerHTML=e[n][l])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&bt(i,Mn),typeof e.align=="object"))return new qs(i,e.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const n=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&bt(i,Un,n==="background"?"#ffffff":"#000000"),new xs(i,e[n])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?bt(i,Pn):i.classList.contains("ql-header")?bt(i,_n):i.classList.contains("ql-size")&&bt(i,Fn)),new Ft(i)});const s=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(f.events.EDITOR_CHANGE,s)}}kt.DEFAULTS=Q({},Z.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class ws extends As{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;e!=null?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const s=this.quill.getBounds(this.quill.selection.savedRange);s!=null&&this.position(s),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus()}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,f.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,f.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=$n(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(e!=null){const s=e.index+e.length;this.quill.insertEmbed(s,this.root.getAttribute("data-mode"),t,f.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(s+1," ",f.sources.USER),this.quill.setSelection(s+2,f.sources.USER)}break}}this.textbox.value="",this.hide()}}function $n(r){let t=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:r}function bt(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(s=>{const i=document.createElement("option");s===e?i.setAttribute("selected","selected"):i.setAttribute("value",String(s)),r.appendChild(i)})}const Hn=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class vs extends ws{constructor(t,e){super(t,e),this.quill.on(f.events.EDITOR_CHANGE,(s,i,n,l)=>{if(s===f.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&l===f.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const o=this.quill.getLines(i.index,i.length);if(o.length===1){const a=this.quill.getBounds(i);a!=null&&this.position(a)}else{const a=o[o.length-1],c=this.quill.getIndex(a),u=Math.min(a.length()-1,i.index+i.length-c),p=this.quill.getBounds(new tt(c,u));p!=null&&this.position(p)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(f.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);e!=null&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),s=this.root.querySelector(".ql-tooltip-arrow");return s.style.marginLeft="",e!==0&&(s.style.marginLeft=`${-1*e-s.offsetWidth/2}px`),e}}d(vs,"TEMPLATE",['','
    ','','',"
    "].join(""));class Ls extends kt{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Hn),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new vs(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),At),this.buildPickers(t.container.querySelectorAll("select"),At))}}Ls.DEFAULTS=Q({},kt.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});const zn=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class ks extends ws{constructor(){super(...arguments);d(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const s=this.linkRange;this.restoreFocus(),this.quill.formatText(s,"link",!1,f.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(f.events.SELECTION_CHANGE,(e,s,i)=>{if(e!=null){if(e.length===0&&i===f.sources.USER){const[n,l]=this.quill.scroll.descendant(Y,e.index);if(n!=null){this.linkRange=new tt(e.index-l,n.length());const o=Y.formats(n.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const a=this.quill.getBounds(this.linkRange);a!=null&&this.position(a);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}d(ks,"TEMPLATE",['','','',''].join(""));class Ts extends kt{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=zn),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),At),this.buildPickers(t.container.querySelectorAll("select"),At),this.tooltip=new ks(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,s)=>{t.handlers.link.call(t,!s.format.link)}))}}Ts.DEFAULTS=Q({},kt.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0&&(e=`mailto:${e}`);const{tooltip:s}=this.quill.theme;s.edit("link",e)}else this.quill.format("link",!1)}}}}});h.register({"attributors/attribute/direction":os,"attributors/class/align":ns,"attributors/class/background":hi,"attributors/class/color":ci,"attributors/class/direction":as,"attributors/class/font":us,"attributors/class/size":fs,"attributors/style/align":rs,"attributors/style/background":be,"attributors/style/color":pe,"attributors/style/direction":cs,"attributors/style/font":ds,"attributors/style/size":ms},!0);h.register({"formats/align":ns,"formats/direction":as,"formats/indent":tn,"formats/background":be,"formats/color":pe,"formats/font":us,"formats/size":fs,"formats/blockquote":ne,"formats/code-block":w,"formats/header":re,"formats/list":Lt,"formats/bold":qt,"formats/code":ye,"formats/italic":le,"formats/link":Y,"formats/script":oe,"formats/strike":ae,"formats/underline":ce,"formats/formula":It,"formats/image":he,"formats/video":Bt,"modules/syntax":Es,"modules/table":sn,"modules/toolbar":Ae,"themes/bubble":Ls,"themes/snow":Ts,"ui/icons":At,"ui/picker":Ft,"ui/icon-picker":qs,"ui/color-picker":xs,"ui/tooltip":As},!0);export{h as Q}; diff --git a/public/js/build/quill-hi.c85eceed.js b/public/js/build/quill-hi.c85eceed.js new file mode 100644 index 000000000..fc732e18c --- /dev/null +++ b/public/js/build/quill-hi.c85eceed.js @@ -0,0 +1,48 @@ +var Is=Object.defineProperty;var Bs=(r,t,e)=>t in r?Is(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var m=(r,t,e)=>(Bs(r,typeof t!="symbol"?t+"":t,e),e);import{D as b,a as D}from"./quill-delta.72524c38.js";import{i as fe,c as ft,m as tt}from"./lodash-es.df04b444.js";var y=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(y||{});class z{constructor(t,e,s={}){this.attrName=t,this.keyName=e;const i=y.TYPE&y.ATTRIBUTE;this.scope=s.scope!=null?s.scope&y.LEVEL|i:y.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class mt extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const Qe=class Qt{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let s=null;try{s=t.parentNode}catch{return null}return this.find(s,e)}return null}create(t,e,s){const i=this.query(e);if(i==null)throw new mt(`Unable to create ${e} blot`);const n=i,l=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(s),o=new n(t,l,s);return Qt.blots.set(o.domNode,o),o}find(t,e=!1){return Qt.find(t,e)}query(t,e=y.ANY){let s;return typeof t=="string"?s=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?s=this.types.text:typeof t=="number"?t&y.LEVEL&y.BLOCK?s=this.types.block:t&y.LEVEL&y.INLINE&&(s=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(s=this.classes[i],!!s)),s=s||this.tags[t.tagName]),s==null?null:"scope"in s&&e&y.LEVEL&s.scope&&e&y.TYPE&s.scope?s:null}register(...t){return t.map(e=>{const s="blotName"in e,i="attrName"in e;if(!s&&!i)throw new mt("Invalid definition");if(s&&e.blotName==="abstract")throw new mt("Cannot register abstract class");const n=s?e.blotName:i?e.attrName:void 0;return this.types[n]=e,i?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):s&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(l=>l.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(l=>{(this.tags[l]==null||e.className==null)&&(this.tags[l]=e)}))),e})}};Qe.blots=new WeakMap;let pt=Qe;function Te(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class Ds extends z{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){Te(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(Te(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const _=Ds;function zt(r){const t=r.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}class Ms extends z{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[zt(this.keyName)]=e,!0):!1}remove(t){t.style[zt(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[zt(this.keyName)];return this.canAdd(t,e)?e:""}}const et=Ms;class Us{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=pt.find(this.domNode);if(t==null)return;const e=z.keys(this.domNode),s=_.keys(this.domNode),i=et.keys(this.domNode);e.concat(s).concat(i).forEach(n=>{const l=t.scroll.query(n,y.ATTRIBUTE);l instanceof z&&(this.attributes[l.attrName]=l)})}copy(t){Object.keys(this.attributes).forEach(e=>{const s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const _t=Us,Je=class{constructor(t,e){this.scroll=t,this.domNode=e,pt.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new mt("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),pt.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,i){const n=this.isolate(t,e);if(this.scroll.query(s,y.BLOT)!=null&&i)n.wrap(s,i);else if(this.scroll.query(s,y.ATTRIBUTE)!=null){const l=this.scroll.create(this.statics.scope);n.wrap(l),l.format(s,i)}}insertAt(t,e,s){const i=s==null?this.scroll.create("text",e):this.scroll.create(e,s),n=this.split(t);this.parent.insertBefore(i,n||void 0)}isolate(t,e){const s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new mt(`Cannot wrap ${t}`);return s.appendChild(this),s}};Je.blotName="abstract";let ts=Je;const es=class extends ts{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};es.scope=y.INLINE_BLOT;let _s=es;const w=_s;class Ps{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){const e=this.iterator();let s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){const e=this.iterator();let s=e(),i=0;for(;s;){if(s===t)return i;i+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const s=this.iterator();let i=s();for(;i;){const n=i.length();if(tl?s(a,t-l,Math.min(e,l+c-t)):s(a,0,Math.min(c,t+e-l)),l+=c,a=o()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){const s=this.iterator();let i=s();for(;i;)e=t(e,i),i=s();return e}}function Se(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const s=t.create(y.INLINE);return Array.from(r.childNodes).forEach(i=>{s.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}const ss=class G extends ts{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,G.uiClass&&this.uiNode.classList.add(G.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ps,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=Se(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof mt)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(s,i,n)=>{s.deleteAt(i,n)})}descendant(t,e=0){const[s,i]=this.children.find(e);return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,i]:s instanceof G?s.descendant(t,i):[null,-1]}descendants(t,e=0,s=Number.MAX_VALUE){let i=[],n=s;return this.children.forEachAt(e,s,(l,o,a)=>{(t.blotName==null&&t(l)||t.blotName!=null&&l instanceof t)&&i.push(l),l instanceof G&&(i=i.concat(l.descendants(t,o,n))),n-=a}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(s=>e instanceof s)||(e.statics.scope===y.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof G?e.unwrap():e.remove())})}formatAt(t,e,s,i){this.children.forEachAt(t,e,(n,l,o)=>{n.formatAt(l,o,s,i)})}insertAt(t,e,s){const[i,n]=this.children.find(t);if(i)i.insertAt(n,e,s);else{const l=s==null?this.scroll.create("text",e):this.scroll.create(e,s);this.appendChild(l)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let s=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(s=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==s)&&this.domNode.insertBefore(t.domNode,s),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(s=>{t.insertBefore(s,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[s,i]=this.children.find(t,e),n=[[this,t]];return s instanceof G?n.concat(s.path(i,e)):(s!=null&&n.push([s,i]),n)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return s instanceof G&&this.moveChildren(s),super.replaceWith(s)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.clone();return this.parent&&this.parent.insertBefore(s,this.next||void 0),this.children.forEachAt(t,this.length(),(i,n,l)=>{const o=i.split(n,e);o!=null&&s.appendChild(o)}),s}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const s=[],i=[];t.forEach(n=>{n.target===this.domNode&&n.type==="childList"&&(s.push(...n.addedNodes),i.push(...n.removedNodes))}),i.forEach(n=>{if(n.parentNode!=null&&n.tagName!=="IFRAME"&&document.body.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const l=this.scroll.find(n);l!=null&&(l.domNode.parentNode==null||l.domNode.parentNode===this.domNode)&&l.detach()}),s.filter(n=>n.parentNode===this.domNode&&n!==this.uiNode).sort((n,l)=>n===l?0:n.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(n=>{let l=null;n.nextSibling!=null&&(l=this.scroll.find(n.nextSibling));const o=Se(n,this.scroll);(o.next!==l||o.next==null)&&(o.parent!=null&&o.parent.removeChild(this),this.insertBefore(o,l||void 0))}),this.enforceAllowedChildren()}};ss.uiClass="";let Fs=ss;const M=Fs;function $s(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const lt=class ot extends M{static create(t){return super.create(t)}static formats(t,e){const s=e.query(ot.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new _t(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof ot||(s=s.wrap(ot.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{const s=this.scroll.query(t,y.INLINE);if(s==null)return;s instanceof z?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,i){this.formats()[s]!=null||this.scroll.query(s,y.ATTRIBUTE)?this.isolate(t,e).format(s,i):super.formatAt(t,e,s,i)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const s=this.next;s instanceof ot&&s.prev===this&&$s(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){const s=super.wrap(t,e);return s instanceof ot&&this.attributes.move(s),s}};lt.allowedChildren=[lt,w],lt.blotName="inline",lt.scope=y.INLINE_BLOT,lt.tagName="SPAN";let Hs=lt;const me=Hs,at=class Jt extends M{static create(t){return super.create(t)}static formats(t,e){const s=e.query(Jt.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new _t(this.domNode)}format(t,e){const s=this.scroll.query(t,y.BLOCK);s!=null&&(s instanceof z?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(Jt.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,i){this.scroll.query(s,y.BLOCK)!=null?this.format(s,i):super.formatAt(t,e,s,i)}insertAt(t,e,s){if(s==null||this.scroll.query(e,y.INLINE)!=null)super.insertAt(t,e,s);else{const i=this.split(t);if(i!=null){const n=this.scroll.create(e,s);i.parent.insertBefore(n,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};at.blotName="block",at.scope=y.BLOCK_BLOT,at.tagName="P",at.allowedChildren=[me,at,w];let zs=at;const qt=zs,te=class extends M{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,i){super.formatAt(t,e,s,i),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};te.blotName="container",te.scope=y.BLOCK_BLOT;let js=te;const Pt=js;class Ks extends w{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,i){t===0&&e===this.length()?this.format(s,i):super.formatAt(t,e,s,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const S=Ks,Vs={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Ws=100,ct=class extends M{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,Vs),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const s=this.registry.find(t,e);return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=y.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,i){this.update(),super.formatAt(t,e,s,i)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);const s=e.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const n=(a,c=!0)=>{a==null||a===this||a.domNode.parentNode!=null&&(s.has(a.domNode)||s.set(a.domNode,[]),c&&n(a.parent))},l=a=>{s.has(a.domNode)&&(a instanceof M&&a.children.forEach(l),s.delete(a.domNode),a.optimize(e))};let o=t;for(let a=0;o.length>0;a+=1){if(a>=Ws)throw new Error("[Parchment] Maximum optimize iterations reached");for(o.forEach(c=>{const h=this.find(c.target,!0);h!=null&&(h.domNode===c.target&&(c.type==="childList"?(n(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(d=>{const N=this.find(d,!1);n(N,!1),N instanceof M&&N.children.forEach(E=>{n(E,!1)})})):c.type==="attributes"&&n(h.prev)),n(h))}),this.children.forEach(l),o=Array.from(this.observer.takeRecords()),i=o.slice();i.length>0;)t.push(i.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const s=new WeakMap;t.map(i=>{const n=this.find(i.target,!0);return n==null?null:s.has(n.domNode)?(s.get(n.domNode).push(i),null):(s.set(n.domNode,[i]),n)}).forEach(i=>{i!=null&&i!==this&&s.has(i.domNode)&&i.update(s.get(i.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};ct.blotName="scroll",ct.defaultChild=qt,ct.allowedChildren=[qt,Pt],ct.scope=y.BLOCK_BLOT,ct.tagName="DIV";let Gs=ct;const ge=Gs,ee=class is extends w{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof is&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ee.blotName="text",ee.scope=y.INLINE_BLOT;let Zs=ee;const Ut=Zs;var Xs=Object.freeze(Object.defineProperty({__proto__:null,Attributor:z,AttributorStore:_t,BlockBlot:qt,ClassAttributor:_,ContainerBlot:Pt,EmbedBlot:S,InlineBlot:me,LeafBlot:w,ParentBlot:M,Registry:pt,Scope:y,ScrollBlot:ge,StyleAttributor:et,TextBlot:Ut},Symbol.toStringTag,{value:"Module"}));class P extends S{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}P.blotName="break";P.tagName="BR";class U extends Ut{}function Ft(r){return r.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t])}const Z=class extends me{static compare(t,e){const s=Z.order.indexOf(t),i=Z.order.indexOf(e);return s>=0||i>=0?s-i:t===e?0:t0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};let I=Z;m(I,"allowedChildren",[Z,P,S,U]),m(I,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);const Ce=1;class v extends qt{constructor(){super(...arguments);m(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=ns(this)),this.cache.delta}deleteAt(e,s){super.deleteAt(e,s),this.cache={}}formatAt(e,s,i,n){s<=0||(this.scroll.query(i,y.BLOCK)?e+s===this.length()&&this.format(i,n):super.formatAt(e,Math.min(s,this.length()-e-1),i,n),this.cache={})}insertAt(e,s,i){if(i!=null){super.insertAt(e,s,i),this.cache={};return}if(s.length===0)return;const n=s.split(` +`),l=n.shift();l.length>0&&(e(o=o.split(a,!0),o.insertAt(0,c),c.length),e+l.length)}insertBefore(e,s){const{head:i}=this.children;super.insertBefore(e,s),i instanceof P&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Ce),this.cache.length}moveChildren(e,s){super.moveChildren(e,s),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s&&(e===0||e>=this.length()-Ce)){const n=this.clone();return e===0?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}const i=super.split(e,s);return this.cache={},i}}v.blotName="block";v.tagName="P";v.defaultChild=P;v.allowedChildren=[P,I,S,U];class R extends S{attach(){super.attach(),this.attributes=new _t(this.domNode)}delta(){return new b().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const s=this.scroll.query(t,y.BLOCK_ATTRIBUTE);s!=null&&this.attributes.attribute(s,e)}formatAt(t,e,s,i){this.format(s,i)}insertAt(t,e,s){if(s!=null){super.insertAt(t,e,s);return}const i=e.split(` +`),n=i.pop(),l=i.map(a=>{const c=this.scroll.create(v.blotName);return c.insertAt(0,a),c}),o=this.split(t);l.forEach(a=>{this.parent.insertBefore(a,o)}),n&&this.parent.insertBefore(this.scroll.create("text",n),o)}}R.scope=y.BLOCK_BLOT;function ns(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(w).reduce((e,s)=>s.length()===0?e:e.insert(s.value(),C(s,{},t)),new b).insert(` +`,C(r))}function C(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(t={...t,...r.formats()},e&&delete t["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?t:C(r.parent,t,e)}const X=class extends S{static value(){}constructor(t,e,s){super(t,e),this.selection=s,this.textNode=document.createTextNode(X.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,e){if(this.savedLength!==0){super.format(t,e);return}let s=this,i=0;for(;s!=null&&s.statics.scope!==y.BLOCK_BLOT;)i+=s.offset(s.parent),s=s.parent;s!=null&&(this.savedLength=X.CONTENTS.length,s.optimize(),s.formatAt(i,X.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof U?this.prev:null,s=e?e.length():0,i=this.next instanceof U?this.next:null,n=i?i.text:"",{textNode:l}=this,o=l.data.split(X.CONTENTS).join("");l.data=X.CONTENTS;let a;if(e)a=e,(o||i)&&(e.insertAt(e.length(),o+n),i&&i.remove());else if(i)a=i,i.insertAt(0,o);else{const c=document.createTextNode(o);a=this.scroll.create(c),this.parent.insertBefore(a,this)}if(this.remove(),t){const c=(N,E)=>e&&N===e.domNode?E:N===l?s+E-1:i&&N===i.domNode?s+o.length+E:null,h=c(t.start.node,t.start.offset),d=c(t.end.node,t.end.offset);if(h!==null&&d!==null)return{startNode:a.domNode,startOffset:h,endNode:a.domNode,endOffset:d}}return null}update(t,e){if(t.some(s=>s.type==="characterData"&&s.target===this.textNode)){const s=this.restore();s&&(e.range=s)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if(e.domNode.tagName==="A"){this.savedLength=X.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}};let $=X;m($,"blotName","cursor"),m($,"className","ql-cursor"),m($,"tagName","span"),m($,"CONTENTS","\uFEFF");var rs={exports:{}};(function(r){var t=Object.prototype.hasOwnProperty,e="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(e=!1));function i(a,c,h){this.fn=a,this.context=c,this.once=h||!1}function n(a,c,h,d,N){if(typeof h!="function")throw new TypeError("The listener must be a function");var E=new i(h,d||a,N),g=e?e+c:c;return a._events[g]?a._events[g].fn?a._events[g]=[a._events[g],E]:a._events[g].push(E):(a._events[g]=E,a._eventsCount++),a}function l(a,c){--a._eventsCount===0?a._events=new s:delete a._events[c]}function o(){this._events=new s,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],h,d;if(this._eventsCount===0)return c;for(d in h=this._events)t.call(h,d)&&c.push(e?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},o.prototype.listeners=function(c){var h=e?e+c:c,d=this._events[h];if(!d)return[];if(d.fn)return[d.fn];for(var N=0,E=d.length,g=new Array(E);N1?t-1:0),s=1;s(t[e]=ls.bind(console,e,r),t),{})}W.level=r=>{ne=r};ls.level=W.level;const jt=W("quill:events"),Qs=["selectionchange","mousedown","mouseup","click"];Qs.forEach(r=>{document.addEventListener(r,function(){for(var t=arguments.length,e=new Array(t),s=0;s{const n=se.get(i);n&&n.emitter&&n.emitter.handleDOM(...e)})})});class p extends Ys{constructor(){super(),this.domListeners={},this.on("error",jt.error)}emit(){for(var t=arguments.length,e=new Array(t),s=0;s1?e-1:0),i=1;i{let{node:l,handler:o}=n;(t.target===l||l.contains(t.target))&&o(t,...s)})}listenDOM(t,e,s){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:s})}}m(p,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),m(p,"sources",{API:"api",SILENT:"silent",USER:"user"});const Kt=W("quill:selection");class st{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=e}}class Js{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new st(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,p.sources.USER),1)}),this.emitter.on(p.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const s=this.getNativeRange();s!=null&&s.start.node!==this.cursor.textNode&&this.emitter.once(p.events.SCROLL_UPDATE,(i,n)=>{try{this.root.contains(s.start.node)&&this.root.contains(s.end.node)&&this.setNativeRange(s.start.node,s.start.offset,s.end.node,s.end.offset);const l=n.some(o=>o.type==="characterData"||o.type==="childList"||o.type==="attributes"&&o.target===this.root);this.update(l?p.sources.SILENT:i)}catch{}})}),this.emitter.on(p.events.SCROLL_OPTIMIZE,(s,i)=>{if(i.range){const{startNode:n,startOffset:l,endNode:o,endOffset:a}=i.range;this.setNativeRange(n,l,o,a),this.update(p.sources.SILENT)}}),this.update(p.sources.SILENT)}handleComposition(){this.emitter.on(p.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(p.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(p.sources.USER)})}focus(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const s=this.getNativeRange();if(!(s==null||!s.native.collapsed||this.scroll.query(t,y.BLOCK))){if(s.start.node!==this.cursor.textNode){const i=this.scroll.find(s.start.node,!1);if(i==null)return;if(i instanceof w){const n=i.split(s.start.offset);i.parent.insertBefore(this.cursor,n)}else i.insertBefore(this.cursor,s.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const s=this.scroll.length();t=Math.min(t,s-1),e=Math.min(t+e,s-1)-t;let i,[n,l]=this.scroll.leaf(t);if(n==null)return null;if(e>0&&l===n.length()){const[h]=this.scroll.leaf(t+1);if(h){const[d]=this.scroll.line(t),[N]=this.scroll.line(t+1);d===N&&(n=h,l=0)}}[i,l]=n.position(l,!0);const o=document.createRange();if(e>0)return o.setStart(i,l),[n,l]=this.scroll.leaf(t+e),n==null?null:([i,l]=n.position(l,!0),o.setEnd(i,l),o.getBoundingClientRect());let a="left",c;if(i instanceof Text){if(!i.data.length)return null;l0&&(a="right")}return{bottom:c.top+c.height,height:c.height,left:c[a],right:c[a],top:c.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(e==null)return null;const s=this.normalizeNative(e);return Kt.info("getNativeRange",s),s}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const e=this.getNativeRange();return e==null?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&Vt(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const s=e.map(l=>{const[o,a]=l,c=this.scroll.find(o,!0),h=c.offset(this.scroll);return a===0?h:c instanceof w?h+c.index(o,a):h+c.length()}),i=Math.min(Math.max(...s),this.scroll.length()-1),n=Math.min(i,...s);return new st(n,i-n)}normalizeNative(t){if(!Vt(this.root,t.startContainer)||!t.collapsed&&!Vt(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(s=>{let{node:i,offset:n}=s;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>n)i=i.childNodes[n],n=0;else if(i.childNodes.length===n)i=i.lastChild,i instanceof Text?n=i.data.length:i.childNodes.length>0?n=i.childNodes.length:n=i.childNodes.length+1;else break;s.node=i,s.offset=n}),e}rangeToNative(t){const e=this.scroll.length(),s=(i,n)=>{i=Math.min(e-1,i);const[l,o]=this.scroll.leaf(i);return l?l.position(o,n):[null,-1]};return[...s(t.index,!1),...s(t.index+t.length,!0)]}setNativeRange(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Kt.info("setNativeRange",t,e,s,i),t!=null&&(this.root.parentNode==null||t.parentNode==null||s.parentNode==null))return;const l=document.getSelection();if(l!=null)if(t!=null){this.hasFocus()||this.root.focus();const{native:o}=this.getNativeRange()||{};if(o==null||n||t!==o.startContainer||e!==o.startOffset||s!==o.endContainer||i!==o.endOffset){t instanceof Element&&t.tagName==="BR"&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),s instanceof Element&&s.tagName==="BR"&&(i=Array.from(s.parentNode.childNodes).indexOf(s),s=s.parentNode);const a=document.createRange();a.setStart(t,e),a.setEnd(s,i),l.removeAllRanges(),l.addRange(a)}}else l.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.sources.API;if(typeof e=="string"&&(s=e,e=!1),Kt.info("setRange",t),t!=null){const i=this.rangeToNative(t);this.setNativeRange(...i,e)}else this.setNativeRange(null);this.update(s)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.sources.USER;const e=this.lastRange,[s,i]=this.getRange();if(this.lastRange=s,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!fe(e,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}const n=[p.events.SELECTION_CHANGE,ft(this.lastRange),ft(e),t];this.emitter.emit(p.events.EDITOR_CHANGE,...n),t!==p.sources.SILENT&&this.emitter.emit(...n)}}}function Vt(r,t){try{t.parentNode}catch{return!1}return r.contains(t)}const ti=/^[ -~]*$/;class ei{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const s=Oe(t),i=new b;return ii(s.ops.slice()).reduce((l,o)=>{const a=D.exports.Op.length(o);let c=o.attributes||{},h=!1,d=!1;if(o.insert!=null){if(i.retain(a),typeof o.insert=="string"){const g=o.insert;d=!g.endsWith(` +`)&&(e<=l||!!this.scroll.descendant(R,l)[0]),this.scroll.insertAt(l,g);const[q,f]=this.scroll.line(l);let x=tt({},C(q));if(q instanceof v){const[k]=q.descendant(w,f);k&&(x=tt(x,C(k)))}c=D.exports.AttributeMap.diff(x,c)||{}}else if(typeof o.insert=="object"){const g=Object.keys(o.insert)[0];if(g==null)return l;const q=this.scroll.query(g,y.INLINE)!=null;if(q)(e<=l||!!this.scroll.descendant(R,l)[0])&&(d=!0);else if(l>0){const[f,x]=this.scroll.descendant(w,l-1);f instanceof U?f.value()[x]!==` +`&&(h=!0):f instanceof S&&f.statics.scope===y.INLINE_BLOT&&(h=!0)}if(this.scroll.insertAt(l,g,o.insert[g]),q){const[f]=this.scroll.descendant(w,l);if(f){const x=tt({},C(f));c=D.exports.AttributeMap.diff(x,c)||{}}}}e+=a}else if(i.push(o),o.retain!==null&&typeof o.retain=="object"){const g=Object.keys(o.retain)[0];if(g==null)return l;this.scroll.updateEmbedAt(l,g,o.retain[g])}Object.keys(c).forEach(g=>{this.scroll.formatAt(l,a,g,c[g])});const N=h?1:0,E=d?1:0;return e+=N+E,i.retain(N),i.delete(E),l+a+N+E},0),i.reduce((l,o)=>typeof o.delete=="number"?(this.scroll.deleteAt(l,o.delete),l):l+D.exports.Op.length(o),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(s)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update(new b().retain(t).delete(e))}formatLine(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(s).forEach(n=>{this.scroll.lines(t,Math.max(e,1)).forEach(l=>{l.format(n,s[n])})}),this.scroll.optimize();const i=new b().retain(t).retain(e,ft(s));return this.update(i)}formatText(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(s).forEach(n=>{this.scroll.formatAt(t,e,n,s[n])});const i=new b().retain(t).retain(e,ft(s));return this.update(i)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new b)}getFormat(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=[],i=[];e===0?this.scroll.path(t).forEach(o=>{const[a]=o;a instanceof v?s.push(a):a instanceof w&&i.push(a)}):(s=this.scroll.lines(t,e),i=this.scroll.descendants(w,t,e));const[n,l]=[s,i].map(o=>{const a=o.shift();if(a==null)return{};let c=C(a);for(;Object.keys(c).length>0;){const h=o.shift();if(h==null)return c;c=si(C(h),c)}return c});return{...n,...l}}getHTML(t,e){const[s,i]=this.scroll.line(t);if(s){const n=s.length();return s.length()>=i+e&&!(i===0&&e===n)?At(s,i,e,!0):At(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(s=>typeof s.insert=="string").map(s=>s.insert).join("")}insertContents(t,e){const s=Oe(e),i=new b().retain(t).concat(s);return this.scroll.insertContents(t,s),this.update(i)}insertEmbed(t,e,s){return this.scroll.insertAt(t,e,s),this.update(new b().retain(t).insert({[e]:s}))}insertText(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e=e.replace(/\r\n/g,` +`).replace(/\r/g,` +`),this.scroll.insertAt(t,e),Object.keys(s).forEach(i=>{this.scroll.formatAt(t,e.length,i,s[i])}),this.update(new b().retain(t).insert(e,ft(s)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==v.blotName)return!1;const e=t;return e.children.length>1?!1:e.children.head instanceof P}removeFormat(t,e){const s=this.getText(t,e),[i,n]=this.scroll.line(t+e);let l=0,o=new b;i!=null&&(l=i.length()-n,o=i.delta().slice(n,n+l-1).insert(` +`));const c=this.getContents(t,e+l).diff(new b().insert(s).concat(o)),h=new b().retain(t).concat(c);return this.applyDelta(h)}update(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(e.length===1&&e[0].type==="characterData"&&e[0].target.data.match(ti)&&this.scroll.find(e[0].target)){const n=this.scroll.find(e[0].target),l=C(n),o=n.offset(this.scroll),a=e[0].oldValue.replace($.CONTENTS,""),c=new b().insert(a),h=new b().insert(n.value()),d=s&&{oldRange:Re(s.oldRange,-o),newRange:Re(s.newRange,-o)};t=new b().retain(o).concat(c.diff(h,d)).reduce((E,g)=>g.insert?E.insert(g.insert,l):E.push(g),new b),this.delta=i.compose(t)}else this.delta=this.getDelta(),(!t||!fe(i.compose(t),this.delta))&&(t=i.diff(this.delta,s));return t}}function ht(r,t,e){if(r.length===0){const[E]=Wt(e.pop());return t<=0?``:`${ht([],t-1,e)}`}const[{child:s,offset:i,length:n,indent:l,type:o},...a]=r,[c,h]=Wt(o);if(l>t)return e.push(o),l===t+1?`<${c}>${At(s,i,n)}${ht(a,l,e)}`:`<${c}>
  • ${ht(r,t+1,e)}`;const d=e[e.length-1];if(l===t&&o===d)return`
  • ${At(s,i,n)}${ht(a,l,e)}`;const[N]=Wt(e.pop());return`${ht(r,t-1,e)}`}function At(r,t,e){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in r&&typeof r.html=="function")return r.html(t,e);if(r instanceof U)return Ft(r.value().slice(t,t+e));if(r instanceof M){if(r.statics.blotName==="list-container"){const c=[];return r.children.forEachAt(t,e,(h,d,N)=>{const E="formats"in h&&typeof h.formats=="function"?h.formats():{};c.push({child:h,offset:d,length:N,indent:E.indent||0,type:E.list})}),ht(c,-1,[])}const i=[];if(r.children.forEachAt(t,e,(c,h,d)=>{i.push(At(c,h,d))}),s||r.statics.blotName==="list")return i.join("");const{outerHTML:n,innerHTML:l}=r.domNode,[o,a]=n.split(`>${l}<`);return o==="${i.join("")}<${a}`:`${o}>${i.join("")}<${a}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function si(r,t){return Object.keys(t).reduce((e,s)=>{if(r[s]==null)return e;const i=t[s];return i===r[s]?e[s]=i:Array.isArray(i)?i.indexOf(r[s])<0?e[s]=i.concat([r[s]]):e[s]=i:e[s]=[i,r[s]],e},{})}function Wt(r){const t=r==="ordered"?"ol":"ul";switch(r){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function Oe(r){return r.reduce((t,e)=>{if(typeof e.insert=="string"){const s=e.insert.replace(/\r\n/g,` +`).replace(/\r/g,` +`);return t.insert(s,e.attributes)}return t.push(e)},new b)}function Re(r,t){let{index:e,length:s}=r;return new st(e+t,s)}function ii(r){const t=[];return r.forEach(e=>{typeof e.insert=="string"?e.insert.split(` +`).forEach((i,n)=>{n&&t.push({insert:` +`,attributes:e.attributes}),i&&t.push({insert:i,attributes:e.attributes})}):t.push(e)}),t}class F{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=e}}m(F,"DEFAULTS",{});const Ct="\uFEFF";class pe extends S{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(s=>{this.contentNode.appendChild(s)}),this.leftGuard=document.createTextNode(Ct),this.rightGuard=document.createTextNode(Ct),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e=null,s;const i=t.data.split(Ct).join("");if(t===this.leftGuard)if(this.prev instanceof U){const n=this.prev.length();this.prev.insertAt(n,i),e={startNode:this.prev.domNode,startOffset:n+i.length}}else s=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(s),this),e={startNode:s,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof U?(this.next.insertAt(0,i),e={startNode:this.next.domNode,startOffset:i.length}):(s=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(s),this.next),e={startNode:s,startOffset:i.length}));return t.data=Ct,e}update(t,e){t.forEach(s=>{if(s.type==="characterData"&&(s.target===this.leftGuard||s.target===this.rightGuard)){const i=this.restore(s.target);i&&(e.range=i)}})}}class ni{constructor(t,e){m(this,"isComposing",!1);this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;e&&!(e instanceof pe)&&(this.emitter.emit(p.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(p.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(p.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(p.events.COMPOSITION_END,t),this.isComposing=!1}}const Le=class{constructor(t,e){m(this,"modules",{});this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}};let Y=Le;m(Y,"DEFAULTS",{modules:{}}),m(Y,"themes",{default:Le});const ri=r=>r.parentElement||r.getRootNode().host||null,li=r=>{const t=r.getBoundingClientRect(),e="offsetWidth"in r&&Math.abs(t.width)/r.offsetWidth||1,s="offsetHeight"in r&&Math.abs(t.height)/r.offsetHeight||1;return{top:t.top,right:t.left+r.clientWidth*e,bottom:t.top+r.clientHeight*s,left:t.left}},Ot=r=>{const t=parseInt(r,10);return Number.isNaN(t)?0:t},Ie=(r,t,e,s,i,n)=>rs?0:rs?t-r>s-e?r+i-e:t-s+n:0,oi=(r,t)=>{var n,l,o,a,c;const e=r.ownerDocument;let s=t,i=r;for(;i;){const h=i===e.body,d=h?{top:0,right:(l=(n=window.visualViewport)==null?void 0:n.width)!=null?l:e.documentElement.clientWidth,bottom:(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:e.documentElement.clientHeight,left:0}:li(i),N=getComputedStyle(i),E=Ie(s.left,s.right,d.left,d.right,Ot(N.scrollPaddingLeft),Ot(N.scrollPaddingRight)),g=Ie(s.top,s.bottom,d.top,d.bottom,Ot(N.scrollPaddingTop),Ot(N.scrollPaddingBottom));if(E||g)if(h)(c=e.defaultView)==null||c.scrollBy(E,g);else{const{scrollLeft:q,scrollTop:f}=i;g&&(i.scrollTop+=g),E&&(i.scrollLeft+=E);const x=i.scrollLeft-q,k=i.scrollTop-f;s={left:s.left-x,top:s.top-k,right:s.right-x,bottom:s.bottom-k}}i=h||N.position==="fixed"?null:ri(i)}},ai=100,ci=["block","break","cursor","inline","scroll","text"],hi=(r,t,e)=>{const s=new pt;return ci.forEach(i=>{const n=t.query(i);n&&s.register(n)}),r.forEach(i=>{var o;let n=t.query(i);n||e.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let l=0;for(;n;)if(s.register(n),n="blotName"in n&&(o=n.requiredContainer)!=null?o:null,l+=1,l>ai){e.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),s},gt=W("quill"),Rt=new pt;M.uiClass="ql-ui";const dt=class{static debug(t){t===!0&&(t="log"),W.level(t)}static find(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return se.get(t)||Rt.find(t,e)}static import(t){return this.imports[t]==null&>.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof t!="string"){const i="attrName"in t?t.attrName:t.blotName;typeof i=="string"?this.register(`formats/${i}`,t,e):Object.keys(t).forEach(n=>{this.register(n,t[n],e)})}else this.imports[t]!=null&&!s&>.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&typeof e!="boolean"&&e.blotName!=="abstract"&&Rt.register(e),typeof e.register=="function"&&e.register(Rt)}constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=ui(t,e),this.container=this.options.container,this.container==null){gt.error("Invalid Quill container",t);return}this.options.debug&&dt.debug(this.options.debug);const s=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",se.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new p;const i=ge.blotName,n=this.options.registry.query(i);if(!n||!("blotName"in n))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new n(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new ei(this.scroll),this.selection=new Js(this.scroll,this.emitter),this.composition=new ni(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(p.events.COMPOSITION_START,()=>{this.root.classList.toggle("ql-blank",!1)}),this.emitter.on(p.events.COMPOSITION_END,()=>{this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(p.events.EDITOR_CHANGE,l=>{l===p.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(p.events.SCROLL_UPDATE,(l,o)=>{const a=this.selection.lastRange,[c]=this.selection.getRange(),h=a&&c?{oldRange:a,newRange:c}:void 0;B.call(this,()=>this.editor.update(null,o,h),l)}),this.emitter.on(p.events.SCROLL_EMBED_UPDATE,(l,o)=>{const a=this.selection.lastRange,[c]=this.selection.getRange(),h=a&&c?{oldRange:a,newRange:c}:void 0;B.call(this,()=>{const d=new b().retain(l.offset(this)).retain({[l.statics.blotName]:o});return this.editor.update(d,[],h)},dt.sources.USER)}),s){const l=this.clipboard.convert({html:`${s}


    `,text:` +`});this.setContents(l)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const s=t;t=document.createElement("div"),t.classList.add(s)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,s){return[t,e,,s]=j(t,e,s),B.call(this,()=>this.editor.deleteText(t,e),s,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){this.selection.focus(),this.scrollSelectionIntoView()}format(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.sources.API;return B.call(this,()=>{const i=this.getSelection(!0);let n=new b;if(i==null)return n;if(this.scroll.query(t,y.BLOCK))n=this.editor.formatLine(i.index,i.length,{[t]:e});else{if(i.length===0)return this.selection.format(t,e),n;n=this.editor.formatText(i.index,i.length,{[t]:e})}return this.setSelection(i,p.sources.SILENT),n},s)}formatLine(t,e,s,i,n){let l;return[t,e,l,n]=j(t,e,s,i,n),B.call(this,()=>this.editor.formatLine(t,e,l),n,t,0)}formatText(t,e,s,i,n){let l;return[t,e,l,n]=j(t,e,s,i,n),B.call(this,()=>this.editor.formatText(t,e,l),n,t,0)}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=null;if(typeof t=="number"?s=this.selection.getBounds(t,e):s=this.selection.getBounds(t.index,t.length),!s)return null;const i=this.container.getBoundingClientRect();return{bottom:s.bottom-i.top,height:s.height,left:s.left-i.left,right:s.right-i.left,top:s.top-i.top,width:s.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,e]=j(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e!=null?e:this.getLength()-t),[t,e]=j(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e!=null?e:this.getLength()-t),[t,e]=j(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,s){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:dt.sources.API;return B.call(this,()=>this.editor.insertEmbed(t,e,s),i,t)}insertText(t,e,s,i,n){let l;return[t,,l,n]=j(t,0,s,i,n),B.call(this,()=>this.editor.insertText(t,e,l),n,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,s){return[t,e,,s]=j(t,e,s),B.call(this,()=>this.editor.removeFormat(t,e),s,t)}scrollRectIntoView(t){oi(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.sources.API;return B.call(this,()=>{t=new b(t);const s=this.getLength(),i=this.editor.deleteText(0,s),n=this.editor.insertContents(0,t),l=this.editor.deleteText(this.getLength()-1,1);return i.compose(n).compose(l)},e)}setSelection(t,e,s){t==null?this.selection.setRange(null,e||dt.sources.API):([t,e,,s]=j(t,e,s),this.selection.setRange(new st(Math.max(0,t),e),s),s!==p.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.sources.API;const s=new b().insert(t);return this.setContents(s,e)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.sources.API;return B.call(this,()=>(t=new b(t),this.editor.applyDelta(t)),e,!0)}};let u=dt;m(u,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Rt,theme:"default"}),m(u,"events",p.events),m(u,"sources",p.sources),m(u,"version","2.0.0"),m(u,"imports",{delta:b,parchment:Xs,"core/module":F,"core/theme":Y});function Be(r){return typeof r=="string"?document.querySelector(r):r}function Gt(r){return Object.entries(r!=null?r:{}).reduce((t,e)=>{let[s,i]=e;return{...t,[s]:i===!0?{}:i}},{})}function De(r){return Object.fromEntries(Object.entries(r).filter(t=>t[1]!==void 0))}function ui(r,t){const e=Be(r);if(!e)throw new Error("Invalid Quill container");const i=!t.theme||t.theme===u.DEFAULTS.theme?Y:u.import(`themes/${t.theme}`);if(!i)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:n,...l}=u.DEFAULTS,{modules:o,...a}=i.DEFAULTS,c=tt({},Gt(n),Gt(o),Gt(t.modules));c!=null&&c.toolbar&&c.toolbar.constructor!==Object&&(c.toolbar={container:c.toolbar});const h={...l,...De(a),...De(t)};let d=t.registry;return d?t.formats&>.warn('Ignoring "formats" option because "registry" is specified'):d=t.formats?hi(t.formats,h.registry,gt):h.registry,{...h,registry:d,container:e,theme:i,modules:Object.entries(c).reduce((N,E)=>{let[g,q]=E;if(!q)return N;const f=u.import(`modules/${g}`);return f==null?(gt.error(`Cannot load ${g} module. Are you sure you registered it?`),N):{...N,[g]:tt({},f.DEFAULTS||{},q)}},{}),bounds:Be(h.bounds)}}function B(r,t,e,s){if(!this.isEnabled()&&t===p.sources.USER&&!this.allowReadOnlyEdits)return new b;let i=e==null?null:this.getSelection();const n=this.editor.delta,l=r();if(i!=null&&(e===!0&&(e=i.index),s==null?i=Me(i,l,t):s!==0&&(i=Me(i,e,s,t)),this.setSelection(i,p.sources.SILENT)),l.length()>0){const o=[p.events.TEXT_CHANGE,l,n,t];this.emitter.emit(p.events.EDITOR_CHANGE,...o),t!==p.sources.SILENT&&this.emitter.emit(...o)}return l}function j(r,t,e,s,i){let n={};return typeof r.index=="number"&&typeof r.length=="number"?typeof t!="number"?(i=s,s=e,e=t,t=r.length,r=r.index):(t=r.length,r=r.index):typeof t!="number"&&(i=s,s=e,e=t,t=0),typeof e=="object"?(n=e,i=s):typeof e=="string"&&(s!=null?n[e]=s:i=e),i=i||p.sources.API,[r,t,n,i]}function Me(r,t,e,s){const i=typeof e=="number"?e:0;if(r==null)return null;let n,l;return t&&typeof t.transformPosition=="function"?[n,l]=[r.index,r.index+r.length].map(o=>t.transformPosition(o,s!==p.sources.USER)):[n,l]=[r.index,r.index+r.length].map(o=>o=0?o+i:Math.max(t,o+i)),new st(n,l-n)}class it extends Pt{}function Ue(r){return r instanceof v||r instanceof R}function _e(r){return typeof r.updateContent=="function"}class ut extends ge{constructor(t,e,s){let{emitter:i}=s;super(t,e),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",n=>this.handleDragStart(n))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(p.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(p.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(p.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[s,i]=this.line(t),[n]=this.line(t+e);if(super.deleteAt(t,e),n!=null&&s!==n&&i>0){if(s instanceof R||n instanceof R){this.optimize();return}const l=n.children.head instanceof P?null:n.children.head;s.moveChildren(n,l),s.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,s,i){super.formatAt(t,e,s,i),this.optimize()}insertAt(t,e,s){if(t>=this.length())if(s==null||this.scroll.query(e,y.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),s==null&&e.endsWith(` +`)?i.insertAt(0,e.slice(0,-1),s):i.insertAt(0,e,s)}else{const i=this.scroll.create(e,s);this.appendChild(i)}else super.insertAt(t,e,s);this.optimize()}insertBefore(t,e){if(t.statics.scope===y.INLINE_BLOT){const s=this.scroll.create(this.statics.defaultChild.blotName);s.appendChild(t),super.insertBefore(s,e)}else super.insertBefore(t,e)}insertContents(t,e){const s=this.deltaToRenderBlocks(e.concat(new b().insert(` +`))),i=s.pop();if(i==null)return;this.batchStart();const n=s.shift();if(n){const a=n.type==="block"&&(n.delta.length()===0||!this.descendant(R,t)[0]&&t{this.formatAt(d-1,1,g,E[g])}),t=d}let[l,o]=this.children.find(t);if(s.length&&(l&&(l=l.split(o),o=0),s.forEach(a=>{if(a.type==="block"){const c=this.createBlock(a.attributes,l||void 0);Zt(c,0,a.delta)}else{const c=this.create(a.key,a.value);this.insertBefore(c,l||void 0),Object.keys(a.attributes).forEach(h=>{c.format(h,a.attributes[h])})}})),i.type==="block"&&i.delta.length()){const a=l?l.offset(l.scroll)+o:this.length();Zt(this,a,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[s,i]=e;return s instanceof w?[s,i]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Ue,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const s=(i,n,l)=>{let o=[],a=l;return i.children.forEachAt(n,l,(c,h,d)=>{Ue(c)?o.push(c):c instanceof Pt&&(o=o.concat(s(c,h,a))),a-=d}),o};return s(this,t,e)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(p.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let e=p.sources.USER;typeof t=="string"&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(s=>{let{target:i}=s;const n=this.find(i,!0);return n&&!_e(n)}),t.length>0&&this.emitter.emit(p.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(p.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,s){const[i]=this.descendant(n=>n instanceof R,t);i&&i.statics.blotName===e&&_e(i)&&i.updateContent(s)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let s=new b;return t.forEach(i=>{var l;const n=i==null?void 0:i.insert;if(!!n)if(typeof n=="string"){const o=n.split(` +`);o.slice(0,-1).forEach(c=>{var h;s.insert(c,i.attributes),e.push({type:"block",delta:s,attributes:(h=i.attributes)!=null?h:{}}),s=new b});const a=o[o.length-1];a&&s.insert(a,i.attributes)}else{const o=Object.keys(n)[0];if(!o)return;this.query(o,y.INLINE)?s.push(i):(s.length()&&e.push({type:"block",delta:s,attributes:{}}),s=new b,e.push({type:"blockEmbed",key:o,value:n[o],attributes:(l=i.attributes)!=null?l:{}}))}}),s.length()&&e.push({type:"block",delta:s,attributes:{}}),e}createBlock(t,e){let s;const i={};Object.entries(t).forEach(o=>{let[a,c]=o;this.query(a,y.BLOCK&y.BLOT)!=null?s=a:i[a]=c});const n=this.create(s||this.statics.defaultChild.blotName,s?t[s]:void 0);this.insertBefore(n,e||void 0);const l=n.length();return Object.entries(i).forEach(o=>{let[a,c]=o;n.formatAt(0,l,a,c)}),n}}m(ut,"blotName","scroll"),m(ut,"className","ql-editor"),m(ut,"tagName","DIV"),m(ut,"defaultChild",v),m(ut,"allowedChildren",[v,R,it]);function Zt(r,t,e){e.reduce((s,i)=>{const n=D.exports.Op.length(i);let l=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const o=i.insert;r.insertAt(s,o);const[a]=r.descendant(w,s),c=C(a);l=D.exports.AttributeMap.diff(c,l)||{}}else if(typeof i.insert=="object"){const o=Object.keys(i.insert)[0];if(o==null)return s;if(r.insertAt(s,o,i.insert[o]),r.scroll.query(o,y.INLINE)!=null){const[c]=r.descendant(w,s),h=C(c);l=D.exports.AttributeMap.diff(h,l)||{}}}}return Object.keys(l).forEach(o=>{r.formatAt(s,n,o,l[o])}),s+n},t)}const be={scope:y.BLOCK,whitelist:["right","center","justify"]},di=new z("align","align",be),os=new _("align","ql-align",be),as=new et("align","text-align",be);class cs extends et{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):e}}const fi=new _("color","ql-color",{scope:y.INLINE}),ye=new cs("color","color",{scope:y.INLINE}),mi=new _("background","ql-bg",{scope:y.INLINE}),Ne=new cs("background","background-color",{scope:y.INLINE});class nt extends it{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(s=>s.length()<=1?"":s.domNode.innerText).join(` +`).slice(t,t+e)}html(t,e){return`
    +${Ft(this.code(t,e))}
    +
    `}}class L extends v{static register(){u.register(nt)}}m(L,"TAB"," ");class Ee extends I{}Ee.blotName="code";Ee.tagName="CODE";L.blotName="code-block";L.className="ql-code-block";L.tagName="DIV";nt.blotName="code-block-container";nt.className="ql-code-block-container";nt.tagName="DIV";nt.allowedChildren=[L];L.allowedChildren=[U,P,$];L.requiredContainer=nt;const xe={scope:y.BLOCK,whitelist:["rtl"]},hs=new z("direction","dir",xe),us=new _("direction","ql-direction",xe),ds=new et("direction","direction",xe),fs={scope:y.INLINE,whitelist:["serif","monospace"]},ms=new _("font","ql-font",fs);class gi extends et{value(t){return super.value(t).replace(/["']/g,"")}}const gs=new gi("font","font-family",fs),ps=new _("size","ql-size",{scope:y.INLINE,whitelist:["small","large","huge"]}),bs=new et("size","font-size",{scope:y.INLINE,whitelist:["10px","18px","32px"]}),pi=W("quill:keyboard"),bi=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class $t extends F{static match(t,e){return["altKey","ctrlKey","metaKey","shiftKey"].some(s=>!!e[s]!==t[s]&&e[s]!==null)?!1:e.key===t.key||e.key===t.which}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(s=>{this.options.bindings[s]&&this.addBinding(this.options.bindings[s])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=Ni(t);if(i==null){pi.warn("Attempted to add invalid keyboard binding",i);return}typeof e=="function"&&(e={handler:e}),typeof s=="function"&&(s={handler:s}),(Array.isArray(i.key)?i.key:[i.key]).forEach(l=>{const o={...i,key:l,...e,...s};this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return;const s=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(f=>$t.match(t,f));if(s.length===0)return;const i=u.find(t.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const n=this.quill.getSelection();if(n==null||!this.quill.hasFocus())return;const[l,o]=this.quill.getLine(n.index),[a,c]=this.quill.getLeaf(n.index),[h,d]=n.length===0?[a,c]:this.quill.getLeaf(n.index+n.length),N=a instanceof Ut?a.value().slice(0,c):"",E=h instanceof Ut?h.value().slice(d):"",g={collapsed:n.length===0,empty:n.length===0&&l.length()<=1,format:this.quill.getFormat(n),line:l,offset:o,prefix:N,suffix:E,event:t};s.some(f=>{if(f.collapsed!=null&&f.collapsed!==g.collapsed||f.empty!=null&&f.empty!==g.empty||f.offset!=null&&f.offset!==g.offset)return!1;if(Array.isArray(f.format)){if(f.format.every(x=>g.format[x]==null))return!1}else if(typeof f.format=="object"&&!Object.keys(f.format).every(x=>f.format[x]===!0?g.format[x]!=null:f.format[x]===!1?g.format[x]==null:fe(f.format[x],g.format[x])))return!1;return f.prefix!=null&&!f.prefix.test(g.prefix)||f.suffix!=null&&!f.suffix.test(g.suffix)?!1:f.handler.call(this,n,g,f)!==!0})&&t.preventDefault()})}handleBackspace(t,e){const s=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let i={};const[n]=this.quill.getLine(t.index);let l=new b().retain(t.index-s).delete(s);if(e.offset===0){const[o]=this.quill.getLine(t.index-1);if(o&&!(o.statics.blotName==="block"&&o.length()<=1)){const c=n.formats(),h=this.quill.getFormat(t.index-1,1);if(i=D.exports.AttributeMap.diff(c,h)||{},Object.keys(i).length>0){const d=new b().retain(t.index+n.length()-2).retain(1,i);l=l.compose(d)}}}this.quill.updateContents(l,u.sources.USER),this.quill.focus()}handleDelete(t,e){const s=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-s)return;let i={};const[n]=this.quill.getLine(t.index);let l=new b().retain(t.index).delete(s);if(e.offset>=n.length()-1){const[o]=this.quill.getLine(t.index+1);if(o){const a=n.formats(),c=this.quill.getFormat(t.index,1);i=D.exports.AttributeMap.diff(a,c)||{},Object.keys(i).length>0&&(l=l.retain(o.length()-1).retain(1,i))}}this.quill.updateContents(l,u.sources.USER),this.quill.focus()}handleDeleteRange(t){qe({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const s=Object.keys(e.format).reduce((n,l)=>(this.quill.scroll.query(l,y.BLOCK)&&!Array.isArray(e.format[l])&&(n[l]=e.format[l]),n),{}),i=new b().retain(t.index).delete(t.length).insert(` +`,s);this.quill.updateContents(i,u.sources.USER),this.quill.setSelection(t.index+1,u.sources.SILENT),this.quill.focus()}}const yi={bindings:{bold:Xt("bold"),italic:Xt("italic"),underline:Xt("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",u.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",u.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,t){t.format.indent!=null?this.quill.format("indent","-1",u.sources.USER):t.format.list!=null&&this.quill.format("list",!1,u.sources.USER)}},"indent code-block":Pe(!0),"outdent code-block":Pe(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,u.sources.USER)}},tab:{key:"Tab",handler(r,t){if(t.format.table)return!0;this.quill.history.cutoff();const e=new b().retain(r.index).delete(r.length).insert(" ");return this.quill.updateContents(e,u.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,u.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,u.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,t){const e={list:!1};t.format.indent&&(e.indent=!1),this.quill.formatLine(r.index,r.length,e,u.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[t,e]=this.quill.getLine(r.index),s={...t.formats(),list:"checked"},i=new b().retain(r.index).insert(` +`,s).retain(t.length()-e-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,u.sources.USER),this.quill.setSelection(r.index+1,u.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,t){const[e,s]=this.quill.getLine(r.index),i=new b().retain(r.index).insert(` +`,t.format).retain(e.length()-s-1).retain(1,{header:null});this.quill.updateContents(i,u.sources.USER),this.quill.setSelection(r.index+1,u.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){const t=this.quill.getModule("table");if(t){const[e,s,i,n]=t.getTable(r),l=Ei(e,s,i,n);if(l==null)return;let o=e.offset();if(l<0){const a=new b().retain(o).insert(` +`);this.quill.updateContents(a,u.sources.USER),this.quill.setSelection(r.index+1,r.length,u.sources.SILENT)}else if(l>0){o+=e.length();const a=new b().retain(o).insert(` +`);this.quill.updateContents(a,u.sources.USER),this.quill.setSelection(o,u.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,t){const{event:e,line:s}=t,i=s.offset(this.quill.scroll);e.shiftKey?this.quill.setSelection(i-1,u.sources.USER):this.quill.setSelection(i+s.length(),u.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,t){if(this.quill.scroll.query("list")==null)return!0;const{length:e}=t.prefix,[s,i]=this.quill.getLine(r.index);if(i>e)return!0;let n;switch(t.prefix.trim()){case"[]":case"[ ]":n="unchecked";break;case"[x]":n="checked";break;case"-":case"*":n="bullet";break;default:n="ordered"}this.quill.insertText(r.index," ",u.sources.USER),this.quill.history.cutoff();const l=new b().retain(r.index-i).delete(e+1).retain(s.length()-2-i).retain(1,{list:n});return this.quill.updateContents(l,u.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-e,u.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[t,e]=this.quill.getLine(r.index);let s=2,i=t;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,s-=1,s<=0){const n=new b().retain(r.index+t.length()-e-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(n,u.sources.USER),this.quill.setSelection(r.index-1,u.sources.SILENT),!1}return!0}},"embed left":It("ArrowLeft",!1),"embed left shift":It("ArrowLeft",!0),"embed right":It("ArrowRight",!1),"embed right shift":It("ArrowRight",!0),"table down":Fe(!1),"table up":Fe(!0)}};$t.DEFAULTS=yi;function Pe(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(t,e){let{event:s}=e;const i=this.quill.scroll.query("code-block"),{TAB:n}=i;if(t.length===0&&!s.shiftKey){this.quill.insertText(t.index,n,u.sources.USER),this.quill.setSelection(t.index+n.length,u.sources.SILENT);return}const l=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:o,length:a}=t;l.forEach((c,h)=>{r?(c.insertAt(0,n),h===0?o+=n.length:a+=n.length):c.domNode.textContent.startsWith(n)&&(c.deleteAt(0,n.length),h===0?o-=n.length:a-=n.length)}),this.quill.update(u.sources.USER),this.quill.setSelection(o,a,u.sources.SILENT)}}}function It(r,t){return{key:r,shiftKey:t,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(s){let{index:i}=s;r==="ArrowRight"&&(i+=s.length+1);const[n]=this.quill.getLeaf(i);return n instanceof S?(r==="ArrowLeft"?t?this.quill.setSelection(s.index-1,s.length+1,u.sources.USER):this.quill.setSelection(s.index-1,u.sources.USER):t?this.quill.setSelection(s.index,s.length+1,u.sources.USER):this.quill.setSelection(s.index+s.length+1,u.sources.USER),!1):!0}}}function Xt(r){return{key:r[0],shortKey:!0,handler(t,e){this.quill.format(r,!e.format[r],u.sources.USER)}}}function Fe(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,e){const s=r?"prev":"next",i=e.line,n=i.parent[s];if(n!=null){if(n.statics.blotName==="table-row"){let l=n.children.head,o=i;for(;o.prev!=null;)o=o.prev,l=l.next;const a=l.offset(this.quill.scroll)+Math.min(e.offset,l.length()-1);this.quill.setSelection(a,0,u.sources.USER)}}else{const l=i.table()[s];l!=null&&(r?this.quill.setSelection(l.offset(this.quill.scroll)+l.length()-1,0,u.sources.USER):this.quill.setSelection(l.offset(this.quill.scroll),0,u.sources.USER))}return!1}}}function Ni(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=ft(r);else return null;return r.shortKey&&(r[bi]=r.shortKey,delete r.shortKey),r}function qe(r){let{quill:t,range:e}=r;const s=t.getLines(e);let i={};if(s.length>1){const n=s[0].formats(),l=s[s.length-1].formats();i=D.exports.AttributeMap.diff(l,n)||{}}t.deleteText(e,u.sources.USER),Object.keys(i).length>0&&t.formatLine(e.index,1,i,u.sources.USER),t.setSelection(e.index,u.sources.SILENT)}function Ei(r,t,e,s){return t.prev==null&&t.next==null?e.prev==null&&e.next==null?s===0?-1:1:e.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}const xi=/font-weight:\s*normal/,qi=["P","OL","UL"],$e=r=>r&&qi.includes(r.tagName),Ai=r=>{Array.from(r.querySelectorAll("br")).filter(t=>$e(t.previousElementSibling)&&$e(t.nextElementSibling)).forEach(t=>{var e;(e=t.parentNode)==null||e.removeChild(t)})},vi=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var e;return(e=t.getAttribute("style"))==null?void 0:e.match(xi)}).forEach(t=>{var s;const e=r.createDocumentFragment();e.append(...t.childNodes),(s=t.parentNode)==null||s.replaceChild(e,t)})};function wi(r){r.querySelector('[id^="docs-internal-guid-"]')&&(vi(r),Ai(r))}const Li=/\bmso-list:[^;]*ignore/i,ki=/\bmso-list:[^;]*\bl(\d+)/i,Ti=/\bmso-list:[^;]*\blevel(\d+)/i,Si=(r,t)=>{const e=r.getAttribute("style"),s=e==null?void 0:e.match(ki);if(!s)return null;const i=Number(s[1]),n=e==null?void 0:e.match(Ti),l=n?Number(n[1]):1,o=new RegExp(`@list l${i}:level${l}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),a=t.match(o),c=a&&a[1]==="bullet"?"bullet":"ordered";return{id:i,indent:l,type:c,element:r}},Ci=r=>{var l,o;const t=Array.from(r.querySelectorAll("[style*=mso-list]")),e=[],s=[];t.forEach(a=>{(a.getAttribute("style")||"").match(Li)?e.push(a):s.push(a)}),e.forEach(a=>{var c;return(c=a.parentNode)==null?void 0:c.removeChild(a)});const i=r.documentElement.innerHTML,n=s.map(a=>Si(a,i)).filter(a=>a);for(;n.length;){const a=[];let c=n.shift();for(;c;)a.push(c),c=n.length&&((l=n[0])==null?void 0:l.element)===c.element.nextElementSibling&&n[0].id===c.id?n.shift():null;const h=document.createElement("ul");a.forEach(E=>{const g=document.createElement("li");g.setAttribute("data-list",E.type),E.indent>1&&g.setAttribute("class",`ql-indent-${E.indent-1}`),g.innerHTML=E.element.innerHTML,h.appendChild(g)});const d=(o=a[0])==null?void 0:o.element,{parentNode:N}=d!=null?d:{};d&&(N==null||N.replaceChild(h,d)),a.slice(1).forEach(E=>{let{element:g}=E;N==null||N.removeChild(g)})}};function Oi(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Ci(r)}const Ri=[Oi,wi],Ii=r=>{r.documentElement&&Ri.forEach(t=>{t(r)})},Bi=W("quill:clipboard"),Di=[[Node.TEXT_NODE,Wi],[Node.TEXT_NODE,ze],["br",Fi],[Node.ELEMENT_NODE,ze],[Node.ELEMENT_NODE,Pi],[Node.ELEMENT_NODE,_i],[Node.ELEMENT_NODE,Ki],["li",zi],["ol, ul",ji],["pre",$i],["tr",Vi],["b",Yt("bold")],["i",Yt("italic")],["strike",Yt("strike")],["style",Hi]],Mi=[di,hs].reduce((r,t)=>(r[t.keyName]=t,r),{}),He=[as,Ne,ye,ds,gs,bs].reduce((r,t)=>(r[t.keyName]=t,r),{});class ys extends F{constructor(t,e){var s;super(t,e),this.quill.root.addEventListener("copy",i=>this.onCaptureCopy(i,!1)),this.quill.root.addEventListener("cut",i=>this.onCaptureCopy(i,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Di.concat((s=this.options.matchers)!=null?s:[]).forEach(i=>{let[n,l]=i;this.addMatcher(n,l)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:s}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[L.blotName])return new b().insert(s||"",{[L.blotName]:i[L.blotName]});if(!e)return new b().insert(s||"",i);const n=this.convertHTML(e);return Lt(n,` +`)&&(n.ops[n.ops.length-1].attributes==null||i.table)?n.compose(new b().retain(n.length()-1).delete(1)):n}normalizeHTML(t){Ii(t)}convertHTML(t){const e=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(e);const s=e.body,i=new WeakMap,[n,l]=this.prepareMatching(s,i);return Ae(this.quill.scroll,s,n,l,i)}dangerouslyPasteHTML(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.sources.API;if(typeof t=="string"){const i=this.convert({html:t,text:""});this.quill.setContents(i,e),this.quill.setSelection(0,u.sources.SILENT)}else{const i=this.convert({html:e,text:""});this.quill.updateContents(new b().retain(t).concat(i),s),this.quill.setSelection(t+i.length(),u.sources.SILENT)}}onCaptureCopy(t){var l,o;let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[s]=this.quill.selection.getRange();if(s==null)return;const{html:i,text:n}=this.onCopy(s,e);(l=t.clipboardData)==null||l.setData("text/plain",n),(o=t.clipboardData)==null||o.setData("text/html",i),e&&qe({range:s,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(e=>e[0]!=="#").join(` +`)}onCapturePaste(t){var l,o,a,c,h;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(e==null)return;const s=(l=t.clipboardData)==null?void 0:l.getData("text/html");let i=(o=t.clipboardData)==null?void 0:o.getData("text/plain");if(!s&&!i){const d=(a=t.clipboardData)==null?void 0:a.getData("text/uri-list");d&&(i=this.normalizeURIList(d))}const n=Array.from(((c=t.clipboardData)==null?void 0:c.files)||[]);if(!s&&n.length>0){this.quill.uploader.upload(e,n);return}if(s&&n.length>0){const d=new DOMParser().parseFromString(s,"text/html");if(d.body.childElementCount===1&&((h=d.body.firstElementChild)==null?void 0:h.tagName)==="IMG"){this.quill.uploader.upload(e,n);return}}this.onPaste(e,{html:s,text:i})}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:s,html:i}=e;const n=this.quill.getFormat(t.index),l=this.convert({text:s,html:i},n);Bi.log("onPaste",l,{text:s,html:i});const o=new b().retain(t.index).delete(t.length).concat(l);this.quill.updateContents(o,u.sources.USER),this.quill.setSelection(o.length()-t.length,u.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const s=[],i=[];return this.matchers.forEach(n=>{const[l,o]=n;switch(l){case Node.TEXT_NODE:i.push(o);break;case Node.ELEMENT_NODE:s.push(o);break;default:Array.from(t.querySelectorAll(l)).forEach(a=>{if(e.has(a)){const c=e.get(a);c==null||c.push(o)}else e.set(a,[o])});break}}),[s,i]}}m(ys,"DEFAULTS",{matchers:[]});function rt(r,t,e,s){return s.query(t)?r.reduce((i,n)=>{if(!n.insert)return i;if(n.attributes&&n.attributes[t])return i.push(n);const l=e?{[t]:e}:{};return i.insert(n.insert,{...l,...n.attributes})},new b):r}function Lt(r,t){let e="";for(let s=r.ops.length-1;s>=0&&e.lengthl(t,n,r),new b):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((n,l)=>{let o=Ae(r,l,e,s,i);return l.nodeType===t.ELEMENT_NODE&&(o=e.reduce((a,c)=>c(l,a,r),o),o=(i.get(l)||[]).reduce((a,c)=>c(l,a,r),o)),n.concat(o)},new b):new b}function Yt(r){return(t,e,s)=>rt(e,r,!0,s)}function _i(r,t,e){const s=z.keys(r),i=_.keys(r),n=et.keys(r),l={};return s.concat(i).concat(n).forEach(o=>{let a=e.query(o,y.ATTRIBUTE);a!=null&&(l[a.attrName]=a.value(r),l[a.attrName])||(a=Mi[o],a!=null&&(a.attrName===o||a.keyName===o)&&(l[a.attrName]=a.value(r)||void 0),a=He[o],a!=null&&(a.attrName===o||a.keyName===o)&&(a=He[o],l[a.attrName]=a.value(r)||void 0))}),Object.entries(l).reduce((o,a)=>{let[c,h]=a;return rt(o,c,h,e)},t)}function Pi(r,t,e){const s=e.query(r);if(s==null)return t;if(s.prototype instanceof S){const i={},n=s.value(r);if(n!=null)return i[s.blotName]=n,new b().insert(i,s.formats(r,e))}else if(s.prototype instanceof qt&&!Lt(t,` +`)&&t.insert(` +`),"blotName"in s&&"formats"in s&&typeof s.formats=="function")return rt(t,s.blotName,s.formats(r,e),e);return t}function Fi(r,t){return Lt(t,` +`)||t.insert(` +`),t}function $i(r,t,e){const s=e.query("code-block"),i=s&&"formats"in s&&typeof s.formats=="function"?s.formats(r,e):!0;return rt(t,"code-block",i,e)}function Hi(){return new b}function zi(r,t,e){const s=e.query(r);if(s==null||s.blotName!=="list"||!Lt(t,` +`))return t;let i=-1,n=r.parentNode;for(;n!=null;)["OL","UL"].includes(n.tagName)&&(i+=1),n=n.parentNode;return i<=0?t:t.reduce((l,o)=>o.insert?o.attributes&&typeof o.attributes.indent=="number"?l.push(o):l.insert(o.insert,{indent:i,...o.attributes||{}}):l,new b)}function ji(r,t,e){const s=r;let i=s.tagName==="OL"?"ordered":"bullet";const n=s.getAttribute("data-checked");return n&&(i=n==="true"?"checked":"unchecked"),rt(t,"list",i,e)}function ze(r,t,e){if(!Lt(t,` +`)){if(Q(r,e)&&(r.childNodes.length>0||r instanceof HTMLParagraphElement))return t.insert(` +`);if(t.length()>0&&r.nextSibling){let s=r.nextSibling;for(;s!=null;){if(Q(s,e))return t.insert(` +`);const i=e.query(s);if(i&&i.prototype instanceof R)return t.insert(` +`);s=s.firstChild}}}return t}function Ki(r,t,e){var n;const s={},i=r.style||{};return i.fontStyle==="italic"&&(s.italic=!0),i.textDecoration==="underline"&&(s.underline=!0),i.textDecoration==="line-through"&&(s.strike=!0),(((n=i.fontWeight)==null?void 0:n.startsWith("bold"))||parseInt(i.fontWeight,10)>=700)&&(s.bold=!0),t=Object.entries(s).reduce((l,o)=>{let[a,c]=o;return rt(l,a,c,e)},t),parseFloat(i.textIndent||0)>0?new b().insert(" ").concat(t):t}function Vi(r,t,e){var i,n;const s=((i=r.parentElement)==null?void 0:i.tagName)==="TABLE"?r.parentElement:(n=r.parentElement)==null?void 0:n.parentElement;if(s!=null){const o=Array.from(s.querySelectorAll("tr")).indexOf(r)+1;return rt(t,"table",o,e)}return t}function Wi(r,t,e){var i;let s=r.data;if(((i=r.parentElement)==null?void 0:i.tagName)==="O:P")return t.insert(s.trim());if(!Ns(r)){if(s.trim().length===0&&s.includes(` +`)&&!Ui(r,e))return t;const n=(l,o)=>{const a=o.replace(/[^\u00a0]/g,"");return a.length<1&&l?" ":a};s=s.replace(/\r\n/g," ").replace(/\n/g," "),s=s.replace(/\s\s+/g,n.bind(n,!0)),(r.previousSibling==null&&r.parentElement!=null&&Q(r.parentElement,e)||r.previousSibling instanceof Element&&Q(r.previousSibling,e))&&(s=s.replace(/^\s+/,n.bind(n,!1))),(r.nextSibling==null&&r.parentElement!=null&&Q(r.parentElement,e)||r.nextSibling instanceof Element&&Q(r.nextSibling,e))&&(s=s.replace(/\s+$/,n.bind(n,!1)))}return t.insert(s)}class Es extends F{constructor(e,s){super(e,s);m(this,"lastRecorded",0);m(this,"ignoreChange",!1);m(this,"stack",{undo:[],redo:[]});m(this,"currentRange",null);this.quill.on(u.events.EDITOR_CHANGE,(i,n,l,o)=>{i===u.events.SELECTION_CHANGE?n&&o!==u.sources.SILENT&&(this.currentRange=n):i===u.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||o===u.sources.USER?this.record(n,l):this.transform(n)),this.currentRange=re(this.currentRange,n))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(e,s){if(this.stack[e].length===0)return;const i=this.stack[e].pop();if(!i)return;const n=this.quill.getContents(),l=i.delta.invert(n);this.stack[s].push({delta:l,range:re(i.range,l)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,u.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,s){if(e.ops.length===0)return;this.stack.redo=[];let i=e.invert(s),n=this.currentRange;const l=Date.now();if(this.lastRecorded+this.options.delay>l&&this.stack.undo.length>0){const o=this.stack.undo.pop();o&&(i=i.compose(o.delta),n=o.range)}else this.lastRecorded=l;i.length()!==0&&(this.stack.undo.push({delta:i,range:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){je(this.stack.undo,e),je(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,u.sources.USER);else{const s=Zi(this.quill.scroll,e.delta);this.quill.setSelection(s,u.sources.USER)}}}m(Es,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function je(r,t){let e=t;for(let s=r.length-1;s>=0;s-=1){const i=r[s];r[s]={delta:e.transform(i.delta,!0),range:i.range&&re(i.range,e)},e=i.delta.transform(e),r[s].delta.length()===0&&r.splice(s,1)}}function Gi(r,t){const e=t.ops[t.ops.length-1];return e==null?!1:e.insert!=null?typeof e.insert=="string"&&e.insert.endsWith(` +`):e.attributes!=null?Object.keys(e.attributes).some(s=>r.query(s,y.BLOCK)!=null):!1}function Zi(r,t){const e=t.reduce((i,n)=>i+(n.delete||0),0);let s=t.length()-e;return Gi(r,t)&&(s-=1),s}function re(r,t){if(!r)return r;const e=t.transformPosition(r.index),s=t.transformPosition(r.index+r.length);return{index:e,length:s-e}}class xs extends F{constructor(t,e){super(t,e),t.root.addEventListener("drop",s=>{var l;s.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(s.clientX,s.clientY);else if(document.caretPositionFromPoint){const o=document.caretPositionFromPoint(s.clientX,s.clientY);i=document.createRange(),i.setStart(o.offsetNode,o.offset),i.setEnd(o.offsetNode,o.offset)}const n=i&&t.selection.normalizeNative(i);if(n){const o=t.selection.normalizedToRange(n);(l=s.dataTransfer)!=null&&l.files&&this.upload(o,s.dataTransfer.files)}})}upload(t,e){const s=[];Array.from(e).forEach(i=>{var n;i&&((n=this.options.mimetypes)==null?void 0:n.includes(i.type))&&s.push(i)}),s.length>0&&this.options.handler.call(this,t,s)}}xs.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,t){const e=t.map(s=>new Promise(i=>{const n=new FileReader;n.onload=l=>{i(l.target.result)},n.readAsDataURL(s)}));Promise.all(e).then(s=>{const i=s.reduce((n,l)=>n.insert({image:l}),new b().retain(r.index).delete(r.length));this.quill.updateContents(i,p.sources.USER),this.quill.setSelection(r.index+s.length,p.sources.SILENT)})}};const Xi=["insertText","insertReplacementText"];class Yi extends F{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",s=>{this.handleBeforeInput(s)}),/Android/i.test(navigator.userAgent)||t.on(u.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){qe({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(e){const s=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new b().retain(t.index).insert(e,s),u.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,u.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!Xi.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||e.collapsed===!0)return;const s=Qi(t);if(s==null)return;const i=this.quill.selection.normalizeNative(e),n=i?this.quill.selection.normalizedToRange(i):null;n&&this.replaceText(n,s)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function Qi(r){var t;return typeof r.data=="string"?r.data:(t=r.dataTransfer)!=null&&t.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}const Ji=/Mac/i.test(navigator.platform),tn=100,en=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||Ji&&r.key==="a"&&r.ctrlKey===!0);class sn extends F{constructor(e,s){super(e,s);m(this,"isListening",!1);m(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,s){let{line:i,event:n}=s;if(!(i instanceof M)||!i.uiNode)return!0;const l=getComputedStyle(i.domNode).direction==="rtl";return l&&n.key!=="ArrowRight"||!l&&n.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(n.shiftKey?1:0),u.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&en(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+tn,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const s=e.getRangeAt(0);if(s.collapsed!==!0||s.startOffset!==0)return;const i=this.quill.scroll.find(s.startContainer);if(!(i instanceof M)||!i.uiNode)return;const n=document.createRange();n.setStartAfter(i.uiNode),n.setEndAfter(i.uiNode),e.removeAllRanges(),e.addRange(n)}}u.register({"blots/block":v,"blots/block/embed":R,"blots/break":P,"blots/container":it,"blots/cursor":$,"blots/embed":pe,"blots/inline":I,"blots/scroll":ut,"blots/text":U,"modules/clipboard":ys,"modules/history":Es,"modules/keyboard":$t,"modules/uploader":xs,"modules/input":Yi,"modules/uiNode":sn});class nn extends _{add(t,e){let s=0;if(e==="+1"||e==="-1"){const i=this.value(t)||0;s=e==="+1"?i+1:i-1}else typeof e=="number"&&(s=e);return s===0?(this.remove(t),!0):super.add(t,s.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}const rn=new nn("indent","ql-indent",{scope:y.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class le extends v{}m(le,"blotName","blockquote"),m(le,"tagName","blockquote");class oe extends v{static formats(t){return this.tagName.indexOf(t.tagName)+1}}m(oe,"blotName","header"),m(oe,"tagName",["H1","H2","H3","H4","H5","H6"]);class kt extends it{}kt.blotName="list-container";kt.tagName="OL";class Tt extends v{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){u.register(kt)}constructor(t,e){super(t,e);const s=e.ownerDocument.createElement("span"),i=n=>{if(!t.isEnabled())return;const l=this.statics.formats(e,t);l==="checked"?(this.format("list","unchecked"),n.preventDefault()):l==="unchecked"&&(this.format("list","checked"),n.preventDefault())};s.addEventListener("mousedown",i),s.addEventListener("touchstart",i),this.attachUI(s)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}Tt.blotName="list";Tt.tagName="LI";kt.allowedChildren=[Tt];Tt.requiredContainer=kt;class vt extends I{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}m(vt,"blotName","bold"),m(vt,"tagName",["STRONG","B"]);class ae extends vt{}m(ae,"blotName","italic"),m(ae,"tagName",["EM","I"]);class J extends I{static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return qs(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t!==this.statics.blotName||!e?super.format(t,e):this.domNode.setAttribute("href",this.constructor.sanitize(e))}}m(J,"blotName","link"),m(J,"tagName","A"),m(J,"SANITIZED_URL","about:blank"),m(J,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function qs(r,t){const e=document.createElement("a");e.href=r;const s=e.href.slice(0,e.href.indexOf(":"));return t.indexOf(s)>-1}class ce extends I{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}m(ce,"blotName","script"),m(ce,"tagName",["SUB","SUP"]);class he extends vt{}m(he,"blotName","strike"),m(he,"tagName",["S","STRIKE"]);class ue extends I{}m(ue,"blotName","underline"),m(ue,"tagName","U");class Dt extends pe{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return typeof t=="string"&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`${t}`}}m(Dt,"blotName","formula"),m(Dt,"className","ql-formula"),m(Dt,"tagName","SPAN");const Ke=["alt","height","width"];class de extends S{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Ke.reduce((e,s)=>(t.hasAttribute(s)&&(e[s]=t.getAttribute(s)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return qs(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){Ke.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}}m(de,"blotName","image"),m(de,"tagName","IMG");const Ve=["height","width"];class Mt extends R{static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Ve.reduce((e,s)=>(t.hasAttribute(s)&&(e[s]=t.getAttribute(s)),e),{})}static sanitize(t){return J.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){Ve.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`${t}`}}m(Mt,"blotName","video"),m(Mt,"className","ql-video"),m(Mt,"tagName","IFRAME");const Et=new _("code-token","hljs",{scope:y.INLINE});class K extends I{static formats(t,e){for(;t!=null&&t!==e.domNode;){if(t.classList&&t.classList.contains(L.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,s){super(t,e,s),Et.add(this.domNode,s)}format(t,e){t!==K.blotName?super.format(t,e):e?Et.add(this.domNode,e):(Et.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Et.value(this.domNode)||this.unwrap()}}K.blotName="code-token";K.className="ql-token";class O extends L{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),K.blotName,!1),super.replaceWith(t,e)}}class xt extends nt{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===O.blotName&&(this.forceNext=!0,this.children.forEach(s=>{s.format(t,e)}))}formatAt(t,e,s,i){s===O.blotName&&(this.forceNext=!0),super.formatAt(t,e,s,i)}highlight(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(l=>l!==this.uiNode).map(l=>l.textContent).join(` +`)} +`,n=O.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const l=this.children.reduce((a,c)=>a.concat(ns(c,!1)),new b),o=t(i,n);l.diff(o).reduce((a,c)=>{let{retain:h,attributes:d}=c;return h?(d&&Object.keys(d).forEach(N=>{[O.blotName,K.blotName].includes(N)&&this.formatAt(a,h,N,d[N])}),a+h):a},0)}this.cachedText=i,this.forceNext=!1}}html(t,e){const[s]=this.children.find(t);return`
    +${Ft(this.code(t,e))}
    +
    `}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const e=O.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}xt.allowedChildren=[O];O.requiredContainer=xt;O.allowedChildren=[K,$,U,P];const ln=(r,t,e)=>{if(typeof r.versionString=="string"){const s=r.versionString.split(".")[0];if(parseInt(s,10)>=11)return r.highlight(e,{language:t}).value}return r.highlight(t,e).value};class As extends F{static register(){u.register(K,!0),u.register(O,!0),u.register(xt,!0)}constructor(t,e){if(super(t,e),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((s,i)=>{let{key:n}=i;return s[n]=!0,s},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(u.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof xt))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(s=>{let{key:i,label:n}=s;const l=e.ownerDocument.createElement("option");l.textContent=n,l.setAttribute("value",i),e.appendChild(l)}),e.addEventListener("change",()=>{t.format(O.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(e),t.children.head&&(e.value=O.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(u.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(u.sources.USER);const s=this.quill.getSelection();(t==null?this.quill.scroll.descendants(xt):[t]).forEach(n=>{n.highlight(this.highlightBlot,e)}),this.quill.update(u.sources.SILENT),s!=null&&this.quill.setSelection(s,u.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(e=this.languages[e]?e:"plain",e==="plain")return Ft(t).split(` +`).reduce((i,n,l)=>(l!==0&&i.insert(` +`,{[L.blotName]:e}),i.insert(n)),new b);const s=this.quill.root.ownerDocument.createElement("div");return s.classList.add(L.className),s.innerHTML=ln(this.options.hljs,e,t),Ae(this.quill.scroll,s,[(i,n)=>{const l=Et.value(i);return l?n.compose(new b().retain(n.length(),{[K.blotName]:l})):n}],[(i,n)=>i.data.split(` +`).reduce((l,o,a)=>(a!==0&&l.insert(` +`,{[L.blotName]:e}),l.insert(o)),n)],new WeakMap)}}As.DEFAULTS={hljs:(()=>window.hljs)(),interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const ke=class extends v{static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",ve()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===ke.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};let T=ke;m(T,"blotName","table"),m(T,"tagName","TD");class V extends it{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),e=this.children.tail.formats(),s=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===e.table&&t.table===s.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(e=>{if(e.next==null)return;const s=e.formats(),i=e.next.formats();if(s.table!==i.table){const n=this.splitAfter(e);n&&n.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}m(V,"blotName","table-row"),m(V,"tagName","TR");class H extends it{}m(H,"blotName","table-body"),m(H,"tagName","TBODY");class bt extends it{balanceCells(){const t=this.descendants(V),e=t.reduce((s,i)=>Math.max(i.children.length,s),0);t.forEach(s=>{new Array(e-s.children.length).fill(0).forEach(()=>{let i;s.children.head!=null&&(i=T.formats(s.children.head.domNode));const n=this.scroll.create(T.blotName,i);s.appendChild(n),n.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(H);e==null||e.children.head==null||e.children.forEach(s=>{const i=s.children.at(t);i!=null&&i.remove()})}insertColumn(t){const[e]=this.descendant(H);e==null||e.children.head==null||e.children.forEach(s=>{const i=s.children.at(t),n=T.formats(s.children.head.domNode),l=this.scroll.create(T.blotName,n);s.insertBefore(l,i)})}insertRow(t){const[e]=this.descendant(H);if(e==null||e.children.head==null)return;const s=ve(),i=this.scroll.create(V.blotName);e.children.head.children.forEach(()=>{const l=this.scroll.create(T.blotName,s);i.appendChild(l)});const n=e.children.at(t);e.insertBefore(i,n)}rows(){const t=this.children.head;return t==null?[]:t.children.map(e=>e)}}m(bt,"blotName","table-container"),m(bt,"tagName","TABLE");bt.allowedChildren=[H];H.requiredContainer=bt;H.allowedChildren=[V];V.requiredContainer=H;V.allowedChildren=[T];T.requiredContainer=V;function ve(){return`row-${Math.random().toString(36).slice(2,6)}`}class on extends F{static register(){u.register(T),u.register(V),u.register(H),u.register(bt)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(bt).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();e!=null&&(t.deleteColumn(e.cellOffset()),this.quill.update(u.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(u.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove(),this.quill.update(u.sources.USER),this.quill.setSelection(e,u.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,s]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==T.blotName)return[null,null,null,-1];const i=e.parent;return[i.parent.parent,i,e,s]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[s,i,n]=this.getTable(e);if(n==null)return;const l=n.cellOffset();s.insertColumn(l+t),this.quill.update(u.sources.USER);let o=i.rowOffset();t===0&&(o+=1),this.quill.setSelection(e.index+o,e.length,u.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[s,i,n]=this.getTable(e);if(n==null)return;const l=i.rowOffset();s.insertRow(l+t),this.quill.update(u.sources.USER),t>0?this.quill.setSelection(e,u.sources.SILENT):this.quill.setSelection(e.index+i.children.length,e.length,u.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const s=this.quill.getSelection();if(s==null)return;const i=new Array(t).fill(0).reduce(n=>{const l=new Array(e).fill(` +`).join("");return n.insert(l,{table:ve()})},new b().retain(s.index));this.quill.updateContents(i,u.sources.USER),this.quill.setSelection(s.index,u.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(u.events.SCROLL_OPTIMIZE,t=>{t.some(e=>["TD","TR","TBODY","TABLE"].includes(e.target.tagName)?(this.quill.once(u.events.TEXT_CHANGE,(s,i,n)=>{n===u.sources.USER&&this.balanceTables()}),!0):!1)})}}const We=W("quill:toolbar");class we extends F{constructor(t,e){var s,i;if(super(t,e),Array.isArray(this.options.container)){const n=document.createElement("div");n.setAttribute("role","toolbar"),an(n,this.options.container),(i=(s=t.container)==null?void 0:s.parentNode)==null||i.insertBefore(n,t.container),this.container=n}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){We.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(n=>{var o;const l=(o=this.options.handlers)==null?void 0:o[n];l&&this.addHandler(n,l)}),Array.from(this.container.querySelectorAll("button, select")).forEach(n=>{this.attach(n)}),this.quill.on(u.events.EDITOR_CHANGE,()=>{const[n]=this.quill.selection.getRange();this.update(n)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){We.warn("ignoring attaching to nonexistent format",e,t);return}const s=t.tagName==="SELECT"?"change":"click";t.addEventListener(s,i=>{let n;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const o=t.options[t.selectedIndex];o.hasAttribute("selected")?n=!1:n=o.value||!1}else t.classList.contains("ql-active")?n=!1:n=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[l]=this.quill.selection.getRange();if(this.handlers[e]!=null)this.handlers[e].call(this,n);else if(this.quill.scroll.query(e).prototype instanceof S){if(n=prompt(`Enter ${e}`),!n)return;this.quill.updateContents(new b().retain(l.index).delete(l.length).insert({[e]:n}),u.sources.USER)}else this.quill.format(e,n,u.sources.USER);this.update(l)}),this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach(s=>{const[i,n]=s;if(n.tagName==="SELECT"){let l=null;if(t==null)l=null;else if(e[i]==null)l=n.querySelector("option[selected]");else if(!Array.isArray(e[i])){let o=e[i];typeof o=="string"&&(o=o.replace(/"/g,'\\"')),l=n.querySelector(`option[value="${o}"]`)}l==null?(n.value="",n.selectedIndex=-1):l.selected=!0}else if(t==null)n.classList.remove("ql-active"),n.setAttribute("aria-pressed","false");else if(n.hasAttribute("value")){const l=e[i],o=l===n.getAttribute("value")||l!=null&&l.toString()===n.getAttribute("value")||l==null&&!n.getAttribute("value");n.classList.toggle("ql-active",o),n.setAttribute("aria-pressed",o.toString())}else{const l=e[i]!=null;n.classList.toggle("ql-active",l),n.setAttribute("aria-pressed",l.toString())}})}}we.DEFAULTS={};function Ge(r,t,e){const s=document.createElement("button");s.setAttribute("type","button"),s.classList.add(`ql-${t}`),s.setAttribute("aria-pressed","false"),e!=null?(s.value=e,s.setAttribute("aria-label",`${t}: ${e}`)):s.setAttribute("aria-label",t),r.appendChild(s)}function an(r,t){Array.isArray(t[0])||(t=[t]),t.forEach(e=>{const s=document.createElement("span");s.classList.add("ql-formats"),e.forEach(i=>{if(typeof i=="string")Ge(s,i);else{const n=Object.keys(i)[0],l=i[n];Array.isArray(l)?cn(s,n,l):Ge(s,n,l)}}),r.appendChild(s)})}function cn(r,t,e){const s=document.createElement("select");s.classList.add(`ql-${t}`),e.forEach(i=>{const n=document.createElement("option");i!==!1?n.setAttribute("value",String(i)):n.setAttribute("selected","selected"),s.appendChild(n)}),r.appendChild(s)}we.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(e=>{this.quill.scroll.query(e,y.INLINE)!=null&&this.quill.format(e,!1,u.sources.USER)})}else this.quill.removeFormat(r,u.sources.USER)},direction(r){const{align:t}=this.quill.getFormat();r==="rtl"&&t==null?this.quill.format("align","right",u.sources.USER):!r&&t==="right"&&this.quill.format("align",!1,u.sources.USER),this.quill.format("direction",r,u.sources.USER)},indent(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t),s=parseInt(e.indent||0,10);if(r==="+1"||r==="-1"){let i=r==="+1"?1:-1;e.direction==="rtl"&&(i*=-1),this.quill.format("indent",s+i,u.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,u.sources.USER)},list(r){const t=this.quill.getSelection(),e=this.quill.getFormat(t);r==="check"?e.list==="checked"||e.list==="unchecked"?this.quill.format("list",!1,u.sources.USER):this.quill.format("list","unchecked",u.sources.USER):this.quill.format("list",r,u.sources.USER)}}};const hn='',un='',dn='',fn='',mn='',gn='',pn='',bn='',Ze='',yn='',Nn='',En='',xn='',qn='',An='',vn='',wn='',Ln='',kn='',Tn='',Sn='',Cn='',On='',Rn='',In='',Bn='',Dn='',Mn='',Un='';var wt={align:{"":hn,center:un,right:dn,justify:fn},background:mn,blockquote:gn,bold:pn,clean:bn,code:Ze,"code-block":Ze,color:yn,direction:{"":Nn,rtl:En},formula:xn,header:{1:qn,2:An},italic:vn,image:wn,indent:{"+1":Ln,"-1":kn},link:Tn,list:{bullet:Sn,check:Cn,ordered:On},script:{sub:Rn,super:In},strike:Bn,table:Dn,underline:Mn,video:Un};const _n='';let Xe=0;function Ye(r,t){r.setAttribute(t,`${r.getAttribute(t)!=="true"}`)}class Ht{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Ye(this.label,"aria-expanded"),Ye(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const s=t.getAttribute("value");return s&&e.setAttribute("data-value",s),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(e,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=_n,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${Xe}`,Xe+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const s=this.buildItem(e);t.appendChild(s),e.selected===!0&&this.selectItem(s)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=this.container.querySelector(".ql-selected");t!==s&&(s!=null&&s.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class vs extends Ht{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(s=>{s.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const s=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=i:s.style.fill=i)}}class ws extends Ht{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(s=>{s.innerHTML=e[s.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const s=t||this.defaultItem;if(s!=null){if(this.label.innerHTML===s.innerHTML)return;this.label.innerHTML=s.innerHTML}}}const Pn=r=>{const{overflowY:t}=getComputedStyle(r,null);return t!=="visible"&&t!=="clip"};class Ls{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Pn(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,s=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${s}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),n=this.root.getBoundingClientRect();let l=0;if(n.right>i.right&&(l=i.right-n.right,this.root.style.left=`${e+l}px`),n.lefti.bottom){const o=n.bottom-n.top,a=t.bottom-t.top+o;this.root.style.top=`${s-a}px`,this.root.classList.add("ql-flip")}return l}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Fn=[!1,"center","right","justify"],$n=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Hn=[!1,"serif","monospace"],zn=["1","2","3",!1],jn=["small",!1,"large","huge"];class St extends Y{constructor(t,e){super(t,e);const s=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",s);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(n=>{n.container.contains(i.target)||n.close()})};t.emitter.listenDOM("click",document.body,s)}addModule(t){const e=super.addModule(t);return t==="toolbar"&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(s=>{(s.getAttribute("class")||"").split(/\s+/).forEach(n=>{if(!!n.startsWith("ql-")&&(n=n.slice(3),e[n]!=null))if(n==="direction")s.innerHTML=e[n][""]+e[n].rtl;else if(typeof e[n]=="string")s.innerHTML=e[n];else{const l=s.value||"";l!=null&&e[n][l]&&(s.innerHTML=e[n][l])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Nt(i,Fn),typeof e.align=="object"))return new ws(i,e.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const n=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Nt(i,$n,n==="background"?"#ffffff":"#000000"),new vs(i,e[n])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Nt(i,Hn):i.classList.contains("ql-header")?Nt(i,zn):i.classList.contains("ql-size")&&Nt(i,jn)),new Ht(i)});const s=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(p.events.EDITOR_CHANGE,s)}}St.DEFAULTS=tt({},Y.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class ks extends Ls{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;e!=null?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const s=this.quill.getBounds(this.quill.selection.savedRange);s!=null&&this.position(s),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus()}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,p.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,p.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=Kn(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(e!=null){const s=e.index+e.length;this.quill.insertEmbed(s,this.root.getAttribute("data-mode"),t,p.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(s+1," ",p.sources.USER),this.quill.setSelection(s+2,p.sources.USER)}break}}this.textbox.value="",this.hide()}}function Kn(r){let t=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:r}function Nt(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(s=>{const i=document.createElement("option");s===e?i.setAttribute("selected","selected"):i.setAttribute("value",String(s)),r.appendChild(i)})}const Vn=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Ts extends ks{constructor(t,e){super(t,e),this.quill.on(p.events.EDITOR_CHANGE,(s,i,n,l)=>{if(s===p.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&l===p.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const o=this.quill.getLines(i.index,i.length);if(o.length===1){const a=this.quill.getBounds(i);a!=null&&this.position(a)}else{const a=o[o.length-1],c=this.quill.getIndex(a),h=Math.min(a.length()-1,i.index+i.length-c),d=this.quill.getBounds(new st(c,h));d!=null&&this.position(d)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(p.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);e!=null&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),s=this.root.querySelector(".ql-tooltip-arrow");return s.style.marginLeft="",e!==0&&(s.style.marginLeft=`${-1*e-s.offsetWidth/2}px`),e}}m(Ts,"TEMPLATE",['','
    ','','',"
    "].join(""));class Ss extends St{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Vn),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Ts(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),wt),this.buildPickers(t.container.querySelectorAll("select"),wt))}}Ss.DEFAULTS=tt({},St.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});const Wn=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Cs extends ks{constructor(){super(...arguments);m(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const s=this.linkRange;this.restoreFocus(),this.quill.formatText(s,"link",!1,p.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(p.events.SELECTION_CHANGE,(e,s,i)=>{if(e!=null){if(e.length===0&&i===p.sources.USER){const[n,l]=this.quill.scroll.descendant(J,e.index);if(n!=null){this.linkRange=new st(e.index-l,n.length());const o=J.formats(n.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const a=this.quill.getBounds(this.linkRange);a!=null&&this.position(a);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}m(Cs,"TEMPLATE",['','','',''].join(""));class Os extends St{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Wn),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),wt),this.buildPickers(t.container.querySelectorAll("select"),wt),this.tooltip=new Cs(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,s)=>{t.handlers.link.call(t,!s.format.link)}))}}Os.DEFAULTS=tt({},St.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0&&(e=`mailto:${e}`);const{tooltip:s}=this.quill.theme;s.edit("link",e)}else this.quill.format("link",!1)}}}}});u.register({"attributors/attribute/direction":hs,"attributors/class/align":os,"attributors/class/background":mi,"attributors/class/color":fi,"attributors/class/direction":us,"attributors/class/font":ms,"attributors/class/size":ps,"attributors/style/align":as,"attributors/style/background":Ne,"attributors/style/color":ye,"attributors/style/direction":ds,"attributors/style/font":gs,"attributors/style/size":bs},!0);u.register({"formats/align":os,"formats/direction":us,"formats/indent":rn,"formats/background":Ne,"formats/color":ye,"formats/font":ms,"formats/size":ps,"formats/blockquote":le,"formats/code-block":L,"formats/header":oe,"formats/list":Tt,"formats/bold":vt,"formats/code":Ee,"formats/italic":ae,"formats/link":J,"formats/script":ce,"formats/strike":he,"formats/underline":ue,"formats/formula":Dt,"formats/image":de,"formats/video":Mt,"modules/syntax":As,"modules/table":on,"modules/toolbar":we,"themes/bubble":Ss,"themes/snow":Os,"ui/icons":wt,"ui/picker":Ht,"ui/icon-picker":ws,"ui/color-picker":vs,"ui/tooltip":Ls},!0);export{u as Q}; diff --git a/public/js/build/quill-mention-hi.f26fa3cb.js b/public/js/build/quill-mention-hi.beaa1617.js similarity index 99% rename from public/js/build/quill-mention-hi.f26fa3cb.js rename to public/js/build/quill-mention-hi.beaa1617.js index aa931e51f..a24a6ab3c 100644 --- a/public/js/build/quill-mention-hi.f26fa3cb.js +++ b/public/js/build/quill-mention-hi.beaa1617.js @@ -1,2 +1,2 @@ -import{Q as p}from"./quill-hi.a45c8e94.js";function T(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),t.push.apply(t,n)}return t}function O(i){for(var e=1;ei.length)&&(e=i.length);for(var t=0,n=new Array(e);t=i.length?{done:!0}:{done:!1,value:i[n++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{Q as p}from"./quill-hi.c85eceed.js";function T(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),t.push.apply(t,n)}return t}function O(i){for(var e=1;ei.length)&&(e=i.length);for(var t=0,n=new Array(e);t=i.length?{done:!0}:{done:!1,value:i[n++]}},e:function(l){throw l},f:o}}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 s=!0,r=!1,a;return{s:function(){t=t.call(i)},n:function(){var l=t.next();return s=l.done,l},e:function(l){r=!0,a=l},f:function(){try{!s&&t.return!=null&&t.return()}finally{if(r)throw a}}}}function V(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var n=t.call(i,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function H(i){var e=V(i,"string");return typeof e=="symbol"?e:String(e)}var d={TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",UP:"ArrowUp",DOWN:"ArrowDown"};function Q(i,e,t){var n=i;return Object.keys(e).forEach(function(o){t.indexOf(o)>-1?n.dataset[o]=e[o]:delete n.dataset[o]}),n}function P(i,e){e!==null&&(C(e)==="object"?i.appendChild(e):i.innerHTML=e)}function W(i,e,t,n){return e.reduce(function(o,s){var r;if(t&&n){var a=new RegExp("^".concat(s,"|\\s").concat(s),"g"),l=(i.match(a)||[]).pop();if(!l)return{mentionChar:o.mentionChar,mentionCharIndex:o.mentionCharIndex};r=l!==s?i.lastIndexOf(l)+l.length-s.length:0}else r=i.lastIndexOf(s);return r>o.mentionCharIndex?{mentionChar:s,mentionCharIndex:r}:{mentionChar:o.mentionChar,mentionCharIndex:o.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1})}function U(i,e){return e.test(i)}function K(i,e,t,n){if(i===-1)return!1;if(!t)return!0;var o=i?e[i-1]:n;return!o||!!o.match(/\s/)}function J(i){return C(i)!=="object"||i===null?i:JSON.parse(JSON.stringify(i))}var z=p.import("blots/embed"),I=function(i){_(t,i);var e=D(t);function t(n,o){var s;return S(this,t),s=e.call(this,n,o),w(k(s),"hoverHandler",void 0),w(k(s),"hoverHandler",void 0),s.clickHandler=null,s.hoverHandler=null,s.mounted=!1,s}return N(t,[{key:"update",value:function(o,s){var r=this;if(t.isAndroid()){var a=q(o),l;try{for(a.s();!(l=a.n()).done;){var f=l.value;if(!(f.type==="attributes"&&f.attributeName==="contenteditable")){setTimeout(function(){return r.remove()},0);return}}}catch(u){a.e(u)}finally{a.f()}}else o.forEach(function(u){if(u.type==="characterData"&&(u.target===r.leftGuard||u.target===r.rightGuard)){var h=r.restore(u.target);h&&(s.range=h)}})}},{key:"attach",value:function(){y(v(t.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(){y(v(t.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var o=this;return function(s){var r=o.buildEvent("mention-clicked",s);window.dispatchEvent(r),s.preventDefault()}}},{key:"getHoverHandler",value:function(){var o=this;return function(s){var r=o.buildEvent("mention-hovered",s);window.dispatchEvent(r),s.preventDefault()}}},{key:"buildEvent",value:function(o,s){var r=new Event(o,{bubbles:!0,cancelable:!0});return r.value=x({},this.domNode.dataset),r.event=s,r}}],[{key:"create",value:function(o){var s=y(v(t),"create",this).call(this),r=document.createElement("span");if(r.className="ql-mention-denotation-char",r.innerHTML=o.denotationChar,s.appendChild(r),s.innerHTML+=o.value,t.isAndroid()){var a=document.createElement("span");a.innerHTML=" ",a.setAttribute("style","display: inline-block; height: 1px; width: 1px; overflow: hidden; "),s.appendChild(a)}return t.setDataValues(s,o)}},{key:"setDataValues",value:function(o,s){setTimeout(function(){t.isAndroid()?o.getElementsByTagName("span")[0].setAttribute("contenteditable","inherit"):t.isChrome()&&o.getElementsByTagName("span")[0].parentNode.setAttribute("contenteditable","false")},0);var r=o;return Object.keys(s).forEach(function(a){r.dataset[a]=s[a]}),r}},{key:"value",value:function(o){return o.dataset}},{key:"isAndroid",value:function(){var o=typeof window!="undefined"&&window.navigator.userAgent.toLowerCase();return o&&o.indexOf("android")>0}},{key:"isChrome",value:function(){var o=typeof window!="undefined"&&window.navigator.userAgent.toLowerCase();return o.match(/Chrome/i)+""=="chrome"}}]),t}(z);I.blotName="mention";I.tagName="span";I.className="mention";p.register("blots/mention",I);var G=function(){function i(e,t){var n=this;S(this,i),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=e,this.options={source:null,renderItem:function(r){var a=r.value;return"".concat(a)},renderLoading:function(){return null},onSelect:function(r,a){a(r)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,allowInlineMentionChar:!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:[d.ENTER]},x(this.options,t,{dataAttributes:Array.isArray(t.dataAttributes)?this.options.dataAttributes.concat(t.dataAttributes):this.options.dataAttributes});for(var o in this.options)typeof this.options[o]=="function"&&(this.options[o]=this.options[o].bind(this));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",e.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),e.on("text-change",this.onTextChange.bind(this)),e.on("selection-change",this.onSelectionChange.bind(this)),e.container.addEventListener("paste",function(){setTimeout(function(){var s=e.getSelection();n.onSelectionChange(s)})}),e.keyboard.addBinding({key:d.TAB},this.selectHandler.bind(this)),e.keyboard.bindings[d.TAB].unshift(e.keyboard.bindings[d.TAB].pop()),e.keyboard.addBinding({key:d.ENTER},this.selectHandler.bind(this)),e.keyboard.bindings[d.ENTER].unshift(e.keyboard.bindings[d.ENTER].pop()),e.keyboard.addBinding({key:d.ESCAPE},this.escapeHandler.bind(this)),e.keyboard.addBinding({key:d.UP},this.upHandler.bind(this)),e.keyboard.addBinding({key:d.DOWN},this.downHandler.bind(this))}return N(i,[{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 t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,n=0;na-o&&(this.mentionContainer.scrollTop+=s-a+o)}}},{key:"onContainerMouseMove",value:function(){this.suspendMouseEnter=!1}},{key:"selectItem",value:function(){var t=this;if(this.itemIndex!==-1){var n=this.mentionList.childNodes[this.itemIndex].dataset;n.disabled||(this.options.onSelect(n,function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.insertItem(o,s,r)}),this.hideMentionList())}}},{key:"insertItem",value:function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=t;if(s!==null){var r=O(O({},this.options),o);r.showDenotationChar||(s.denotationChar="");var a;n?a=this.cursorPos:(a=this.mentionCharPos,this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,p.sources.USER));var l=this.quill.insertEmbed(a,r.blotName,s,p.sources.USER);return r.spaceAfterInsert?(this.quill.insertText(a+1," ",p.sources.USER),this.quill.setSelection(a+2,p.sources.USER)):this.quill.setSelection(a+1,p.sources.USER),this.hideMentionList(),l}}},{key:"onItemMouseEnter",value:function(t){if(!this.suspendMouseEnter){var n=Number(t.target.dataset.index);!Number.isNaN(n)&&n!==this.itemIndex&&(this.itemIndex=n,this.highlightItem(!1))}}},{key:"onDisabledItemMouseEnter",value:function(t){this.suspendMouseEnter||(this.itemIndex=-1,this.highlightItem(!1))}},{key:"onItemClick",value:function(t){t.button===0&&(t.preventDefault(),t.stopImmediatePropagation(),this.itemIndex=t.currentTarget.dataset.index,this.highlightItem(),this.selectItem())}},{key:"onItemMouseDown",value:function(t){t.preventDefault(),t.stopImmediatePropagation()}},{key:"renderLoading",value:function(){var t=this.options.renderLoading();if(!!t){if(this.mentionContainer.getElementsByClassName("ql-mention-loading").length>0){this.showMentionList();return}this.mentionList.innerHTML="";var n=document.createElement("div");n.className="ql-mention-loading",P(n,this.options.renderLoading()),this.mentionContainer.append(n),this.showMentionList()}}},{key:"removeLoading",value:function(){var t=this.mentionContainer.getElementsByClassName("ql-mention-loading");t.length>0&&t[0].remove()}},{key:"renderList",value:function(t,n,o){if(n&&n.length>0){this.removeLoading(),this.values=n,this.mentionList.innerHTML="";for(var s=-1,r=0;rwindow.pageYOffset+window.innerHeight}},{key:"containerRightIsNotVisible",value:function(t,n){if(this.options.fixMentionsToQuill)return!1;var o=t+this.mentionContainer.offsetWidth+n.left,s=window.pageXOffset+document.documentElement.clientWidth;return o>s}},{key:"setIsOpen",value:function(t){this.isOpen!==t&&(t?this.options.onOpen():this.options.onClose(),this.isOpen=t)}},{key:"setMentionContainerPosition",value:function(){this.options.positioningStrategy==="fixed"?this.setMentionContainerPosition_Fixed():this.setMentionContainerPosition_Normal()}},{key:"setMentionContainerPosition_Normal",value:function(){var t=this,n=this.quill.container.getBoundingClientRect(),o=this.quill.getBounds(this.mentionCharPos),s=this.mentionContainer.offsetHeight,r=this.options.offsetTop,a=this.options.offsetLeft;if(this.options.fixMentionsToQuill){var l=0;this.mentionContainer.style.right="".concat(l,"px")}else a+=o.left;if(this.containerRightIsNotVisible(a,n)){var f=this.mentionContainer.offsetWidth+this.options.offsetLeft,u=n.width;a=u-f}if(this.options.defaultMenuOrientation==="top"){if(this.options.fixMentionsToQuill?r=-1*(s+this.options.offsetTop):r=o.top-(s+this.options.offsetTop),r+n.top<=0){var h=this.options.offsetTop;this.options.fixMentionsToQuill?h+=n.height:h+=o.bottom,r=h}}else if(this.options.fixMentionsToQuill?r+=n.height:r+=o.bottom,this.containerBottomIsNotVisible(r,n)){var m=this.options.offsetTop*-1;this.options.fixMentionsToQuill||(m+=o.top),r=m-s}r>=0?this.options.mentionContainerClass.split(" ").forEach(function(c){t.mentionContainer.classList.add("".concat(c,"-bottom")),t.mentionContainer.classList.remove("".concat(c,"-top"))}):this.options.mentionContainerClass.split(" ").forEach(function(c){t.mentionContainer.classList.add("".concat(c,"-top")),t.mentionContainer.classList.remove("".concat(c,"-bottom"))}),this.mentionContainer.style.top="".concat(r,"px"),this.mentionContainer.style.left="".concat(a,"px"),this.mentionContainer.style.visibility="visible"}},{key:"setMentionContainerPosition_Fixed",value:function(){var t=this;this.mentionContainer.style.position="fixed",this.mentionContainer.style.height=null;var n=J(this.quill.container.getBoundingClientRect());n.top+=window.scrollY;var o=this.quill.getBounds(this.mentionCharPos),s={left:n.left+o.left,top:n.top+o.top,width:0,height:o.height},r=this.options.fixMentionsToQuill?n:s,a=this.options.offsetTop,l=this.options.offsetLeft;if(this.options.fixMentionsToQuill){var f=r.right;this.mentionContainer.style.right="".concat(f,"px")}else l+=r.left,l+this.mentionContainer.offsetWidth>document.documentElement.clientWidth&&(l-=l+this.mentionContainer.offsetWidth-document.documentElement.clientWidth);var u=r.top,h=document.documentElement.clientHeight-(r.top+r.height),m=this.mentionContainer.offsetHeight<=h,c=this.mentionContainer.offsetHeight<=u,g;this.options.defaultMenuOrientation==="top"&&c?g="top":this.options.defaultMenuOrientation==="bottom"&&m?g="bottom":g=h>u?"bottom":"top",g==="bottom"?(a=r.top+r.height,m||(this.mentionContainer.style.height=h-3+"px"),this.options.mentionContainerClass.split(" ").forEach(function(b){t.mentionContainer.classList.add("".concat(b,"-bottom")),t.mentionContainer.classList.remove("".concat(b,"-top"))})):(a=r.top-this.mentionContainer.offsetHeight,c||(this.mentionContainer.style.height=u-3+"px",a=3),this.options.mentionContainerClass.split(" ").forEach(function(b){t.mentionContainer.classList.add("".concat(b,"-top")),t.mentionContainer.classList.remove("".concat(b,"-bottom"))})),this.mentionContainer.style.top="".concat(a,"px"),this.mentionContainer.style.left="".concat(l,"px"),this.mentionContainer.style.visibility="visible"}},{key:"getTextBeforeCursor",value:function(){var t=Math.max(0,this.cursorPos-this.options.maxChars),n=this.quill.getText(t,this.cursorPos-t);return n}},{key:"onSomethingChange",value:function(){var t=this,n=this.quill.getSelection();if(n!=null){this.cursorPos=n.index;var o=this.getTextBeforeCursor(),s=Math.max(0,this.cursorPos-this.options.maxChars),r=s?this.quill.getText(s-1,s):"",a=W(o,this.options.mentionDenotationChars,this.options.isolateCharacter,this.options.allowInlineMentionChar),l=a.mentionChar,f=a.mentionCharIndex;if(K(f,o,this.options.isolateCharacter,r)){var u=this.cursorPos-(o.length-f);this.mentionCharPos=u;var h=o.substring(f+l.length);if(h.length>=this.options.minChars&&U(h,this.getAllowedCharsRegex(l))){this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.renderLoading();var m={abandoned:!1};this.existingSourceExecutionToken=m,this.options.source(h,function(c,g){m.abandoned||(t.existingSourceExecutionToken=null,t.renderList(l,c,g))},l)}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}}},{key:"getAllowedCharsRegex",value:function(t){return this.options.allowedChars instanceof RegExp?this.options.allowedChars:this.options.allowedChars(t)}},{key:"onTextChange",value:function(t,n,o){o==="user"&&setTimeout(this.onSomethingChange.bind(this),50)}},{key:"onSelectionChange",value:function(t){t&&t.length===0?this.onSomethingChange():this.hideMentionList()}},{key:"openMenu",value:function(t){var n=this.quill.getSelection(!0);this.quill.insertText(n.index,t),this.quill.blur(),this.quill.focus()}}]),i}();p.register("modules/mention",G); diff --git a/public/js/build/reportDetail.64d7223c.js b/public/js/build/reportDetail.64d7223c.js new file mode 100644 index 000000000..b9d1e705e --- /dev/null +++ b/public/js/build/reportDetail.64d7223c.js @@ -0,0 +1 @@ +import{R as o}from"./ReportDetail.822059d1.js";import{n as p}from"./app.57070a0d.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"electron-report"},[e("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),e("ReportDetail",{attrs:{data:t.detailData}})],1)},m=[];const s={components:{ReportDetail:o},data(){return{detailData:{}}},computed:{reportDetailId(){const{reportDetailId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{reportDetailId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){this.reportDetailId<=0||this.$store.dispatch("call",{url:"report/detail",data:{id:this.reportDetailId}}).then(({data:t})=>{this.detailData=t}).catch(({msg:t})=>{$A.messageError(t)})}}},i={};var l=p(s,a,m,!1,n,"76126c11",null,null);function n(t){for(let r in i)this[r]=i[r]}var U=function(){return l.exports}();export{U as default}; diff --git a/public/js/build/reportDetail.92f46031.js b/public/js/build/reportDetail.92f46031.js deleted file mode 100644 index 923f9520f..000000000 --- a/public/js/build/reportDetail.92f46031.js +++ /dev/null @@ -1 +0,0 @@ -import{R as o}from"./ReportDetail.e430db44.js";import{n as p}from"./app.f8a6fa5e.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"electron-report"},[e("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),e("ReportDetail",{attrs:{data:t.detailData}})],1)},m=[];const s={components:{ReportDetail:o},data(){return{detailData:{}}},computed:{reportDetailId(){const{reportDetailId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{reportDetailId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){this.reportDetailId<=0||this.$store.dispatch("call",{url:"report/detail",data:{id:this.reportDetailId}}).then(({data:t})=>{this.detailData=t}).catch(({msg:t})=>{$A.messageError(t)})}}},i={};var l=p(s,a,m,!1,n,"76126c11",null,null);function n(t){for(let r in i)this[r]=i[r]}var U=function(){return l.exports}();export{U as default}; diff --git a/public/js/build/reportEdit.4f4f4580.js b/public/js/build/reportEdit.63f4e221.js similarity index 50% rename from public/js/build/reportEdit.4f4f4580.js rename to public/js/build/reportEdit.63f4e221.js index 4e9537263..1fc7216b0 100644 --- a/public/js/build/reportEdit.4f4f4580.js +++ b/public/js/build/reportEdit.63f4e221.js @@ -1 +1 @@ -import{R as o}from"./ReportEdit.9f1df008.js";import{n as p}from"./app.f8a6fa5e.js";import"./openpgp_hi.15f91b1d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"electron-report"},[e("PageTitle",{attrs:{title:t.title}}),e("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},m=[];const n={components:{ReportEdit:o},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("sendForwardMain",{channel:"reportSaveSuccess",data:t}),window.close())}}},i={};var a=p(n,s,m,!1,d,"807ce0ea",null,null);function d(t){for(let r in i)this[r]=i[r]}var U=function(){return a.exports}();export{U as default}; +import{R as o}from"./ReportEdit.e54407e0.js";import{n as p}from"./app.57070a0d.js";import"./openpgp_hi.15f91b1d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"electron-report"},[e("PageTitle",{attrs:{title:t.title}}),e("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},m=[];const n={components:{ReportEdit:o},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("sendForwardMain",{channel:"reportSaveSuccess",data:t}),window.close())}}},i={};var a=p(n,s,m,!1,d,"807ce0ea",null,null);function d(t){for(let r in i)this[r]=i[r]}var U=function(){return a.exports}();export{U as default}; diff --git a/public/js/build/resize-observer-polyfill.e0279f38.js b/public/js/build/resize-observer-polyfill.e60103ad.js similarity index 99% rename from public/js/build/resize-observer-polyfill.e0279f38.js rename to public/js/build/resize-observer-polyfill.e60103ad.js index 117f00649..f61ea6d38 100644 --- a/public/js/build/resize-observer-polyfill.e0279f38.js +++ b/public/js/build/resize-observer-polyfill.e60103ad.js @@ -1 +1 @@ -import{g as O}from"./@traptitech.4f5fb92a.js";var _=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),z?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!v||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=x.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),m=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),g=typeof WeakMap!="undefined"?new WeakMap:new _,w=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=T.getInstance(),r=new F(t,n,this);g.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){w.prototype[e]=function(){var t;return(t=g.get(this))[e].apply(t,arguments)}});var H=function(){return typeof f.ResizeObserver!="undefined"?f.ResizeObserver:w}(),k=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),I=O(k);export{I as r}; +import{g as O}from"./@traptitech.363dce05.js";var _=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),z?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!v||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=x.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),m=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),g=typeof WeakMap!="undefined"?new WeakMap:new _,w=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=T.getInstance(),r=new F(t,n,this);g.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){w.prototype[e]=function(){var t;return(t=g.get(this))[e].apply(t,arguments)}});var H=function(){return typeof f.ResizeObserver!="undefined"?f.ResizeObserver:w}(),k=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"})),I=O(k);export{I as r}; diff --git a/public/js/build/sortablejs.4880fe6b.js b/public/js/build/sortablejs.8b819437.js similarity index 99% rename from public/js/build/sortablejs.4880fe6b.js rename to public/js/build/sortablejs.8b819437.js index 06474c1e1..63f84bc3e 100644 --- a/public/js/build/sortablejs.4880fe6b.js +++ b/public/js/build/sortablejs.8b819437.js @@ -1,4 +1,4 @@ -import{g as Ke}from"./@traptitech.4f5fb92a.js";/**! +import{g as Ke}from"./@traptitech.363dce05.js";/**! * Sortable 1.10.2 * @author RubaXa * @author owenm diff --git a/public/js/build/swipe.9a811620.js b/public/js/build/swipe.fbccdf8b.js similarity index 65% rename from public/js/build/swipe.9a811620.js rename to public/js/build/swipe.fbccdf8b.js index d6348b9ff..092e59f45 100644 --- a/public/js/build/swipe.9a811620.js +++ b/public/js/build/swipe.fbccdf8b.js @@ -1 +1 @@ -import{_ as m}from"./openpgp_hi.15f91b1d.js";import{P as l}from"./photoswipe.dc41054b.js";import{n as h}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var d=function(){var r=this,i=r.$createElement,o=r._self._c||i;return o("div")},u=[];const c={props:{className:{type:String,default:()=>"preview-image-swipe-"+Math.round(Math.random()*1e4)},urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0}},data(){return{lightbox:null}},beforeDestroy(){var r;(r=this.lightbox)==null||r.destroy()},watch:{urlList:{handler(r){var n;let i=!1,o=!1;(n=this.lightbox)==null||n.destroy();const a=r.map(t=>{if($A.isJson(t)){if(t.src&&(t.src=$A.thumbRestore(t.src)),parseInt(t.width)>0&&parseInt(t.height)>0)return t;t=t.src}return o=!0,{html:`
    `}});this.lightbox=new l({dataSource:a,escKey:!1,mainClass:this.className,showHideAnimationType:"none",pswpModule:()=>m(()=>import("./photoswipe.dc41054b.js").then(function(t){return t.p}),["js/build/photoswipe.dc41054b.js","js/build/photoswipe.0fb72215.css"])}),this.lightbox.on("change",t=>{!o||$A.loadScript("js/pinch-zoom.umd.min.js").then(g=>{document.querySelector(`.${this.className}`).querySelectorAll(".preview-image-swipe").forEach(e=>{e.getAttribute("data-init-pinch-zoom")!=="init"&&(e.setAttribute("data-init-pinch-zoom","init"),e.querySelector("img").addEventListener("pointermove",p=>{i&&p.stopPropagation()}),new PinchZoom.default(e,{draggableUnzoomed:!1,onDragStart:()=>{i=!0},onDragEnd:()=>{i=!1}}))})})}),this.lightbox.on("close",()=>{this.$emit("on-close")}),this.lightbox.on("destroy",()=>{this.$emit("on-destroy")}),this.lightbox.init(),this.lightbox.loadAndOpen(this.initialIndex)},immediate:!0},initialIndex(r){var i;(i=this.lightbox)==null||i.loadAndOpen(r)}}},s={};var _=h(c,d,u,!1,f,null,null,null);function f(r){for(let i in s)this[i]=s[i]}var rt=function(){return _.exports}();export{rt as default}; +import{_ as m}from"./openpgp_hi.15f91b1d.js";import{P as l}from"./photoswipe.dc41054b.js";import{n as h}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var d=function(){var r=this,i=r.$createElement,o=r._self._c||i;return o("div")},u=[];const c={props:{className:{type:String,default:()=>"preview-image-swipe-"+Math.round(Math.random()*1e4)},urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0}},data(){return{lightbox:null}},beforeDestroy(){var r;(r=this.lightbox)==null||r.destroy()},watch:{urlList:{handler(r){var n;let i=!1,o=!1;(n=this.lightbox)==null||n.destroy();const a=r.map(t=>{if($A.isJson(t)){if(t.src&&(t.src=$A.thumbRestore(t.src)),parseInt(t.width)>0&&parseInt(t.height)>0)return t;t=t.src}return o=!0,{html:`
    `}});this.lightbox=new l({dataSource:a,escKey:!1,mainClass:this.className,showHideAnimationType:"none",pswpModule:()=>m(()=>import("./photoswipe.dc41054b.js").then(function(t){return t.p}),["js/build/photoswipe.dc41054b.js","js/build/photoswipe.0fb72215.css"])}),this.lightbox.on("change",t=>{!o||$A.loadScript("js/pinch-zoom.umd.min.js").then(g=>{document.querySelector(`.${this.className}`).querySelectorAll(".preview-image-swipe").forEach(e=>{e.getAttribute("data-init-pinch-zoom")!=="init"&&(e.setAttribute("data-init-pinch-zoom","init"),e.querySelector("img").addEventListener("pointermove",p=>{i&&p.stopPropagation()}),new PinchZoom.default(e,{draggableUnzoomed:!1,onDragStart:()=>{i=!0},onDragEnd:()=>{i=!1}}))})})}),this.lightbox.on("close",()=>{this.$emit("on-close")}),this.lightbox.on("destroy",()=>{this.$emit("on-destroy")}),this.lightbox.init(),this.lightbox.loadAndOpen(this.initialIndex)},immediate:!0},initialIndex(r){var i;(i=this.lightbox)==null||i.loadAndOpen(r)}}},s={};var _=h(c,d,u,!1,f,null,null,null);function f(r){for(let i in s)this[i]=s[i]}var rt=function(){return _.exports}();export{rt as default}; diff --git a/public/js/build/system.26880585.js b/public/js/build/system.ee7d6f03.js similarity index 96% rename from public/js/build/system.26880585.js rename to public/js/build/system.ee7d6f03.js index 0a19aed33..f5ac00197 100644 --- a/public/js/build/system.26880585.js +++ b/public/js/build/system.ee7d6f03.js @@ -1 +1 @@ -import{n as i}from"./app.f8a6fa5e.js";import{m as _}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{model:t.formDatum,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5E10\u53F7\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[a("RadioGroup",{model:{value:t.formDatum.reg,callback:function(e){t.$set(t.formDatum,"reg",e)},expression:"formDatum.reg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),a("Input",{staticStyle:{width:"200px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(e){t.$set(t.formDatum,"reg_invite",e)},expression:"formDatum.reg_invite"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?a("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[a("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(e){t.$set(t.formDatum,"reg_identity",e)},expression:"formDatum.reg_identity"}},[a("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),a("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),t.formDatum.reg_identity=="temp"?a("Input",{staticStyle:{width:"220px","margin-top":"6px"},attrs:{placeholder:t.$L("\u4E34\u65F6\u5E10\u53F7")},model:{value:t.formDatum.temp_account_alias,callback:function(e){t.$set(t.formDatum,"temp_account_alias",e)},expression:"formDatum.temp_account_alias"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+" "+t._s(t.$L("\u522B\u540D")))])]):t._e(),a("div",{staticClass:"form-tip form-list"},[a("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),a("ol",[a("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))])])])],1):t._e(),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[a("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(e){t.$set(t.formDatum,"login_code",e)},expression:"formDatum.login_code"}},[a("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[a("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(e){t.$set(t.formDatum,"password_policy",e)},expression:"formDatum.password_policy"}},[a("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),a("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u9879\u76EE\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[a("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(e){t.$set(t.formDatum,"project_invite",e)},expression:"formDatum.project_invite"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863\u4EFB\u52A1"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?a("ETooltip",{attrs:{placement:"right",disabled:t.$isEEUiApp||t.windowTouch}},[a("div",{staticClass:"setting-auto-day"},[a("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(e){t.$set(t.formDatum,"archived_day",e)},expression:"formDatum.archived_day"}},[a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1),a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210 (*) \u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day)))])]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u53EF\u89C1\u6027\u9009\u9879"),prop:"taskVisible"}},[a("RadioGroup",{model:{value:t.formDatum.task_visible,callback:function(e){t.$set(t.formDatum,"task_visible",e)},expression:"formDatum.task_visible"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u4FDD\u6301")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u81EA\u52A8")))])],1),t.formDatum.task_visible=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4FDD\u6301\uFF1A\u4EFB\u52A1\u8BE6\u60C5\u9875\u53EF\u89C1\u6027\u9009\u9879\u4FDD\u6301\u663E\u793A\u3002")))]):t.formDatum.task_visible=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u9ED8\u8BA4\u503C\u60C5\u51B5\u4E0B\u663E\u793A\u5728\u5408\u5E76\u9879\u76EE\uFF0C\u8BBE\u7F6E\u65F6\u4FDD\u6301\u663E\u793A\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u9ED8\u8BA4\u65F6\u95F4"),prop:"taskDefaultTime"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.task_default_time,callback:function(e){t.$set(t.formDatum,"task_default_time",e)},expression:"formDatum.task_default_time"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1\u8BA1\u5212\u65F6\u95F4\u9ED8\u8BA4\u65F6\u5206\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u672A\u9886\u4EFB\u52A1\u63D0\u9192"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.unclaimed_task_reminder},on:{"on-change":t.formTaskReminder}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u6BCF\u5929\u6309\u8BBE\u5B9A\u7684\u63D0\u9192\u65F6\u95F4\u5728\u9879\u76EE\u7FA4\u804A\u4E2D\u53D1\u9001\u672A\u9886\u53D6\u4EFB\u52A1\u901A\u77E5\u3002")))]),t.formDatum.unclaimed_task_reminder=="open"?a("TimePicker",{attrs:{format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u63D0\u9192\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.unclaimed_task_reminder_time,callback:function(e){t.$set(t.formDatum,"unclaimed_task_reminder_time",e)},expression:"formDatum.unclaimed_task_reminder_time"}}):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u6D88\u606F\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(e){t.$set(t.formDatum,"all_group_mute",e)},expression:"formDatum.all_group_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(e){t.$set(t.formDatum,"all_group_autoin",e)},expression:"formDatum.all_group_autoin"}},[a("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u79C1\u804A\u7981\u8A00"),prop:"userPrivateChatMute"}},[a("RadioGroup",{model:{value:t.formDatum.user_private_chat_mute,callback:function(e){t.$set(t.formDatum,"user_private_chat_mute",e)},expression:"formDatum.user_private_chat_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_private_chat_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u76F8\u4E92\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t.formDatum.user_private_chat_mute=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u7FA4\u804A\u7981\u8A00"),prop:"userGroupChatMute"}},[a("RadioGroup",{model:{value:t.formDatum.user_group_chat_mute,callback:function(e){t.$set(t.formDatum,"user_group_chat_mute",e)},expression:"formDatum.user_group_chat_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_group_chat_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u5141\u8BB8\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]):t.formDatum.user_group_chat_mute=="close"?a("div",{staticClass:"form-tip form-list"},[a("ol",[a("li",[t._v(t._s(t.$L("\u9664\u7BA1\u7406\u5458\u5916\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]),a("li",[t._v(t._s(t.$L("\u6CE8\u610F\uFF0C\u4EC5\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\uFF0C\u5176\u4ED6\u7C7B\u578B\u7684\u7FA4\u7EC4\u4E0D\u7981\u6B62\uFF0C\u6BD4\u5982\uFF1A\u90E8\u95E8\u7FA4\u804A\u3001\u9879\u76EE\u7FA4\u804A\u7B49\u7CFB\u7EDF\u7FA4\u804A\u3002")))])])]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[a("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(e){t.$set(t.formDatum,"chat_information",e)},expression:"formDatum.chat_information"}},[a("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),a("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u533F\u540D\u6D88\u606F"),prop:"anonMessage"}},[a("RadioGroup",{model:{value:t.formDatum.anon_message,callback:function(e){t.$set(t.formDatum,"anon_message",e)},expression:"formDatum.anon_message"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.anon_message=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u533F\u540D\u53D1\u9001\u6D88\u606F\u7ED9\u5176\u4ED6\u6210\u5458\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\u533F\u540D\u53D1\u9001\u6D88\u606F\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u5230\u7AEF\u52A0\u5BC6"),prop:"e2eMessage"}},[a("RadioGroup",{model:{value:t.formDatum.e2e_message,callback:function(e){t.$set(t.formDatum,"e2e_message",e)},expression:"formDatum.e2e_message"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.e2e_message=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F7F\u7528\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))])],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5176\u4ED6\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u56FE\u7247\u4F18\u5316"),prop:"image_compress"}},[a("RadioGroup",{model:{value:t.formDatum.image_compress,callback:function(e){t.$set(t.formDatum,"image_compress",e)},expression:"formDatum.image_compress"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6570\u7801\u76F8\u673A4M\u7684\u56FE\u7247\uFF0C\u4F18\u5316\u540E\u4EC5\u6709700KB\u5DE6\u53F3\uFF0C\u800C\u4E14\u8089\u773C\u57FA\u672C\u770B\u4E0D\u51FA\u533A\u522B\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u4FDD\u5B58\u7F51\u7EDC\u56FE\u7247"),prop:"image_save_local"}},[a("RadioGroup",{model:{value:t.formDatum.image_save_local,callback:function(e){t.$set(t.formDatum,"image_save_local",e)},expression:"formDatum.image_save_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u662F\u5426\u5C06\u6D88\u606F\u4E2D\u7684\u7F51\u7EDC\u56FE\u7247\u4FDD\u5B58\u5230\u672C\u5730\u670D\u52A1\u5668\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u6587\u4EF6\u4E0A\u4F20\u9650\u5236"),prop:"fileUploadLimit"}},[a("div",{staticStyle:{width:"192px"}},[a("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4\u4E0D\u9650\u5236")},scopedSlots:t._u([{key:"append",fn:function(){return[a("span",[t._v("MB")])]},proxy:!0}]),model:{value:t.formDatum.file_upload_limit,callback:function(e){t.$set(t.formDatum,"file_upload_limit",e)},expression:"formDatum.file_upload_limit"}})],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5305\u542B\u6D88\u606F\u53D1\u9001\u7684\u6587\u4EF6")))])])],1)]),t.$A.isDooServer()?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7279\u6B8A\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u662F\u5426\u542F\u52A8\u9996\u9875"),prop:"startHome"}},[a("RadioGroup",{model:{value:t.formDatum.start_home,callback:function(e){t.$set(t.formDatum,"start_home",e)},expression:"formDatum.start_home"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u7F51\u9875\u7248\u3002")))])],1)],1)]):t._e()]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const d={name:"SystemSetting",data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.formDatum_bak)},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},formTaskReminder(t){this.formDatum={...this.formDatum,unclaimed_task_reminder:t}},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),method:"post",data:this.formDatum}).then(({data:o})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=o,this.formDatum_bak=$A.cloneJSON(this.formDatum),this.$store.state.systemConfig=Object.assign(this.formDatum_bak,{__state:"success"})}).catch(({msg:o})=>{t&&$A.modalError(o)}).finally(o=>{this.loadIng--})}}},m={};var f=i(d,c,p,!1,v,null,null,null);function v(t){for(let o in m)this[o]=m[o]}var $=function(){return f.exports}(),D=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-color color-label-box"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),a("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))])],1),t._l(t.formDatum,function(e,r){return a("Row",{key:r,staticClass:"setting-color"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(s){return t.delDatum(r)}},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.priority,callback:function(s){t.$set(e,"priority",s)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.days,callback:function(s){t.$set(e,"days",s)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:e.color,callback:function(s){t.$set(e,"color",s)},expression:"item.color"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},b=[];const h={name:"SystemTaskPriority",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",priority:1,days:1,color:"#84C56A"}}},mounted(){this.systemSetting()},computed:{..._(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:o})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(o)}).catch(({msg:o})=>{t&&$A.modalError(o)}).finally(o=>{this.loadIng--})}}},l={};var g=i(h,D,b,!1,L,null,null,null);function L(t){for(let o in l)this[o]=l[o]}var y=function(){return g.exports}(),C=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"16"}},[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))])],1),t._l(t.formDatum,function(e,r){return a("Row",{key:r,staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(s){return t.delDatum(r)}},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:e.columns,callback:function(s){t.$set(e,"columns",s)},expression:"item.columns"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},k=[];const x={name:"SystemColumnTemplate",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{..._(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:o})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(o).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:o})=>{t&&$A.modalError(o)}).finally(o=>{this.loadIng--})}}},n={};var R=i(x,C,k,!1,I,null,null,null);function I(t){for(let o in n)this[o]=n[o]}var S=function(){return R.exports}(),F=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(e){t.tabAction=e},expression:"tabAction"}},[a("TabPane",{attrs:{label:t.$L("\u7CFB\u7EDF\u8BBE\u7F6E"),name:"setting"}},[a("SystemSetting")],1),a("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7"),name:"taskPriority"}},[a("SystemTaskPriority")],1),a("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F"),name:"columnTemplate"}},[a("SystemColumnTemplate")],1)],1)],1)},A=[];const T={components:{SystemColumnTemplate:S,SystemTaskPriority:y,SystemSetting:$},data(){return{tabAction:"setting"}}},u={};var w=i(T,F,A,!1,G,null,null,null);function G(t){for(let o in u)this[o]=u[o]}var $t=function(){return w.exports}();export{$t as default}; +import{n as i}from"./app.57070a0d.js";import{m as _}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{model:t.formDatum,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5E10\u53F7\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[a("RadioGroup",{model:{value:t.formDatum.reg,callback:function(e){t.$set(t.formDatum,"reg",e)},expression:"formDatum.reg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),a("Input",{staticStyle:{width:"200px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(e){t.$set(t.formDatum,"reg_invite",e)},expression:"formDatum.reg_invite"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?a("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[a("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(e){t.$set(t.formDatum,"reg_identity",e)},expression:"formDatum.reg_identity"}},[a("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),a("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),t.formDatum.reg_identity=="temp"?a("Input",{staticStyle:{width:"220px","margin-top":"6px"},attrs:{placeholder:t.$L("\u4E34\u65F6\u5E10\u53F7")},model:{value:t.formDatum.temp_account_alias,callback:function(e){t.$set(t.formDatum,"temp_account_alias",e)},expression:"formDatum.temp_account_alias"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+" "+t._s(t.$L("\u522B\u540D")))])]):t._e(),a("div",{staticClass:"form-tip form-list"},[a("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),a("ol",[a("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))])])])],1):t._e(),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[a("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(e){t.$set(t.formDatum,"login_code",e)},expression:"formDatum.login_code"}},[a("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[a("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(e){t.$set(t.formDatum,"password_policy",e)},expression:"formDatum.password_policy"}},[a("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),a("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u9879\u76EE\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[a("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(e){t.$set(t.formDatum,"project_invite",e)},expression:"formDatum.project_invite"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863\u4EFB\u52A1"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?a("ETooltip",{attrs:{placement:"right",disabled:t.$isEEUiApp||t.windowTouch}},[a("div",{staticClass:"setting-auto-day"},[a("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(e){t.$set(t.formDatum,"archived_day",e)},expression:"formDatum.archived_day"}},[a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1),a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210 (*) \u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day)))])]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u53EF\u89C1\u6027\u9009\u9879"),prop:"taskVisible"}},[a("RadioGroup",{model:{value:t.formDatum.task_visible,callback:function(e){t.$set(t.formDatum,"task_visible",e)},expression:"formDatum.task_visible"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u4FDD\u6301")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u81EA\u52A8")))])],1),t.formDatum.task_visible=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4FDD\u6301\uFF1A\u4EFB\u52A1\u8BE6\u60C5\u9875\u53EF\u89C1\u6027\u9009\u9879\u4FDD\u6301\u663E\u793A\u3002")))]):t.formDatum.task_visible=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u9ED8\u8BA4\u503C\u60C5\u51B5\u4E0B\u663E\u793A\u5728\u5408\u5E76\u9879\u76EE\uFF0C\u8BBE\u7F6E\u65F6\u4FDD\u6301\u663E\u793A\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u9ED8\u8BA4\u65F6\u95F4"),prop:"taskDefaultTime"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.task_default_time,callback:function(e){t.$set(t.formDatum,"task_default_time",e)},expression:"formDatum.task_default_time"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1\u8BA1\u5212\u65F6\u95F4\u9ED8\u8BA4\u65F6\u5206\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u672A\u9886\u4EFB\u52A1\u63D0\u9192"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.unclaimed_task_reminder},on:{"on-change":t.formTaskReminder}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u6BCF\u5929\u6309\u8BBE\u5B9A\u7684\u63D0\u9192\u65F6\u95F4\u5728\u9879\u76EE\u7FA4\u804A\u4E2D\u53D1\u9001\u672A\u9886\u53D6\u4EFB\u52A1\u901A\u77E5\u3002")))]),t.formDatum.unclaimed_task_reminder=="open"?a("TimePicker",{attrs:{format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u63D0\u9192\u65F6\u95F4"),transfer:""},model:{value:t.formDatum.unclaimed_task_reminder_time,callback:function(e){t.$set(t.formDatum,"unclaimed_task_reminder_time",e)},expression:"formDatum.unclaimed_task_reminder_time"}}):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u6D88\u606F\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(e){t.$set(t.formDatum,"all_group_mute",e)},expression:"formDatum.all_group_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u5728\u5168\u5458\u7FA4\u7EC4\u53D1\u8A00\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(e){t.$set(t.formDatum,"all_group_autoin",e)},expression:"formDatum.all_group_autoin"}},[a("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u79C1\u804A\u7981\u8A00"),prop:"userPrivateChatMute"}},[a("RadioGroup",{model:{value:t.formDatum.user_private_chat_mute,callback:function(e){t.$set(t.formDatum,"user_private_chat_mute",e)},expression:"formDatum.user_private_chat_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_private_chat_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u76F8\u4E92\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t.formDatum.user_private_chat_mute=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u8A00\uFF1A\u9664\u7BA1\u7406\u5458\u5916\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8D77\u4E2A\u4EBA\u804A\u5929\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u7FA4\u804A\u7981\u8A00"),prop:"userGroupChatMute"}},[a("RadioGroup",{model:{value:t.formDatum.user_group_chat_mute,callback:function(e){t.$set(t.formDatum,"user_group_chat_mute",e)},expression:"formDatum.user_group_chat_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u8A00")))])],1),t.formDatum.user_group_chat_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u5141\u8BB8\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]):t.formDatum.user_group_chat_mute=="close"?a("div",{staticClass:"form-tip form-list"},[a("ol",[a("li",[t._v(t._s(t.$L("\u9664\u7BA1\u7406\u5458\u5916\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\u804A\u5929\u53D1\u8A00\u3002")))]),a("li",[t._v(t._s(t.$L("\u6CE8\u610F\uFF0C\u4EC5\u7981\u6B62\u4E2A\u4EBA\u7FA4\u7EC4\uFF0C\u5176\u4ED6\u7C7B\u578B\u7684\u7FA4\u7EC4\u4E0D\u7981\u6B62\uFF0C\u6BD4\u5982\uFF1A\u90E8\u95E8\u7FA4\u804A\u3001\u9879\u76EE\u7FA4\u804A\u7B49\u7CFB\u7EDF\u7FA4\u804A\u3002")))])])]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[a("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(e){t.$set(t.formDatum,"chat_information",e)},expression:"formDatum.chat_information"}},[a("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),a("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u533F\u540D\u6D88\u606F"),prop:"anonMessage"}},[a("RadioGroup",{model:{value:t.formDatum.anon_message,callback:function(e){t.$set(t.formDatum,"anon_message",e)},expression:"formDatum.anon_message"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.anon_message=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u533F\u540D\u53D1\u9001\u6D88\u606F\u7ED9\u5176\u4ED6\u6210\u5458\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\u533F\u540D\u53D1\u9001\u6D88\u606F\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u5230\u7AEF\u52A0\u5BC6"),prop:"e2eMessage"}},[a("RadioGroup",{model:{value:t.formDatum.e2e_message,callback:function(e){t.$set(t.formDatum,"e2e_message",e)},expression:"formDatum.e2e_message"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.e2e_message=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F7F\u7528\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u7AEF\u5230\u7AEF\u52A0\u5BC6\u4F20\u8F93\u6570\u636E\u3002")))])],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5176\u4ED6\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u56FE\u7247\u4F18\u5316"),prop:"image_compress"}},[a("RadioGroup",{model:{value:t.formDatum.image_compress,callback:function(e){t.$set(t.formDatum,"image_compress",e)},expression:"formDatum.image_compress"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6570\u7801\u76F8\u673A4M\u7684\u56FE\u7247\uFF0C\u4F18\u5316\u540E\u4EC5\u6709700KB\u5DE6\u53F3\uFF0C\u800C\u4E14\u8089\u773C\u57FA\u672C\u770B\u4E0D\u51FA\u533A\u522B\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u4FDD\u5B58\u7F51\u7EDC\u56FE\u7247"),prop:"image_save_local"}},[a("RadioGroup",{model:{value:t.formDatum.image_save_local,callback:function(e){t.$set(t.formDatum,"image_save_local",e)},expression:"formDatum.image_save_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u662F\u5426\u5C06\u6D88\u606F\u4E2D\u7684\u7F51\u7EDC\u56FE\u7247\u4FDD\u5B58\u5230\u672C\u5730\u670D\u52A1\u5668\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u6587\u4EF6\u4E0A\u4F20\u9650\u5236"),prop:"fileUploadLimit"}},[a("div",{staticStyle:{width:"192px"}},[a("Input",{attrs:{type:"number",number:"",placeholder:t.$L("\u9ED8\u8BA4\u4E0D\u9650\u5236")},scopedSlots:t._u([{key:"append",fn:function(){return[a("span",[t._v("MB")])]},proxy:!0}]),model:{value:t.formDatum.file_upload_limit,callback:function(e){t.$set(t.formDatum,"file_upload_limit",e)},expression:"formDatum.file_upload_limit"}})],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5305\u542B\u6D88\u606F\u53D1\u9001\u7684\u6587\u4EF6")))])])],1)]),t.$A.isDooServer()?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7279\u6B8A\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u662F\u5426\u542F\u52A8\u9996\u9875"),prop:"startHome"}},[a("RadioGroup",{model:{value:t.formDatum.start_home,callback:function(e){t.$set(t.formDatum,"start_home",e)},expression:"formDatum.start_home"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u7F51\u9875\u7248\u3002")))])],1)],1)]):t._e()]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},p=[];const d={name:"SystemSetting",data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.formDatum_bak)},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},formTaskReminder(t){this.formDatum={...this.formDatum,unclaimed_task_reminder:t}},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),method:"post",data:this.formDatum}).then(({data:o})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=o,this.formDatum_bak=$A.cloneJSON(this.formDatum),this.$store.state.systemConfig=Object.assign(this.formDatum_bak,{__state:"success"})}).catch(({msg:o})=>{t&&$A.modalError(o)}).finally(o=>{this.loadIng--})}}},m={};var f=i(d,c,p,!1,v,null,null,null);function v(t){for(let o in m)this[o]=m[o]}var $=function(){return f.exports}(),D=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-color color-label-box"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),a("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))])],1),t._l(t.formDatum,function(e,r){return a("Row",{key:r,staticClass:"setting-color"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(s){return t.delDatum(r)}},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.priority,callback:function(s){t.$set(e,"priority",s)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.days,callback:function(s){t.$set(e,"days",s)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:e.color,callback:function(s){t.$set(e,"color",s)},expression:"item.color"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},b=[];const h={name:"SystemTaskPriority",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",priority:1,days:1,color:"#84C56A"}}},mounted(){this.systemSetting()},computed:{..._(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:o})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(o)}).catch(({msg:o})=>{t&&$A.modalError(o)}).finally(o=>{this.loadIng--})}}},l={};var g=i(h,D,b,!1,L,null,null,null);function L(t){for(let o in l)this[o]=l[o]}var y=function(){return g.exports}(),C=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"16"}},[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))])],1),t._l(t.formDatum,function(e,r){return a("Row",{key:r,staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(s){return t.delDatum(r)}},model:{value:e.name,callback:function(s){t.$set(e,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:e.columns,callback:function(s){t.$set(e,"columns",s)},expression:"item.columns"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},k=[];const x={name:"SystemColumnTemplate",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{..._(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:o})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(o).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:o})=>{t&&$A.modalError(o)}).finally(o=>{this.loadIng--})}}},n={};var R=i(x,C,k,!1,I,null,null,null);function I(t){for(let o in n)this[o]=n[o]}var S=function(){return R.exports}(),F=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(e){t.tabAction=e},expression:"tabAction"}},[a("TabPane",{attrs:{label:t.$L("\u7CFB\u7EDF\u8BBE\u7F6E"),name:"setting"}},[a("SystemSetting")],1),a("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7"),name:"taskPriority"}},[a("SystemTaskPriority")],1),a("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F"),name:"columnTemplate"}},[a("SystemColumnTemplate")],1)],1)],1)},A=[];const T={components:{SystemColumnTemplate:S,SystemTaskPriority:y,SystemSetting:$},data(){return{tabAction:"setting"}}},u={};var w=i(T,F,A,!1,G,null,null,null);function G(t){for(let o in u)this[o]=u[o]}var $t=function(){return w.exports}();export{$t as default}; diff --git a/public/js/build/task.337ddce0.js b/public/js/build/task.337ddce0.js deleted file mode 100644 index 332af75b9..000000000 --- a/public/js/build/task.337ddce0.js +++ /dev/null @@ -1 +0,0 @@ -import{b as i}from"./TaskDetail.2665236e.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.f8a6fa5e.js";import"./ProjectLog.297ef125.js";import"./DialogWrapper.5184c28a.js";import"./le5le-store.bd86c9e9.js";import"./longpress.5305f240.js";import"./index.04b74879.js";import"./quill-hi.a45c8e94.js";import"./quill-delta.a505f2bf.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.4c06f0f7.js";import"./lodash.isequal.d456a716.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f26fa3cb.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.23b1f28e.js";import"./vue.da9c4dc7.js";import"./ImgUpload.d82fa303.js";import"./view-design-hi.afe77d1e.js";import"./details.ef31cd47.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.059db614.js";import"./TEditor.0841978b.js";import"./tinymce.286c5863.js";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-task"},[r("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?r("Loading"):r("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},p=[];const m={components:{TaskDetail:i},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...s(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority").catch(()=>{})}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},o={};var c=a(m,n,p,!1,d,"7af6ba13",null,null);function d(t){for(let e in o)this[e]=o[e]}var kt=function(){return c.exports}();export{kt as default}; diff --git a/public/js/build/task.b2ee03b1.js b/public/js/build/task.b2ee03b1.js new file mode 100644 index 000000000..37b264727 --- /dev/null +++ b/public/js/build/task.b2ee03b1.js @@ -0,0 +1 @@ +import{b as i}from"./TaskDetail.1b7e7bb8.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.57070a0d.js";import"./ProjectLog.d2e94cb9.js";import"./DialogWrapper.4f742dbc.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.92bfd6b8.js";import"./quill-hi.c85eceed.js";import"./quill-delta.72524c38.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.91f4d524.js";import"./lodash.isequal.0dd437dc.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.beaa1617.js";import"./vue-jsonp.be27271b.js";import"./vue-virtual-scroll-list-hi.f3f58d09.js";import"./vue.eaf71fac.js";import"./ImgUpload.b233effb.js";import"./view-design-hi.76cbd75d.js";import"./details.663d818a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./axios.6ec123f8.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.e9c85d1f.js";import"./TEditor.10324bed.js";import"./tinymce.e0553569.js";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-task"},[r("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?r("Loading"):r("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},p=[];const m={components:{TaskDetail:i},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...s(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority").catch(()=>{})}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},o={};var c=a(m,n,p,!1,d,"7af6ba13",null,null);function d(t){for(let e in o)this[e]=o[e]}var ht=function(){return c.exports}();export{ht as default}; diff --git a/public/js/build/taskContent.eff4c18a.js b/public/js/build/taskContent.f83848a2.js similarity index 62% rename from public/js/build/taskContent.eff4c18a.js rename to public/js/build/taskContent.f83848a2.js index b4671dbbf..dfa94afe2 100644 --- a/public/js/build/taskContent.eff4c18a.js +++ b/public/js/build/taskContent.f83848a2.js @@ -1 +1 @@ -import e from"./TEditor.0841978b.js";import{n as s}from"./app.f8a6fa5e.js";import"./tinymce.286c5863.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./ImgUpload.d82fa303.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"file-preview"},[i("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?i("Loading"):t.info?i("div",{staticClass:"file-preview"},[i("div",{staticClass:"edit-header"},[i("div",{staticClass:"header-title"},[i("div",{staticClass:"title-name"},[t._v(t._s(t.pageName))]),i("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),i("div",{staticClass:"refresh"},[i("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getInfo}})],1)],1)]),i("div",{staticClass:"content-body"},[i("TEditor",{attrs:{value:t.info.content,height:"100%",readOnly:""}})],1)]):t._e()],1)},n=[];const m={components:{TEditor:e},data(){return{loadIng:0,info:null}},mounted(){},computed:{taskId(){return this.$route.params?$A.runNum(this.$route.params.taskId):0},historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.info?`${this.info.name} [${this.info.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"project/task/content",data:{task_id:this.taskId,history_id:this.historyId}}).then(({data:t})=>{this.info=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var p=s(m,a,n,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var W=function(){return p.exports}();export{W as default}; +import e from"./TEditor.10324bed.js";import{n as s}from"./app.57070a0d.js";import"./tinymce.e0553569.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./ImgUpload.b233effb.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,r=t.$createElement,i=t._self._c||r;return i("div",{staticClass:"file-preview"},[i("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?i("Loading"):t.info?i("div",{staticClass:"file-preview"},[i("div",{staticClass:"edit-header"},[i("div",{staticClass:"header-title"},[i("div",{staticClass:"title-name"},[t._v(t._s(t.pageName))]),i("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),i("div",{staticClass:"refresh"},[i("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getInfo}})],1)],1)]),i("div",{staticClass:"content-body"},[i("TEditor",{attrs:{value:t.info.content,height:"100%",readOnly:""}})],1)]):t._e()],1)},n=[];const m={components:{TEditor:e},data(){return{loadIng:0,info:null}},mounted(){},computed:{taskId(){return this.$route.params?$A.runNum(this.$route.params.taskId):0},historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.info?`${this.info.name} [${this.info.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"project/task/content",data:{task_id:this.taskId,history_id:this.historyId}}).then(({data:t})=>{this.info=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var p=s(m,a,n,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var W=function(){return p.exports}();export{W as default}; diff --git a/public/js/build/theme.d9a92b2d.js b/public/js/build/theme.ce4f7a83.js similarity index 69% rename from public/js/build/theme.d9a92b2d.js rename to public/js/build/theme.ce4f7a83.js index 91f03bf65..22db5e549 100644 --- a/public/js/build/theme.d9a92b2d.js +++ b/public/js/build/theme.ce4f7a83.js @@ -1 +1 @@ -import{m as a}from"./vuex.cc7cb26e.js";import{n as s}from"./app.f8a6fa5e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.7b5830c7.js";import"./@traptitech.4f5fb92a.js";import"./katex.8068bc0b.js";import"./localforage.dae0aa5a.js";import"./markdown-it.34483999.js";import"./entities.797c3e49.js";import"./uc.micro.3245408e.js";import"./mdurl.ddaf799d.js";import"./linkify-it.43898b73.js";import"./punycode.32c740ed.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.da9c4dc7.js";import"./axios.6ec123f8.js";import"./le5le-store.bd86c9e9.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.facc05aa.js";import"./clipboard.907979fd.js";import"./view-design-hi.afe77d1e.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.aaa0fd6a.js";import"./sortablejs.4880fe6b.js";import"./vue-resize-observer.2ab4768b.js";import"./element-sea.74fd8f4e.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e0279f38.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.e0445182.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"setting-item submit"},[o("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[o("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[o("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(r){t.$set(t.formData,"theme",r)},expression:"formData.theme"}},t._l(t.themeList,function(r,m){return o("Option",{key:m,attrs:{value:r.value}},[t._v(t._s(t.$L(r.name)))])}),1)],1)],1),o("div",{staticClass:"setting-footer"},[o("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),o("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const p={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...a(["themeConf","themeList","formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"theme",this.themeConf),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(e=>{e&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},i={};var f=s(p,n,l,!1,c,null,null,null);function c(t){for(let e in i)this[e]=i[e]}var U=function(){return f.exports}();export{U as default}; +import{m as a}from"./vuex.cc7cb26e.js";import{n as s}from"./app.57070a0d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.accd1716.js";import"./@traptitech.363dce05.js";import"./katex.0b94f27c.js";import"./localforage.879ac172.js";import"./markdown-it.f3afa976.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.87a5269f.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./vue.eaf71fac.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.4402036c.js";import"./clipboard.d74ec60d.js";import"./view-design-hi.76cbd75d.js";import"./default-passive-events.a3d698c9.js";import"./vuedraggable.c8fae132.js";import"./sortablejs.8b819437.js";import"./vue-resize-observer.5fb00380.js";import"./element-sea.b954f5d6.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.e60103ad.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.289edf0d.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"setting-item submit"},[o("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[o("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[o("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(r){t.$set(t.formData,"theme",r)},expression:"formData.theme"}},t._l(t.themeList,function(r,m){return o("Option",{key:m,attrs:{value:r.value}},[t._v(t._s(t.$L(r.name)))])}),1)],1)],1),o("div",{staticClass:"setting-footer"},[o("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),o("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const p={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...a(["themeConf","themeList","formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"theme",this.themeConf),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(e=>{e&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},i={};var f=s(p,n,l,!1,c,null,null,null);function c(t){for(let e in i)this[e]=i[e]}var U=function(){return f.exports}();export{U as default}; diff --git a/public/js/build/tinymce.286c5863.js b/public/js/build/tinymce.e0553569.js similarity index 99% rename from public/js/build/tinymce.286c5863.js rename to public/js/build/tinymce.e0553569.js index 99491bd93..7000b3272 100644 --- a/public/js/build/tinymce.286c5863.js +++ b/public/js/build/tinymce.e0553569.js @@ -1,4 +1,4 @@ -import{c as PC}from"./@traptitech.4f5fb92a.js";var IC={exports:{}};(function(LC){(function(){var Lc=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},$C=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},FC=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},MC=function(e,t){return Ma(function(n,r){return e.eq(t(n),t(r))})},Ma=function(e){return{eq:e}},UC=Ma(function(e,t){return e===t}),zC=UC,$c=function(e){return Ma(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,a=0;a-1},dt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},qc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},h0=function(e,t){return pr(e,t)?p0(e,t.length):e},ut=function(e,t){return e.indexOf(t)!==-1},pr=function(e,t){return g0(e,t,0)},tf=function(e){return function(t){return t.replace(e,"")}},nf=tf(/^\s+|\s+$/g),b0=tf(/^\s+/g),tv=tf(/\s+$/g),Mi=function(e){return e.length>0},nv=function(e){return!Mi(e)},rf=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Rn=function(e){return function(t){return ut(t,e)}},y0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rf],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[rf,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Rn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Rn("firefox")},{name:"Safari",versionRegexes:[rf,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],C0=[{name:"Windows",search:Rn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Rn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Rn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Rn("linux"),versionRegexes:[]},{name:"Solaris",search:Rn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Rn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Rn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],rv={browsers:X(y0),oses:X(C0)},av="Edge",iv="Chrome",ov="IE",uv="Opera",fv="Firefox",sv="Safari",w0=function(){return lv({current:void 0,version:Wa.unknown()})},lv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(av),isChrome:r(iv),isIE:r(ov),isOpera:r(uv),isFirefox:r(fv),isSafari:r(sv)}},cv={unknown:w0,nu:lv,edge:X(av),chrome:X(iv),ie:X(ov),opera:X(uv),firefox:X(fv),safari:X(sv)},vv="Windows",dv="iOS",mv="Android",pv="Linux",gv="OSX",hv="Solaris",bv="FreeBSD",yv="ChromeOS",E0=function(){return Cv({current:void 0,version:Wa.unknown()})},Cv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(vv),isiOS:r(dv),isAndroid:r(mv),isOSX:r(gv),isLinux:r(pv),isSolaris:r(hv),isFreeBSD:r(bv),isChromeOS:r(yv)}},wv={unknown:E0,nu:Cv,windows:X(vv),ios:X(dv),android:X(mv),linux:X(pv),osx:X(gv),solaris:X(hv),freebsd:X(bv),chromeos:X(yv)},S0=function(e,t,n){var r=rv.browsers(),a=rv.oses(),i=t.bind(function(f){return v0(r,f)}).orThunk(function(){return d0(r,e)}).fold(cv.unknown,cv.nu),o=m0(a,e).fold(wv.unknown,wv.nu),u=f0(o,i,e,n);return{browser:i,os:o,deviceType:u}},k0={detect:S0},x0=function(e){return window.matchMedia(e).matches},N0=Ju(function(){return k0.detect(navigator.userAgent,b.from(navigator.userAgentData),x0)}),Mt=function(){return N0()},Ev=navigator.userAgent,af=Mt(),mt=af.browser,Rt=af.os,ln=af.deviceType,T0=/WebKit/.test(Ev)&&!mt.isEdge(),A0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,R0=Ev.indexOf("Windows Phone")!==-1,ue={opera:mt.isOpera(),webkit:T0,ie:mt.isIE()||mt.isEdge()?mt.version.major:!1,gecko:mt.isFirefox(),mac:Rt.isOSX()||Rt.isiOS(),iOS:ln.isiPad()||ln.isiPhone(),android:Rt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:mt.isIE()?document.documentMode||7:10,fileApi:A0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!mt.isIE(),desktop:ln.isDesktop(),windowsPhone:R0,browser:{current:mt.current,version:mt.version,isChrome:mt.isChrome,isEdge:mt.isEdge,isFirefox:mt.isFirefox,isIE:mt.isIE,isOpera:mt.isOpera,isSafari:mt.isSafari},os:{current:Rt.current,version:Rt.version,isAndroid:Rt.isAndroid,isChromeOS:Rt.isChromeOS,isFreeBSD:Rt.isFreeBSD,isiOS:Rt.isiOS,isLinux:Rt.isLinux,isOSX:Rt.isOSX,isSolaris:Rt.isSolaris,isWindows:Rt.isWindows},deviceType:{isDesktop:ln.isDesktop,isiPad:ln.isiPad,isiPhone:ln.isiPhone,isPhone:ln.isPhone,isTablet:ln.isTablet,isTouch:ln.isTouch,isWebView:ln.isWebView}},B0=/^\s*|\s*$/g,Sv=function(e){return e==null?"":(""+e).replace(B0,"")},kv=function(e,t){return t?t==="array"&&Zu(e)?!0:typeof e===t:e!==void 0},D0=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},_0=ve,O0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var f=e[3].match(/(^|\.)(\w+)$/i)[2],s=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[f]){if(e[2]==="static"){s[f]=t,this.onCreate&&this.onCreate(e[2],e[3],s[f]);return}t[f]||(t[f]=function(){},u=1),s[f]=t[f],r.extend(s[f].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=s[f],u?s[f]=function(){return a[i].apply(this,arguments)}:s[f]=function(){return this.parent=a[i],o.apply(this,arguments)},s[f].prototype[f]=s[f],r.each(a,function(l,c){s[f].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?s[f].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==f&&(s[f].prototype[c]=l)})),r.each(t.static,function(l,c){s[f][c]=l})}},P0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return ja(r.childNodes[0])},U0=function(e,t){var n=t||document,r=n.createElement(e);return ja(r)},z0=function(e,t){var n=t||document,r=n.createTextNode(e);return ja(r)},ja=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},H0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(ja)},k={fromHtml:M0,fromTag:U0,fromText:z0,fromDom:ja,fromPoint:H0},Nv=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},V0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},q0=function(e,t){return V0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},W0=8,Tv=9,Av=11,of=1,j0=3,Xr=function(e,t){var n=e.dom;if(n.nodeType!==of)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")},Rv=function(e){return e.nodeType!==of&&e.nodeType!==Tv&&e.nodeType!==Av||e.childElementCount===0},K0=function(e,t){var n=t===void 0?document:t.dom;return Rv(n)?[]:Te(n.querySelectorAll(e),k.fromDom)},G0=function(e,t){var n=t===void 0?document:t.dom;return Rv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Se=function(e,t){return e.dom===t.dom},X0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},Y0=function(e,t){return q0(e.dom,t.dom)},zn=function(e,t){return Mt().browser.isIE()?Y0(e,t):X0(e,t)};typeof window!="undefined"||Function("return this;")();var He=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Bv=function(e){return e.dom.nodeType},Ui=function(e){return function(t){return Bv(t)===e}},Z0=function(e){return Bv(e)===W0||He(e)==="#comment"},Kt=Ui(of),Ut=Ui(j0),Q0=Ui(Tv),J0=Ui(Av),ew=function(e){return function(t){return Kt(t)&&He(t)===e}},Dv=function(e){return k.fromDom(e.dom.ownerDocument)},Yr=function(e){return Q0(e)?e:Dv(e)},tw=function(e){return k.fromDom(Yr(e).dom.documentElement)},_v=function(e){return k.fromDom(Yr(e).dom.defaultView)},Gt=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},nw=function(e,t){for(var n=Re(t)?t:xe,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},rw=function(e){var t=function(n){return ce(n,function(r){return!Se(e,r)})};return Gt(e).map(zt).map(t).getOr([])},gr=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},Ka=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Ov=function(e){return $i(Nv(e,gr))},Pv=function(e){return Nv(e,Ka)},zt=function(e){return Te(e.dom.childNodes,k.fromDom)},zi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},Iv=function(e){return zi(e,0)},uf=function(e){return zi(e,e.dom.childNodes.length-1)},Lv=function(e){return e.dom.childNodes.length},aw=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},$v=function(e){return J0(e)&&Ee(e.dom.host)},Fv=Re(Element.prototype.attachShadow)&&Re(Node.prototype.getRootNode),iw=X(Fv),hr=Fv?function(e){return k.fromDom(e.dom.getRootNode())}:Yr,ff=function(e){return $v(e)?e:aw(Yr(e))},ow=function(e){var t=hr(e);return $v(t)?b.some(t):b.none()},uw=function(e){return k.fromDom(e.dom.host)},fw=function(e){if(iw()&&Ee(e.target)){var t=k.fromDom(e.target);if(Kt(t)&&sw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return At(n)}}return b.from(e.target)},sw=function(e){return Ee(e.dom.shadowRoot)},Xt=function(e,t){var n=Gt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},Ga=function(e,t){var n=Ka(e);n.fold(function(){var r=Gt(e);r.each(function(a){Je(a,t)})},function(r){Xt(r,t)})},Mv=function(e,t){var n=Iv(e);n.fold(function(){Je(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},Je=function(e,t){e.dom.appendChild(t.dom)},lw=function(e,t){Xt(e,t),Je(t,e)},cw=function(e,t){K(t,function(n){Xt(e,n)})},Hi=function(e,t){K(t,function(n){Je(e,n)})},sf=function(e){e.dom.textContent="",K(zt(e),function(t){Ve(t)})},Ve=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},Uv=function(e){var t=zt(e);t.length>0&&cw(e,t),Ve(e)},Xa=function(e){var t=Ut(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return ow(k.fromDom(t)).fold(function(){return n.body.contains(t)},zc(Xa,uw))},zv=function(e,t){var n=function(r,a){return zv(e+r,t+a)};return{left:e,top:t,translate:n}},Zr=zv,vw=function(e){var t=e.getBoundingClientRect();return Zr(t.left,t.top)},Vi=function(e,t){return e!==void 0?e:t!==void 0?t:0},dw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return Zr(n.offsetLeft,n.offsetTop);var i=Vi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Vi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Vi(a.clientTop,n.clientTop),f=Vi(a.clientLeft,n.clientLeft);return lf(e).translate(o-f,i-u)},lf=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Zr(r.offsetLeft,r.offsetTop):Xa(e)?vw(t):Zr(0,0)},cf=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 Zr(n,r)},Hv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Vv=function(e,t){var n=Mt().browser.isSafari();n&&Re(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},mw=function(e){var t=e===void 0?window:e;return Mt().browser.isFirefox()?b.none():b.from(t.visualViewport)},qv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Wv=function(e){var t=e===void 0?window:e,n=t.document,r=cf(k.fromDom(n));return mw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return qv(r.left,r.top,i,o)},function(a){return qv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},Ya=function(e){return function(t){return!!t&&t.nodeType===e}},qi=function(e){return!!e&&!Object.getPrototypeOf(e)},re=Ya(1),Ht=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Ye(t,r)}return!1}},Wi=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(re(r))for(var a=0;a0})},Qv=function(e){var t={},n=e.dom;if(Gi(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):K(e,function(o,u){o.get(i(u))})})},Iw=function(e){return Pw(e,rd.nu)},ta=function(e){var t=function(c){return ta(e)},n=function(c){return ta(e)},r=function(c){return ta(c(e))},a=function(c){return ta(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},f=function(c){return c(e)},s=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:Ue,isError:xe,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:f,forall:s,toOptional:l}},Za=function(e){var t=function(s){return s()},n=function(){return WC(String(e))()},r=wt,a=function(s){return s()},i=function(s){return Za(e)},o=function(s){return Za(s(e))},u=function(s){return Za(e)},f=function(s,l){return s(e)};return{isValue:xe,isError:Ue,getOr:wt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:f,map:i,mapError:o,each:se,bind:u,exists:xe,forall:Ue,toOptional:b.none}},Lw=function(e,t){return e.fold(function(){return Za(t)},ta)},ad={value:ta,error:Za,fromOption:Lw},$w=function(e){if(!Ft(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 K(e,function(r,a){var i=jr(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(!Ft(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var f=[],s=0;s-1},dt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},qc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},h0=function(e,t){return pr(e,t)?p0(e,t.length):e},ut=function(e,t){return e.indexOf(t)!==-1},pr=function(e,t){return g0(e,t,0)},tf=function(e){return function(t){return t.replace(e,"")}},nf=tf(/^\s+|\s+$/g),b0=tf(/^\s+/g),tv=tf(/\s+$/g),Mi=function(e){return e.length>0},nv=function(e){return!Mi(e)},rf=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Rn=function(e){return function(t){return ut(t,e)}},y0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rf],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[rf,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Rn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Rn("firefox")},{name:"Safari",versionRegexes:[rf,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],C0=[{name:"Windows",search:Rn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Rn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Rn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Rn("linux"),versionRegexes:[]},{name:"Solaris",search:Rn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Rn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Rn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],rv={browsers:X(y0),oses:X(C0)},av="Edge",iv="Chrome",ov="IE",uv="Opera",fv="Firefox",sv="Safari",w0=function(){return lv({current:void 0,version:Wa.unknown()})},lv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(av),isChrome:r(iv),isIE:r(ov),isOpera:r(uv),isFirefox:r(fv),isSafari:r(sv)}},cv={unknown:w0,nu:lv,edge:X(av),chrome:X(iv),ie:X(ov),opera:X(uv),firefox:X(fv),safari:X(sv)},vv="Windows",dv="iOS",mv="Android",pv="Linux",gv="OSX",hv="Solaris",bv="FreeBSD",yv="ChromeOS",E0=function(){return Cv({current:void 0,version:Wa.unknown()})},Cv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(vv),isiOS:r(dv),isAndroid:r(mv),isOSX:r(gv),isLinux:r(pv),isSolaris:r(hv),isFreeBSD:r(bv),isChromeOS:r(yv)}},wv={unknown:E0,nu:Cv,windows:X(vv),ios:X(dv),android:X(mv),linux:X(pv),osx:X(gv),solaris:X(hv),freebsd:X(bv),chromeos:X(yv)},S0=function(e,t,n){var r=rv.browsers(),a=rv.oses(),i=t.bind(function(f){return v0(r,f)}).orThunk(function(){return d0(r,e)}).fold(cv.unknown,cv.nu),o=m0(a,e).fold(wv.unknown,wv.nu),u=f0(o,i,e,n);return{browser:i,os:o,deviceType:u}},k0={detect:S0},x0=function(e){return window.matchMedia(e).matches},N0=Ju(function(){return k0.detect(navigator.userAgent,b.from(navigator.userAgentData),x0)}),Mt=function(){return N0()},Ev=navigator.userAgent,af=Mt(),mt=af.browser,Rt=af.os,ln=af.deviceType,T0=/WebKit/.test(Ev)&&!mt.isEdge(),A0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,R0=Ev.indexOf("Windows Phone")!==-1,ue={opera:mt.isOpera(),webkit:T0,ie:mt.isIE()||mt.isEdge()?mt.version.major:!1,gecko:mt.isFirefox(),mac:Rt.isOSX()||Rt.isiOS(),iOS:ln.isiPad()||ln.isiPhone(),android:Rt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:mt.isIE()?document.documentMode||7:10,fileApi:A0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!mt.isIE(),desktop:ln.isDesktop(),windowsPhone:R0,browser:{current:mt.current,version:mt.version,isChrome:mt.isChrome,isEdge:mt.isEdge,isFirefox:mt.isFirefox,isIE:mt.isIE,isOpera:mt.isOpera,isSafari:mt.isSafari},os:{current:Rt.current,version:Rt.version,isAndroid:Rt.isAndroid,isChromeOS:Rt.isChromeOS,isFreeBSD:Rt.isFreeBSD,isiOS:Rt.isiOS,isLinux:Rt.isLinux,isOSX:Rt.isOSX,isSolaris:Rt.isSolaris,isWindows:Rt.isWindows},deviceType:{isDesktop:ln.isDesktop,isiPad:ln.isiPad,isiPhone:ln.isiPhone,isPhone:ln.isPhone,isTablet:ln.isTablet,isTouch:ln.isTouch,isWebView:ln.isWebView}},B0=/^\s*|\s*$/g,Sv=function(e){return e==null?"":(""+e).replace(B0,"")},kv=function(e,t){return t?t==="array"&&Zu(e)?!0:typeof e===t:e!==void 0},D0=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},_0=ve,O0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var f=e[3].match(/(^|\.)(\w+)$/i)[2],s=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[f]){if(e[2]==="static"){s[f]=t,this.onCreate&&this.onCreate(e[2],e[3],s[f]);return}t[f]||(t[f]=function(){},u=1),s[f]=t[f],r.extend(s[f].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=s[f],u?s[f]=function(){return a[i].apply(this,arguments)}:s[f]=function(){return this.parent=a[i],o.apply(this,arguments)},s[f].prototype[f]=s[f],r.each(a,function(l,c){s[f].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?s[f].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==f&&(s[f].prototype[c]=l)})),r.each(t.static,function(l,c){s[f][c]=l})}},P0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return ja(r.childNodes[0])},U0=function(e,t){var n=t||document,r=n.createElement(e);return ja(r)},z0=function(e,t){var n=t||document,r=n.createTextNode(e);return ja(r)},ja=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},H0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(ja)},k={fromHtml:M0,fromTag:U0,fromText:z0,fromDom:ja,fromPoint:H0},Nv=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},V0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},q0=function(e,t){return V0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},W0=8,Tv=9,Av=11,of=1,j0=3,Xr=function(e,t){var n=e.dom;if(n.nodeType!==of)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")},Rv=function(e){return e.nodeType!==of&&e.nodeType!==Tv&&e.nodeType!==Av||e.childElementCount===0},K0=function(e,t){var n=t===void 0?document:t.dom;return Rv(n)?[]:Te(n.querySelectorAll(e),k.fromDom)},G0=function(e,t){var n=t===void 0?document:t.dom;return Rv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Se=function(e,t){return e.dom===t.dom},X0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},Y0=function(e,t){return q0(e.dom,t.dom)},zn=function(e,t){return Mt().browser.isIE()?Y0(e,t):X0(e,t)};typeof window!="undefined"||Function("return this;")();var He=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Bv=function(e){return e.dom.nodeType},Ui=function(e){return function(t){return Bv(t)===e}},Z0=function(e){return Bv(e)===W0||He(e)==="#comment"},Kt=Ui(of),Ut=Ui(j0),Q0=Ui(Tv),J0=Ui(Av),ew=function(e){return function(t){return Kt(t)&&He(t)===e}},Dv=function(e){return k.fromDom(e.dom.ownerDocument)},Yr=function(e){return Q0(e)?e:Dv(e)},tw=function(e){return k.fromDom(Yr(e).dom.documentElement)},_v=function(e){return k.fromDom(Yr(e).dom.defaultView)},Gt=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},nw=function(e,t){for(var n=Re(t)?t:xe,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},rw=function(e){var t=function(n){return ce(n,function(r){return!Se(e,r)})};return Gt(e).map(zt).map(t).getOr([])},gr=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},Ka=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Ov=function(e){return $i(Nv(e,gr))},Pv=function(e){return Nv(e,Ka)},zt=function(e){return Te(e.dom.childNodes,k.fromDom)},zi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},Iv=function(e){return zi(e,0)},uf=function(e){return zi(e,e.dom.childNodes.length-1)},Lv=function(e){return e.dom.childNodes.length},aw=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},$v=function(e){return J0(e)&&Ee(e.dom.host)},Fv=Re(Element.prototype.attachShadow)&&Re(Node.prototype.getRootNode),iw=X(Fv),hr=Fv?function(e){return k.fromDom(e.dom.getRootNode())}:Yr,ff=function(e){return $v(e)?e:aw(Yr(e))},ow=function(e){var t=hr(e);return $v(t)?b.some(t):b.none()},uw=function(e){return k.fromDom(e.dom.host)},fw=function(e){if(iw()&&Ee(e.target)){var t=k.fromDom(e.target);if(Kt(t)&&sw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return At(n)}}return b.from(e.target)},sw=function(e){return Ee(e.dom.shadowRoot)},Xt=function(e,t){var n=Gt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},Ga=function(e,t){var n=Ka(e);n.fold(function(){var r=Gt(e);r.each(function(a){Je(a,t)})},function(r){Xt(r,t)})},Mv=function(e,t){var n=Iv(e);n.fold(function(){Je(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},Je=function(e,t){e.dom.appendChild(t.dom)},lw=function(e,t){Xt(e,t),Je(t,e)},cw=function(e,t){K(t,function(n){Xt(e,n)})},Hi=function(e,t){K(t,function(n){Je(e,n)})},sf=function(e){e.dom.textContent="",K(zt(e),function(t){Ve(t)})},Ve=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},Uv=function(e){var t=zt(e);t.length>0&&cw(e,t),Ve(e)},Xa=function(e){var t=Ut(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return ow(k.fromDom(t)).fold(function(){return n.body.contains(t)},zc(Xa,uw))},zv=function(e,t){var n=function(r,a){return zv(e+r,t+a)};return{left:e,top:t,translate:n}},Zr=zv,vw=function(e){var t=e.getBoundingClientRect();return Zr(t.left,t.top)},Vi=function(e,t){return e!==void 0?e:t!==void 0?t:0},dw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return Zr(n.offsetLeft,n.offsetTop);var i=Vi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Vi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Vi(a.clientTop,n.clientTop),f=Vi(a.clientLeft,n.clientLeft);return lf(e).translate(o-f,i-u)},lf=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Zr(r.offsetLeft,r.offsetTop):Xa(e)?vw(t):Zr(0,0)},cf=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 Zr(n,r)},Hv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Vv=function(e,t){var n=Mt().browser.isSafari();n&&Re(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},mw=function(e){var t=e===void 0?window:e;return Mt().browser.isFirefox()?b.none():b.from(t.visualViewport)},qv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Wv=function(e){var t=e===void 0?window:e,n=t.document,r=cf(k.fromDom(n));return mw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return qv(r.left,r.top,i,o)},function(a){return qv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},Ya=function(e){return function(t){return!!t&&t.nodeType===e}},qi=function(e){return!!e&&!Object.getPrototypeOf(e)},re=Ya(1),Ht=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Ye(t,r)}return!1}},Wi=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(re(r))for(var a=0;a0})},Qv=function(e){var t={},n=e.dom;if(Gi(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):K(e,function(o,u){o.get(i(u))})})},Iw=function(e){return Pw(e,rd.nu)},ta=function(e){var t=function(c){return ta(e)},n=function(c){return ta(e)},r=function(c){return ta(c(e))},a=function(c){return ta(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},f=function(c){return c(e)},s=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:Ue,isError:xe,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:f,forall:s,toOptional:l}},Za=function(e){var t=function(s){return s()},n=function(){return WC(String(e))()},r=wt,a=function(s){return s()},i=function(s){return Za(e)},o=function(s){return Za(s(e))},u=function(s){return Za(e)},f=function(s,l){return s(e)};return{isValue:xe,isError:Ue,getOr:wt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:f,map:i,mapError:o,each:se,bind:u,exists:xe,forall:Ue,toOptional:b.none}},Lw=function(e,t){return e.fold(function(){return Za(t)},ta)},ad={value:ta,error:Za,fromOption:Lw},$w=function(e){if(!Ft(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 K(e,function(r,a){var i=jr(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(!Ft(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var f=[],s=0;s0?h(E.fail.map(id)):y(E.pass.map(id))})},m=function(g){var y=B._addCacheSuffix(g);ze(r,y).each(function(h){var S=--h.count;S===0&&(delete r[y],s(h.id))})},p=function(g){K(g,function(y){m(y)})};return{load:c,loadAll:d,unload:m,unloadAll:p,_setReferrerPolicy:u}},Vw=function(){var e=new WeakMap,t=function(n,r){var a=hr(n),i=a.dom;return b.from(e.get(i)).getOrThunk(function(){var o=sd(i,r);return e.set(i,o),o})};return{forElement:t}},ld=Vw(),qe=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}(),qw=["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"],Ww=["td","th"],jw=["thead","tbody","tfoot"],Kw=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Gw=["h1","h2","h3","h4","h5","h6"],Xw=["li","dd","dt"],Yw=["ul","ol","dl"],Zw=["pre","script","textarea","style"],qn=function(e){var t;return function(n){return t=t||JC(e,Ue),ve(t,He(n))}},Qw=qn(Gw),dn=qn(qw),Jw=function(e){return He(e)==="table"},wf=function(e){return Kt(e)&&!dn(e)},na=function(e){return Kt(e)&&He(e)==="br"},cd=qn(Kw),Ef=qn(Yw),Ja=qn(Xw),eE=qn(jw),Qi=qn(Ww),Ji=qn(Zw),tE=function(e,t,n){return Yi(e,t,n).isSome()},Sf="\uFEFF",Et="\xA0",nE=function(e){return e===Sf},rE=function(e){return e.replace(/\uFEFF/g,"")},We=Sf,eo=nE,Bt=rE,aE=re,ra=Y,aa=function(e){return ra(e)&&(e=e.parentNode),aE(e)&&e.hasAttribute("data-mce-caret")},ia=function(e){return ra(e)&&eo(e.data)},Dt=function(e){return aa(e)||ia(e)},vd=function(e){return e.firstChild!==e.lastChild||!Pe(e.firstChild)},iE=function(e,t){var n=e.ownerDocument,r=n.createTextNode(We),a=e.parentNode;if(t){var i=e.previousSibling;if(ra(i)){if(Dt(i))return i;if(no(i))return i.splitText(i.data.length-1)}a.insertBefore(r,e)}else{var i=e.nextSibling;if(ra(i)){if(Dt(i))return i;if(to(i))return i.splitText(1),i}e.nextSibling?a.insertBefore(r,e.nextSibling):a.appendChild(r)}return r},kf=function(e){var t=e.container();return Y(t)?t.data.charAt(e.offset())===We||e.isAtStart()&&ia(t.previousSibling):!1},xf=function(e){var t=e.container();return Y(t)?t.data.charAt(e.offset()-1)===We||e.isAtEnd()&&ia(t.nextSibling):!1},oE=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},uE=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(oE());var i=t.parentNode;return n?i.insertBefore(a,t):t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a),a},to=function(e){return ra(e)&&e.data[0]===We},no=function(e){return ra(e)&&e.data[e.data.length-1]===We},fE=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];br(n)&&n.parentNode.removeChild(n)},Nf=function(e){return e&&e.hasAttribute("data-mce-caret")?(fE(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},dd=function(e){return aa(e.startContainer)},md=cn,sE=Ae,lE=Pe,cE=Y,vE=Ht(["script","style","textarea"]),pd=Ht(["img","input","textarea","hr","iframe","video","audio","object","embed"]),dE=Ht(["table"]),mE=Dt,mn=function(e){return mE(e)?!1:cE(e)?!vE(e.parentNode):pd(e)||lE(e)||dE(e)||Tf(e)},pE=function(e){return re(e)&&e.getAttribute("unselectable")==="true"},Tf=function(e){return pE(e)===!1&&sE(e)},gE=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Tf(e))return!1;if(md(e))return!0}return!0},hE=function(e){return Tf(e)?jt(sn(e.getElementsByTagName("*")),function(t,n){return t||md(n)},!1)!==!0:!1},bE=function(e){return pd(e)||hE(e)},ro=function(e,t){return mn(e)&&gE(e,t)},yE=/^[ \t\r\n]*$/,yr=function(e){return yE.test(e)},CE=function(e,t){var n=k.fromDom(t),r=k.fromDom(e);return tE(r,"pre,code",j(Se,n))},wE=function(e,t){return Y(e)&&yr(e.data)&&CE(e,t)===!1},EE=function(e){return re(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},ao=function(e,t){return mn(e)&&wE(e,t)===!1||EE(e)||SE(e)},SE=jv("data-mce-bookmark"),kE=jv("data-mce-bogus"),xE=pw("data-mce-bogus","all"),NE=function(e,t){var n=0;if(ao(e,e))return!1;var r=e.firstChild;if(!r)return!0;var a=new qe(r,e);do{if(t){if(xE(r)){r=a.next(!0);continue}if(kE(r)){r=a.next();continue}}if(Pe(r)){n++,r=a.next();continue}if(ao(r,e))return!1;r=a.next()}while(r);return n<=1},je=function(e,t){return t===void 0&&(t=!0),NE(e.dom,t)},TE=function(e){return e.nodeName.toLowerCase()==="span"},gd=function(e,t){return Ee(e)&&(ao(e,t)||wf(k.fromDom(e)))},AE=function(e,t){var n=new qe(e,t).prev(!1),r=new qe(e,t).next(!1),a=Ct(n)||gd(n,t),i=Ct(r)||gd(r,t);return a&&i},hd=function(e){return TE(e)&&e.getAttribute("data-mce-type")==="bookmark"},RE=function(e,t){return Y(e)&&e.data.length>0&&AE(e,t)},BE=function(e){return re(e)?e.childNodes.length>0:!1},DE=function(e){return mf(e)||df(e)},Af=function(e,t,n){var r=n||t;if(re(t)&&hd(t))return t;for(var a=t.childNodes,i=a.length-1;i>=0;i--)Af(e,a[i],r);if(re(t)){var o=t.childNodes;o.length===1&&hd(o[0])&&t.parentNode.insertBefore(o[0],t)}return!DE(t)&&!ao(t,r)&&!BE(t)&&!RE(t,r)&&e.remove(t),t},_E=B.makeMap,io=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oo=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,OE=/[<>&\"\']/g,PE=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,IE={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"},Cr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},LE={"<":"<",">":">","&":"&",""":'"',"'":"'"},$E=function(e){var t=k.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},bd=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)+";":Cr[n]||"&#"+n.charCodeAt(0)+";"})},Bf=function(e,t,n){return n=n||Rf,e.replace(t?io:oo,function(r){return Cr[r]||n[r]||r})},ME=function(e,t){var n=bd(t)||Rf,r=function(o,u){return o.replace(u?io:oo,function(f){return Cr[f]!==void 0?Cr[f]:n[f]!==void 0?n[f]:f.length>1?"&#"+((f.charCodeAt(0)-55296)*1024+(f.charCodeAt(1)-56320)+65536)+";":"&#"+f.charCodeAt(0)+";"})},a=function(o,u){return Bf(o,u,n)},i=_E(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?a:Bf:i.numeric?Cd:yd},UE=function(e){return e.replace(PE,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))):IE[n]||String.fromCharCode(n)):LE[t]||Rf[t]||$E(t)})},Wn={encodeRaw:yd,encodeAllRaw:FE,encodeNumeric:Cd,encodeNamed:Bf,getEncodeFunc:ME,decode:UE},jn={},zE={},oa=B.makeMap,nt=B.each,Df=B.extend,wd=B.explode,HE=B.inArray,Qe=function(e,t){return e=B.trim(e),e?e.split(t||" "):[]},Ed=function(e,t){var n=oa(e," ",oa(e.toUpperCase()," "));return Df(n,t)},Sd=function(e){return Ed("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},VE=function(e){var t={},n,r,a,i,o,u,f=function(l,c,v){var d,m,p,g=function(h,S){var E={},C,x;for(C=0,x=h.length;C