From df8fdd56ba2874822c703788c5b2c6d17e18e617 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 31 Oct 2024 20:33:23 +0800 Subject: [PATCH] build --- CHANGELOG.md | 18 + app/Module/Base.php | 9 +- app/Tasks/DeleteTmpTask.php | 4 +- package.json | 4 +- .../{404.4d567a8e.js => 404.766ad184.js} | 2 +- ...itor.b43f1f26.js => AceEditor.a7748af5.js} | 2 +- ....1b4423b3.js => CheckinExport.9ac164be.js} | 2 +- public/js/build/DialogWrapper.86de099a.js | 6 - public/js/build/DialogWrapper.df01caa2.js | 6 + ...{Drawio.c7f7ca00.js => Drawio.69ced14f.js} | 2 +- ...nt.35e44d8b.js => FileContent.8003b48c.js} | 2 +- ...ew.1f20c4b0.js => FilePreview.1e9ff7fd.js} | 2 +- ...{IFrame.7f63db7a.js => IFrame.aae7507a.js} | 2 +- public/js/build/ImgUpload.52758ba6.js | 1 - public/js/build/ImgUpload.cc22c426.js | 1 + ...4530bc3f.js => MeetingManager.107c56ad.js} | 2 +- ...Apps.bd23f92f.js => MicroApps.d5179821.js} | 2 +- ...{Minder.9eb9a4e8.js => Minder.2fb84ce4.js} | 2 +- ...ice.27bc47d9.js => OnlyOffice.6f62b626.js} | 2 +- ...Log.d652e5c8.js => ProjectLog.12dff91b.js} | 2 +- ...l.1ea08cae.js => ReportDetail.b39ad266.js} | 2 +- ...dit.22763e0c.js => ReportEdit.8be7d715.js} | 2 +- ...Editor.8a7b6b4c.js => TEditor.dfcd2131.js} | 2 +- ...ail.75c13dec.js => TaskDetail.4cdae640.js} | 2 +- .../{app.3d8c6f80.css => app.5c885db1.css} | 4 +- public/js/build/app.879f8ead.js | 87 ++ public/js/build/app.d8851986.js | 87 -- ...on.c6b5c54a.js => application.5eb5d1b2.js} | 2 +- .../{apps.db7c3805.js => apps.1f3c46d0.js} | 2 +- .../{apps.3ff16850.js => apps.5ae2dacb.js} | 2 +- ...endar.81f10c67.js => calendar.b5bd8891.js} | 2 +- ...heckin.e2b8615d.js => checkin.7a773382.js} | 2 +- ...oard.69c4962d.js => dashboard.f387e55c.js} | 2 +- .../{dayjs.93c58ba1.js => dayjs.b7f7bb8e.js} | 0 ...{delete.ae94fe17.js => delete.0f4e4825.js} | 2 +- public/js/build/details.2a18916c.js | 1 - public/js/build/details.9590a689.js | 1 + ...{editor.d5ddd8a7.js => editor.85bb3838.js} | 2 +- .../{email.f542170a.js => email.0afe9b64.js} | 2 +- .../{file.a4de8a58.js => file.1a62fb3d.js} | 2 +- .../{file.b4eaa610.js => file.e506d17e.js} | 2 +- ...ileMsg.4fc63b7c.js => fileMsg.5715099d.js} | 2 +- ...eTask.d07363e5.js => fileTask.333ab18e.js} | 2 +- .../{index.a335cdfc.js => index.0466af7c.js} | 2 +- .../{index.64428982.js => index.12cb3aa3.js} | 2 +- .../{index.dca7e577.js => index.897b0294.js} | 2 +- .../{index.85658b60.js => index.b3e6cf03.js} | 2 +- .../{index.4892e747.js => index.e6513292.js} | 2 +- ...{jquery.a7761dd9.js => jquery.8b0d6caa.js} | 0 ...board.03852454.js => keyboard.780c3ff4.js} | 2 +- ...guage.8a3413b9.js => language.7a53dc5c.js} | 2 +- ...icense.a4049017.js => license.8aaddb7c.js} | 2 +- ...ge.81c5d73d.js => localforage.ec5c12b8.js} | 0 public/js/build/login.08e928ee.js | 1 - public/js/build/login.65762120.js | 1 + ...{manage.fc78f152.js => manage.3363eb6c.js} | 2 +- ...eate.41663ea5.svg => meeting.41663ea5.svg} | 0 ...eeting.7dcf9ac9.js => meeting.a6ab8619.js} | 2 +- ...nger.69561392.js => messenger.68ae7176.js} | 2 +- ...sword.34ef52c3.js => password.030411c7.js} | 2 +- ...sonal.a06001ae.js => personal.7fc2a145.js} | 2 +- ...review.da06ba47.js => preview.7086f0af.js} | 2 +- ...review.74e7b5c4.js => preview.8cce7ada.js} | 2 +- .../{pro.41ac22dd.js => pro.0b202f1c.js} | 2 +- ...roject.c10747c6.js => project.e38eadbd.js} | 2 +- ....6b40c864.js => projectInvite.90612102.js} | 2 +- ...l.312f7535.js => reportDetail.becb3dea.js} | 2 +- ...dit.53145ec5.js => reportEdit.2220c6f1.js} | 2 +- .../{swipe.ee8ae442.js => swipe.e6b4680e.js} | 2 +- ...{system.2285283c.js => system.7c99cb3f.js} | 2 +- .../{task.1f0c8920.js => task.933db9c8.js} | 2 +- ...nt.b7f2a3f0.js => taskContent.4da98bb7.js} | 2 +- .../{theme.0b3233cd.js => theme.8768a33d.js} | 2 +- .../{tip.7b94707c.js => tip.434a62e4.js} | 2 +- .../{token.e6a56e96.js => token.53c7275e.js} | 2 +- ...ail.32d69f59.js => validEmail.6920ea3a.js} | 2 +- ...ersion.a1835d12.js => version.8a875668.js} | 2 +- .../{video.bcb944e6.js => video.1a7cfeca.js} | 2 +- ...563cfadb.js => view-design-hi.d2045547.js} | 26 +- .../{view.a0b20db3.js => view.d343368a.js} | 2 +- public/manifest.json | 748 +++++++++--------- resources/mobile | 2 +- 82 files changed, 574 insertions(+), 553 deletions(-) rename public/js/build/{404.4d567a8e.js => 404.766ad184.js} (85%) rename public/js/build/{AceEditor.b43f1f26.js => AceEditor.a7748af5.js} (95%) rename public/js/build/{CheckinExport.1b4423b3.js => CheckinExport.9ac164be.js} (99%) delete mode 100644 public/js/build/DialogWrapper.86de099a.js create mode 100644 public/js/build/DialogWrapper.df01caa2.js rename public/js/build/{Drawio.c7f7ca00.js => Drawio.69ced14f.js} (90%) rename public/js/build/{FileContent.35e44d8b.js => FileContent.8003b48c.js} (88%) rename public/js/build/{FilePreview.1f20c4b0.js => FilePreview.1e9ff7fd.js} (76%) rename public/js/build/{IFrame.7f63db7a.js => IFrame.aae7507a.js} (94%) delete mode 100644 public/js/build/ImgUpload.52758ba6.js create mode 100644 public/js/build/ImgUpload.cc22c426.js rename public/js/build/{MeetingManager.4530bc3f.js => MeetingManager.107c56ad.js} (99%) rename public/js/build/{MicroApps.bd23f92f.js => MicroApps.d5179821.js} (92%) rename public/js/build/{Minder.9eb9a4e8.js => Minder.2fb84ce4.js} (95%) rename public/js/build/{OnlyOffice.27bc47d9.js => OnlyOffice.6f62b626.js} (94%) rename public/js/build/{ProjectLog.d652e5c8.js => ProjectLog.12dff91b.js} (99%) rename public/js/build/{ReportDetail.1ea08cae.js => ReportDetail.b39ad266.js} (97%) rename public/js/build/{ReportEdit.22763e0c.js => ReportEdit.8be7d715.js} (92%) rename public/js/build/{TEditor.8a7b6b4c.js => TEditor.dfcd2131.js} (97%) rename public/js/build/{TaskDetail.75c13dec.js => TaskDetail.4cdae640.js} (99%) rename public/js/build/{app.3d8c6f80.css => app.5c885db1.css} (50%) create mode 100644 public/js/build/app.879f8ead.js delete mode 100644 public/js/build/app.d8851986.js rename public/js/build/{application.c6b5c54a.js => application.5eb5d1b2.js} (72%) rename public/js/build/{apps.db7c3805.js => apps.1f3c46d0.js} (77%) rename public/js/build/{apps.3ff16850.js => apps.5ae2dacb.js} (76%) rename public/js/build/{calendar.81f10c67.js => calendar.b5bd8891.js} (98%) rename public/js/build/{checkin.e2b8615d.js => checkin.7a773382.js} (97%) rename public/js/build/{dashboard.69c4962d.js => dashboard.f387e55c.js} (96%) rename public/js/build/{dayjs.93c58ba1.js => dayjs.b7f7bb8e.js} (100%) rename public/js/build/{delete.ae94fe17.js => delete.0f4e4825.js} (96%) delete mode 100644 public/js/build/details.2a18916c.js create mode 100644 public/js/build/details.9590a689.js rename public/js/build/{editor.d5ddd8a7.js => editor.85bb3838.js} (94%) rename public/js/build/{email.f542170a.js => email.0afe9b64.js} (94%) rename public/js/build/{file.a4de8a58.js => file.1a62fb3d.js} (97%) rename public/js/build/{file.b4eaa610.js => file.e506d17e.js} (86%) rename public/js/build/{fileMsg.4fc63b7c.js => fileMsg.5715099d.js} (76%) rename public/js/build/{fileTask.d07363e5.js => fileTask.333ab18e.js} (76%) rename public/js/build/{index.a335cdfc.js => index.0466af7c.js} (96%) rename public/js/build/{index.64428982.js => index.12cb3aa3.js} (78%) rename public/js/build/{index.dca7e577.js => index.897b0294.js} (98%) rename public/js/build/{index.85658b60.js => index.b3e6cf03.js} (89%) rename public/js/build/{index.4892e747.js => index.e6513292.js} (98%) rename public/js/build/{jquery.a7761dd9.js => jquery.8b0d6caa.js} (100%) rename public/js/build/{keyboard.03852454.js => keyboard.780c3ff4.js} (95%) rename public/js/build/{language.8a3413b9.js => language.7a53dc5c.js} (90%) rename public/js/build/{license.a4049017.js => license.8aaddb7c.js} (94%) rename public/js/build/{localforage.81c5d73d.js => localforage.ec5c12b8.js} (100%) delete mode 100644 public/js/build/login.08e928ee.js create mode 100644 public/js/build/login.65762120.js rename public/js/build/{manage.fc78f152.js => manage.3363eb6c.js} (98%) rename public/js/build/{meeting-create.41663ea5.svg => meeting.41663ea5.svg} (100%) rename public/js/build/{meeting.7dcf9ac9.js => meeting.a6ab8619.js} (81%) rename public/js/build/{messenger.69561392.js => messenger.68ae7176.js} (98%) rename public/js/build/{password.34ef52c3.js => password.030411c7.js} (93%) rename public/js/build/{personal.a06001ae.js => personal.7fc2a145.js} (91%) rename public/js/build/{preview.da06ba47.js => preview.7086f0af.js} (88%) rename public/js/build/{preview.74e7b5c4.js => preview.8cce7ada.js} (77%) rename public/js/build/{pro.41ac22dd.js => pro.0b202f1c.js} (80%) rename public/js/build/{project.c10747c6.js => project.e38eadbd.js} (99%) rename public/js/build/{projectInvite.6b40c864.js => projectInvite.90612102.js} (92%) rename public/js/build/{reportDetail.312f7535.js => reportDetail.becb3dea.js} (81%) rename public/js/build/{reportEdit.53145ec5.js => reportEdit.2220c6f1.js} (85%) rename public/js/build/{swipe.ee8ae442.js => swipe.e6b4680e.js} (87%) rename public/js/build/{system.2285283c.js => system.7c99cb3f.js} (98%) rename public/js/build/{task.1f0c8920.js => task.933db9c8.js} (85%) rename public/js/build/{taskContent.b7f2a3f0.js => taskContent.4da98bb7.js} (87%) rename public/js/build/{theme.0b3233cd.js => theme.8768a33d.js} (90%) rename public/js/build/{tip.7b94707c.js => tip.434a62e4.js} (98%) rename public/js/build/{token.e6a56e96.js => token.53c7275e.js} (86%) rename public/js/build/{validEmail.32d69f59.js => validEmail.6920ea3a.js} (90%) rename public/js/build/{version.a1835d12.js => version.8a875668.js} (81%) rename public/js/build/{video.bcb944e6.js => video.1a7cfeca.js} (87%) rename public/js/build/{view-design-hi.563cfadb.js => view-design-hi.d2045547.js} (77%) rename public/js/build/{view.a0b20db3.js => view.d343368a.js} (95%) diff --git a/CHANGELOG.md b/CHANGELOG.md index c77e9482a..ee8f24a6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ All notable changes to this project will be documented in this file. +## [0.39.37] + +### Bug Fixes + +- 设置子任务时间主任务出现1970的情况 +- 消息溢出的情况 + +### Features + +- 消息翻译支持切换语言 + +### Performance + +- 优化国际化语言 +- 审批支持点击头像进入私聊 +- 优化删除临时文件 +- 优化缩略图 + ## [0.39.21] ### Bug Fixes diff --git a/app/Module/Base.php b/app/Module/Base.php index 140269c97..75957586e 100755 --- a/app/Module/Base.php +++ b/app/Module/Base.php @@ -2381,10 +2381,11 @@ public static function upload($param) // 转换视频格式 $output = Base::rightReplace($array['file'], ".{$array['ext']}", '.mp4'); if ($array['ext'] === 'webm') { - shell_exec("ffmpeg -y -i {$array['file']} -strict experimental {$output} 2>&1"); + $command = sprintf("ffmpeg -y -i %s -strict experimental %s 2>&1", escapeshellarg($array['file']), escapeshellarg($output)); } else { - shell_exec("ffmpeg -y -i {$array['file']} -c:v copy -c:a copy {$output} 2>&1"); + $command = sprintf("ffmpeg -y -i %s -c:v copy -c:a copy %s 2>&1", escapeshellarg($array['file']), escapeshellarg($output)); } + @shell_exec($command); if (file_exists($output) && filesize($output) > 0) { @unlink($array['file']); $array = array_merge($array, [ @@ -2400,12 +2401,14 @@ public static function upload($param) if (in_array($array['ext'], ['mov', 'webm', 'mp4'])) { // 视频尺寸 $thumbFile = $array['file'] . '_thumb.jpg'; - shell_exec("ffmpeg -y -i {$array['file']} -ss 1 -vframes 1 {$thumbFile} 2>&1"); + $command = sprintf("ffmpeg -y -i %s -ss 1 -vframes 1 %s 2>&1", escapeshellarg($array['file']), escapeshellarg($thumbFile)); + @shell_exec($command); if (file_exists($thumbFile) && filesize($thumbFile) > 0) { $paramet = getimagesize($thumbFile); $array['width'] = $paramet[0]; $array['height'] = $paramet[1]; $array['thumb'] = $array['path'] . '_thumb.jpg'; + Image::compressImage($thumbFile, null, 80); } } if (in_array($array['ext'], ['jpg', 'jpeg', 'webp', 'gif', 'png'])) { diff --git a/app/Tasks/DeleteTmpTask.php b/app/Tasks/DeleteTmpTask.php index 86612cc2e..e8fb61931 100644 --- a/app/Tasks/DeleteTmpTask.php +++ b/app/Tasks/DeleteTmpTask.php @@ -109,8 +109,8 @@ public function start() } $files = Base::recursiveFiles(public_path('uploads/tmp')); foreach ($files as $file) { - $time = filemtime($file); - if ($time < time() - 3600 * 24 * $day) { + $time = @filemtime($file); + if ($time && $time < time() - 3600 * 24 * $day) { unlink($file); } } diff --git a/package.json b/package.json index 5f62e2a97..50e292d6f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "DooTask", - "version": "0.39.21", - "codeVerson": 147, + "version": "0.39.37", + "codeVerson": 148, "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev", diff --git a/public/js/build/404.4d567a8e.js b/public/js/build/404.766ad184.js similarity index 85% rename from public/js/build/404.4d567a8e.js rename to public/js/build/404.766ad184.js index 55e8f428f..65692fa98 100644 --- a/public/js/build/404.4d567a8e.js +++ b/public/js/build/404.766ad184.js @@ -1 +1 @@ -import{n as e}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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}; +import{n as e}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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/AceEditor.b43f1f26.js b/public/js/build/AceEditor.a7748af5.js similarity index 95% rename from public/js/build/AceEditor.b43f1f26.js rename to public/js/build/AceEditor.a7748af5.js index 66b66ad5f..1efcc9c6f 100644 --- a/public/js/build/AceEditor.b43f1f26.js +++ b/public/js/build/AceEditor.a7748af5.js @@ -1 +1 @@ -import{m as h}from"./vuex.cc7cb26e.js";import{n as p}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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?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.checkinMode?[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EBA\u8138\u56FE\u7247"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.checkin_face,callback:function(a){t.$set(t.keys,"checkin_face",a)},expression:"keys.checkin_face"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u4E0A\u4F20")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u4E0A\u4F20")))])],1)],1)]),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)],2)]),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",t._b({ref:"addProject",attrs:{model:t.departmentData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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",t._b({attrs:{model:t.checkinMacEditData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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}, ${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\u7B7E\u5230\u4EBA\u8138\u56FE\u7247")},model:{value:t.checkinFaceEditShow,callback:function(a){t.checkinFaceEditShow=a},expression:"checkinFaceEditShow"}},[e("Form",t._b({attrs:{model:t.checkinMacEditData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinFaceEditData.userid}, ${t.checkinFaceEditData.nickname}\u3011\u4EBA\u8138\u56FE\u7247\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"24"}},[t._v(t._s(t.$L("\u4EBA\u8138\u56FE\u7247")))])],1),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"24"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.checkinFaceEditData.faceimg,callback:function(a){t.$set(t.checkinFaceEditData,"faceimg",a)},expression:"checkinFaceEditData.faceimg"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A500x500")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinFaceEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinFaceEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinFaceEditData,!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",t._b({attrs:{model:t.departmentEditData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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}, ${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",t._b({attrs:{model:t.disableData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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}, ${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)},y=[];const L={name:"TeamManagement",components:{UserAvatarTip:v,UserSelect:u,ImgUpload:_},props:{checkinMode:{type:Boolean,default:!1}},data(){return{loadIng:0,minBox:!1,minWidth:0,keys:{},keyIs:!1,keyDisable:!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",{style:{minWidth:"50px"}},s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:h}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),h&&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("AutoTip",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)}}},{key:"line_at",width:168,renderHeader:t=>{const s=[];return this.keyDisable&&(s.push(t("span",{style:{color:"#f90"}},this.$L("\u79BB\u804C\u65F6\u95F4"))),s.push(t("span","/"))),s.push(t("span",this.$L("\u6700\u540E\u5728\u7EBF"))),t("AutoTip",s)},render:(t,s)=>{const{line_at:e,disable_at:a}=s.row,i=[];return this.keyDisable&&i.push(t("div",{style:{color:"#f90"}},a||"-")),i.push(t("div",e||"-")),t("div",i)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];this.checkinMode&&a.push(t("EDropdownItem",{props:{command:"checkin_face"},style:{color:"#f90",fontWeight:"bold"}},[t("div",this.$L("\u4FEE\u6539\u4EBA\u8138\u56FE\u7247"))]),t("EDropdownItem",{props:{command:"checkin_mac"},style:{color:"#f90",fontWeight:"bold"}},[t("div",this.$L("\u4FEE\u6539MAC\u5730\u5740"))])),e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin",divided:this.checkinMode}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin",divided:this.checkinMode}},[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"))]),t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))]),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:"red"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"red"}},[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:{},checkinFaceEditShow:!1,checkinFaceEditLoading:0,checkinFaceEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:"12:00",value(){return $A.daytz().startOf("day").add(12,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:"17:00",value(){return $A.daytz().startOf("day").add(17,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:"18:00",value(){return $A.daytz().startOf("day").add(18,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:"19:00",value(){return $A.daytz().startOf("day").add(19,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return $A.daytz().toDate()},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.checkinMode&&this.columns.splice(5,0,{key:"checkin_face",minWidth:80,renderHeader:t=>t("AutoTip",{style:{color:"#f90"}},this.$L("\u4EBA\u8138\u56FE\u7247")),render:(t,{row:s})=>{const e=$A.cloneJSON(s.checkin_face||"");return t("div",e?this.$L("\u5DF2\u4E0A\u4F20"):"-")}},{key:"checkin_mac",minWidth:80,renderHeader:t=>t("AutoTip",{style:{color:"#f90"}},this.$L("MAC\u5730\u5740")),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:{...o(["formOptions"]),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)!="",this.keyDisable=this.keys.disable==="yes";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_data:this.checkinMode?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"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"checkin_face":this.checkinFaceEditData={type:"checkin_face",userid:s.userid,nickname:s.nickname,faceimg:s.checkin_face},this.checkinFaceEditShow=!0;break;case"setadmin":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}, ${s.nickname}\u3011\u8BBE\u4E3A\u7BA1\u7406\u5458\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"clearadmin":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}, ${s.nickname}\u3011\u7BA1\u7406\u5458\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}, ${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}, ${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"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}, ${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}, ${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=="checkin_face"?(this.checkinFaceEditLoading++,t={type:t.type,userid:t.userid,nickname:t.nickname,checkin_face:$A.arrayLength(t.faceimg)>0?t.faceimg[0].url:""}):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=="checkin_face"?this.checkinFaceEditShow=!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=="checkin_face"?this.checkinFaceEditLoading--: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 b=r(L,g,y,!1,D,null,null,null);function D(t){for(let s in l)this[s]=l[s]}var tt=function(){return b.exports}(),w=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)])},S=[];const x={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,render:(t,{row:s})=>t("AutoTip",this.$L(s.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row: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)}}},c={};var E=r(x,w,S,!1,I,null,null,null);function I(t){for(let s in c)this[s]=c[s]}var C=function(){return E.exports}(),A=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)])},M=[];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,render:(t,{row:s})=>t("AutoTip",this.$L(s.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_at",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column: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)})})})}}},d={};var O=r(T,A,M,!1,P,null,null,null);function P(t){for(let s in d)this[s]=d[s]}var z=function(){return O.exports}(),F=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:k,ReportEdit:f,ReportMy:C,ReportReceive:z,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:{...o(["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()}}},p={};var U=r(B,F,R,!1,W,null,null,null);function W(t){for(let s in p)this[s]=p[s]}var et=function(){return U.exports}(),Y=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",t._b({ref:"export",attrs:{model:t.formData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(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 H={name:"CheckinExport",components:{UserSelect:u},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)}},computed:{...o(["formOptions"])},methods:{dateShortcuts(t){if(t==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(t==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"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--}))}}},m={};var N=r(H,Y,j,!1,J,null,null,null);function J(t){for(let s in m)this[s]=m[s]}var at=function(){return N.exports}();export{at as C,et as R,tt as T}; +import{U as u,n as r}from"./app.879f8ead.js";import{U as v}from"./tip.434a62e4.js";import{I as _}from"./ImgUpload.cc22c426.js";import{m as o}from"./vuex.cc7cb26e.js";import{R as f}from"./ReportEdit.8be7d715.js";import{R as $}from"./ReportDetail.b39ad266.js";import{D as k}from"./index.e6513292.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.checkinMode?[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4EBA\u8138\u56FE\u7247"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.checkin_face,callback:function(a){t.$set(t.keys,"checkin_face",a)},expression:"keys.checkin_face"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u4E0A\u4F20")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u4E0A\u4F20")))])],1)],1)]),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)],2)]),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",t._b({ref:"addProject",attrs:{model:t.departmentData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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",t._b({attrs:{model:t.checkinMacEditData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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}, ${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\u7B7E\u5230\u4EBA\u8138\u56FE\u7247")},model:{value:t.checkinFaceEditShow,callback:function(a){t.checkinFaceEditShow=a},expression:"checkinFaceEditShow"}},[e("Form",t._b({attrs:{model:t.checkinMacEditData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinFaceEditData.userid}, ${t.checkinFaceEditData.nickname}\u3011\u4EBA\u8138\u56FE\u7247\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"24"}},[t._v(t._s(t.$L("\u4EBA\u8138\u56FE\u7247")))])],1),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"24"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.checkinFaceEditData.faceimg,callback:function(a){t.$set(t.checkinFaceEditData,"faceimg",a)},expression:"checkinFaceEditData.faceimg"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A500x500")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinFaceEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinFaceEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinFaceEditData,!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",t._b({attrs:{model:t.departmentEditData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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}, ${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",t._b({attrs:{model:t.disableData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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}, ${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)},y=[];const L={name:"TeamManagement",components:{UserAvatarTip:v,UserSelect:u,ImgUpload:_},props:{checkinMode:{type:Boolean,default:!1}},data(){return{loadIng:0,minBox:!1,minWidth:0,keys:{},keyIs:!1,keyDisable:!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",{style:{minWidth:"50px"}},s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:h}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),h&&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("AutoTip",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)}}},{key:"line_at",width:168,renderHeader:t=>{const s=[];return this.keyDisable&&(s.push(t("span",{style:{color:"#f90"}},this.$L("\u79BB\u804C\u65F6\u95F4"))),s.push(t("span","/"))),s.push(t("span",this.$L("\u6700\u540E\u5728\u7EBF"))),t("AutoTip",s)},render:(t,s)=>{const{line_at:e,disable_at:a}=s.row,i=[];return this.keyDisable&&i.push(t("div",{style:{color:"#f90"}},a||"-")),i.push(t("div",e||"-")),t("div",i)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];this.checkinMode&&a.push(t("EDropdownItem",{props:{command:"checkin_face"},style:{color:"#f90",fontWeight:"bold"}},[t("div",this.$L("\u4FEE\u6539\u4EBA\u8138\u56FE\u7247"))]),t("EDropdownItem",{props:{command:"checkin_mac"},style:{color:"#f90",fontWeight:"bold"}},[t("div",this.$L("\u4FEE\u6539MAC\u5730\u5740"))])),e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin",divided:this.checkinMode}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin",divided:this.checkinMode}},[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"))]),t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))]),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:"red"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"red"}},[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:{},checkinFaceEditShow:!1,checkinFaceEditLoading:0,checkinFaceEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:"12:00",value(){return $A.daytz().startOf("day").add(12,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:"17:00",value(){return $A.daytz().startOf("day").add(17,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:"18:00",value(){return $A.daytz().startOf("day").add(18,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:"19:00",value(){return $A.daytz().startOf("day").add(19,"hour").toDate()},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return $A.daytz().toDate()},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.checkinMode&&this.columns.splice(5,0,{key:"checkin_face",minWidth:80,renderHeader:t=>t("AutoTip",{style:{color:"#f90"}},this.$L("\u4EBA\u8138\u56FE\u7247")),render:(t,{row:s})=>{const e=$A.cloneJSON(s.checkin_face||"");return t("div",e?this.$L("\u5DF2\u4E0A\u4F20"):"-")}},{key:"checkin_mac",minWidth:80,renderHeader:t=>t("AutoTip",{style:{color:"#f90"}},this.$L("MAC\u5730\u5740")),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:{...o(["formOptions"]),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)!="",this.keyDisable=this.keys.disable==="yes";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_data:this.checkinMode?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"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"checkin_face":this.checkinFaceEditData={type:"checkin_face",userid:s.userid,nickname:s.nickname,faceimg:s.checkin_face},this.checkinFaceEditShow=!0;break;case"setadmin":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}, ${s.nickname}\u3011\u8BBE\u4E3A\u7BA1\u7406\u5458\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"clearadmin":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}, ${s.nickname}\u3011\u7BA1\u7406\u5458\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}, ${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}, ${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"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}, ${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}, ${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=="checkin_face"?(this.checkinFaceEditLoading++,t={type:t.type,userid:t.userid,nickname:t.nickname,checkin_face:$A.arrayLength(t.faceimg)>0?t.faceimg[0].url:""}):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=="checkin_face"?this.checkinFaceEditShow=!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=="checkin_face"?this.checkinFaceEditLoading--: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 b=r(L,g,y,!1,D,null,null,null);function D(t){for(let s in l)this[s]=l[s]}var tt=function(){return b.exports}(),w=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)])},S=[];const x={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,render:(t,{row:s})=>t("AutoTip",this.$L(s.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row: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)}}},c={};var E=r(x,w,S,!1,I,null,null,null);function I(t){for(let s in c)this[s]=c[s]}var C=function(){return E.exports}(),A=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)])},M=[];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,render:(t,{row:s})=>t("AutoTip",this.$L(s.type==="daily"?"\u65E5\u62A5":"\u5468\u62A5"))},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_at",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column: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)})})})}}},d={};var O=r(T,A,M,!1,P,null,null,null);function P(t){for(let s in d)this[s]=d[s]}var z=function(){return O.exports}(),F=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:k,ReportEdit:f,ReportMy:C,ReportReceive:z,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:{...o(["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()}}},p={};var U=r(B,F,R,!1,W,null,null,null);function W(t){for(let s in p)this[s]=p[s]}var et=function(){return U.exports}(),Y=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",t._b({ref:"export",attrs:{model:t.formData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(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 H={name:"CheckinExport",components:{UserSelect:u},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)}},computed:{...o(["formOptions"])},methods:{dateShortcuts(t){if(t==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(t==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"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--}))}}},m={};var N=r(H,Y,j,!1,J,null,null,null);function J(t){for(let s in m)this[s]=m[s]}var at=function(){return N.exports}();export{at as C,et as R,tt as T}; diff --git a/public/js/build/DialogWrapper.86de099a.js b/public/js/build/DialogWrapper.86de099a.js deleted file mode 100644 index 8d31b9c7a..000000000 --- a/public/js/build/DialogWrapper.86de099a.js +++ /dev/null @@ -1,6 +0,0 @@ -import{m,a as ft}from"./vuex.cc7cb26e.js";import{n as d,M as kt,l as gt,U as _t,c as Ct,i as bt}from"./app.d8851986.js";import{l as _}from"./le5le-store.b40f9152.js";import{l as y}from"./longpress.5305f240.js";import{D as Lt}from"./index.4892e747.js";import{Q as $}from"./quill-hi.b7c37d93.js";import"./quill-mention-hi.f348056f.js";import{V as Dt}from"./vue.c448ed56.js";import{i as xt}from"./view-design-hi.563cfadb.js";import{V as It}from"./vue-virtual-scroll-list-hi.3a8a6077.js";import{I as vt}from"./ImgUpload.52758ba6.js";import{U as St}from"./tip.7b94707c.js";var Mt=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"common-circle",style:t.style,attrs:{"data-id":t.percent}},[e("svg",{attrs:{viewBox:"0 0 28 28"}},[e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),e("path",{staticClass:"common-circle-g-path-core",attrs:{d:t.arc(t.args)}})])])])])},Tt=[];const At={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:t}=this;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args(){const{percent:t}=this;let s=Math.min(360,360/100*t);return s==360?s=0:s==0&&(s=360),{x:14,y:14,r:14,start:360,end:s}}},methods:{isNumeric(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)},point(t,s,e,i){return[(t+Math.sin(i)*e).toFixed(2),(s-Math.cos(i)*e).toFixed(2)]},full(t,s,e,i){return i<=0?`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} Z`:`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} M ${t-i} ${s} A ${i} ${i} 0 1 1 ${t+i} ${s} A ${i} ${i} 1 1 1 ${t-i} ${s} Z`},part(t,s,e,i,a,o){const[r,n]=[a/360*2*Math.PI,o/360*2*Math.PI],l=[this.point(t,s,i,r),this.point(t,s,e,r),this.point(t,s,e,n),this.point(t,s,i,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 ${i} ${i} 0 ${c} 0 ${l[0][0]} ${l[0][1]} Z`},arc(t){const{x:s=0,y:e=0}=t;let{R:i=0,r:a=0,start:o,end:r}=t;return[i,a]=[Math.max(i,a),Math.min(i,a)],i<=0?"":o!==+o||r!==+r?this.full(s,e,i,a):Math.abs(o-r)<1e-6?"":Math.abs(o-r)%360<1e-6?this.full(s,e,i,a):([o,r]=[o%360,r%360],o>r&&(r+=360),this.part(s,e,i,a,o,r))}}},w={};var Et=d(At,Mt,Tt,!1,jt,null,null,null);function jt(t){for(let s in w)this[s]=w[s]}var Ft=function(){return Et.exports}();var Rt=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"markdown-body",domProps:{innerHTML:t._s(t.html)},on:{click:t.onCLick}})},Ot=[];const Vt={name:"DialogMarkdown",props:{text:{type:String,default:""}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:t}){return kt(t)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(s=>{const e=s.querySelector(".code-block-header__copy"),i=s.querySelector(".code-block-body");e&&i&&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=i.textContent)!=null?o:""):this.copyContent({text:(r=i.textContent)!=null?r:"",origin:!0})}))})},copyContent(t){const s={origin:!0,...t};let e;s.origin?e=document.createElement("textarea"):e=document.createElement("input"),e.setAttribute("readonly","readonly"),e.value=s.text,document.body.appendChild(e),e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(e)},onCLick(t){this.$emit("click",t)}}},k={};var Bt=d(Vt,Rt,Ot,!1,qt,null,null,null);function qt(t){for(let s in k)this[s]=k[s]}var $t=function(){return Bt.exports}(),Pt={components:{DialogMarkdown:$t},props:{msgId:Number,msg:Object},computed:{...m(["cacheTranslations"]),translation(){const t=this.cacheTranslations.find(s=>s.key===`msg-${this.msgId}`&&s.lang===gt);return t||null}},methods:{viewText(t){this.$emit("viewText",t)}}},Ut=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-text no-dark-content"},[t.msg.type==="md"?e("DialogMarkdown",{attrs:{text:t.msg.text},on:{click:t.viewText}}):e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msg.text,t.userId))},on:{click:t.viewText}}),t.translation?[e("div",{staticClass:"content-divider"},[e("span"),e("div",{staticClass:"divider-label"},[t._v(t._s(t.translation.label))]),e("span")]),t.msg.type==="md"?e("DialogMarkdown",{attrs:{text:t.translation.value}}):e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.translation.value,t.userId))}})]:t._e()],2)},Nt=[];const C={};var zt=d(Pt,Ut,Nt,!1,Wt,null,null,null);function Wt(t){for(let s in C)this[s]=C[s]}var Qt=function(){return zt.exports}(),Ht={props:{msg:Object},methods:{viewFile(){this.$emit("viewFile")},downFile(){this.$emit("downFile")},fileStyle(t){return t?{width:`${t}%`}:{}},imageStyle(t,s="style"){const{width:e,height:i}=t;if(e&&i){let a=220,o=220,r=e,n=i;return(e>a||i>o)&&(e>i?(r=a,n=i*(a/e)):(r=e*(o/i),n=o)),s==="width"?r:s==="height"?n:{width:r+"px",height:n+"px"}}return s==="width"||s==="height"?0:{}},isVideoFile(t){return t.type==="file"&&t.ext==="mp4"&&t.width>0&&t.height>0}}},Gt=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:`content-file ${t.msg.type}`},[e("div",{staticClass:"dialog-file"},[t.msg.type==="img"?e("img",{staticClass:"file-img",style:t.imageStyle(t.msg),attrs:{src:t.msg.thumb},on:{click:t.viewFile}}):t.isVideoFile(t.msg)?e("div",{staticClass:"file-video",style:t.imageStyle(t.msg),on:{click:t.viewFile}},[t.msg.thumb?e("img",{attrs:{src:t.msg.thumb}}):e("video",{attrs:{width:t.imageStyle(t.msg,"width"),height:t.imageStyle(t.msg,"height")}},[e("source",{attrs:{src:t.msg.path,type:"video/mp4"}})]),t._m(0)]):e("div",{staticClass:"file-box",on:{click:t.downFile}},[e("img",{staticClass:"file-thumb",attrs:{src:t.msg.thumb}}),e("div",{staticClass:"file-info"},[e("div",{staticClass:"file-name"},[t._v(t._s(t.msg.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msg.size)))])])]),t.msg.percentage?e("div",{staticClass:"file-percentage"},[e("span",{style:t.fileStyle(t.msg.percentage)})]):t._e()])])},Kt=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"file-play"},[e("div",{staticClass:"play-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE745")])])])}];const b={};var Jt=d(Ht,Gt,Kt,!1,Yt,null,null,null);function Yt(t){for(let s in b)this[s]=b[s]}var Xt=function(){return Jt.exports}(),Zt={components:{DialogMarkdown:$t},props:{msgId:Number,msg:Object},computed:{...m(["audioPlaying","cacheTranslations"]),translation(){const t=this.cacheTranslations.find(s=>s.key===`msg-${this.msgId}`&&s.lang===gt);return t||null}},methods:{playRecord(){this.$emit("playRecord")},recordStyle(t){const{duration:s}=t;return{width:50+Math.min(180,Math.floor(s/200))+"px"}},recordDuration(t){const s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60;return s>0?`${s}:${e}\u2033`:`${Math.max(1,e)}\u2033`}}},te=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-record no-dark-content"},[e("div",{staticClass:"dialog-record",class:{playing:t.audioPlaying===t.msg.path},style:t.recordStyle(t.msg),on:{click:t.playRecord}},[e("div",{staticClass:"record-time"},[t._v(t._s(t.recordDuration(t.msg.duration)))]),e("div",{staticClass:"record-icon taskfont"})]),t.msg.text?[t._m(0),e("div",{staticClass:"content-additional"},[t._v(t._s(t.msg.text))])]:t._e(),t.translation?[e("div",{staticClass:"content-divider"},[e("span"),e("div",{staticClass:"divider-label"},[t._v(t._s(t.translation.label))]),e("span")]),e("div",{staticClass:"content-additional"},[t._v(t._s(t.translation.value))])]:t._e()],2)},ee=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-divider"},[e("span",{staticClass:"divider-full"})])}];const L={};var se=d(Zt,te,ee,!1,ie,null,null,null);function ie(t){for(let s in L)this[s]=L[s]}var ae=function(){return se.exports}(),oe={props:{msg:Object},methods:{openMeeting(){this.$emit("openMeeting")},channelID(t){return t.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3")}}},re=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-meeting no-dark-content"},[e("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!t.msg.end_at}},[e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),t._v(" "+t._s(t.msg.name)+" ")]),e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),e("UserAvatar",{attrs:{userid:t.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.channelID(t.msg.meetingid))+" ")]),t.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")])])])])},ne=[];const D={};var le=d(oe,re,ne,!1,ce,null,null,null);function ce(t){for(let s in D)this[s]=D[s]}var de=function(){return le.exports}(),ue={props:{msg:Object,msgId:Number,unfoldWordChainData:Array},methods:{unfoldWordChain(){this.$emit("unfoldWordChain")},onWordChain(){this.$emit("onWordChain")}}},he=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-text content-word-chain no-dark-content"},[e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msg.text,t.userId))}}),e("ul",{class:{expand:t.unfoldWordChainData.indexOf(t.msgId)!==-1}},[t._l((t.msg.list||[]).filter(function(i){return i.type=="case"}),function(i){return e("li",[t._v(" "+t._s(t.$L("\u4F8B"))+" "+t._s(i.text)+" ")])}),t._l((t.msg.list||[]).filter(function(i){return i.type!="case"&&i.text}),function(i,a){return e("li",[a==2&&t.msg.list.length>4?e("span",{staticClass:"expand",on:{click:t.unfoldWordChain}},[t._v(" ..."+t._s(t.$L("\u5C55\u5F00"))+"... ")]):t._e(),e("span",{class:{shrink:a>=2&&t.msg.list.length>4}},[t._v(" "+t._s(a+1)+". "+t._s(i.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)])},pe=[];const x={};var me=d(ue,he,pe,!1,fe,null,null,null);function fe(t){for(let s in x)this[s]=x[s]}var ge=function(){return me.exports}(),_e={props:{msg:Object,voteData:Object},methods:{getVoteProgress(t,s){const e=t.votes.filter(a=>(a.votes||"").indexOf(s)!=-1).length,i=e?(e/t.votes.length*100).toFixed(2):"0.00";return{num:e,progress:i}},onVote(t){this.$emit("onVote",t)}}},ve=function(){var t=this,s=t.$createElement,e=t._self._c||s;return 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.msg.multiple==1?t.$L("\u591A\u9009"):t.$L("\u5355\u9009")))]),e("span",[t._v(t._s(t.msg.anonymous==1?t.$L("\u533F\u540D"):t.$L("\u5B9E\u540D")))])]),e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msg.text,t.userId))}}),(t.msg.votes||[]).filter(function(i){return i.userid==t.userId}).length==0?[t.msg.multiple==0?e("RadioGroup",{attrs:{vertical:""},model:{value:t.voteData[t.msg.uuid],callback:function(i){t.$set(t.voteData,t.msg.uuid,i)},expression:"voteData[msg.uuid]"}},t._l(t.msg.list||[],function(i,a){return e("Radio",{key:a,attrs:{label:i.id}},[t._v(" "+t._s(i.text)+" ")])}),1):e("CheckboxGroup",{model:{value:t.voteData[t.msg.uuid],callback:function(i){t.$set(t.voteData,t.msg.uuid,i)},expression:"voteData[msg.uuid]"}},t._l(t.msg.list||[],function(i,a){return e("Checkbox",{key:a,attrs:{label:i.id}},[t._v(" "+t._s(i.text)+" ")])}),1),e("div",{staticClass:"btn-row"},[(t.voteData[t.msg.uuid]||[]).length==0?e("Button",{staticClass:"ivu-btn-grey",attrs:{disabled:""}},[t._v(t._s(t.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):e("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:t.msg._loadIng>0},on:{click:function(i){return t.onVote("vote")}}},[t._v(t._s(t.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[e("div",{staticClass:"vote-result-body"},[e("ul",t._l(t.msg.list||[],function(i){return e("li",[e("div",{staticClass:"vote-option-title"},[t._v(t._s(i.text))]),e("div",{staticClass:"ticket-num"},[e("span",[t._v(t._s(t.getVoteProgress(t.msg,i.id).num)+t._s(t.$L("\u7968")))]),e("span",[t._v(t._s(t.getVoteProgress(t.msg,i.id).progress+"%"))])]),e("Progress",{attrs:{percent:Number(t.getVoteProgress(t.msg,i.id).progress),"stroke-width":5,"hide-info":""}}),t.msg.anonymous==0?e("div",{staticClass:"avatar-row"},[t._l((t.msg.votes||[]).filter(function(a){return a.votes.indexOf(i.id)!=-1}),function(a){return[e("UserAvatar",{attrs:{userid:a.userid,size:18}})]})],2):t._e()],1)}),0)]),t.msg.state==1&&t.msg.userid==t.userId?e("div",{staticClass:"btn-row"},[e("Button",{attrs:{type:"warning",loading:t.msg._loadIng>0},on:{click:function(i){return t.onVote("again")}}},[t._v(t._s(t.$L("\u518D\u6B21\u53D1\u9001")))]),e("Button",{attrs:{type:"warning",loading:t.msg._loadIng>0},on:{click:function(i){return t.onVote("finish")}}},[t._v(t._s(t.$L("\u7ED3\u675F\u6295\u7968")))])],1):t._e()]],2)},$e=[];const I={};var ye=d(_e,ve,$e,!1,we,null,null,null);function we(t){for(let s in I)this[s]=I[s]}var ke=function(){return ye.exports}(),Ce={props:{msg:Object},data(){return{}},computed:{},methods:{}},be=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t._v(" "+t._s(t.$L("\u60A8\u597D\uFF0C\u6211\u662F\u673A\u5668\u4EBA"))+"\uFF1A"+t._s(t.msg.data.nickname)+"\uFF0C"+t._s(t.$L("\u6211\u7684\u673A\u5668\u4EBAID\u662F"))+"\uFF1A"+t._s(t.msg.data.userid)+"\uFF0C"+t._s(t.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),e("span",{staticClass:"mark-color"},[t._v("/help")]),t._v(" "+t._s(t.$L("\u67E5\u770B\u6211\u652F\u6301\u4EC0\u4E48\u547D\u4EE4"))+"\u3002 ")])},Le=[];const S={};var De=d(Ce,be,Le,!1,xe,null,null,null);function xe(t){for(let s in S)this[s]=S[s]}var Ie=function(){return De.exports}(),Se={props:{msg:Object},data(){return{}},computed:{IDLabel(){return this.msg.manager?this.$L(" {\u673A\u5668\u4EBAID}"):""}}},Me=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[t._v(t._s(t.$L("\u60A8\u53EF\u4EE5\u901A\u8FC7\u53D1\u9001\u4EE5\u4E0B\u547D\u4EE4\u6765\u63A7\u5236\u6211"))+"\uFF1A")]),e("p",[t._v("\xA0")]),t.msg.manager?[e("p",[e("span",{staticClass:"mark-color"},[t._v("/list")]),t._v(" - "+t._s(t.$L("\u673A\u5668\u4EBA\u5217\u8868")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/newbot ("+t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+")")]),t._v(" - "+t._s(t.$L("\u521B\u5EFA\u673A\u5668\u4EBA")))])]:[e("p",[e("span",{staticClass:"mark-color"},[t._v("/info")]),t._v(" - "+t._s(t.$L("\u67E5\u770B\u673A\u5668\u4EBA\u8BE6\u60C5")))])],e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u4FEE\u6539\u673A\u5668\u4EBA")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/setname"+t._s(t.IDLabel)+" ("+t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+")")]),t._v(" - "+t._s(t.$L("\u4FEE\u6539\u673A\u5668\u4EBA\u540D\u79F0")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/deletebot"+t._s(t.IDLabel))]),t._v(" - "+t._s(t.$L("\u5220\u9664\u673A\u5668\u4EBA")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/clearday"+t._s(t.IDLabel)+" ("+t._s(t.$L("\u5929\u6570"))+")")]),t._v(" - "+t._s(t.$L("\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4\uFF08\u9ED8\u8BA430\u5929\uFF09")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/webhook"+t._s(t.IDLabel)+" [url]")]),t._v(" - "+t._s(t.$L("\u8BBE\u7F6E\u6D88\u606FWebhook\uFF08\u8BE6\u60C5\u8BF7\u770B API\u63A5\u53E3\u6587\u6863\uFF09")))]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u8BBE\u7F6E")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/token"+t._s(t.IDLabel))]),t._v(" - "+t._s(t.$L("\u751F\u6210Token\u4EE4\u724C")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/revoke"+t._s(t.IDLabel))]),t._v(" - "+t._s(t.$L("\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C")))]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u4F1A\u8BDD\u7BA1\u7406")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/dialog"+t._s(t.IDLabel)+" ["+t._s(t.$L("\u641C\u7D22\u5173\u952E\u8BCD"))+"]")]),t._v(" - "+t._s(t.$L("\u67E5\u770B\u4F1A\u8BDDID")))]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("API\u63A5\u53E3\u6587\u6863")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/api")]),t._v(" - "+t._s(t.$L("\u67E5\u770B\u63A5\u53E3\u5217\u8868")))])],2)},Te=[];const M={};var Ae=d(Se,Me,Te,!1,Ee,null,null,null);function Ee(t){for(let s in M)this[s]=M[s]}var je=function(){return Ae.exports}(),Fe={props:{msg:Object},data(){return{}},computed:{},methods:{}},Re=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u6211\u7684\u673A\u5668\u4EBA")))])]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("ID | \u540D\u79F0 | \u6E05\u7406\u65F6\u95F4 | Webhook")))])]),t._l(t.msg.data,function(i){return e("p",[t._v(t._s(i.userid)+" | "+t._s(i.nickname)+" | "+t._s(i.clear_day)+" | "+t._s(i.webhook_url?"\u2705":"-"))])})],2)},Oe=[];const T={};var Ve=d(Fe,Re,Oe,!1,Be,null,null,null);function Be(t){for(let s in T)this[s]=T[s]}var qe=function(){return Ve.exports}(),Pe={props:{msg:Object},data(){return{}},computed:{},methods:{}},Ue=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u8BE6\u60C5")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v(t._s(t.$L("\u4FDD\u7559\u6D88\u606F\u65F6\u95F4"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_day))])]),e("p",[t._v(t._s(t.$L("\u6700\u540E\u4E00\u6B21\u6E05\u7406\u65F6\u95F4"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_at||"-"))])]),e("p",[t._v(t._s(t.$L("Webhook\u5730\u5740"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.webhook_url||"-"))])]),e("p",[t._v(t._s(t.$L("Webhook\u8BF7\u6C42\u6B21\u6570"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.webhook_num))])])])},Ne=[];const A={};var ze=d(Pe,Ue,Ne,!1,We,null,null,null);function We(t){for(let s in A)this[s]=A[s]}var Qe=function(){return ze.exports}(),He={props:{msg:Object},data(){return{}},computed:{},methods:{}},Ge=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u521B\u5EFA\u6210\u529F")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},Ke=[];const E={};var Je=d(He,Ge,Ke,!1,Ye,null,null,null);function Ye(t){for(let s in E)this[s]=E[s]}var Xe=function(){return Je.exports}(),Ze={props:{msg:Object},data(){return{}},computed:{},methods:{}},ts=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u8BBE\u7F6E\u540D\u79F0\u6210\u529F")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},es=[];const j={};var ss=d(Ze,ts,es,!1,is,null,null,null);function is(t){for(let s in j)this[s]=j[s]}var as=function(){return ss.exports}(),os={props:{msg:Object},data(){return{}},computed:{},methods:{}},rs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u5220\u9664\u6210\u529F")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},ns=[];const F={};var ls=d(os,rs,ns,!1,cs,null,null,null);function cs(t){for(let s in F)this[s]=F[s]}var ds=function(){return ls.exports}(),us={props:{msg:Object},data(){return{}},computed:{},methods:{}},hs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u751F\u6210Token\u4EE4\u724C")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v("Token\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.token))])])])},ps=[];const R={};var ms=d(us,hs,ps,!1,fs,null,null,null);function fs(t){for(let s in R)this[s]=R[s]}var gs=function(){return ms.exports}(),_s={props:{msg:Object},data(){return{}},computed:{},methods:{}},vs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},$s=[];const O={};var ys=d(_s,vs,$s,!1,ws,null,null,null);function ws(t){for(let s in O)this[s]=O[s]}var ks=function(){return ys.exports}(),Cs={props:{msg:Object},data(){return{}},computed:{},methods:{}},bs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u8BBE\u7F6EWebhook\u5730\u5740")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v(t._s(t.$L("Webhook\u5730\u5740"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.webhook_url))])])])},Ls=[];const V={};var Ds=d(Cs,bs,Ls,!1,xs,null,null,null);function xs(t){for(let s in V)this[s]=V[s]}var Is=function(){return Ds.exports}(),Ss={props:{msg:Object},data(){return{}},computed:{},methods:{}},Ms=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v(t._s(t.$L("\u6E05\u7406\u5468\u671F"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_day)+t._s(t.$L("\u5929")))])]),e("p",[t._v(t._s(t.$L("\u4E0B\u6B21\u6E05\u7406"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_at))])])])},Ts=[];const B={};var As=d(Ss,Ms,Ts,!1,Es,null,null,null);function Es(t){for(let s in B)this[s]=B[s]}var js=function(){return As.exports}(),Fs={props:{msg:Object},data(){return{}},computed:{},methods:{}},Rs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u673A\u5668\u4EBA"))+" "),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname)+" (ID:"+t._s(t.msg.data.userid)+")")]),t._v(" "+t._s(t.$L("\u5DF2\u52A0\u5165\u7684\u4F1A\u8BDD"))+"\uFF1A")])]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u4F1A\u8BDDID | \u4F1A\u8BDD\u540D\u79F0")))])]),t._l(t.msg.data.list,function(i){return e("p",[t._v(" "+t._s(i.id)+" | "+t._s(i.name)+t._s(i.type=="user"?t.$L(" (\u4E2A\u4EBA)"):"")+" ")])})],2)},Os=[];const q={};var Vs=d(Fs,Rs,Os,!1,Bs,null,null,null);function Bs(t){for(let s in q)this[s]=q[s]}var qs=function(){return Vs.exports}(),Ps={props:{msg:Object},data(){return{}},computed:{},methods:{}},Us=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[t._v(t._s(t.$L("\u4F60\u53EF\u4EE5\u901A\u8FC7\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u6765\u8BF7\u6C42\u6211"))+":")]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u53D1\u9001\u6587\u672C\u6D88\u606F"))+"\uFF1A")])]),e("p",[t._v("curl --request POST '"+t._s(t.$A.apiUrl("dialog/msg/sendtext"))+"' \\")]),e("p",[t._v("--header 'version: "+t._s(t.msg.version)+"' \\")]),e("p",[t._v("--header 'token: "),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u673A\u5668\u4EBAToken")))]),t._v("' \\")]),e("p",[t._v(`--form 'dialog_id="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u5BF9\u8BDDID")))]),t._v(`"' \\`)]),e("p",[t._v(`--form 'text="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u6D88\u606F\u5185\u5BB9")))]),t._v(`"'`)]),t._m(0),e("p",[t._v(`--form 'key="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u641C\u7D22\u8BCD (\u7559\u7A7A\u81EA\u52A8\u751F\u6210)")))]),t._v(`"'`)]),t._m(1),e("p",[t._v(`--form 'reply_id="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u56DE\u590D\u6307\u5B9A\u6D88\u606FID")))]),t._v(`"'`)]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("Webhook\u8BF4\u660E"))+"\uFF1A")])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u6536\u5230\u6D88\u606F\u540E\u4F1A\u5C06\u6D88\u606FPOST\u63A8\u9001\u5230Webhook\u5730\u5740\uFF0C\u8BF7\u6C42\u8D85\u65F6\u4E3A10\u79D2\uFF0C\u8BF7\u6C42\u53C2\u6570\u5982\u4E0B"))+"\uFF1A")]),e("p",[e("span",{staticClass:"mark-color"},[t._v("text")]),t._v(": "+t._s(t.$L("\u6D88\u606F\u6587\u672C")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("token")]),t._v(": "+t._s(t.$L("\u673A\u5668\u4EBAToken")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("dialog_id")]),t._v(": "+t._s(t.$L("\u5BF9\u8BDDID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("dialog_type")]),t._v(": "+t._s(t.$L("\u5BF9\u8BDD\u7C7B\u578B")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("msg_id")]),t._v(": "+t._s(t.$L("\u6D88\u606FID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("msg_uid")]),t._v(": "+t._s(t.$L("\u6D88\u606F\u53D1\u9001\u4EBAID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("mention")]),t._v(": "+t._s(t.$L("\u662F\u5426\u88AB@\u5230")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("bot_uid")]),t._v(": "+t._s(t.$L("\u673A\u5668\u4EBAID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("version")]),t._v(": "+t._s(t.$L("\u7CFB\u7EDF\u7248\u672C")))])])},Ns=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("p",[t._v(`--form 'text_type="`),e("span",{staticClass:"mark-color"},[t._v("[html|md]")]),t._v(`"'`)])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("p",[t._v(`--form 'silence="`),e("span",{staticClass:"mark-color"},[t._v("[yes|no]")]),t._v(`"'`)])}];const P={};var zs=d(Ps,Us,Ns,!1,Ws,null,null,null);function Ws(t){for(let s in P)this[s]=P[s]}var Qs=function(){return zs.exports}(),Hs={props:{msg:Object},data(){return{}},computed:{},methods:{}},Gs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(`${t.msg.data.nickname} \u63D0\u4EA4\u7684\u300C${t.$L(t.msg.data.proc_def_name)}\u300D\u5F85\u4F60\u5BA1\u6279`)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BE6\u60C5")))]),t.msg.data.type?e("p",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+t._s(t.msg.data.type))]):t._e(),e("p",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.start_time)+" ("+t._s(t.msg.data.start_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.end_time)+" ("+t._s(t.msg.data.end_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u4E8B\u7531"))+"\uFF1A"+t._s(t.msg.data.description))])]),e("div",{staticClass:"btn-raw no-dark-content"},[t.msg.action==="pass"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u540C\u610F")))]):t.msg.action==="refuse"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t.msg.action==="withdraw"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u64A4\u9500")))]):[e("button",{staticClass:"ivu-btn ivu-btn-primary"},[t._v(t._s(t.$L("\u540C\u610F")))]),e("button",{staticClass:"ivu-btn ivu-btn-error"},[t._v(t._s(t.$L("\u62D2\u7EDD")))])]],2)])},Ks=[];const U={};var Js=d(Hs,Gs,Ks,!1,Ys,null,null,null);function Ys(t){for(let s in U)this[s]=U[s]}var Xs=function(){return Js.exports}(),Zs={props:{msg:Object},data(){return{}},computed:{},methods:{}},ti=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(`\u6284\u9001 ${t.msg.data.nickname} \u63D0\u4EA4\u7684\u300C${t.$L(t.msg.data.proc_def_name)}\u300D\u8BB0\u5F55`)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BE6\u60C5")))]),t.msg.data.type?e("p",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+t._s(t.msg.data.type))]):t._e(),e("p",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.start_time)+" ("+t._s(t.msg.data.start_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.end_time)+" ("+t._s(t.msg.data.end_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u4E8B\u7531"))+"\uFF1A"+t._s(t.msg.data.description))])]),e("div",{staticClass:"btn-raw no-dark-content"},[t.msg.is_finished?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u540C\u610F")))]):e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u67E5\u770B\u8BE6\u60C5")))])])])},ei=[];const N={};var si=d(Zs,ti,ei,!1,ii,null,null,null);function ii(t){for(let s in N)this[s]=N[s]}var ai=function(){return si.exports}(),oi={props:{msg:Object},data(){return{}},computed:{isPicture(){const{comment_pictures:t}=this.msg.data;return $A.isArray(t)&&t.length>0}},methods:{}},ri=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(`${t.msg.data.comment_nickname} \u8BC4\u8BBA\u4E86 ${t.msg.data.nickname} \u7684\u300C${t.$L(t.msg.data.proc_def_name)}\u300D\u5BA1\u6279`)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BC4\u8BBA\u5185\u5BB9")))]),e("p",[t._v(t._s(t.msg.data.comment_content))]),t.isPicture?e("p",[t._v("["+t._s(t.$L("\u56FE\u7247"))+"]")]):t._e()]),e("div",{staticClass:"btn-raw no-dark-content"},[e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u67E5\u770B\u8BE6\u60C5")))])])])},ni=[];const z={};var li=d(oi,ri,ni,!1,ci,null,null,null);function ci(t){for(let s in z)this[s]=z[s]}var di=function(){return li.exports}(),ui={props:{msg:Object},data(){return{}},computed:{title({msg:t}){return t.action==="pass"?`\u60A8\u53D1\u8D77\u7684\u300C${this.$L(t.data.proc_def_name)}\u300D\u5DF2\u901A\u8FC7`:`\u60A8\u53D1\u8D77\u7684\u300C${this.$L(t.data.proc_def_name)}\u300D\u88AB ${t.data.nickname} \u62D2\u7EDD`}},methods:{}},hi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(t.title)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.start_nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BE6\u60C5")))]),t.msg.data.type?e("p",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+t._s(t.msg.data.type))]):t._e(),e("p",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.start_time)+" ("+t._s(t.msg.data.start_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.end_time)+" ("+t._s(t.msg.data.end_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u4E8B\u7531"))+"\uFF1A"+t._s(t.msg.data.description))])]),e("div",{staticClass:"btn-raw no-dark-content"},[t.msg.action==="pass"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u540C\u610F")))]):t.msg.action==="refuse"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t.msg.action==="withdraw"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u64A4\u9500")))]):t._e()])])},pi=[];const W={};var mi=d(ui,hi,pi,!1,fi,null,null,null);function fi(t){for(let s in W)this[s]=W[s]}var gi=function(){return mi.exports}(),_i={props:{msg:Object},data(){return{}},computed:{},methods:{}},vi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[t._v(t._s(t.$L(t.msg.title)))]),e("p",[t._v("\xA0")]),t._l(t.msg.list,function(i){return e("p",[e("span",{staticClass:"mention task",attrs:{"data-id":i.id}},[t._v("#"+t._s(i.name))])])})],2)},$i=[];const Q={};var yi=d(_i,vi,$i,!1,wi,null,null,null);function wi(t){for(let s in Q)this[s]=Q[s]}var ki=function(){return yi.exports}(),Ci={props:{msg:Object},data(){return{}},computed:{},methods:{}},bi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L(t.msg.title)))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u6587\u4EF6\u540D"))+": "+t._s(t.msg.name))]),e("p",[t._v(t._s(t.$L("\u6587\u4EF6\u5927\u5C0F"))+": "+t._s(t.$A.bytesToSize(t.msg.size)))]),e("p",{staticStyle:{"margin-top":"10px"}},[e("Button",{staticClass:"no-dark-content",attrs:{to:t.msg.url,target:"_blank",type:"warning"}},[t._v(t._s(t.$L("\u7ACB\u5373\u4E0B\u8F7D")))])],1)])},Li=[];const H={};var Di=d(Ci,bi,Li,!1,xi,null,null,null);function xi(t){for(let s in H)this[s]=H[s]}var Ii=function(){return Di.exports}(),Si={props:{msg:Object},data(){return{}},computed:{items({msg:t}){const{content:s}=t;return $A.isArray(s)?s.map(e=>this.formatContent(e)):[this.formatContent(s)]}},methods:{formatContent(t){return $A.isJson(t)?{content:t.language===!1?t.content:this.$L(t.content),style:t.style||{}}:{content:this.$L(t),style:{}}}}},Mi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",t._l(t.items,function(i,a){return e("p",{key:a,style:i.style},[t._v(t._s(i.content))])}),0)},Ti=[];const G={};var Ai=d(Si,Mi,Ti,!1,Ei,null,null,null);function Ei(t){for(let s in G)this[s]=G[s]}var ji=function(){return Ai.exports}(),Fi={props:{msg:Object},data(){return{}},computed:{isBot(){return/^\//.test(this.msg.type)}},methods:{}},Ri=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.isBot?e("div",[t._v(" "+t._s(t.$L("\u4E0D\u652F\u6301\u7684\u6307\u4EE4"))+" "),e("span",{staticClass:"warning-color"},[t._v(t._s(t.msg.type))]),t._v("\uFF0C"+t._s(t.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),e("span",{staticClass:"mark-color"},[t._v("/help")]),t._v(" "+t._s(t.$L("\u67E5\u770B\u5E2E\u52A9\u83DC\u5355"))+"\u3002 ")]):e("div",[t._v(" "+t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F"))+" ")])},Oi=[];const K={};var Vi=d(Fi,Ri,Oi,!1,Bi,null,null,null);function Bi(t){for(let s in K)this[s]=K[s]}var qi=function(){return Vi.exports}(),Pi={props:{msg:Object},data(){return{}},computed:{currentTemplate(){switch(this.msg.type){case"/hello":return Ie;case"/help":return je;case"/list":return qe;case"/info":return Qe;case"/newbot":return Xe;case"/setname":return as;case"/deletebot":return ds;case"/token":return gs;case"/revoke":return ks;case"/webhook":return Is;case"/clearday":return js;case"/dialog":return qs;case"/api":return Qs;case"approve_reviewer":return Xs;case"approve_notifier":return ai;case"approve_comment_notifier":return di;case"approve_submitter":return gi;case"task_list":return ki;case"file_download":return Ii;case"content":return ji;default:return qi}}},methods:{viewText(t){this.$emit("viewText",t)}}},Ui=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:`content-template no-dark-content ${t.msg.type}`,on:{click:t.viewText}},[e(t.currentTemplate,{tag:"component",attrs:{msg:t.msg}})],1)},Ni=[];const J={};var zi=d(Pi,Ui,Ni,!1,Wi,null,null,null);function Wi(t){for(let s in J)this[s]=J[s]}var Qi=function(){return zi.exports}(),Hi={props:{error:Boolean}},Gi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-loading"},[t.error===!0?e("Icon",{attrs:{type:"ios-alert-outline"}}):e("Loading")],1)},Ki=[];const Y={};var Ji=d(Hi,Gi,Ki,!1,Yi,null,null,null);function Yi(t){for(let s in Y)this[s]=Y[s]}var Xi=function(){return Ji.exports}(),Zi={},ta=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-unknown"},[t._v(t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F")))])},ea=[];const X={};var sa=d(Zi,ta,ea,!1,ia,null,null,null);function ia(t){for(let s in X)this[s]=X[s]}var aa=function(){return sa.exports}(),oa=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-view",class:t.viewClass,attrs:{"data-id":t.msgData.id}},[t.dialogType==="group"?e("div",{staticClass:"dialog-username"},[e("UserAvatar",{attrs:{userid:t.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):t._e(),e("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:t.headClass,on:{click:t.handleClick}},[!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(i){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("TextMsg",{attrs:{msgId:t.msgData.id,msg:t.msgData.msg},on:{viewText:t.viewText}}):t.msgData.type==="file"?e("FileMsg",{attrs:{msg:t.msgData.msg},on:{viewFile:t.viewFile,downFile:t.downFile}}):t.msgData.type==="record"?e("RecordMsg",{attrs:{msgId:t.msgData.id,msg:t.msgData.msg},on:{playRecord:t.playRecord}}):t.msgData.type==="meeting"?e("MeetingMsg",{attrs:{msg:t.msgData.msg},on:{openMeeting:t.openMeeting}}):t.msgData.type==="word-chain"?e("WordChainMsg",{attrs:{msg:t.msgData.msg,msgId:t.msgData.id,unfoldWordChainData:t.unfoldWordChainData},on:{unfoldWordChain:function(i){return t.unfoldWordChain(t.msgData)},onWordChain:t.onWordChain}}):t.msgData.type==="vote"?e("VoteMsg",{attrs:{msg:t.msgData.msg,voteData:t.voteData},on:{onVote:function(i){return t.onVote(i,t.msgData)}}}):t.msgData.type==="template"?e("TemplateMsg",{attrs:{msg:t.msgData.msg},on:{viewText:t.viewText}}):t.isLoading?e("LoadMsg",{attrs:{error:t.msgData.error}}):e("UnknownMsg")],1),t.$A.arrayLength(t.msgData.emoji)>0?e("ul",{staticClass:"dialog-emoji"},t._l(t.msgData.emoji,function(i,a){return e("li",{key:a,class:{hasme:i.userids.includes(t.userId)}},[e("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(o){return t.onEmoji(i.symbol)}}},[t._v(t._s(i.symbol))]),e("div",{staticClass:"emoji-users",on:{click:function(o){return t.onShowEmojiUser(i)}}},[e("ul",[t._l(i.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(i){t.todoShow=i},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(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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("span",{staticClass:"space"}),e("Button",{attrs:{type:"primary",size:"small"},on:{click:t.handleTodoAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1),e("ul",t._l(t.todoUndoneList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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(i){t.timeShow=!1}}},[t._v(t._s(t.msgData.created_at))]):e("div",{staticClass:"time",attrs:{title:t.msgData.created_at},on:{click:function(i){t.timeShow=!0}}},[t._v(t._s(t.$A.timeFormat(t.msgData.created_at)))]),t.hidePercentage?t._e():[t.msgData.send>1||t.dialogType==="group"?e("div",{staticClass:"percent",on:{click:t.openReadPercentage}},[e("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.percentageShow,callback:function(i){t.percentageShow=i},expression:"percentageShow"}},[e("div",{staticClass:"read-poptip-content"},[e("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(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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)])},ra=[];const na={name:"DialogView",components:{UnknownMsg:aa,LoadMsg:Xi,TemplateMsg:Qi,VoteMsg:ke,WordChainMsg:ge,MeetingMsg:de,RecordMsg:ae,TextMsg:Qt,FileMsg:Xt,WCircle:Ft},directives:{longpress:y},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},pointerMouse:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5,voteData:{},dotClicks:[],unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var t;this.$store.dispatch("audioStop",(t=this.msgData.msg)==null?void 0:t.path)},computed:{...m(["loads"]),...ft(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:t,operateAction:s,operateEnter:e,pointerMouse:i}=this,a=[];return t.type&&a.push(t.type),s&&(a.push("operate-action"),e&&a.push("pointer-mouse")),i&&a.indexOf("pointer-mouse")===-1&&a.push("pointer-mouse"),a},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{id:t,reply_id:s,type:e,msg:i,emoji:a,dot:o}=this.msgData,r=[];return o&&!this.dotClicks.includes(t)&&r.push("dot"),s===0&&$A.arrayLength(a)===0&&e==="text"&&(/^]*?>$/.test(i.text)||/^\s*

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

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

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

\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/.test(s.text)&&e.push("an-emoji")),e}},watch:{operateAction(t){this.operateEnter=!1,t&&setTimeout(s=>this.operateEnter=!0,500)},voteData:{handler(t){const s=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const e in t)s[e]=t[e];Object.keys(s).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(s))},deep:!0}},methods:{handleLongpress(t,s){this.$emit("on-longpress",{event:t,el:s,msgData:this.msgData})},handleClick(){this.msgData.dot&&(this.dotClicks.push(this.msgData.id),this.$store.dispatch("dialogMsgDot",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)})}},handleTodoAdd(){this.$refs.todo.doClose(),this.$emit("on-other",{event:"todoAdd",data:{msg_id:this.msgData.id,userids:this.todoList.map(({userid:t})=>t)}})},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)})}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||_.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(s=>{this.goForward({name:"manage-messenger"})}).catch(({msg:s})=>{$A.modalError(s)})},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)},unfoldWordChain(t){if(this.unfoldWordChainData.indexOf(t.id)==-1){const s=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];s.push(t.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(s)),this.unfoldWordChainData.push(t.id)}},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},onVote(t,s){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.submitVote(t,s)}});return}this.submitVote(t,s)},submitVote(t,s){this.$set(s.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:s.dialog_id,uuid:s.msg.uuid,vote:this.voteData[s.msg.uuid]||[],type:t}}).then(({data:e})=>{t=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),e.forEach(i=>{this.$store.dispatch("saveDialogMsg",i)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$set(s.msg,"_loadIng",0)})}}},Z={};var la=d(na,oa,ra,!1,ca,null,null,null);function ca(t){for(let s in Z)this[s]=Z[s]}var da=function(){return la.exports}(),ua=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(i,a){return[a<3?e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:i,"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.$L(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,"pointer-mouse":t.pointerMouse,"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-other":t.onOther,"on-show-emoji-user":t.onShowEmojiUser}})]],2)},ha=[];const pa={name:"DialogItem",components:{DialogView:da},directives:{longpress:y},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},pointerMouse:{type:Boolean,default:!1},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1}},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:s}=t;if(s)return s.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onOpenDialog(t){this.dialogData.type=="group"&&this.$store.dispatch("openDialogUserid",t).then(s=>{this.goForward({name:"manage-messenger"})}).catch(({msg:s})=>{$A.modalError(s)})},onMention(){this.dispatch("on-mention",this.source)},onLongpress(t){this.dispatch("on-longpress",t)},onViewReply(t){this.dispatch("on-view-reply",t)},onViewText(t,s){this.dispatch("on-view-text",t,s)},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)},onOther(t){this.dispatch("on-other",t)},onShowEmojiUser(t){this.dispatch("on-show-emoji-user",t)},dispatch(t,...s){if(this.isReply){this.$emit(t,...s);return}let e=this.$parent,i=e.$options.name;for(;e&&(!i||i!=="virtual-list");)e=e.$parent,e&&(i=e.$options.name);e&&e.$emit(t,...s)}}},tt={};var ma=d(pa,ua,ha,!1,fa,null,null,null);function fa(t){for(let s in tt)this[s]=tt[s]}var et=function(){return ma.exports}(),ga=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,data:t.params,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"before-upload":t.handleBeforeUpload,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize}})},_a=[];const va={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,s=void 0){const e=this.fileMsgName(t);if($A.isJson(s)){this.fileMsgCaches[e]=Object.assign(this.fileMsgCaches[e]||{},s);return}s={type:"file",thumb:null,width:-1,height:-1,name:t.name,size:t.size,ext:t.name.split(".").pop()};let{ext:i}=s;i==="docx"?i="doc":i==="xlsx"?i="xls":i==="pptx"&&(i="ppt"),["ai","avi","bmp","cdr","doc","eps","gif","mov","mp3","mp4","pdf","ppt","pr","psd","rar","svg","tif","txt","xls","zip"].includes(i)?s.thumb=$A.mainUrl(`images/ext/${i}.png`):s.thumb=$A.mainUrl("images/ext/file.png"),this.fileMsgCaches[e]=s},handleBeforeUpload(t){return new Promise(s=>{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),s()}).finally(()=>{this.$store.dispatch("hiddenSpinner")});return}s()})},handleProgress(t,s){if(s.tempId===void 0){this.$parent.$options.name==="DialogWrapper"?s.tempId=this.$parent.getTempId():s.tempId=$A.randNum(1e9,9999999999),s.msg={};const e=this.fileMsgName(s);this.fileMsgCaches[e]&&(s.msg=this.fileMsgCaches[e],delete this.fileMsgCaches[e])}this.$emit("on-progress",s)},handleSuccess(t,s){t.ret===1?(s.data=t.data,this.$emit("on-success",s),t.data.task_id&&this.$store.dispatch("getTaskFiles",t.data.task_id)):($A.modalWarning({title:"\u53D1\u9001\u5931\u8D25",content:"\u6587\u4EF6 "+s.name+" \u53D1\u9001\u5931\u8D25\uFF0C"+t.msg}),this.$emit("on-error",s),this.$refs.upload.fileList.pop())},handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleClick(){this.$refs.upload.handleClick()},upload(t){this.$refs.upload.upload(t)},cancel(t){return this.$refs.upload.cancel(t)},imageFileToObject(t){return new Promise((s,e)=>{const i=new FileReader;i.onload=({target:a})=>{const o=new Image;o.onload=()=>{const r=document.createElement("canvas"),n=r.getContext("2d"),l=o.width,c=o.height,u=500,h=500;let f=l,v=c;(l>u||c>h)&&(l/c>u/h?(f=u,v=Math.round(u*(c/l))):(v=h,f=Math.round(h*(l/c)))),r.width=f,r.height=v,n.clearRect(0,0,f,v),n.drawImage(o,0,0,f,v),s({type:"img",thumb:r.toDataURL("image/webp",.92),width:r.width,height:r.height})},o.onerror=()=>{e()},o.src=a.result},i.onerror=()=>{e()},i.readAsDataURL(t)})}}},st={};var $a=d(va,ga,_a,!1,ya,null,null,null);function ya(t){for(let s in st)this[s]=st[s]}var wa=function(){return $a.exports}(),ka=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-group-info"},[e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u540D")))]),e("div",{staticClass:"group-info-value"},[e("QuickEdit",{attrs:{value:t.dialogData.name,disabled:t.dialogData.owner_id!=t.userId},on:{"on-update":t.updateName}},[t._v(t._s(t.dialogData.name))])],1),e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u7C7B\u578B")))]),e("div",{staticClass:"group-info-value"},[t._v(t._s(t.$L(t.groupType)))]),e("div",{staticClass:"group-info-search"},[e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u6210\u5458"),clearable:""},model:{value:t.searchKey,callback:function(i){t.searchKey=i},expression:"searchKey"}})],1),e("div",{staticClass:"group-info-user"},[e("ul",[t._l(t.userList,function(i,a){return e("li",{key:a,on:{click:function(o){return t.openUser(i.userid)}}},[e("UserAvatar",{attrs:{userid:i.userid,size:32,showName:""}}),i.userid===t.dialogData.owner_id?e("div",{staticClass:"user-tag"},[t._v(t._s(t.$L("\u7FA4\u4E3B")))]):t.operableExit(i)?e("div",{staticClass:"user-exit",on:{click:function(o){return o.stopPropagation(),t.onExit(i)}}},[e("Icon",{attrs:{type:"md-exit"}})],1):t._e()],1)}),t.userList.length===0?e("li",{staticClass:"no"},[t.loadIng>0?e("Loading"):e("span",[t._v(t._s(t.$L("\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")))])],1):t._e()],2)]),t.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(i){t.addShow=i},expression:"addShow"}},[e("Form",t._b({attrs:{model:t.addData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.addData,"userids",i)},expression:"addData.userids"}}),t.dialogData.group_type==="department"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u90E8\u95E8")))]):t.dialogData.group_type==="project"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u9879\u76EE")))]):t.dialogData.group_type==="task"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):t._e()],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.addLoad>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u786E\u5B9A\u6DFB\u52A0")))])],1)],1)],1)},Ca=[];const ba={name:"DialogGroupInfo",components:{UserSelect:_t},props:{dialogId:{type:Number,default:0}},data(){return{searchKey:"",loadIng:0,dialogUser:[],addShow:!1,addData:{},addLoad:0,openIng:!1}},computed:{...m(["cacheDialogs","cacheUserBasic","userIsAdmin","formOptions"]),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:s,cacheUserBasic:e,dialogData:i}=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=>!(s&&o.nickname&&!$A.strExists(o.nickname,s)&&!$A.strExists(o.email,s))).sort((o,r)=>o.userid===i.owner_id||r.userid===i.owner_id?(o.userid===i.owner_id?0:1)-(r.userid===i.owner_id?0:1):$A.dayjs(o.created_at)-$A.dayjs(r.created_at))}},watch:{dialogId:{handler(){this.getDialogUser()},immediate:!0}},methods:{updateName(t,s){if(!t){s();return}this.$store.dispatch("call",{url:"dialog/group/edit",data:{dialog_id:this.dialogId,chat_name:t}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),s()}).catch(({msg:e})=>{$A.modalError(e),s()})},getDialogUser(){this.dialogId<=0||(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId}}).then(({data:t})=>{this.dialogUser=t,this.$store.dispatch("saveDialog",{id:this.dialogId,people:t.length})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))},operableAdd(){const{owner_id:t,group_type:s}=this.dialogData;return s=="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:s,group_type:e}=this.dialogData;return e=="all"?this.userIsAdmin:s==this.userId||t.inviter==this.userId},onExit(t){let s="\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",e=[];$A.isJson(t)&&t.userid!=this.userId&&(s=`\u4F60\u786E\u5B9A\u8981\u5C06\u3010${t.nickname}\u3011\u79FB\u51FA\u7FA4\u7EC4\u5417\uFF1F`,e=[t.userid]),$A.modalConfirm({content:s,loading:!0,onOk:()=>new Promise((i,a)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId,userids:e}}).then(({msg:o})=>{i(o),e.length>0?this.getDialogUser():(this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"}))}).catch(({msg:o})=>{a(o)})})})},openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},it={};var La=d(ba,ka,Ca,!1,Da,null,null,null);function Da(t){for(let s in it)this[s]=it[s]}var xa=function(){return La.exports}(),Ia=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-respond"},[e("div",{staticClass:"respond-title"},[e("em",{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(i,a){return e("li",{key:a,on:{click:function(o){return t.openUser(i)}}},[e("UserAvatar",{attrs:{userid:i,size:32,showName:""}})],1)}),0)])])},Sa=[];const Ma={name:"DialogRespond",props:{respondData:{type:Object,default:()=>({})}},data(){return{openIng:!1}},methods:{openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},at={};var Ta=d(Ma,Ia,Sa,!1,Aa,null,null,null);function Aa(t){for(let s in at)this[s]=at[s]}var Ea=function(){return Ta.exports}(),ja=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"chat-emoji-wrapper"},[e("div",{staticClass:"chat-emoji-box"},[t.type==="emosearch"?e("div",{staticClass:"chat-emoji-emosearch"},[e("Input",{attrs:{clearable:"",placeholder:t.$L("\u641C\u7D22\u8868\u60C5")},model:{value:t.emosearchKey,callback:function(i){t.emosearchKey=i},expression:"emosearchKey"}},[e("Icon",{class:{"icon-loading":t.emosearchLoad},attrs:{slot:"prefix",type:t.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):t.type==="emoji"?e("div",{staticClass:"chat-emoji-nav"},t._l(t.emojiNavList,function(i){var a;return e("div",{key:i.type,class:(a={},a[`i-${i.name}`]=!0,a.active=i.type===t.emojiNavActive,a),domProps:{innerHTML:t._s(i.content)},on:{click:function(o){t.emojiNavActive=i.type}}})}),0):t._e(),e("Scrollbar",[e("ul",{class:[t.type,"no-dark-content"]},t._l(t.list,function(i){return e("li",{on:{click:function(a){return t.onSelect(a,i)}}},[i.type==="emoticon"?e("img",{attrs:{src:i.src,title:i.name,alt:i.name}}):e("span",{attrs:{title:i.name},domProps:{innerHTML:t._s(i.html)}})])}),0)])],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(i){return t.onEmojiMenuScroll("left")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]):t._e(),e("li",{class:{active:t.type==="emosearch"},on:{click:function(i){t.type="emosearch"}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F8")])]),e("li",{class:{active:t.type==="emoji"},on:{click:function(i){t.type="emoji"}}},[e("span",{staticClass:"no-dark-content"},[t._v("\u{1F600}")])]),t._l(t.emoticonData,function(i){return e("li",{class:{active:t.type==="emoticon"&&t.emoticonPath==i.path},on:{click:function(a){return t.onEmoticon(i.path)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])}),t.showEmojiMenuScrollRightBtn?e("li",{staticClass:"right-btn",on:{click:function(i){return t.onEmojiMenuScroll("right")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e()],2)])},Fa=[];const Ra={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(){var t;this.initData(),(t=this.$store)!=null&&t.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:s})=>s===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,s=((e=t==null?void 0:t.querySelector("li"))==null?void 0:e.offsetWidth)||48;return this.emojiMenuScrollLeft{const s=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(e,i){return e.emoji_order-i.emoji_order}).map(e=>({type:"emoji",name:e.name,category:e.category,html:e.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(e=>Object.assign(e,{src:`${s}/${e.path}/${e.icon}`,list:e.list.map(i=>Object.assign(i,{type:"emoticon",asset:`images/emoticon/${e.path}/${i.path}`,src:`${s}/${e.path}/${i.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(t=>{this.$store.dispatch("call",{url:"dialog/sticker/search",data:{key:this.emosearchKey}}).then(({data:s})=>{this.emosearchList=[];const e=s.list;e.length>0&&(this.emosearchList=e.map(i=>({type:"emoticon",asset:"emosearch",name:i.name,src:i.src,height:i.height,width:i.width}))),this.emosearchList.length===0&&$A.messageWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(s=>{this.emosearchList=[],$A.messageWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(s=>{this.emosearchLoad=!1})},300))},onEmoticon(t){this.type="emoticon",this.emoticonPath=t},onSelect(t,s){s.type==="emoji"?this.$emit("on-select",{type:"emoji",text:t.target.innerText}):this.$emit("on-select",s)},onMonitorWheel(){const t=this.$refs.chatEmojiMenuRef;t==null||t.addEventListener("wheel",s=>{s.preventDefault(),t.scrollLeft=t.scrollLeft+s.deltaY})},onEmojiMenuScroll(t){const s=this.$refs.chatEmojiMenuRef,e=s.offsetWidth-68,i=t=="right"?s.scrollLeft+e:s.scrollLeft-e;s.scrollTo({left:i,behavior:"smooth"})},onHandleScroll(t){this.emojiMenuScrollLeft=t.target.scrollLeft}}},ot={};var Oa=d(Ra,ja,Fa,!1,Va,null,null,null);function Va(t){for(let s in ot)this[s]=ot[s]}var yt=function(){return Oa.exports}();const rt="ontouchend"in document;var Ba={bind(t,s){let e=!1;t.__touchEvent__={start:i=>{i.preventDefault(),e=!0,s.value("down",i)},move:i=>{e&&s.value("move",i)},end:i=>{e&&(e=!1,s.value("up"))},click:i=>{s.value("click",i)}},rt?(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)),t.addEventListener("click",t.__touchEvent__.click)},update(){},unbind(t){rt?(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)),t.removeEventListener("click",t.__touchEvent__.click),delete t.__touchEvent__}};const nt="ontouchend"in document;var wt={bind(t,s){if(nt){const e={move:!1,time:0,x:0,y:0};t.__touchEvent__={start:i=>{i.preventDefault(),e.move=!1,e.time=$A.dayjs().valueOf(),e.x=i.touches?i.touches[0].clientX:i.clientX,e.y=i.touches?i.touches[0].clientY:i.clientY},move:i=>{if(e.time>0){const a=i.touches?i.touches[0].clientX:i.clientX,o=i.touches?i.touches[0].clientY:i.clientY;(Math.abs(a-e.x)>5||Math.abs(o-e.y)>5)&&(e.move=!0)}},end:i=>{e.time>0&&(!e.move&&$A.dayjs().valueOf()-e.time<300&&s.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(),s.value()},t.addEventListener("click",t.__clickEvent__)},update(){},unbind(t){nt?(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 qa={inserted(t,{value:s},e){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className?t.className+" v-transfer-dom":"v-transfer-dom";const i=t.parentNode;if(!i)return;const a=document.createComment("");let o=!1;s!==!1&&(i.replaceChild(a,t),g(s).appendChild(t),o=!0),t.__transferDomData||(t.__transferDomData={parentNode:i,home:a,target:g(s),hasMovedOut:o})},componentUpdated(t,{value:s}){if(t.dataset&&t.dataset.transfer!=="true")return!1;const e=t.__transferDomData;if(!e)return;const i=e.parentNode,a=e.home,o=e.hasMovedOut;!o&&s?(i.replaceChild(a,t),g(s).appendChild(t),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!0,target:g(s)})):o&&s===!1?(i.replaceChild(t,a),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!1,target:g(s)})):s&&g(s).appendChild(t)},unbind(t){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className.replace("v-transfer-dom",""),t.__transferDomData&&(t.__transferDomData.hasMovedOut===!0&&t.__transferDomData.parentNode&&t.__transferDomData.parentNode.appendChild(t),t.__transferDomData=null)}},p={};function lt(t,s){!t||typeof p[t]=="undefined"?p[t]=[]:p[t]=p[t].filter(e=>e!==s),p[t].push(s)}function ct(t,s){!t||typeof p[t]=="undefined"||(p[t]=p[t].filter(e=>e!==s))}function Pa(t,s){return typeof p[t]=="undefined"?!1:p[t][p[t].length-1]===s}function Ua(){return new Promise(t=>{const s=new Dt({render(a){return a(xt.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(yt,{attrs:{onlyEmoji:!0},on:{"on-select":o=>{this.$children[0].visible=!1,o.type==="emoji"&&t(o.text)}}})])}}),e=s.$mount();document.body.appendChild(e.$el);const i=s.$children[0];i.visible=!0,i.$el.lastChild.addEventListener("click",({target:a})=>{a.classList.contains("ivu-modal-body")&&(i.visible=!1)})})}var Na=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:t.boxClass},[e("div",{staticClass:"chat-input-quick-emoji"},[e("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:t.emojiQuickShow,callback:function(i){t.emojiQuickShow=i},expression:"emojiQuickShow"}},[e("div",{attrs:{slot:"reference"},slot:"reference"}),e("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(i){return e("li",{on:{click:function(a){return t.onEmojiQuick(i)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])}),0)],1)],1),e("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper",on:{click:function(i){return i.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(i){return i.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(i){i.stopPropagation()}}},[e("li",[t.emojiBottom?e("ETooltip",{ref:"emojiTip",attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",enterable:!1,content:t.$L("\u8868\u60C5")}},[e("i",{staticClass:"taskfont",on:{click:function(i){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(i){t.showEmoji=i},expression:"showEmoji"}},[e("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",enterable:!1,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,enterable:!1,content:t.$L("\u9009\u62E9\u6210\u5458")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("user")}}},[t._v("\uE78F")])])],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.$isEEUiApp||t.windowTouch,enterable:!1,content:t.$L("\u9009\u62E9\u4EFB\u52A1")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("task")}}},[t._v("\uE7D6")])])],1),e("li",[e("EPopover",{ref:"more",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMore,callback:function(i){t.showMore=i},expression:"showMore"}},[e("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showMore,placement:"top",enterable:!1,content:t.$L("\u5C55\u5F00")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])]),t.recordReady?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("meeting")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C1")]),t._v(" "+t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ")]):t._e(),t.canCall?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("call")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BA")]),t._v(" "+t._s(t.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("image")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BC")]),t._v(" "+t._s(t.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C0")]),t._v(" "+t._s(t.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),t.canAnon?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){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(i){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(i){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(i){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(i){t.showMenu=i},expression:"showMenu"}},[e("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:t.$isEEUiApp||t.windowTouch||t.showMenu,enterable:!1,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(i){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(i){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(i){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(i){return i.stopPropagation(),t.onClickCover.apply(null,arguments)}}})]),t.emojiBottom&&t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e(),e("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(t.recordState)?e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:t.touchLimitY},style:t.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:t.stopRecord}},[t.recordDuration>0?e("div",{staticClass:"record-duration"},[t._v(t._s(t.recordFormatDuration))]):e("div",{staticClass:"record-loading"},[e("Loading",{attrs:{type:"pure"}})],1),e("div",{staticClass:"record-cancel",on:{click:function(i){return i.stopPropagation(),t.stopRecord(!0)}}},[t._v(t._s(t.$L(t.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):t._e()]),e("Modal",{attrs:{"mask-closable":!1,beforeClose:t.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:t.fullInput,callback:function(i){t.fullInput=i},expression:"fullInput"}},[e("div",{staticClass:"chat-input-box",style:t.chatInputBoxStyle},[e("div",{staticClass:"chat-input-wrapper"},[e("div",{ref:"editorFull",staticClass:"no-dark-content"})]),e("ul",{staticClass:"chat-input-menu",class:{activation:t.fullSelection.length>0}},t._l(t.fullTools,function(i,a){return e("li",{key:a,on:{touchstart:function(o){o.preventDefault()},touchend:function(o){return o.preventDefault(),t.onFullMenu(i.label,i.type)},click:function(o){return t.onFullMenu(i.label,i.type)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}})])}),0)]),e("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[t._v("\uE6AB")])])],1)},za=[];const Wa={name:"ChatInput",components:{ChatEmoji:yt},directives:{touchmouse:Ba,touchclick:wt,TransferDom:qa,clickoutside:Ct,longpress:y},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote","link",{list:"ordered"},{list:"bullet"},{list:"check"}]},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyMsgAutoMention:{type:Boolean,default:!0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_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:{},touchFocus:!1,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,fullSelection:{index:0,length:0},fullTools:[{label:"bold",type:"",icon:""},{label:"strike",type:"",icon:""},{label:"italic",type:"",icon:""},{label:"underline",type:"",icon:""},{label:"blockquote",type:"",icon:""},{label:"link",type:"",icon:""},{label:"list",type:"ordered",icon:""},{label:"list",type:"bullet",icon:""},{label:"list",type:"unchecked",icon:""}],viewportHeight:0}},created(){lt(this.dialogId,this._uid)},mounted(){this.init(),window.visualViewport&&window.visualViewport.addEventListener("resize",this.visualViewportResize),this.recordInter=setInterval(t=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(t,s)=>{t==="recordAudio"&&s===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var t;ct(this.dialogId,this._uid),this.quill&&((t=this.quill.getModule("mention"))==null||t.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordInter&&clearInterval(this.recordInter),window.visualViewport&&window.visualViewport.removeEventListener("resize",this.visualViewportResize)},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(s=>{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 s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60,i=("00"+t%1e3).substr(-2);return s<10&&(s=`0${s}`),e<10&&(e=`0${e}`),`${s}:${e}\u2033${i}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:t}=this.dialogData;return t?this.dialogMsgs.find(s=>s.id===t):null},chatInputBoxStyle({fullInput:t,viewportHeight:s}){const e={};return t&&s>0&&(e.height=Math.max(100,s-70)+"px"),e}},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 s;(s=this.quill)==null||s.enable(!t)},dialogId(t,s){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft(),lt(t,this._uid),ct(s,this._uid)},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 s=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(s&&s.indexOf(" ")===-1&&s.length>=1&&s.length<=8?this.emojiQuickKey=s:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const 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 s;(s=this.quill)!=null&&s.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 s;(s=this.quill)==null||s.enable(!t)},windowScrollY(t){this.fullInput&&t>0&&window.scrollTo(0,0)}},methods:{init(){this._options=Object.assign({theme:"bubble",bubbleTooltipTop:!0,formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar: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(s=>{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(s=>{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(i=>{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,s)=>(this.pasteClean&&(s.ops=s.ops.map(e=>{const i={insert:e.insert};try{typeof i.insert.mention=="object"&&t.innerHTML&&(i.insert=t.innerHTML.replace(/<[^>]+>/g,""))}catch{}return e.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{e.attributes[a]&&(typeof i.attributes=="undefined"&&(i.attributes={}),i.attributes[a]=e.attributes[a])}),i})),s)),this.$nextTick(t=>{this.quill.root.addEventListener("keydown",s=>{if(s.key==="\r\r"&&s.keyCode===229){const{index:e}=this.quill.getSelection(!0);this.quill.insertText(e,`\r -`),this.keyTimer&&clearTimeout(this.keyTimer),this.keyTimer=setTimeout(i=>{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:(s,e,i,a,o,r)=>{var n;(n=this.recordWave)==null||n.input(s[s.length-1],e,a),this.recordDuration=i,i>=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 s=t.bot?'
':"";return`
${s}
${t.value}
`}return t.tip?`
${t.value}
${t.tip}
`:`
${t.value}
`},renderLoading:()=>"Loading...",source:(t,s,e)=>{const i=e=="@"?"user-mention":e=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let r=0;r{const n=[];r.some(l=>{let c=l.list;t&&(c=c.filter(({value:u})=>$A.strExists(u,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)),s(n,t))})}}},updateEmojiQuick(t){if(!this.isFocus||!t){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(s=>{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(i=>{let a=0;if(i.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/${i.path}/${o.path}`,name:o.name,src:`${e}/${i.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(i=>{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(s=>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,s){var e;if(!this.loading)switch(t){case"down":if(this.touchFocus=(e=this.quill)==null?void 0:e.hasFocus(),this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=s.type==="touchstart"?s.touches[0]:s,(s.button===void 0||s.button===0)&&this.startRecord())return;s.button===2&&this.onShowMenu();break;case"move":const i=s.type==="touchmove"?s.touches[0]:s;this.touchLimitX=(this.touchStart.clientX-i.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-i.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break;case"click":this.touchFocus&&(this.quill.blur(),this.quill.focus());break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(t="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(s=>{this.filterInvalidLine(this.value)!==""&&(this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),t==="auto"&&(t=bt(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(s=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(e=>{this.recordRec.start()},300)):this.recordRec.close()},s=>{this.recordState="stop",$A.messageError(s||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(t){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((s,e)=>{this.recordRec.close(),t!==!0&&(e<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=s,this.uploadRecord(e)))},s=>{this.recordRec.close(),$A.messageError(s||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(t){this.showMenu=!1,this.showMore=!1,t!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(t=>{var s;(s=this.quill)==null||s.focus()})},uploadRecord(t){if(this.recordBlob===null)return;const s=new FileReader;s.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:s.result,duration:t})},s.readAsDataURL(this.recordBlob)},onEmojiQuick(t){t.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(t){!this.quill||(t.type==="emoji"?(this.quill.insertText(this.rangeIndex,t.text),this.rangeIndex+=t.text.length,this.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":_.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:!1,mention:this.quillMention()}},this.options)),this.fullQuill.on("selection-change",s=>{this.fullSelection=s||{index:0,length:0}}),this.fullQuill.on("text-change",s=>{this.fullSelection=this.fullQuill.getSelection()}),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(s=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(t=>{var s;(s=this.$refs.editorFull)!=null&&s.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),t()})},onFullMenu(t,s){const{length:e}=this.fullQuill.getSelection(!0);if(e===0){$A.messageWarning("\u8BF7\u9009\u62E9\u6587\u5B57\u540E\u518D\u64CD\u4F5C");return}switch(t){case"bold":this.fullQuill.format("bold",!this.fullQuill.getFormat().bold);break;case"strike":this.fullQuill.format("strike",!this.fullQuill.getFormat().strike);break;case"italic":this.fullQuill.format("italic",!this.fullQuill.getFormat().italic);break;case"underline":this.fullQuill.format("underline",!this.fullQuill.getFormat().underline);break;case"blockquote":this.fullQuill.format("blockquote",!this.fullQuill.getFormat().blockquote);break;case"link":if(this.fullQuill.getFormat().link){this.fullQuill.format("link",!1);return}$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:i=>{if(!i)return!1;this.fullQuill.format("link",i)}});break;case"list":this.fullQuill.format("list",this.fullQuill.getFormat().list===s?!1:s);break}},setQuote(t,s="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:t,extra_quote_type:s==="update"?"update":"reply"})},cancelQuote(){if(this.quoteUpdate)this.$emit("input","");else if(this.quoteData&&this.$refs.editor.firstChild.querySelectorAll("img").length===0){const t=document.createElement("div");t.innerHTML=this.$refs.editor.firstChild.innerHTML,t.querySelectorAll("span.mention").forEach(s=>{s.getAttribute("data-id")==this.quoteData.userid&&(s.innerHTML="")}),t.innerText.replace(/\s/g,"")||this.$emit("input","")}this.setQuote(0)},onQuoteUserResult(t){this.dialogData.type==="group"&&(this.quoteUpdate||!this.quoteData||!this.replyMsgAutoMention||t.bot&&!$A.rightExists(t.email,"@bot.system")||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 s=this.value.replace(/<[^>]+>/g,"");s.length===0||s.endsWith(" ")?this.quill.getModule("mention").openMenu(t):this.quill.getModule("mention").openMenu(` ${t}`)}},addMention(t){if(!this.quill||!Pa(this.dialogId,this._uid))return;const{index:s}=this.quill.getSelection(!0);this.quill.insertEmbed(s,"mention",t,$.sources.USER),this.quill.insertText(s+1," ",$.sources.USER),this.quill.setSelection(s+2,$.sources.USER)},getProjectId(){let t=null;if(this.dialogId>0){if(t=this.cacheProjects.find(({dialog_id:s})=>s==this.dialogId),t)return t.id;if(t=this.cacheTasks.find(({dialog_id:s})=>s==this.dialogId),t)return t.project_id}else if(this.taskId>0&&(t=this.cacheTasks.find(({id:s})=>s==this.taskId),t))return t.project_id;return 0},getMentionSource(t,s,e){switch(t){case"@":this.mentionMode="user-mention";const i=n=>{this.getMoreUser(s,n.map(l=>l.id)).then(l=>{let c=this.cacheDialogs.filter((u,h)=>u.type=="user"&&u.bot==0&&u.last_at);c.sort((u,h)=>u.last_at>h.last_at?-1:u.last_ath<5),l.forEach(u=>{u.last_at="1990-01-01 00:00:00",c.forEach(h=>{var f;((f=h.dialog_user)==null?void 0:f.userid)==u.id&&(u.last_at=h.last_at)})}),l.sort((u,h)=>u.last_at>h.last_at?-1:u.last_at0?(n.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]}),this.userCache.push({label:[{id:0,value:this.$L("\u7FA4\u5185\u6210\u5458"),disabled:!0}],list:n},{label:[{id:0,value:this.$L("\u7FA4\u5916\u6210\u5458"),disabled:!0}],list:l})):n.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]},{label:[{id:0,value:this.$L("\u7FA4\u6210\u5458"),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){i(this.userList);return}const a=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data: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}))),i(a)}).catch(n=>{i(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:u})=>u==l.userid);c&&a.push({id:c.userid,value:c.nickname,avatar:c.userimg,online:c.online,bot:c.bot})}),i(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(u=>({id:u.id,value:u.name,tip:u.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((u,h)=>$A.dayjs(u.end_at||"2099-12-31 23:59:59")-$A.dayjs(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(u=>({id:u.id,value:u.name}))}));let c=this.$store.getters.assistTask;c.length>0&&(c=c.sort((u,h)=>$A.dayjs(u.end_at||"2099-12-31 23:59:59")-$A.dayjs(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(u=>({id:u.id,value:u.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,u)=>$A.dayjs(u.complete_at||"2099-12-31 23:59:59")-$A.dayjs(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[s])){e(this.fileList[s]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(n=>{this.$store.dispatch("searchFiles",s).then(({data:l})=>{this.fileList[s]=[{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[s])}).catch(()=>{e([])})},300);break;default:e([]);break}},getMoreUser(t,s){return new Promise(e=>{const{owner_id:i,type:a}=this.dialogData,o=a==="group"&&[0,this.userId].includes(i);this.taskId>0||o?(this.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=>!s.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 s=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const i=(s?s[1].replace(/_/g,"."):"unknown").split(".");return+i[0]==11&&+i[1]>=0&&+i[1]<3},handlePaste(t){const s=Array.prototype.slice.call(t.clipboardData.files);s.filter(i=>!$A.leftExists(i.type,"image/")).length>0&&(t.preventDefault(),this.$emit("on-file",s))},filterInvalidLine(t){return(t+"").replace(/^(

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

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

<\/p>)+|(

<\/p>)+$/gi,"")},updateTools(){var s,e,i,a;this.showEmoji&&((s=this.$refs.emoji)==null||s.updatePopper()),this.showMore&&((e=this.$refs.more)==null||e.updatePopper()),this.showMenu&&((i=this.$refs.menu)==null||i.updatePopper());const t=(a=this.quill)==null?void 0:a.getModule("mention");t.isOpen&&t.setMentionContainerPosition()},visualViewportResize(){var t;this.viewportHeight=((t=window.visualViewport)==null?void 0:t.height)||0}}},dt={};var Qa=d(Wa,Na,za,!1,Ha,null,null,null);function Ha(t){for(let s in dt)this[s]=dt[s]}var Ga=function(){return Qa.exports}(),Ka=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(i){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[e("span",[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(i){t.show=i},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(i){t.value=i},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(i){return i.type=="case"&&(t.dialogDroupWordChain.type=="create"||i.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:i.text,callback:function(a){t.$set(i,"text",a)},expression:"item.text"}})],1):t._e()}),t._l(t.list.filter(function(i){return i.type!="case"}),function(i,a){return e("li",[e("span",[t._v(t._s(a+1))]),e("Input",{attrs:{disabled:i.userid!=t.userId,placeholder:t.$L("\u8BF7\u8F93\u5165\u63A5\u9F99\u5185\u5BB9")},model:{value:i.text,callback:function(o){t.$set(i,"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(i){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)])},Ja=[];const Ya={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(s=>s.type!="case"))==null?void 0:t.length)||0},allList(){var e;const t=((e=this.dialogDroupWordChain.msgData)==null?void 0:e.msg)||{};let s=JSON.parse(JSON.stringify(t.list||[]));return this.dialogMsgs.filter(i=>{var a;return i.type=="word-chain"&&((a=i.msg)==null?void 0:a.uuid)==t.uuid}).forEach(i=>{(i.msg.list||[]).forEach(a=>{a.type!="case"&&s.map(o=>o.id).indexOf(a.id)==-1&&s.push(a)})}),s.filter(i=>(i.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(s=>s.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 s,e;const t=[];this.list.forEach(i=>{(i.text||i.type!="case")&&t.map(a=>a.text).indexOf(i.text)==-1&&t.push(i)}),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=(s=this.dialogDroupWordChain.msgData)==null?void 0:s.msg)==null?void 0:e.uuid)||""}}).then(({data:i})=>{this.show=!1,this.$store.dispatch("saveDialogMsg",i)}).catch(({msg:i})=>{if(i.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(i)}).finally(i=>{this.loadIng--})}}},ut={};var Xa=d(Ya,Ka,Ja,!1,Za,null,null,null);function Za(t){for(let s in ut)this[s]=ut[s]}var to=function(){return Xa.exports}(),eo=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(i){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[e("span",[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(i){t.show=i},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(i){t.value=i},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(i,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:i.text,callback:function(o){t.$set(i,"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(i){t.multiple=i},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(i){t.anonymous=i},expression:"anonymous"}})],1):t._e()]),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",loading:t.loadIng>0,disabled:!t.isEdit},on:{click:t.onSend}},[t._v(t._s(t.$L("\u53D1\u9001")))])],1)])},so=[];const io={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 s=JSON.parse(JSON.stringify(t.list||[]));return this.dialogMsgs.filter(i=>{var a;return i.type=="word-chain"&&((a=i.msg)==null?void 0:a.uuid)==t.uuid}).forEach(i=>{(i.msg.list||[]).forEach(a=>{s.map(o=>o.id).indexOf(a.id)==-1&&s.push(a)})}),s},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,s;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:((s=(t=this.dialogGroupVote.msgData)==null?void 0:t.msg)==null?void 0:s.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--})}}}},ht={};var ao=d(io,eo,so,!1,oo,null,null,null);function oo(t){for(let s in ht)this[s]=ht[s]}var ro=function(){return ao.exports}(),no=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-complaint-info"},[e("div",{staticClass:"group-complaint-title"},[t._v(t._s(t.$L("\u533F\u540D\u4E3E\u62A5")))]),e("div",{staticClass:"group-complaint-warp"},[e("div",{staticClass:"group-complaint-title underline required"},[t._v(t._s(t.$L("\u8BF7\u9009\u62E9\u4E3E\u62A5\u7C7B\u578B"))+":")]),e("div",{staticClass:"group-complaint-list"},[e("List",t._l(t.typeList,function(i,a){return e("ListItem",{key:a,class:{active:t.typeId==i.id}},[e("div",{staticClass:"text",on:{click:function(o){return t.onSelectType(i)}}},[t._v(t._s(t.$L(i.label)))]),e("RadioGroup",{model:{value:t.typeId,callback:function(o){t.typeId=o},expression:"typeId"}},[e("Radio",{attrs:{label:i.id,"model-value":t.typeId}},[t._v("\xA0")])],1)],1)}),1)],1),e("div",{staticClass:"group-complaint-title required"},[t._v(t._s(t.$L("\u8BF7\u8F93\u5165\u4E3E\u62A5\u539F\u56E0"))+":")]),e("div",{staticClass:"group-complaint-reason"},[e("Input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u586B\u5199\u8BE6\u7EC6\u7684\u4E3E\u62A5\u539F\u56E0\uFF0C\u4EE5\u4F7F\u6211\u4EEC\u66F4\u597D\u7684\u5E2E\u52A9\u4F60\u89E3\u51B3\u95EE\u9898")},model:{value:t.reason,callback:function(i){t.reason=i},expression:"reason"}})],1),e("div",{staticClass:"group-complaint-img"},[e("ImgUpload",{attrs:{num:5,width:512,height:512,whcut:1},model:{value:t.imgs,callback:function(i){t.imgs=i},expression:"imgs"}})],1)]),e("div",{staticClass:"group-info-button"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.onSubmit}},[t._v(t._s(t.$L("\u63D0\u4EA4")))])],1)])},lo=[];const co={name:"DialogComplaint",components:{ImgUpload:vt},props:{dialogId:{type:Number,default:0}},data(){return{typeList:[{id:10,label:"\u8BC8\u9A97\u8BF1\u5BFC\u8F6C\u8D26"},{id:20,label:"\u5F15\u6D41\u4E0B\u8F7D\u5176\u4ED6APP\u4ED8\u8D39"},{id:30,label:"\u6572\u8BC8\u52D2\u7D22"},{id:40,label:"\u7167\u7247\u4E0E\u672C\u4EBA\u4E0D\u4E00\u81F4"},{id:50,label:"\u8272\u60C5\u4F4E\u4FD7"},{id:60,label:"\u9891\u7E41\u5E7F\u544A\u9A9A\u6270"},{id:70,label:"\u5176\u4ED6\u95EE\u9898"}],typeId:0,reason:"",imgs:[]}},methods:{onSelectType(t){this.typeId==t.id?this.typeId=0:this.typeId=t.id},onSubmit(){if(!this.typeId)return $A.modalError("\u8BF7\u9009\u62E9\u4E3E\u62A5\u7C7B\u578B");if(!this.reason)return $A.modalError("\u8BF7\u586B\u5199\u4E3E\u62A5\u539F\u56E0");this.$store.dispatch("call",{url:"complaint/submit",data:{dialog_id:this.dialogId,reason:this.reason,type:this.typeId,imgs:this.imgs}}).then(({data:t})=>{$A.modalSuccess("\u4E3E\u62A5\u6210\u529F"),this.$emit("on-close")}).catch(({msg:t})=>{$A.modalError(t)})}}},pt={};var uo=d(co,no,lo,!1,ho,null,null,null);function ho(t){for(let s in pt)this[s]=pt[s]}var po=function(){return uo.exports}(),mo=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.isReady?e("div",{staticClass:"dialog-wrapper",class:t.wrapperClass,on:{drop:function(i){return i.preventDefault(),t.chatPasteDrag(i,"drag")},dragover:function(i){return i.preventDefault(),t.chatDragOver(!0,i)},dragleave:function(i){return i.preventDefault(),t.chatDragOver(!1,i)},touchstart:t.onTouchStart,pointerover:t.onPointerover}},[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(i){return t.$set(t.dialogData,"online_state",i)}}},[t.dialogData.type==="user"&&t.dialogData.online_state!==!0?e("p",{attrs:{slot:"end"},slot:"end"},[t._v(" "+t._s(t.$L(t.dialogData.online_state))+" ")]):t._e()])],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),e("div",{staticClass:"dialog-title"},[e("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),function(i){return i.color!="success"?[e("Tag",{attrs:{color:i.color,fade:!1}},[t._v(t._s(t.$L(i.text)))])]:t._e()}),e("h2",[t._v(t._s(t.dialogData.name))]),t.peopleNum>0?e("em",{on:{click:function(i){return t.onDialogMenu("groupInfo")}}},[t._v("("+t._s(t.peopleNum)+")")]):t._e(),t.dialogData.bot?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u673A\u5668\u4EBA")))]):t._e(),t.dialogData.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(i){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u5168\u5458")))]):t.dialogData.group_type=="department"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(i){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u90E8\u95E8")))]):t._e(),t.msgLoadIng>0&&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(i){var a;return e("li",{key:i.type,class:(a={},a[i.type||"msg"]=!0,a.active=t.msgType===i.type,a),on:{click:function(o){return t.onMsgType(i.type)}}},[e("i",{staticClass:"no-dark-content"}),e("span",[t._v(t._s(t.$L(i.label)))])])}),0):t._e()])]),e("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:t.onDialogMenu}},[e("i",{staticClass:"taskfont dialog-menu-icon"},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[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")))])]),t.dialogData.bot==0?e("EDropdownItem",{attrs:{command:"report"}},[e("div",[t._v(t._s(t.$L("\u4E3E\u62A5\u6295\u8BC9")))])]):t._e()]:[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:"report"}},[e("div",[t._v(t._s(t.$L("\u4E3E\u62A5\u6295\u8BC9")))])]),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:"report"}},[e("div",[t._v(t._s(t.$L("\u4E3E\u62A5\u6295\u8BC9")))])]),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(i){return t.onSearchSwitch("prev")}}},[t._v("\uE702")]),e("i",{staticClass:"taskfont",on:{click:function(i){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(i){t.searchKey=i},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(i){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(i){return i.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(i){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,pointerMouse:t.pointerMouse,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-other":t.onOther,"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(i){return t.chatFile("progress",i)},"on-success":function(i){return t.chatFile("success",i)},"on-error":function(i){return t.chatFile("error",i)}}}),t.todoShow?e("div",{staticClass:"chat-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(i){return e("li",{on:{click:function(a){return a.stopPropagation(),t.onViewTodo(i)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(i.msg_data)))])])}),0)]):t.quickShow?e("div",{staticClass:"chat-bottom-menu"},[e("ul",{staticClass:"scrollbar-hidden"},t._l(t.quickMsgs,function(i){return e("li",{on:{click:function(a){return a.stopPropagation(),t.sendQuick(i)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content",style:i.style||null},[t._v(t._s(i.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..."),"reply-msg-auto-mention":t.replyMsgAutoMention},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(i){t.msgText=i},expression:"msgText"}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{ref:"operate",attrs:{trigger:"custom",placement:"top",visible:t.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(i){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.operateItem.created_at?[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action"},[t.msgId===0?e("li",{on:{click:function(i){return t.onOperate("reply")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u56DE\u590D")))])]):t._e(),t.operateItem.userid==t.userId&&t.operateItem.type==="text"?e("li",{on:{click:function(i){return t.onOperate("update")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE779")]),e("span",[t._v(t._s(t.$L("\u7F16\u8F91")))])]):t._e(),t.actionPermission(t.operateItem,"voice2text")?e("li",{on:{click:function(i){return t.onOperate("voice2text")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE628")]),e("span",[t._v(t._s(t.$L("\u8F6C\u6587\u5B57")))])]):t._e(),t.actionPermission(t.operateItem,"translation")?e("li",{on:{click:function(i){return t.onOperate("translation")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE795")]),e("span",[t._v(t._s(t.$L("\u7FFB\u8BD1")))])]):t._e(),t._l(t.operateCopys,function(i){return e("li",{on:{click:function(a){return t.onOperate("copy",i)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("span",[t._v(t._s(t.$L(i.label)))])])}),t.actionPermission(t.operateItem,"forward")?e("li",{on:{click:function(i){return t.onOperate("forward")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE638")]),e("span",[t._v(t._s(t.$L("\u8F6C\u53D1")))])]):t._e(),t.operateItem.userid==t.userId?e("li",{on:{click:function(i){return t.onOperate("withdraw")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE637")]),e("span",[t._v(t._s(t.$L("\u64A4\u56DE")))])]):t._e(),t.operateItem.type==="file"?[e("li",{on:{click:function(i){return t.onOperate("view")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("span",[t._v(t._s(t.$L("\u67E5\u770B")))])]),e("li",{on:{click:function(i){return t.onOperate("down")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7A8")]),e("span",[t._v(t._s(t.$L("\u4E0B\u8F7D")))])])]:t._e(),e("li",{on:{click:function(i){return t.onOperate("tag")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")]),e("span",[t._v(t._s(t.$L(t.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),t.actionPermission(t.operateItem,"newTask")?e("li",{on:{click:function(i){return t.onOperate("newTask")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B8")]),e("span",[t._v(t._s(t.$L("\u65B0\u4EFB\u52A1")))])]):t._e(),e("li",{on:{click:function(i){return t.onOperate("todo")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B7")]),e("span",[t._v(t._s(t.$L(t.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e("li",{on:{click:function(i){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(i){return t.onOperate("pos")}}},[e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("span",[t._v(t._s(t.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):t._e()],2)]),e("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[e("ul",{staticClass:"operate-emoji scrollbar-hidden"},[t._l(t.operateEmojis,function(i,a){return e("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:t._s(i)},on:{click:function(o){return t.onOperate("emoji",i)}}})}),e("li"),e("li",{staticClass:"more-emoji",on:{click:function(i){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(i){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(i){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e(),e("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("\u53D6\u6D88"),"ok-text":t.$L("\u53D1\u9001"),"enter-ok":!0,closable:!1,"mask-closable":!1},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(i){t.pasteShow=i},expression:"pasteShow"}},[e("ul",{staticClass:"dialog-wrapper-paste",class:t.pasteClass},t._l(t.pasteItem,function(i){return e("li",[i.type=="image"?e("img",{attrs:{src:i.result}}):e("div",[t._v(t._s(t.$L("\u6587\u4EF6"))+": "+t._s(i.name)+" ("+t._s(t.$A.bytesToSize(i.size))+")")])])}),0)]),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:t.modifyShow,callback:function(i){t.modifyShow=i},expression:"modifyShow"}},[e("Form",t._b({attrs:{model:t.modifyData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.modifyData,"avatar",i)},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(i){t.$set(t.modifyData,"name",i)},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(i){t.$set(t.modifyData,"clear_day",i)},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(i){t.$set(t.modifyData,"webhook_url",i)},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(i){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(i){t.forwardSource=!t.forwardSource}}},[e("Icon",{staticClass:"user-modal-icon",attrs:{type:t.forwardSource?"ios-radio-button-off":"ios-checkmark-circle"}}),e("span",{staticClass:"forward-text-tip"},[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,3006296953),model:{value:t.forwardhow,callback:function(i){t.forwardhow=i},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(i){return e("li",{attrs:{"data-id":i.userid}},[i.type=="group"?e("div",{staticClass:"user-modal-avatar"},[i.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):i.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):i.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):i.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(i.name))])]):t._e()],1):e("UserAvatar",{attrs:{userid:i.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,"on-other":t.onOther}})],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(i){t.forwardMessage=i},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(i){t.forwardMessage=i},expression:"forwardMessage"}})],1)])])]),e("Modal",{attrs:{title:t.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:t.todoSettingShow,callback:function(i){t.todoSettingShow=i},expression:"todoSettingShow"}},[e("Form",t._b({ref:"todoSettingForm",attrs:{model:t.todoSettingData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.todoSettingData,"type",i)},expression:"todoSettingData.type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))]),e("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))]),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(i){t.$set(t.todoSettingData,"quick_value",i)},expression:"todoSettingData.quick_value"}},t._l(t.todoSettingData.quick_list,function(i){return e("Checkbox",{key:i,attrs:{label:i}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:i,"show-icon":!1,"show-name":!0}}),i==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(i){t.$set(t.todoSettingData,"userids",i)},expression:"todoSettingData.userids"}})],1):t._e()],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.todoSettingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.todoSettingLoad>0},on:{click:function(i){return t.onTodo("submit")}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.todoSpecifyShow?e("UserSelect",{ref:"todoSpecifySelect",attrs:{"dialog-id":t.dialogId,title:t.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458"),module:"",border:"","before-submit":t.onTodoSpecify},model:{value:t.todoSpecifyData.userids,callback:function(i){t.$set(t.todoSpecifyData,"userids",i)},expression:"todoSpecifyData.userids"}}):t._e(),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.groupInfoShow,callback:function(i){t.groupInfoShow=i},expression:"groupInfoShow"}},[t.groupInfoShow?e("DialogGroupInfo",{attrs:{dialogId:t.dialogId},on:{"on-close":function(i){t.groupInfoShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:500},model:{value:t.reportShow,callback:function(i){t.reportShow=i},expression:"reportShow"}},[t.reportShow?e("DialogComplaint",{attrs:{dialogId:t.dialogId},on:{"on-close":function(i){t.reportShow=!1}}}):t._e()],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:t.groupTransferShow,callback:function(i){t.groupTransferShow=i},expression:"groupTransferShow"}},[e("Form",t._b({attrs:{model:t.groupTransferData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.groupTransferData,"userid",i)},expression:"groupTransferData.userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.groupTransferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.groupTransferLoad>0},on:{click:function(i){return t.onDialogMenu("transferConfirm")}}},[t._v(t._s(t.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.replyListShow,callback:function(i){t.replyListShow=i},expression:"replyListShow"}},[t.replyListShow?e("DialogWrapper",{staticClass:"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(i){t.respondShow=i},expression:"respondShow"}},[t.respondShow?e("DialogRespond",{attrs:{"respond-data":t.respondData},on:{"on-close":function(i){t.respondShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.todoViewShow,callback:function(i){t.todoViewShow=i},expression:"todoViewShow"}},[e("div",{staticClass:"dialog-wrapper 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,"on-other":t.onOther}}),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("DialogGroupWordChain"),e("DialogGroupVote")],1):t._e()},fo=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-top-message-font"},[e("i",{staticClass:"taskfont"},[t._v("\uE7E6")])])}];const go={name:"DialogWrapper",components:{UserAvatarTip:St,UserSelect:_t,ImgUpload:vt,DialogRespond:Ea,DialogItem:et,VirtualList:It,ChatInput:Ga,DialogGroupInfo:xa,DrawerOverlay:Lt,DialogUpload:wa,DialogGroupWordChain:to,DialogGroupVote:ro,DialogComplaint:po},directives:{touchclick:wt},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:et,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:[],modifyShow:!1,modifyData:{},modifyLoad:0,forwardhow:!1,forwardData:[],forwardLoad:0,forwardDialogId:0,forwardMessage:"",forwardSource:!0,openId:0,errorId:0,dialogDrag:!1,groupInfoShow:!1,reportShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},operateClient:{x:0,y:0},operateVisible:!1,operatePreventScroll:0,operateCopys:[],operateStyles:{},operateItem:{},recordState:"",pointerMouse:!1,scrollTail:0,scrollOffset:0,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[],quick_value:[]},todoSpecifyShow:!1,todoSpecifyData:{type:"user",userids:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,scrollIng:0,scrollGroup:null,approvaUserStatus:"",observers:[],msgChangeCache:{},unreadOne:0,topPosLoad:0,positionLoad:0,positionShow:!1,preventMoreLoad:!1,preventToBottom:!1,scrollToBottomRefresh:!1,androidKeyboardVisible:!1,replyMsgAutoMention:!1}},mounted(){this.subMsgListener(),this.msgSubscribe=_.Store.subscribe("dialogMsgChange",this.onMsgChange)},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:s})=>s.disconnect()),this.observers=[];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","formOptions"]),...ft(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){const t=this.cacheDialogs.find(({id:s})=>s==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,s)=>t.top_at||s.top_at?$A.dayjs(s.top_at)-$A.dayjs(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.dayjs(s.last_at)-$A.dayjs(t.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(t=>t.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(t=>t.dialog_id==this.dialogId):[]},allMsgList(){const t=[];if(t.push(...this.dialogMsgList.filter(s=>this.msgFilter(s))),this.msgId>0){const s=this.dialogMsgs.find(e=>e.id==this.msgId);s&&t.unshift(s)}if(this.tempMsgList.length>0){const s=t.map(({id:i})=>i),e=this.tempMsgList.filter(i=>!s.includes(i.id)&&this.msgFilter(i));e.length>0&&t.push(...e)}return t.sort((s,e)=>s.id-e.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:t}=this;let s=t.find(({type:i})=>i=="image"),e=t.find(({type:i})=>i!="image");return s&&e?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":s?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags({dialogData:t}){const s=[{type:"",label:"\u6D88\u606F"}];return t.has_tag&&s.push({type:"tag",label:"\u6807\u6CE8"}),t.has_todo&&s.push({type:"todo",label:"\u4E8B\u9879"}),t.has_image&&s.push({type:"image",label:"\u56FE\u7247"}),t.has_file&&s.push({type:"file",label:"\u6587\u4EF6"}),t.has_link&&s.push({type:"link",label:"\u94FE\u63A5"}),t.group_type==="project"&&s.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),t.group_type==="task"&&s.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),t.group_type==="okr"&&s.push({type:"okr",label:"\u6253\u5F00OKR"}),s},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,s)=>s.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:s,safeAreaBottom:e,windowScrollY:i,location:a,focusLazy:o}){return i<2&&a&&o&&t==="show"&&s>0&&s<120?s+e+(a==="modal"?15:0):0},msgUnreadOnly(){let t=0;return this.cacheDialogs.some(s=>{t+=$A.getDialogNum(s)}),t<=0?"":(t>999&&(t="999+"),String(t))},isMyDialog(){const{dialogData:t,userId:s}=this;return t.dialog_user&&t.dialog_user.userid==s},isManageBot(){const{dialogData:t,userId:s,userIsAdmin:e}=this;return t.bot?t.bot==s?!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(s=>s.id==this.todoViewMid);if(t)return t;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg({msgNew:t,dialogData:s,allMsgs:e}){const{unread:i,unread_one:a,mention:o,mention_ids:r}=s,n=i-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 s=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=>{s.includes(e)||s.push(e)}),s},maxSize({systemConfig:t}){return t!=null&&t.file_upload_limit?t.file_upload_limit*1024:1024e3},readEnabled({msgActivity:t,msgPrepared:s}){return t===0&&s},stickToBottom({windowActive:t,scrollTail:s,preventToBottom:e}){return t&&s<=0&&!e}},watch:{$route:{handler(t){const{name:s,params:e}=t||{};s=="manage-messenger"&&e.dialog_id&&e.open&&["word-chain","vote"].includes(e.open)&&this.$nextTick(i=>{this.$store.state[e.open=="word-chain"?"dialogDroupWordChain":"dialogGroupVote"]={type:"create",dialog_id:e.dialog_id},e.open=""})},immediate:!0},dialogId:{handler(t,s){this.getDialogBase(t),this.$store.dispatch("closeDialog",s),window.localStorage.removeItem("__cache:vote__"),window.localStorage.removeItem("__cache:unfoldWordChain__")},immediate:!0},loadMsg:{handler(t){t?this.loadIng++:setTimeout(s=>{this.loadIng--},300)},immediate:!0},isReady:{handler(t){!t||this.$nextTick(s=>{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(s=>{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 s=this.searchResult[t-1];s&&this.onPositionId(s)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:t,msgFile:s,msgRecord:e,msgText:i,dialogId:a}){t>$A.dayjs().unix()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(s)&&s.length>0?this.sendFileMsg(s):$A.isJson(e)&&e.duration>0?this.sendRecord(e):i&&this.sendMsg(i)}))},immediate:!0},wsOpenNum(t){if(t<=1)return;const s=this.allMsgs[this.allMsgs.length-1];if($A(this.$refs.scroller.$el).find(`[data-id="${s.id}"]`).length===0){this.scrollToBottomRefresh=!0;return}this.errorId===this.dialogId?this.getDialogBase(this.dialogId):this.onReGetMsg()},allMsgList(t){if(JSON.stringify(t)==JSON.stringify(this.allMsgs))return;const s=this.allMsgs.length,e=s>0?this.allMsgs[s-1].id:0;if($A.isIos()&&t.length!==s&&this.$refs.scroller){const i=this.$refs.scroller.$el;i.style.visibility="hidden",this.allMsgs=t,this.$nextTick(a=>{i.style.visibility="visible"})}else this.allMsgs=t;this.stickToBottom||(this.msgNew+=t.filter(i=>i.id&&i.id>e&&i.userid!=this.userId&&!i.read_at).length)},"allMsgs.length"(){this.stickToBottom&&this.onToBottom()},windowScrollY(t){$A.isIos()&&!this.$slots.head&&(this.$refs.nav.style.marginTop=`${Math.max(0,t)}px`)},windowActive(t){if(t&&this.autoFocus){const s=$A.last(this.dialogIns);s&&s.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 s;if(t>0){this.msgActiveId=0;const e=(s=this.$refs.scroller.$el.querySelector(`[data-id="${t}"]`))==null?void 0:s.querySelector(".dialog-head");e&&($A.scrollIntoViewIfNeeded(e),e.classList.add("common-shake"),setTimeout(i=>e.classList.remove("common-shake"),800))}},footerPaddingBottom(t){this.$refs.footer.style.paddingBottom=`${t}px`,requestAnimationFrame(s=>{this.$refs.input.updateTools()})},readLoadNum(){this.positionShow=!0},operateVisible(t){t||this.pointerMouse||this.focusLazy||document.getSelection().removeAllRanges()}},methods:{getDialogBase(t){!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.replyMsgAutoMention=!1,this.allMsgs=this.allMsgList,this.errorId=0,this.getMsgs({dialog_id:t,msg_id:this.msgId,msg_type:this.msgType}).then(s=>{this.openId=t,this.msgPrepared=!0,setTimeout(e=>{this.onSearchMsgId(),this.positionShow=this.readTimeout===null},100)}).catch(s=>{this.errorId=t}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:t}),this.autoFocus&&this.inputFocus(),this.getUserApproveStatus())},subMsgListener(t=!1){!$A.isSubElectron||(t?this.$store.dispatch("websocketMsgListener","DialogWrapper"):this.$store.dispatch("websocketMsgListener",{name:"DialogWrapper",callback:s=>{const{type:e,mode:i,data:a}=s;e==="dialog"&&i==="add"&&this.tempMsgs.push(a)}}))},sendMsg(t,s){let e,i="text",a="no",o=!1;if(typeof t=="string"&&t?e=t:(e=this.msgText,o=!0),s==="md"?(e=this.$refs.input.getText(),i="md"):s==="silence"&&(a="yes"),e==""){this.inputFocus();return}if(i==="text"&&(e=e.replace(/<\/span> <\/p>$/,"

").replace(/(.*?<\/span>.*?<\/span>.*?<\/span>)(\x20)?/,"$1 ")),this.dialogData.extra_quote_type==="update"){i==="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:i,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:i,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:i,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:s,content:l.msg,msg:e})})}o&&requestAnimationFrame(r=>this.msgText="")},sendRecord(t){const s={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(s),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{requestId:s.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,s.id)}).catch(e=>{this.$set(s,"error",!0),this.$set(s,"errorData",{type:"record",mType:"record",content:e.msg,msg:t})})},sendFileMsg(t){const s=$A.isArray(t)?t:[t];s.length>0&&(this.pasteFile=[],this.pasteItem=[],s.some(e=>{const i={type:$A.getMiddle(e.type,null,"/"),name:e.name,size:e.size,result:null};if(i.type==="image"){const a=new FileReader;a.readAsDataURL(e),a.onload=({target:o})=>{i.result=o.result,this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}}else this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}))},sendQuick(t){this.sendMsg(`

${t.label}

`)},onMsgChange(t){const s=this.allMsgs.find(({type:e,id:i})=>e=="text"&&i==t.id);s&&(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,s.msg))},onMsgOutput(t,s){const e=`${t}_load`,i=this.msgChangeCache[t];if(!(!i||i.length===0)&&this.msgChangeCache[e]!==!0){this.msgChangeCache[e]=!0;try{const a=i.shift();if(!a){this.msgChangeCache[e]=!1;return}const{type:o,text:r}=a,{tail:n}=this.scrollInfo();o==="append"?s.text+=r:o==="replace"&&(s.text=r),this.$nextTick(l=>{if(n<=10&&n!=this.scrollInfo().tail&&(this.operatePreventScroll++,this.$refs.scroller.scrollToBottom(),setTimeout(c=>this.operatePreventScroll--,50)),i.length===0){this.msgChangeCache[e]=!1;return}setTimeout(c=>{this.msgChangeCache[e]=!1,this.onMsgOutput(t,s)},5)})}catch{this.msgChangeCache[e]=!1}}},getTempId(){return this.tempId++},getMsgs(t){return new Promise((s,e)=>{setTimeout(i=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",t).then(s).catch(e).finally(i=>{this.msgLoadIng--})})},msgFilter(t){if(this.msgType){if(this.msgType==="tag"){if(!t.tag)return!1}else if(this.msgType==="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,s=0,e=0){return new Promise((i,a)=>{if(t===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",e===0)this.$store.dispatch("showSpinner",600);else if(e>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}e++,setTimeout(n=>{this.onPositionId(t,s,e).then(i).catch(a)},Math.min(800,200*e));return}e>0&&this.$store.dispatch("hiddenSpinner");const o=this.allMsgs.findIndex(n=>n.id===t),r=this.prevId>0?0:-1;o>r?setTimeout(n=>{this.onToIndex(o,t),i()},200):(s>0&&this.$store.dispatch("setLoad",{key:`msg-${s}`,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),i()),s>0&&this.$store.dispatch("cancelLoad",`msg-${s}`)}))})},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.daytz().format("YYYY-MM-DD HH:mm:ss")}),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,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,i=Array.prototype.slice.call(e);i.length>0&&(t.preventDefault(),this.sendFileMsg(i))},chatDragOver(t,s){let e=this.__dialog_drag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialog_drag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(s.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(){this.androidKeyboardVisible&&$A.eeuiAppSetDisabledUserLongClickSelect(500)},onPointerover({pointerType:t}){this.pointerMouse=t==="mouse"},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,s){switch(t){case"progress":const e=s.showProgress?Math.max(s.percentage,.01):!1,i=this.tempMsgs.find(({id:o})=>o==s.tempId);if(i){i.msg.percentage=e;return}const a={id:s.tempId,file_uid:s.uid,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"file",userid:this.userId,msg:Object.assign(s.msg||{},{percentage:e})};this.tempMsgs.push(a),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.forgetTempMsg(s.tempId);break;case"success":this.sendSuccess(s.data,s.tempId);break}},sendSuccess(t,s=0,e=!1){if($A.isArray(t)){t.some(i=>{this.sendSuccess(i,s)});return}if(s>0){const i=this.tempMsgs.findIndex(({id:a})=>a==s);i>-1&&this.tempMsgs.splice(i,1,t),setTimeout(a=>{this.forgetTempMsg(s),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:s})=>s!=t)},setQuote(t,s){var e;(e=this.$refs.input)==null||e.setQuote(t,s)},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((s,e)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:t},method:"post"}).then(({msg:i})=>{s(i)}).catch(({msg:i})=>{e(i)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onResizeEvent(t){t.some(({target:s,contentRect:e})=>{s===this.$refs.msgs?this.onMsgsResize(e):s===this.scrollGroup&&this.onScrollGroupResize(e)})},onMsgsResize({height:t}){if(this.$refs.scroller.$el.style.height=`${t}px`,typeof this.__msgs_height!="undefined"){const s=this.__msgs_height-t;if(s!==0){const{offset:e,tail:i}=this.scrollInfo();i>0&&this.onToOffset(e+s)}}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(s=>t.scrollToBottom()))},onToIndex(t,s){const e=this.$refs.scroller;if(e){e.stopToBottom();const i=e.$el.querySelector(`[data-id="${s}"]`);i!=null&&i.parentNode.parentNode.classList.contains("item-enter")||(e.scrollToIndex(t,-80),requestAnimationFrame(a=>e.scrollToIndex(t,-80)))}requestAnimationFrame(i=>this.msgActiveId=s)},onToOffset(t,s=!1){const e=this.$refs.scroller;if(e){const i=e.getOffset()>t;e.stopToBottom(),e.scrollToOffset(t),setTimeout(a=>{i||s?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 s=t.list.map(e=>e.id);this.$nextTick(()=>{const e=this.$refs.scroller,i=s.reduce((a,o)=>({size:(typeof a=="object"?a.size:e.getSize(a))+e.getSize(o)}));this.onToOffset(e.getOffset()+i.size,!0)})}).catch(()=>{})},onDialogMenu(t){var s;switch(t){case"searchMsg":this.searchShow=!0,this.$nextTick(i=>{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),_.Store.set("createGroup",e);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:(s=this.cacheUserBasic.find(i=>i.userid===this.dialogData.dialog_user.userid))==null?void 0:s.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:i})=>{this.modifyData.clear_day=i.clear_day,this.modifyData.webhook_url=i.webhook_url,this.modifyData.system_name=i.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;case"report":this.reportShow=!0;break}},onTransferGroup(){if(this.groupTransferData.userid.length===0){$A.messageError("\u8BF7\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B");return}this.groupTransferLoad++,this.$store.dispatch("call",{url:"dialog/group/transfer",data:{dialog_id:this.dialogId,userid:this.groupTransferData.userid[0]}}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},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:s})=>{$A.messageSuccess(s),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:s})=>{$A.messageSuccess(s),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,s)=>{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:i}=this.forwardData[0];e==="group"&&/^d:/.test(i)&&(this.forwardDialogId=parseInt(i.replace(/^d:/,"")))}this.forwardMessage="",this.forwardSource=!0,this.forwardhow=!0}s()})},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 s=t.filter(i=>$A.leftExists(i,"d:")).map(i=>i.replace("d:","")),e=t.filter(i=>!$A.leftExists(i,"d:"));this.forwardLoad++,this.$store.dispatch("call",{url:"dialog/msg/forward",data:{dialogids:s,userids:e,msg_id:this.operateItem.id,show_source:this.forwardSource?1:0,leave_message:this.forwardMessage}}).then(({data:i,msg:a})=>{this.$store.dispatch("saveDialogMsg",i.msgs),this.$store.dispatch("updateDialogLastMsg",i.msgs),$A.messageSuccess(a),this.$refs.forwardSelect.hide(),this.forwardhow=!1}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{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:s,tail:e}=this.scrollInfo();this.scrollOffset=s,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(i=>this.scrollTmp=this.scrollAction,0),this.scrollIng++,setTimeout(i=>this.scrollIng--,100)},onRange(t){if(this.preventMoreLoad)return;const s=this.scrollDirection==="down"?"next_id":"prev_id";for(let e=t.start;e<=t.end;e++){if(!this.allMsgs[e])continue;const i=this.allMsgs[e][s];if(!i)continue;const a=this.allMsgs[e+(s==="next_id"?1:-1)];a&&a.id!=i&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[s]:i}).finally(o=>{this.preventMoreLoad=!1}))}},onBack(){if(!this.beforeBack)return this.handleBack();const t=this.beforeBack();t&&t.then?t.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:t,params:s}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(s.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(t){switch(t){case"project":this.openProject();break;case"task":this.openTask();break;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 s=this.cacheUserBasic.find(({userid:e})=>e==t.userid);s&&this.$refs.input.addMention({denotationChar:"@",id:s.userid,value:s.nickname})},onLongpress({event:t,el:s,msgData:e}){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 i=this.getSelectedTextInElement(s);if(i.length>0&&this.operateCopys.push({type:"selected",icon:"",label:"\u590D\u5236\u9009\u62E9",value:i}),e.msg.text.replace(/<[^>]+>/g,"").length>0){let a=this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236";i.length>0&&(a="\u590D\u5236\u5168\u90E8"),this.operateCopys.push({type:"text",icon:"",label:a,value:""})}}this.$nextTick(()=>{const i=s.getBoundingClientRect(),a=this.$refs.scroller.$el.getBoundingClientRect();let o=i.top+this.windowScrollY,r=i.height;i.topa.bottom&&(r-=i.bottom-a.bottom);const n=this.windowWidth<500?this.windowWidth/2:t.clientX;if(this.operateStyles={left:`${n}px`,top:`${o}px`,height:`${r}px`},this.operateClient={x:n,y:t.clientY},this.operateVisible)try{this.$refs.operate.$refs.drop.popper.update()}catch{}else this.operateVisible=!0})},onOperate(t,s=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"voice2text":this.onVoice2text();break;case"translation":this.onTranslation();break;case"copy":this.onCopy(s);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 i=$A.formatMsgBasic(this.operateItem.msg.text);i=i.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),i=i.replace(//g,'
  • '),i=i.replace(//g,"
  • "),i=i.replace(/]*>([\s\S]*?)<\/ol>/g,'
      $1
    '),_.Store.set("addTask",{owner:[this.userId],content:i});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":s==="more"?Ua().then(this.onEmoji):this.onEmoji(s);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,s)=>{if(this.operateItem.created_at){s("\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()):s("\u53D6\u6D88\u53D1\u9001\u5931\u8D25"):this.$store.dispatch("callCancel",this.operateItem.id).then(()=>{this.forgetTempMsg(this.operateItem.id),t()}).catch(()=>{s("\u53D6\u6D88\u53D1\u9001\u5931\u8D25")})})})},onReply(t){this.replyMsgAutoMention=!0,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:s,type:e}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),e==="md"?this.$refs.input.setText(s):(s.indexOf("mention")>-1&&(s=s.replace(/]*)>~([^>]*)<\/a>/g,'~$3'),s=s.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),s=s.replace(/]*>/gi,i=>i.replace(/(width|height)="\d+"\s*/ig,"")),s=s.replace(/

    <\/p>/g,"


    "),this.msgText=$A.formatMsgBasic(s)),this.$nextTick(i=>this.$refs.input.setPasteMode(!0))}},onVoice2text(){if(!this.actionPermission(this.operateItem,"voice2text"))return;const{id:t}=this.operateItem;this.isLoad(`msg-${t}`)||(this.$store.dispatch("setLoad",`msg-${t}`),this.$store.dispatch("call",{url:"dialog/msg/voice2text",data:{msg_id:t}}).then(({data:s})=>{this.$store.dispatch("saveDialogMsg",s)}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t}`)}))},onTranslation(){if(!this.actionPermission(this.operateItem,"translation"))return;const{id:t}=this.operateItem;this.isLoad(`msg-${t}`)||(this.$store.dispatch("setLoad",`msg-${t}`),this.$store.dispatch("call",{url:"dialog/msg/translation",data:{msg_id:t}}).then(({data:s})=>{this.$store.dispatch("saveTranslation",{key:`msg-${t}`,value:s.content})}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t}`)}))},onCopy(t){if(!$A.isJson(t))return;const{type:s,value:e}=t;switch(s){case"image":this.$Electron&&this.getBase64Image(e).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$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 i=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(i.length>0){const a=i[0].innerText.replace(/\n\n/g,` -`).replace(/(^\s*)|(\s*$)/g,"");this.copyText(a)}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,s)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{t("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:e})=>{s(e)})})})},onViewReply(t){this.operateVisible||this.onPositionId(t.reply_id,t.msg_id)},onViewText({target:t,clientX:s},e){if(this.operateVisible)return;let i=t;for(;i&&!i.classList.contains("dialog-scroller");){if(i.classList.contains("open-approve-details")){_.Store.set("approveDetails",i.getAttribute("data-id"));return}i=i.parentElement}switch(t.nodeName){case"IMG":if(t.classList.contains("browse"))this.onViewPicture(t.currentSrc);else{const o=$A.getTextImagesInfo(e.outerHTML),r=o.findIndex(n=>n.src==t.currentSrc);this.$store.dispatch("previewImage",{index:r,list:o})}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 a=t.getAttribute("data-list");if(["checked","unchecked"].includes(a)){if(s-t.getBoundingClientRect().x>18)return;let o=e.parentElement;for(;o&&!o.classList.contains("dialog-scroller");){if(o.classList.contains("dialog-view")){const r=o.getAttribute("data-id");if((this.allMsgs.find(c=>c.id==r)||{}).userid!=this.userId)return;const l=[].indexOf.call(e.querySelectorAll(t.tagName),t);a==="checked"?t.setAttribute("data-list","unchecked"):t.setAttribute("data-list","checked"),this.$store.dispatch("setLoad",{key:`msg-${r}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/checked",data:{dialog_id:this.dialogId,msg_id:r,index:l,checked:a==="checked"?0:1}}).then(({data:c})=>{this.$store.dispatch("saveDialogMsg",c)}).catch(({msg:c})=>{a==="checked"?t.setAttribute("data-list","checked"):t.setAttribute("data-list","unchecked"),$A.modalError(c)}).finally(c=>{this.$store.dispatch("cancelLoad",`msg-${r}`)});break}o=o.parentElement}}break}},onViewFile(t){if(this.operateVisible)return;$A.isJson(t)||(t=this.operateItem);const{msg:s}=t;if(s.ext==="mp4"){this.$store.dispatch("previewImage",{src:s.path,width:s.width,height:s.height});return}if(["jpg","jpeg","webp","gif","png"].includes(s.ext)){this.onViewPicture(s.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:`${s.name} (${$A.bytesToSize(s.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:s.ext==="drawio"}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:`${s.name} (${$A.bytesToSize(s.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${e}`}}):window.open($A.mainUrl(e.substring(1)))},onViewPicture(t){const s=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=[];s.some(({type:a,msg:o})=>{a==="file"?e.push({src:o.path,width:o.width,height:o.height}):a==="text"&&e.push(...$A.getTextImagesInfo(o.text))});const i=e.findIndex(({src:a})=>a===t);i>-1?this.$store.dispatch("previewImage",{index:i,list:e}):this.$store.dispatch("previewImage",t)},onDownFile(t){this.operateVisible||($A.isJson(t)||(t=this.operateItem),$A.modalConfirm({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${t.msg.name} (${$A.bytesToSize(t.msg.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${t.id}`))}}))},onReplyList(t){this.operateVisible||(this.replyListId=t.msg_id,this.replyListShow=!0)},onError(t){if(t.error!==!0)return;const{type:s,mType:e,content:i,msg:a}=t.errorData,o={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:i,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:r=>{this.forgetTempMsg(t.id)}};if(s==="text")o.okText="\u91CD\u65B0\u53D1\u9001",o.onOk=()=>{this.forgetTempMsg(t.id),this.sendMsg(a,e)};else if(s==="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 s=this.cacheEmojis.filter(e=>e!==t.symbol);s.unshift(t.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=s.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)},onOther({event:t,data:s}){this.operateVisible||t==="todoAdd"&&(this.todoSpecifyData=Object.assign(this.todoSpecifyData,s),this.todoSpecifyShow=!0,this.$nextTick(e=>{this.$refs.todoSpecifySelect.onSelection()}))},onTag(){if(this.operateVisible)return;const t={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:t}).then(({data:s})=>{this.tagOrTodoSuccess(s)}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onTypeChange(t){t==="user"&&(this.todoSettingData.userids.length===0&&this.todoSettingData.quick_value.length>0&&(this.todoSettingData.userids=this.todoSettingData.quick_value),this.$nextTick(s=>{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 s;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(i=>{$A.messageSuccess(i),this.todoSettingShow=!1}).catch(i=>{$A.messageError(i)}).finally(i=>{this.todoSettingLoad--})}else if(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({type:"user",userids:[],msg_id:this.operateItem.id})});else{const e={};e[this.userId]=this.userId;const i=(s=this.dialogData.dialog_user)==null?void 0:s.userid;if(i&&i!=this.userId&&!this.dialogData.bot&&(e[i]=i),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.todoSettingShow=!0}},onTodoSpecify(){return new Promise((t,s)=>{this.onTodoSubmit(this.todoSpecifyData).then(e=>{$A.messageSuccess(e),t()}).catch(e=>{$A.messageError(e),s()})})},onTodoSubmit(t){return new Promise((s,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{method:"post",url:"dialog/msg/todo",data:t}).then(({data:i,msg:a})=>{s(a),this.tagOrTodoSuccess(i),this.onActive()}).catch(({msg:i})=>{e(i)}).finally(i=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},tagOrTodoSuccess(t){this.$store.dispatch("saveDialogMsg",t.update),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add))},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(s=>{this.positionLoad--}))},actionPermission(t,s){switch(s){case"forward":if(["word-chain","vote","template"].includes(t.type))return!1;break;case"newTask":return t.type==="text";case"voice2text":if(t.type!=="record"||t.msg.text)return!1;break;case"translation":return["text","record"].includes(t.type)&&t.msg.text}return!0},findOperateFile(t,s){const e=this.fileLinks.find(i=>i.link===s);if(e){this.addFileMenu(t,e);return}this.$store.dispatch("searchFiles",{link:s}).then(({data:i})=>{if(i.length===1){const a={link:s,id:i[0].id,pid:i[0].pid};this.fileLinks.push(a),this.addFileMenu(t,a)}}).catch(i=>{})},addFileMenu(t,s){if(this.operateItem.id!=t||this.operateCopys.findIndex(i=>i.type==="filepos")!==-1)return;const e=Math.max(0,this.operateCopys.findIndex(i=>i.type==="link")-1);this.operateCopys.splice(e,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:s.pid,fileId:null,shakeId:s.id}})},getBase64Image(t){return new Promise(s=>{let e=document.createElement("CANVAS"),i=e.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{e.height=a.height,e.width=a.width,i.drawImage(a,0,0);let o="png";$A.rightExists(t,"jpg")||$A.rightExists(t,"jpeg")?o="jpeg":$A.rightExists(t,"webp")?o="webp":$A.rightExists(t,"git")&&(o="git"),s(e.toDataURL(`image/${o}`)),e=null},a.src=t})},getSelectedTextInElement(t){let s="";if(window.getSelection){let e=window.getSelection();if(e.rangeCount>0){const i=e.getRangeAt(0);t.contains(i.commonAncestorContainer)&&(s=i.toString())}}return s},onViewAvatar(t){let s=null;t.target.tagName==="IMG"?s=t.target.src:s=$A(t.target).find("img").attr("src"),s&&this.$store.dispatch("previewImage",s)},onTopOperate(){this.operateVisible||(this.operateItem.top_at?this.onCancelTop(this.operateItem):this.onTopSubmit(this.operateItem))},onTopSubmit(t){return new Promise((s,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:i,msg:a})=>{var o,r,n;if(s(a),this.$store.dispatch("saveDialog",{id:this.dialogId,top_msg_id:((o=i.update)==null?void 0:o.top_msg_id)||0,top_userid:((r=i.update)==null?void 0:r.top_userid)||0}),(n=i.update)!=null&&n.top_msg_id){const l=this.dialogMsgs.findIndex(({id:c})=>c==i.update.top_msg_id);l>-1&&this.$store.dispatch("saveDialogMsgTop",Object.assign({},this.dialogMsgs[l]))}i.add&&(this.$store.dispatch("saveDialogMsg",i.add),this.$store.dispatch("updateDialogLastMsg",i.add),this.onActive())}).catch(({msg:i})=>{e(i)}).finally(i=>{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)})}}},mt={};var _o=d(go,mo,fo,!1,vo,null,null,null);function vo(t){for(let s in mt)this[s]=mt[s]}var To=function(){return _o.exports}();export{Ga as C,To as D}; diff --git a/public/js/build/DialogWrapper.df01caa2.js b/public/js/build/DialogWrapper.df01caa2.js new file mode 100644 index 000000000..a94f6dffc --- /dev/null +++ b/public/js/build/DialogWrapper.df01caa2.js @@ -0,0 +1,6 @@ +import{m,a as gt}from"./vuex.cc7cb26e.js";import{n as d,M as kt,U as _t,c as Ct,i as bt,a as w}from"./app.879f8ead.js";import{l as _}from"./le5le-store.b40f9152.js";import{l as y}from"./longpress.5305f240.js";import{D as Lt}from"./index.e6513292.js";import{Q as $}from"./quill-hi.b7c37d93.js";import"./quill-mention-hi.f348056f.js";import{V as Dt}from"./vue.c448ed56.js";import{i as xt}from"./view-design-hi.d2045547.js";import{V as St}from"./vue-virtual-scroll-list-hi.3a8a6077.js";import{I as vt}from"./ImgUpload.cc22c426.js";import{U as It}from"./tip.434a62e4.js";var Mt=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"common-circle",style:t.style,attrs:{"data-id":t.percent}},[e("svg",{attrs:{viewBox:"0 0 28 28"}},[e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),e("path",{staticClass:"common-circle-g-path-core",attrs:{d:t.arc(t.args)}})])])])])},Tt=[];const At={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:t}=this;return this.isNumeric(t)&&(t+="px"),{width:t,height:t}},args(){const{percent:t}=this;let s=Math.min(360,360/100*t);return s==360?s=0:s==0&&(s=360),{x:14,y:14,r:14,start:360,end:s}}},methods:{isNumeric(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)},point(t,s,e,i){return[(t+Math.sin(i)*e).toFixed(2),(s-Math.cos(i)*e).toFixed(2)]},full(t,s,e,i){return i<=0?`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} Z`:`M ${t-e} ${s} A ${e} ${e} 0 1 1 ${t+e} ${s} A ${e} ${e} 1 1 1 ${t-e} ${s} M ${t-i} ${s} A ${i} ${i} 0 1 1 ${t+i} ${s} A ${i} ${i} 1 1 1 ${t-i} ${s} Z`},part(t,s,e,i,a,o){const[r,n]=[a/360*2*Math.PI,o/360*2*Math.PI],l=[this.point(t,s,i,r),this.point(t,s,e,r),this.point(t,s,e,n),this.point(t,s,i,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 ${i} ${i} 0 ${c} 0 ${l[0][0]} ${l[0][1]} Z`},arc(t){const{x:s=0,y:e=0}=t;let{R:i=0,r:a=0,start:o,end:r}=t;return[i,a]=[Math.max(i,a),Math.min(i,a)],i<=0?"":o!==+o||r!==+r?this.full(s,e,i,a):Math.abs(o-r)<1e-6?"":Math.abs(o-r)%360<1e-6?this.full(s,e,i,a):([o,r]=[o%360,r%360],o>r&&(r+=360),this.part(s,e,i,a,o,r))}}},k={};var Et=d(At,Mt,Tt,!1,jt,null,null,null);function jt(t){for(let s in k)this[s]=k[s]}var Ft=function(){return Et.exports}();var Rt=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"markdown-body",domProps:{innerHTML:t._s(t.html)},on:{click:t.onCLick}})},Ot=[];const Vt={name:"DialogMarkdown",props:{text:{type:String,default:""}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:t}){return kt(t)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(s=>{const e=s.querySelector(".code-block-header__copy"),i=s.querySelector(".code-block-body");e&&i&&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=i.textContent)!=null?o:""):this.copyContent({text:(r=i.textContent)!=null?r:"",origin:!0})}))})},copyContent(t){const s={origin:!0,...t};let e;s.origin?e=document.createElement("textarea"):e=document.createElement("input"),e.setAttribute("readonly","readonly"),e.value=s.text,document.body.appendChild(e),e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(e)},onCLick(t){this.$emit("click",t)}}},C={};var Bt=d(Vt,Rt,Ot,!1,qt,null,null,null);function qt(t){for(let s in C)this[s]=C[s]}var $t=function(){return Bt.exports}(),Pt=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-text no-dark-content"},[t.msg.type==="md"?e("DialogMarkdown",{attrs:{text:t.msg.text},on:{click:t.viewText}}):e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msg.text,t.userId))},on:{click:t.viewText}}),t.translation?[e("div",{staticClass:"content-divider"},[e("span"),e("div",{staticClass:"divider-label translation-label",on:{click:t.viewText}},[t._v(t._s(t.translation.label))]),e("span")]),t.msg.type==="md"?e("DialogMarkdown",{attrs:{text:t.translation.content}}):e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.translation.content,t.userId))}})]:t._e()],2)},Ut=[];const Nt={components:{DialogMarkdown:$t},props:{msgId:Number,msg:Object},computed:{...m(["cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:t,msgId:s,cacheTranslationLanguage:e}){const i=t.find(a=>a.key===`msg-${s}`&&a.language===e);return i||null}},methods:{viewText(t){this.$emit("viewText",t)}}},b={};var zt=d(Nt,Pt,Ut,!1,Wt,null,null,null);function Wt(t){for(let s in b)this[s]=b[s]}var Qt=function(){return zt.exports}(),Ht=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:`content-file ${t.msg.type}`},[e("div",{staticClass:"dialog-file"},[t.msg.type==="img"?e("img",{staticClass:"file-img",style:t.imageStyle(t.msg),attrs:{src:t.imageSrc(t.msg)},on:{click:t.viewFile}}):t.isVideoFile(t.msg)?e("div",{staticClass:"file-video",style:t.imageStyle(t.msg),on:{click:t.viewFile}},[t.msg.thumb?e("img",{attrs:{src:t.msg.thumb}}):e("video",{attrs:{width:t.imageStyle(t.msg,"width"),height:t.imageStyle(t.msg,"height")}},[e("source",{attrs:{src:t.msg.path,type:"video/mp4"}})]),t._m(0)]):e("div",{staticClass:"file-box",on:{click:t.downFile}},[e("img",{staticClass:"file-thumb",attrs:{src:t.msg.thumb}}),e("div",{staticClass:"file-info"},[e("div",{staticClass:"file-name"},[t._v(t._s(t.msg.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(t.msg.size)))])])]),t.msg.percentage?e("div",{staticClass:"file-percentage"},[e("span",{style:t.fileStyle(t.msg.percentage)})]):t._e()])])},Gt=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"file-play"},[e("div",{staticClass:"play-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE745")])])])}];const Kt={props:{msg:Object},methods:{viewFile(){this.$emit("viewFile")},downFile(){this.$emit("downFile")},fileStyle(t){return t?{width:`${t}%`}:{}},imageStyle({width:t,height:s,thumb:e},i="style"){if(t&&s){const a=$A.imageRatioExceed(t,s,3);$A.imageRatioJudge(e)&&a>0&&(t>s?t=s*a:s=t*a);let o=220,r=220,n=t,l=s;return(t>o||s>r)&&(t>s?(n=o,l=s*(o/t)):(n=t*(r/s),l=r)),i==="width"?n:i==="height"?l:{width:n+"px",height:l+"px"}}return i==="width"||i==="height"?0:{}},imageSrc({width:t,height:s,thumb:e}){const i=$A.imageRatioExceed(t,s,3);return $A.imageRatioJudge(e)&&i>0&&(e=$A.thumbRestore(e)+`/crop/ratio:${i},percentage:320x0`),e},isVideoFile(t){return t.type==="file"&&t.ext==="mp4"&&t.width>0&&t.height>0}}},L={};var Jt=d(Kt,Ht,Gt,!1,Yt,null,null,null);function Yt(t){for(let s in L)this[s]=L[s]}var Xt=function(){return Jt.exports}(),Zt=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-record no-dark-content"},[e("div",{staticClass:"dialog-record",class:{playing:t.audioPlaying===t.msg.path},style:t.recordStyle(t.msg),on:{click:t.playRecord}},[e("div",{staticClass:"record-time"},[t._v(t._s(t.recordDuration(t.msg.duration)))]),e("div",{staticClass:"record-icon taskfont"})]),t.msg.text?[t._m(0),e("div",{staticClass:"content-additional"},[t._v(t._s(t.msg.text))])]:t._e(),t.translation?[e("div",{staticClass:"content-divider"},[e("span"),e("div",{staticClass:"divider-label translation-label",on:{click:t.viewText}},[t._v(t._s(t.translation.label))]),e("span")]),e("div",{staticClass:"content-additional"},[t._v(t._s(t.translation.content))])]:t._e()],2)},te=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-divider"},[e("span",{staticClass:"divider-full"})])}];const ee={components:{DialogMarkdown:$t},props:{msgId:Number,msg:Object},computed:{...m(["audioPlaying","cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:t,msgId:s,cacheTranslationLanguage:e}){const i=t.find(a=>a.key===`msg-${s}`&&a.language===e);return i||null}},methods:{playRecord(){this.$emit("playRecord")},recordStyle(t){const{duration:s}=t;return{width:50+Math.min(180,Math.floor(s/200))+"px"}},recordDuration(t){const s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60;return s>0?`${s}:${e}\u2033`:`${Math.max(1,e)}\u2033`},viewText(t){this.$emit("viewText",t)}}},D={};var se=d(ee,Zt,te,!1,ie,null,null,null);function ie(t){for(let s in D)this[s]=D[s]}var ae=function(){return se.exports}(),oe=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-meeting no-dark-content"},[e("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!t.msg.end_at}},[e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),t._v(" "+t._s(t.msg.name)+" ")]),e("li",[e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),e("UserAvatar",{attrs:{userid:t.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.channelID(t.msg.meetingid))+" ")]),t.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")])])])])},re=[];const ne={props:{msg:Object},methods:{openMeeting(){this.$emit("openMeeting")},channelID(t){return t.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3")}}},x={};var le=d(ne,oe,re,!1,ce,null,null,null);function ce(t){for(let s in x)this[s]=x[s]}var de=function(){return le.exports}(),ue=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-text content-word-chain no-dark-content"},[e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msg.text,t.userId))}}),e("ul",{class:{expand:t.unfoldWordChainData.indexOf(t.msgId)!==-1}},[t._l((t.msg.list||[]).filter(function(i){return i.type=="case"}),function(i){return e("li",[t._v(" "+t._s(t.$L("\u4F8B"))+" "+t._s(i.text)+" ")])}),t._l((t.msg.list||[]).filter(function(i){return i.type!="case"&&i.text}),function(i,a){return e("li",[a==2&&t.msg.list.length>4?e("span",{staticClass:"expand",on:{click:t.unfoldWordChain}},[t._v(" ..."+t._s(t.$L("\u5C55\u5F00"))+"... ")]):t._e(),e("span",{class:{shrink:a>=2&&t.msg.list.length>4}},[t._v(" "+t._s(a+1)+". "+t._s(i.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)])},he=[];const pe={props:{msg:Object,msgId:Number,unfoldWordChainData:Array},methods:{unfoldWordChain(){this.$emit("unfoldWordChain")},onWordChain(){this.$emit("onWordChain")}}},S={};var me=d(pe,ue,he,!1,fe,null,null,null);function fe(t){for(let s in S)this[s]=S[s]}var ge=function(){return me.exports}(),_e=function(){var t=this,s=t.$createElement,e=t._self._c||s;return 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.msg.multiple==1?t.$L("\u591A\u9009"):t.$L("\u5355\u9009")))]),e("span",[t._v(t._s(t.msg.anonymous==1?t.$L("\u533F\u540D"):t.$L("\u5B9E\u540D")))])]),e("pre",{domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msg.text,t.userId))}}),(t.msg.votes||[]).filter(function(i){return i.userid==t.userId}).length==0?[t.msg.multiple==0?e("RadioGroup",{attrs:{vertical:""},model:{value:t.voteData[t.msg.uuid],callback:function(i){t.$set(t.voteData,t.msg.uuid,i)},expression:"voteData[msg.uuid]"}},t._l(t.msg.list||[],function(i,a){return e("Radio",{key:a,attrs:{label:i.id}},[t._v(" "+t._s(i.text)+" ")])}),1):e("CheckboxGroup",{model:{value:t.voteData[t.msg.uuid],callback:function(i){t.$set(t.voteData,t.msg.uuid,i)},expression:"voteData[msg.uuid]"}},t._l(t.msg.list||[],function(i,a){return e("Checkbox",{key:a,attrs:{label:i.id}},[t._v(" "+t._s(i.text)+" ")])}),1),e("div",{staticClass:"btn-row"},[(t.voteData[t.msg.uuid]||[]).length==0?e("Button",{staticClass:"ivu-btn-grey",attrs:{disabled:""}},[t._v(t._s(t.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):e("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:t.msg._loadIng>0},on:{click:function(i){return t.onVote("vote")}}},[t._v(t._s(t.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[e("div",{staticClass:"vote-result-body"},[e("ul",t._l(t.msg.list||[],function(i){return e("li",[e("div",{staticClass:"vote-option-title"},[t._v(t._s(i.text))]),e("div",{staticClass:"ticket-num"},[e("span",[t._v(t._s(t.getVoteProgress(t.msg,i.id).num)+t._s(t.$L("\u7968")))]),e("span",[t._v(t._s(t.getVoteProgress(t.msg,i.id).progress+"%"))])]),e("Progress",{attrs:{percent:Number(t.getVoteProgress(t.msg,i.id).progress),"stroke-width":5,"hide-info":""}}),t.msg.anonymous==0?e("div",{staticClass:"avatar-row"},[t._l((t.msg.votes||[]).filter(function(a){return a.votes.indexOf(i.id)!=-1}),function(a){return[e("UserAvatar",{attrs:{userid:a.userid,size:18}})]})],2):t._e()],1)}),0)]),t.msg.state==1&&t.msg.userid==t.userId?e("div",{staticClass:"btn-row"},[e("Button",{attrs:{type:"warning",loading:t.msg._loadIng>0},on:{click:function(i){return t.onVote("again")}}},[t._v(t._s(t.$L("\u518D\u6B21\u53D1\u9001")))]),e("Button",{attrs:{type:"warning",loading:t.msg._loadIng>0},on:{click:function(i){return t.onVote("finish")}}},[t._v(t._s(t.$L("\u7ED3\u675F\u6295\u7968")))])],1):t._e()]],2)},ve=[];const $e={props:{msg:Object,voteData:Object},methods:{getVoteProgress(t,s){const e=t.votes.filter(a=>(a.votes||"").indexOf(s)!=-1).length,i=e?(e/t.votes.length*100).toFixed(2):"0.00";return{num:e,progress:i}},onVote(t){this.$emit("onVote",t)}}},I={};var ye=d($e,_e,ve,!1,we,null,null,null);function we(t){for(let s in I)this[s]=I[s]}var ke=function(){return ye.exports}(),Ce=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t._v(" "+t._s(t.$L("\u60A8\u597D\uFF0C\u6211\u662F\u673A\u5668\u4EBA"))+"\uFF1A"+t._s(t.msg.data.nickname)+"\uFF0C"+t._s(t.$L("\u6211\u7684\u673A\u5668\u4EBAID\u662F"))+"\uFF1A"+t._s(t.msg.data.userid)+"\uFF0C"+t._s(t.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),e("span",{staticClass:"mark-color"},[t._v("/help")]),t._v(" "+t._s(t.$L("\u67E5\u770B\u6211\u652F\u6301\u4EC0\u4E48\u547D\u4EE4"))+"\u3002 ")])},be=[];const Le={props:{msg:Object},data(){return{}},computed:{},methods:{}},M={};var De=d(Le,Ce,be,!1,xe,null,null,null);function xe(t){for(let s in M)this[s]=M[s]}var Se=function(){return De.exports}(),Ie=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[t._v(t._s(t.$L("\u60A8\u53EF\u4EE5\u901A\u8FC7\u53D1\u9001\u4EE5\u4E0B\u547D\u4EE4\u6765\u63A7\u5236\u6211"))+"\uFF1A")]),e("p",[t._v("\xA0")]),t.msg.manager?[e("p",[e("span",{staticClass:"mark-color"},[t._v("/list")]),t._v(" - "+t._s(t.$L("\u673A\u5668\u4EBA\u5217\u8868")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/newbot ("+t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+")")]),t._v(" - "+t._s(t.$L("\u521B\u5EFA\u673A\u5668\u4EBA")))])]:[e("p",[e("span",{staticClass:"mark-color"},[t._v("/info")]),t._v(" - "+t._s(t.$L("\u67E5\u770B\u673A\u5668\u4EBA\u8BE6\u60C5")))])],e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u4FEE\u6539\u673A\u5668\u4EBA")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/setname"+t._s(t.IDLabel)+" ("+t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+")")]),t._v(" - "+t._s(t.$L("\u4FEE\u6539\u673A\u5668\u4EBA\u540D\u79F0")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/deletebot"+t._s(t.IDLabel))]),t._v(" - "+t._s(t.$L("\u5220\u9664\u673A\u5668\u4EBA")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/clearday"+t._s(t.IDLabel)+" ("+t._s(t.$L("\u5929\u6570"))+")")]),t._v(" - "+t._s(t.$L("\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4\uFF08\u9ED8\u8BA430\u5929\uFF09")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/webhook"+t._s(t.IDLabel)+" [url]")]),t._v(" - "+t._s(t.$L("\u8BBE\u7F6E\u6D88\u606FWebhook\uFF08\u8BE6\u60C5\u8BF7\u770B API\u63A5\u53E3\u6587\u6863\uFF09")))]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u8BBE\u7F6E")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/token"+t._s(t.IDLabel))]),t._v(" - "+t._s(t.$L("\u751F\u6210Token\u4EE4\u724C")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/revoke"+t._s(t.IDLabel))]),t._v(" - "+t._s(t.$L("\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C")))]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u4F1A\u8BDD\u7BA1\u7406")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/dialog"+t._s(t.IDLabel)+" ["+t._s(t.$L("\u641C\u7D22\u5173\u952E\u8BCD"))+"]")]),t._v(" - "+t._s(t.$L("\u67E5\u770B\u4F1A\u8BDDID")))]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("API\u63A5\u53E3\u6587\u6863")))])]),e("p",[e("span",{staticClass:"mark-color"},[t._v("/api")]),t._v(" - "+t._s(t.$L("\u67E5\u770B\u63A5\u53E3\u5217\u8868")))])],2)},Me=[];const Te={props:{msg:Object},data(){return{}},computed:{IDLabel(){return this.msg.manager?this.$L(" {\u673A\u5668\u4EBAID}"):""}}},T={};var Ae=d(Te,Ie,Me,!1,Ee,null,null,null);function Ee(t){for(let s in T)this[s]=T[s]}var je=function(){return Ae.exports}(),Fe=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u6211\u7684\u673A\u5668\u4EBA")))])]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("ID | \u540D\u79F0 | \u6E05\u7406\u65F6\u95F4 | Webhook")))])]),t._l(t.msg.data,function(i){return e("p",[t._v(t._s(i.userid)+" | "+t._s(i.nickname)+" | "+t._s(i.clear_day)+" | "+t._s(i.webhook_url?"\u2705":"-"))])})],2)},Re=[];const Oe={props:{msg:Object},data(){return{}},computed:{},methods:{}},A={};var Ve=d(Oe,Fe,Re,!1,Be,null,null,null);function Be(t){for(let s in A)this[s]=A[s]}var qe=function(){return Ve.exports}(),Pe=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u8BE6\u60C5")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v(t._s(t.$L("\u4FDD\u7559\u6D88\u606F\u65F6\u95F4"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_day))])]),e("p",[t._v(t._s(t.$L("\u6700\u540E\u4E00\u6B21\u6E05\u7406\u65F6\u95F4"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_at||"-"))])]),e("p",[t._v(t._s(t.$L("Webhook\u5730\u5740"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.webhook_url||"-"))])]),e("p",[t._v(t._s(t.$L("Webhook\u8BF7\u6C42\u6B21\u6570"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.webhook_num))])])])},Ue=[];const Ne={props:{msg:Object},data(){return{}},computed:{},methods:{}},E={};var ze=d(Ne,Pe,Ue,!1,We,null,null,null);function We(t){for(let s in E)this[s]=E[s]}var Qe=function(){return ze.exports}(),He=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u521B\u5EFA\u6210\u529F")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},Ge=[];const Ke={props:{msg:Object},data(){return{}},computed:{},methods:{}},j={};var Je=d(Ke,He,Ge,!1,Ye,null,null,null);function Ye(t){for(let s in j)this[s]=j[s]}var Xe=function(){return Je.exports}(),Ze=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u8BBE\u7F6E\u540D\u79F0\u6210\u529F")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},ts=[];const es={props:{msg:Object},data(){return{}},computed:{},methods:{}},F={};var ss=d(es,Ze,ts,!1,is,null,null,null);function is(t){for(let s in F)this[s]=F[s]}var as=function(){return ss.exports}(),os=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u5220\u9664\u6210\u529F")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},rs=[];const ns={props:{msg:Object},data(){return{}},computed:{},methods:{}},R={};var ls=d(ns,os,rs,!1,cs,null,null,null);function cs(t){for(let s in R)this[s]=R[s]}var ds=function(){return ls.exports}(),us=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u751F\u6210Token\u4EE4\u724C")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v("Token\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.token))])])])},hs=[];const ps={props:{msg:Object},data(){return{}},computed:{},methods:{}},O={};var ms=d(ps,us,hs,!1,fs,null,null,null);function fs(t){for(let s in O)this[s]=O[s]}var gs=function(){return ms.exports}(),_s=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])])])},vs=[];const $s={props:{msg:Object},data(){return{}},computed:{},methods:{}},V={};var ys=d($s,_s,vs,!1,ws,null,null,null);function ws(t){for(let s in V)this[s]=V[s]}var ks=function(){return ys.exports}(),Cs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u8BBE\u7F6EWebhook\u5730\u5740")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v(t._s(t.$L("Webhook\u5730\u5740"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.webhook_url))])])])},bs=[];const Ls={props:{msg:Object},data(){return{}},computed:{},methods:{}},B={};var Ds=d(Ls,Cs,bs,!1,xs,null,null,null);function xs(t){for(let s in B)this[s]=B[s]}var Ss=function(){return Ds.exports}(),Is=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4")))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBAID"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.userid))])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u540D\u79F0"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname))])]),e("p",[t._v(t._s(t.$L("\u6E05\u7406\u5468\u671F"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_day)+t._s(t.$L("\u5929")))])]),e("p",[t._v(t._s(t.$L("\u4E0B\u6B21\u6E05\u7406"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.clear_at))])])])},Ms=[];const Ts={props:{msg:Object},data(){return{}},computed:{},methods:{}},q={};var As=d(Ts,Is,Ms,!1,Es,null,null,null);function Es(t){for(let s in q)this[s]=q[s]}var js=function(){return As.exports}(),Fs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L("\u673A\u5668\u4EBA"))+" "),e("span",{staticClass:"mark-color"},[t._v(t._s(t.msg.data.nickname)+" (ID:"+t._s(t.msg.data.userid)+")")]),t._v(" "+t._s(t.$L("\u5DF2\u52A0\u5165\u7684\u4F1A\u8BDD"))+"\uFF1A")])]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u4F1A\u8BDDID | \u4F1A\u8BDD\u540D\u79F0")))])]),t._l(t.msg.data.list,function(i){return e("p",[t._v(" "+t._s(i.id)+" | "+t._s(i.name)+t._s(i.type=="user"?t.$L(" (\u4E2A\u4EBA)"):"")+" ")])})],2)},Rs=[];const Os={props:{msg:Object},data(){return{}},computed:{},methods:{}},P={};var Vs=d(Os,Fs,Rs,!1,Bs,null,null,null);function Bs(t){for(let s in P)this[s]=P[s]}var qs=function(){return Vs.exports}(),Ps=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[t._v(t._s(t.$L("\u4F60\u53EF\u4EE5\u901A\u8FC7\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u6765\u8BF7\u6C42\u6211"))+":")]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("\u53D1\u9001\u6587\u672C\u6D88\u606F"))+"\uFF1A")])]),e("p",[t._v("curl --request POST '"+t._s(t.$A.apiUrl("dialog/msg/sendtext"))+"' \\")]),e("p",[t._v("--header 'version: "+t._s(t.msg.version)+"' \\")]),e("p",[t._v("--header 'token: "),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u673A\u5668\u4EBAToken")))]),t._v("' \\")]),e("p",[t._v(`--form 'dialog_id="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u5BF9\u8BDDID")))]),t._v(`"' \\`)]),e("p",[t._v(`--form 'text="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u6D88\u606F\u5185\u5BB9")))]),t._v(`"'`)]),t._m(0),e("p",[t._v(`--form 'key="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u641C\u7D22\u8BCD (\u7559\u7A7A\u81EA\u52A8\u751F\u6210)")))]),t._v(`"'`)]),t._m(1),e("p",[t._v(`--form 'reply_id="`),e("span",{staticClass:"mark-color"},[t._v(t._s(t.$L("\u56DE\u590D\u6307\u5B9A\u6D88\u606FID")))]),t._v(`"'`)]),e("p",[t._v("\xA0")]),e("p",[e("b",[t._v(t._s(t.$L("Webhook\u8BF4\u660E"))+"\uFF1A")])]),e("p",[t._v(t._s(t.$L("\u673A\u5668\u4EBA\u6536\u5230\u6D88\u606F\u540E\u4F1A\u5C06\u6D88\u606FPOST\u63A8\u9001\u5230Webhook\u5730\u5740\uFF0C\u8BF7\u6C42\u8D85\u65F6\u4E3A10\u79D2\uFF0C\u8BF7\u6C42\u53C2\u6570\u5982\u4E0B"))+"\uFF1A")]),e("p",[e("span",{staticClass:"mark-color"},[t._v("text")]),t._v(": "+t._s(t.$L("\u6D88\u606F\u6587\u672C")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("token")]),t._v(": "+t._s(t.$L("\u673A\u5668\u4EBAToken")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("dialog_id")]),t._v(": "+t._s(t.$L("\u5BF9\u8BDDID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("dialog_type")]),t._v(": "+t._s(t.$L("\u5BF9\u8BDD\u7C7B\u578B")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("msg_id")]),t._v(": "+t._s(t.$L("\u6D88\u606FID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("msg_uid")]),t._v(": "+t._s(t.$L("\u6D88\u606F\u53D1\u9001\u4EBAID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("mention")]),t._v(": "+t._s(t.$L("\u662F\u5426\u88AB@\u5230")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("bot_uid")]),t._v(": "+t._s(t.$L("\u673A\u5668\u4EBAID")))]),e("p",[e("span",{staticClass:"mark-color"},[t._v("version")]),t._v(": "+t._s(t.$L("\u7CFB\u7EDF\u7248\u672C")))])])},Us=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("p",[t._v(`--form 'text_type="`),e("span",{staticClass:"mark-color"},[t._v("[html|md]")]),t._v(`"'`)])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("p",[t._v(`--form 'silence="`),e("span",{staticClass:"mark-color"},[t._v("[yes|no]")]),t._v(`"'`)])}];const Ns={props:{msg:Object},data(){return{}},computed:{},methods:{}},U={};var zs=d(Ns,Ps,Us,!1,Ws,null,null,null);function Ws(t){for(let s in U)this[s]=U[s]}var Qs=function(){return zs.exports}(),Hs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(`${t.msg.data.nickname} \u63D0\u4EA4\u7684\u300C${t.msg.data.proc_def_name}\u300D\u5F85\u4F60\u5BA1\u6279`)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BE6\u60C5")))]),t.msg.data.type?e("p",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+t._s(t.msg.data.type))]):t._e(),e("p",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.start_time)+" ("+t._s(t.msg.data.start_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.end_time)+" ("+t._s(t.msg.data.end_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u4E8B\u7531"))+"\uFF1A"+t._s(t.msg.data.description))])]),e("div",{staticClass:"btn-raw no-dark-content"},[t.msg.action==="pass"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u540C\u610F")))]):t.msg.action==="refuse"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t.msg.action==="withdraw"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u64A4\u9500")))]):[e("button",{staticClass:"ivu-btn ivu-btn-primary"},[t._v(t._s(t.$L("\u540C\u610F")))]),e("button",{staticClass:"ivu-btn ivu-btn-error"},[t._v(t._s(t.$L("\u62D2\u7EDD")))])]],2)])},Gs=[];const Ks={props:{msg:Object},data(){return{}},computed:{},methods:{}},N={};var Js=d(Ks,Hs,Gs,!1,Ys,null,null,null);function Ys(t){for(let s in N)this[s]=N[s]}var Xs=function(){return Js.exports}(),Zs=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(`\u6284\u9001 ${t.msg.data.nickname} \u63D0\u4EA4\u7684\u300C${t.msg.data.proc_def_name}\u300D\u8BB0\u5F55`)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BE6\u60C5")))]),t.msg.data.type?e("p",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+t._s(t.msg.data.type))]):t._e(),e("p",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.start_time)+" ("+t._s(t.msg.data.start_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.end_time)+" ("+t._s(t.msg.data.end_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u4E8B\u7531"))+"\uFF1A"+t._s(t.msg.data.description))])]),e("div",{staticClass:"btn-raw no-dark-content"},[t.msg.is_finished?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u540C\u610F")))]):e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u67E5\u770B\u8BE6\u60C5")))])])])},ti=[];const ei={props:{msg:Object},data(){return{}},computed:{},methods:{}},z={};var si=d(ei,Zs,ti,!1,ii,null,null,null);function ii(t){for(let s in z)this[s]=z[s]}var ai=function(){return si.exports}(),oi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(`${t.msg.data.comment_nickname} \u8BC4\u8BBA\u4E86 ${t.msg.data.nickname} \u7684\u300C${t.msg.data.proc_def_name}\u300D\u5BA1\u6279`)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BC4\u8BBA\u5185\u5BB9")))]),e("p",[t._v(t._s(t.msg.data.comment_content))]),t.isPicture?e("p",[t._v("["+t._s(t.$L("\u56FE\u7247"))+"]")]):t._e()]),e("div",{staticClass:"btn-raw no-dark-content"},[e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u67E5\u770B\u8BE6\u60C5")))])])])},ri=[];const ni={props:{msg:Object},data(){return{}},computed:{isPicture(){const{comment_pictures:t}=this.msg.data;return $A.isArray(t)&&t.length>0}},methods:{}},W={};var li=d(ni,oi,ri,!1,ci,null,null,null);function ci(t){for(let s in W)this[s]=W[s]}var di=function(){return li.exports}(),ui=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"open-approve-details",attrs:{"data-id":t.msg.data.id}},[e("b",[t._v(t._s(t.$L(t.title)))]),e("div",{staticClass:"cause"},[e("p",[t._v(t._s(t.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),e("span",{staticClass:"mark-color"},[t._v("@"+t._s(t.msg.data.start_nickname))]),t._v(" "+t._s(t.msg.data.department))]),e("b",[t._v(t._s(t.$L("\u8BE6\u60C5")))]),t.msg.data.type?e("p",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"+t._s(t.msg.data.type))]):t._e(),e("p",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.start_time)+" ("+t._s(t.msg.data.start_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+t._s(t.msg.data.end_time)+" ("+t._s(t.msg.data.end_day_of_week)+")")]),e("p",[t._v(t._s(t.$L("\u4E8B\u7531"))+"\uFF1A"+t._s(t.msg.data.description))])]),e("div",{staticClass:"btn-raw no-dark-content"},[t.msg.action==="pass"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u540C\u610F")))]):t.msg.action==="refuse"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t.msg.action==="withdraw"?e("button",{staticClass:"ivu-btn ivu-btn-grey"},[t._v(t._s(t.$L("\u5DF2\u64A4\u9500")))]):t._e()])])},hi=[];const pi={props:{msg:Object},data(){return{}},computed:{title({msg:t}){return t.action==="pass"?`\u60A8\u53D1\u8D77\u7684\u300C${t.data.proc_def_name}\u300D\u5DF2\u901A\u8FC7`:`\u60A8\u53D1\u8D77\u7684\u300C${t.data.proc_def_name}\u300D\u88AB ${t.data.nickname} \u62D2\u7EDD`}},methods:{}},Q={};var mi=d(pi,ui,hi,!1,fi,null,null,null);function fi(t){for(let s in Q)this[s]=Q[s]}var gi=function(){return mi.exports}(),_i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[t._v(t._s(t.$L(t.msg.title)))]),e("p",[t._v("\xA0")]),t._l(t.msg.list,function(i){return e("p",[e("span",{staticClass:"mention task",attrs:{"data-id":i.id}},[t._v("#"+t._s(i.name))])])})],2)},vi=[];const $i={props:{msg:Object},data(){return{}},computed:{},methods:{}},H={};var yi=d($i,_i,vi,!1,wi,null,null,null);function wi(t){for(let s in H)this[s]=H[s]}var ki=function(){return yi.exports}(),Ci=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("p",[e("b",[t._v(t._s(t.$L(t.msg.title)))])]),e("p",[t._v("\xA0")]),e("p",[t._v(t._s(t.$L("\u6587\u4EF6\u540D"))+": "+t._s(t.msg.name))]),e("p",[t._v(t._s(t.$L("\u6587\u4EF6\u5927\u5C0F"))+": "+t._s(t.$A.bytesToSize(t.msg.size)))]),e("p",{staticStyle:{"margin-top":"10px"}},[e("Button",{staticClass:"no-dark-content",attrs:{to:t.msg.url,target:"_blank",type:"warning"}},[t._v(t._s(t.$L("\u7ACB\u5373\u4E0B\u8F7D")))])],1)])},bi=[];const Li={props:{msg:Object},data(){return{}},computed:{},methods:{}},G={};var Di=d(Li,Ci,bi,!1,xi,null,null,null);function xi(t){for(let s in G)this[s]=G[s]}var Si=function(){return Di.exports}(),Ii=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",t._l(t.items,function(i,a){return e("p",{key:a,style:i.style},[t._v(t._s(i.content))])}),0)},Mi=[];const Ti={props:{msg:Object},data(){return{}},computed:{items({msg:t}){const{content:s}=t;return $A.isArray(s)?s.map(e=>this.formatContent(e)):[this.formatContent(s)]}},methods:{formatContent(t){return $A.isJson(t)?{content:t.language===!1?t.content:this.$L(t.content),style:t.style||{}}:{content:this.$L(t),style:{}}}}},K={};var Ai=d(Ti,Ii,Mi,!1,Ei,null,null,null);function Ei(t){for(let s in K)this[s]=K[s]}var ji=function(){return Ai.exports}(),Fi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.isBot?e("div",[t._v(" "+t._s(t.$L("\u4E0D\u652F\u6301\u7684\u6307\u4EE4"))+" "),e("span",{staticClass:"warning-color"},[t._v(t._s(t.msg.type))]),t._v("\uFF0C"+t._s(t.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),e("span",{staticClass:"mark-color"},[t._v("/help")]),t._v(" "+t._s(t.$L("\u67E5\u770B\u5E2E\u52A9\u83DC\u5355"))+"\u3002 ")]):e("div",[t._v(" "+t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F"))+" ")])},Ri=[];const Oi={props:{msg:Object},data(){return{}},computed:{isBot(){return/^\//.test(this.msg.type)}},methods:{}},J={};var Vi=d(Oi,Fi,Ri,!1,Bi,null,null,null);function Bi(t){for(let s in J)this[s]=J[s]}var qi=function(){return Vi.exports}(),Pi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{class:`content-template no-dark-content ${t.msg.type}`,on:{click:t.viewText}},[e(t.currentTemplate,{tag:"component",attrs:{msg:t.msg}})],1)},Ui=[];const Ni={props:{msg:Object},data(){return{}},computed:{currentTemplate(){switch(this.msg.type){case"/hello":return Se;case"/help":return je;case"/list":return qe;case"/info":return Qe;case"/newbot":return Xe;case"/setname":return as;case"/deletebot":return ds;case"/token":return gs;case"/revoke":return ks;case"/webhook":return Ss;case"/clearday":return js;case"/dialog":return qs;case"/api":return Qs;case"approve_reviewer":return Xs;case"approve_notifier":return ai;case"approve_comment_notifier":return di;case"approve_submitter":return gi;case"task_list":return ki;case"file_download":return Si;case"content":return ji;default:return qi}}},methods:{viewText(t){this.$emit("viewText",t)}}},Y={};var zi=d(Ni,Pi,Ui,!1,Wi,null,null,null);function Wi(t){for(let s in Y)this[s]=Y[s]}var Qi=function(){return zi.exports}(),Hi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-loading"},[t.error===!0?e("Icon",{attrs:{type:"ios-alert-outline"}}):e("Loading")],1)},Gi=[];const Ki={props:{error:Boolean}},X={};var Ji=d(Ki,Hi,Gi,!1,Yi,null,null,null);function Yi(t){for(let s in X)this[s]=X[s]}var Xi=function(){return Ji.exports}(),Zi=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"content-unknown"},[t._v(t._s(t.$L("\u672A\u77E5\u7684\u6D88\u606F")))])},ta=[];const ea={},Z={};var sa=d(ea,Zi,ta,!1,ia,null,null,null);function ia(t){for(let s in Z)this[s]=Z[s]}var aa=function(){return sa.exports}(),oa=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-view",class:t.viewClass,attrs:{"data-id":t.msgData.id}},[t.dialogType==="group"?e("div",{staticClass:"dialog-username"},[e("UserAvatar",{attrs:{userid:t.msgData.userid,"show-icon":!1,"show-name":!0,"click-open-dialog":""}})],1):t._e(),e("div",{directives:[{name:"longpress",rawName:"v-longpress",value:{callback:t.handleLongpress,delay:300},expression:"{callback: handleLongpress, delay: 300}"}],staticClass:"dialog-head",class:t.headClass,on:{click:t.handleClick}},[!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(i){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("TextMsg",{attrs:{msgId:t.msgData.id,msg:t.msgData.msg},on:{viewText:t.viewText}}):t.msgData.type==="file"?e("FileMsg",{attrs:{msg:t.msgData.msg},on:{viewFile:t.viewFile,downFile:t.downFile}}):t.msgData.type==="record"?e("RecordMsg",{attrs:{msgId:t.msgData.id,msg:t.msgData.msg},on:{playRecord:t.playRecord}}):t.msgData.type==="meeting"?e("MeetingMsg",{attrs:{msg:t.msgData.msg},on:{openMeeting:t.openMeeting}}):t.msgData.type==="word-chain"?e("WordChainMsg",{attrs:{msg:t.msgData.msg,msgId:t.msgData.id,unfoldWordChainData:t.unfoldWordChainData},on:{unfoldWordChain:function(i){return t.unfoldWordChain(t.msgData)},onWordChain:t.onWordChain}}):t.msgData.type==="vote"?e("VoteMsg",{attrs:{msg:t.msgData.msg,voteData:t.voteData},on:{onVote:function(i){return t.onVote(i,t.msgData)}}}):t.msgData.type==="template"?e("TemplateMsg",{attrs:{msg:t.msgData.msg},on:{viewText:t.viewText}}):t.isLoading?e("LoadMsg",{attrs:{error:t.msgData.error}}):e("UnknownMsg")],1),t.$A.arrayLength(t.msgData.emoji)>0?e("ul",{staticClass:"dialog-emoji"},t._l(t.msgData.emoji,function(i,a){return e("li",{key:a,class:{hasme:i.userids.includes(t.userId)}},[e("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(o){return t.onEmoji(i.symbol)}}},[t._v(t._s(i.symbol))]),e("div",{staticClass:"emoji-users",on:{click:function(o){return t.onShowEmojiUser(i)}}},[e("ul",[t._l(i.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(i){t.todoShow=i},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(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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("span",{staticClass:"space"}),e("Button",{attrs:{type:"primary",size:"small"},on:{click:t.handleTodoAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1),e("ul",t._l(t.todoUndoneList,function(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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(i){t.timeShow=!1}}},[t._v(t._s(t.msgData.created_at))]):e("div",{staticClass:"time",attrs:{title:t.msgData.created_at},on:{click:function(i){t.timeShow=!0}}},[t._v(t._s(t.$A.timeFormat(t.msgData.created_at)))]),t.hidePercentage?t._e():[t.msgData.send>1||t.dialogType==="group"?e("div",{staticClass:"percent",on:{click:t.openReadPercentage}},[e("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:t.isRightMsg?"bottom-end":"bottom-start"},model:{value:t.percentageShow,callback:function(i){t.percentageShow=i},expression:"percentageShow"}},[e("div",{staticClass:"read-poptip-content"},[e("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(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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(i){return e("li",[e("UserAvatar",{attrs:{userid:i.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)])},ra=[];const na={name:"DialogView",components:{UnknownMsg:aa,LoadMsg:Xi,TemplateMsg:Qi,VoteMsg:ke,WordChainMsg:ge,MeetingMsg:de,RecordMsg:ae,TextMsg:Qt,FileMsg:Xt,WCircle:Ft},directives:{longpress:y},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},pointerMouse:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],emojiUsersNum:5,voteData:{},dotClicks:[],unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var t;this.$store.dispatch("audioStop",(t=this.msgData.msg)==null?void 0:t.path)},computed:{...m(["loads"]),...gt(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},viewClass(){const{msgData:t,operateAction:s,operateEnter:e,pointerMouse:i}=this,a=[];return t.type&&a.push(t.type),s&&(a.push("operate-action"),e&&a.push("pointer-mouse")),i&&a.indexOf("pointer-mouse")===-1&&a.push("pointer-mouse"),a},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{id:t,reply_id:s,type:e,msg:i,emoji:a,dot:o}=this.msgData,r=[];return o&&!this.dotClicks.includes(t)&&r.push("dot"),s===0&&$A.arrayLength(a)===0&&e==="text"&&(/^]*?>$/.test(i.text)||/^\s*

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

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

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

    \s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/.test(s.text)&&e.push("an-emoji")),e}},watch:{operateAction(t){this.operateEnter=!1,t&&setTimeout(s=>this.operateEnter=!0,500)},voteData:{handler(t){const s=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const e in t)s[e]=t[e];Object.keys(s).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(s))},deep:!0}},methods:{handleLongpress(t,s){this.$emit("on-longpress",{event:t,el:s,msgData:this.msgData})},handleClick(){this.msgData.dot&&(this.dotClicks.push(this.msgData.id),this.$store.dispatch("dialogMsgDot",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)})}},handleTodoAdd(){this.$refs.todo.doClose(),this.$emit("on-other",{event:"todoAdd",data:{msg_id:this.msgData.id,userids:this.todoList.map(({userid:t})=>t)}})},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)})}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||_.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(s=>{this.goForward({name:"manage-messenger"})}).catch(({msg:s})=>{$A.modalError(s)})},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)},unfoldWordChain(t){if(this.unfoldWordChainData.indexOf(t.id)==-1){const s=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];s.push(t.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(s)),this.unfoldWordChainData.push(t.id)}},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},onVote(t,s){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.submitVote(t,s)}});return}this.submitVote(t,s)},submitVote(t,s){this.$set(s.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:s.dialog_id,uuid:s.msg.uuid,vote:this.voteData[s.msg.uuid]||[],type:t}}).then(({data:e})=>{t=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),e.forEach(i=>{this.$store.dispatch("saveDialogMsg",i)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$set(s.msg,"_loadIng",0)})}}},tt={};var la=d(na,oa,ra,!1,ca,null,null,null);function ca(t){for(let s in tt)this[s]=tt[s]}var da=function(){return la.exports}(),ua=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(i,a){return[a<3?e("div",{staticClass:"todo-user"},[e("UserAvatar",{attrs:{userid:i,"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.$L(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,"pointer-mouse":t.pointerMouse,"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-other":t.onOther,"on-show-emoji-user":t.onShowEmojiUser}})]],2)},ha=[];const pa={name:"DialogItem",components:{DialogView:da},directives:{longpress:y},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},pointerMouse:{type:Boolean,default:!1},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1}},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:s}=t;if(s)return s.split(",")}return[]},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onOpenDialog(t){this.dialogData.type=="group"&&this.$store.dispatch("openDialogUserid",t).then(s=>{this.goForward({name:"manage-messenger"})}).catch(({msg:s})=>{$A.modalError(s)})},onMention(){this.dispatch("on-mention",this.source)},onLongpress(t){this.dispatch("on-longpress",t)},onViewReply(t){this.dispatch("on-view-reply",t)},onViewText(t,s){this.dispatch("on-view-text",t,s)},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)},onOther(t){this.dispatch("on-other",t)},onShowEmojiUser(t){this.dispatch("on-show-emoji-user",t)},dispatch(t,...s){if(this.isReply){this.$emit(t,...s);return}let e=this.$parent,i=e.$options.name;for(;e&&(!i||i!=="virtual-list");)e=e.$parent,e&&(i=e.$options.name);e&&e.$emit(t,...s)}}},et={};var ma=d(pa,ua,ha,!1,fa,null,null,null);function fa(t){for(let s in et)this[s]=et[s]}var st=function(){return ma.exports}(),ga=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,data:t.params,multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"before-upload":t.handleBeforeUpload,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize}})},_a=[];const va={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,s=void 0){const e=this.fileMsgName(t);if($A.isJson(s)){this.fileMsgCaches[e]=Object.assign(this.fileMsgCaches[e]||{},s);return}s={type:"file",thumb:null,width:-1,height:-1,name:t.name,size:t.size,ext:t.name.split(".").pop()};let{ext:i}=s;i==="docx"?i="doc":i==="xlsx"?i="xls":i==="pptx"&&(i="ppt"),["ai","avi","bmp","cdr","doc","eps","gif","mov","mp3","mp4","pdf","ppt","pr","psd","rar","svg","tif","txt","xls","zip"].includes(i)?s.thumb=$A.mainUrl(`images/ext/${i}.png`):s.thumb=$A.mainUrl("images/ext/file.png"),this.fileMsgCaches[e]=s},handleBeforeUpload(t){return new Promise(s=>{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),s()}).finally(()=>{this.$store.dispatch("hiddenSpinner")});return}s()})},handleProgress(t,s){if(s.tempId===void 0){this.$parent.$options.name==="DialogWrapper"?s.tempId=this.$parent.getTempId():s.tempId=$A.randNum(1e9,9999999999),s.msg={};const e=this.fileMsgName(s);this.fileMsgCaches[e]&&(s.msg=this.fileMsgCaches[e],delete this.fileMsgCaches[e])}this.$emit("on-progress",s)},handleSuccess(t,s){t.ret===1?(s.data=t.data,this.$emit("on-success",s),t.data.task_id&&this.$store.dispatch("getTaskFiles",t.data.task_id)):($A.modalWarning({title:"\u53D1\u9001\u5931\u8D25",content:"\u6587\u4EF6 "+s.name+" \u53D1\u9001\u5931\u8D25\uFF0C"+t.msg}),this.$emit("on-error",s),this.$refs.upload.fileList.pop())},handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleClick(){this.$refs.upload.handleClick()},upload(t){this.$refs.upload.upload(t)},cancel(t){return this.$refs.upload.cancel(t)},imageFileToObject(t){return new Promise((s,e)=>{const i=new FileReader;i.onload=({target:a})=>{const o=new Image;o.onload=()=>{const r=document.createElement("canvas"),n=r.getContext("2d"),l=o.width,c=o.height,u=500,h=500;let f=l,v=c;(l>u||c>h)&&(l/c>u/h?(f=u,v=Math.round(u*(c/l))):(v=h,f=Math.round(h*(l/c)))),r.width=f,r.height=v,n.clearRect(0,0,f,v),n.drawImage(o,0,0,f,v),s({type:"img",thumb:r.toDataURL("image/webp",.92),width:r.width,height:r.height})},o.onerror=()=>{e()},o.src=a.result},i.onerror=()=>{e()},i.readAsDataURL(t)})}}},it={};var $a=d(va,ga,_a,!1,ya,null,null,null);function ya(t){for(let s in it)this[s]=it[s]}var wa=function(){return $a.exports}(),ka=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-group-info"},[e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u540D")))]),e("div",{staticClass:"group-info-value"},[e("QuickEdit",{attrs:{value:t.dialogData.name,disabled:t.dialogData.owner_id!=t.userId},on:{"on-update":t.updateName}},[t._v(t._s(t.dialogData.name))])],1),e("div",{staticClass:"group-info-title"},[t._v(t._s(t.$L("\u7FA4\u7C7B\u578B")))]),e("div",{staticClass:"group-info-value"},[t._v(t._s(t.$L(t.groupType)))]),e("div",{staticClass:"group-info-search"},[e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u6210\u5458"),clearable:""},model:{value:t.searchKey,callback:function(i){t.searchKey=i},expression:"searchKey"}})],1),e("div",{staticClass:"group-info-user"},[e("ul",[t._l(t.userList,function(i,a){return e("li",{key:a,on:{click:function(o){return t.openUser(i.userid)}}},[e("UserAvatar",{attrs:{userid:i.userid,size:32,showName:""}}),i.userid===t.dialogData.owner_id?e("div",{staticClass:"user-tag"},[t._v(t._s(t.$L("\u7FA4\u4E3B")))]):t.operableExit(i)?e("div",{staticClass:"user-exit",on:{click:function(o){return o.stopPropagation(),t.onExit(i)}}},[e("Icon",{attrs:{type:"md-exit"}})],1):t._e()],1)}),t.userList.length===0?e("li",{staticClass:"no"},[t.loadIng>0?e("Loading"):e("span",[t._v(t._s(t.$L("\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E")))])],1):t._e()],2)]),t.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(i){t.addShow=i},expression:"addShow"}},[e("Form",t._b({attrs:{model:t.addData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.addData,"userids",i)},expression:"addData.userids"}}),t.dialogData.group_type==="department"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u90E8\u95E8")))]):t.dialogData.group_type==="project"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u9879\u76EE")))]):t.dialogData.group_type==="task"?e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6B64\u64CD\u4F5C\u4EC5\u52A0\u5165\u7FA4\u6210\u5458\u5E76\u4E0D\u4F1A\u52A0\u5165\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]):t._e()],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.addLoad>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u786E\u5B9A\u6DFB\u52A0")))])],1)],1)],1)},Ca=[];const ba={name:"DialogGroupInfo",components:{UserSelect:_t},props:{dialogId:{type:Number,default:0}},data(){return{searchKey:"",loadIng:0,dialogUser:[],addShow:!1,addData:{},addLoad:0,openIng:!1}},computed:{...m(["cacheDialogs","cacheUserBasic","userIsAdmin","formOptions"]),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:s,cacheUserBasic:e,dialogData:i}=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=>!(s&&o.nickname&&!$A.strExists(o.nickname,s)&&!$A.strExists(o.email,s))).sort((o,r)=>o.userid===i.owner_id||r.userid===i.owner_id?(o.userid===i.owner_id?0:1)-(r.userid===i.owner_id?0:1):$A.dayjs(o.created_at)-$A.dayjs(r.created_at))}},watch:{dialogId:{handler(){this.getDialogUser()},immediate:!0}},methods:{updateName(t,s){if(!t){s();return}this.$store.dispatch("call",{url:"dialog/group/edit",data:{dialog_id:this.dialogId,chat_name:t}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),s()}).catch(({msg:e})=>{$A.modalError(e),s()})},getDialogUser(){this.dialogId<=0||(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId}}).then(({data:t})=>{this.dialogUser=t,this.$store.dispatch("saveDialog",{id:this.dialogId,people:t.length})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))},operableAdd(){const{owner_id:t,group_type:s}=this.dialogData;return s=="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:s,group_type:e}=this.dialogData;return e=="all"?this.userIsAdmin:s==this.userId||t.inviter==this.userId},onExit(t){let s="\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",e=[];$A.isJson(t)&&t.userid!=this.userId&&(s=`\u4F60\u786E\u5B9A\u8981\u5C06\u3010${t.nickname}\u3011\u79FB\u51FA\u7FA4\u7EC4\u5417\uFF1F`,e=[t.userid]),$A.modalConfirm({content:s,loading:!0,onOk:()=>new Promise((i,a)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId,userids:e}}).then(({msg:o})=>{i(o),e.length>0?this.getDialogUser():(this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"}))}).catch(({msg:o})=>{a(o)})})})},openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},at={};var La=d(ba,ka,Ca,!1,Da,null,null,null);function Da(t){for(let s in at)this[s]=at[s]}var xa=function(){return La.exports}(),Sa=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-respond"},[e("div",{staticClass:"respond-title"},[e("em",{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(i,a){return e("li",{key:a,on:{click:function(o){return t.openUser(i)}}},[e("UserAvatar",{attrs:{userid:i,size:32,showName:""}})],1)}),0)])])},Ia=[];const Ma={name:"DialogRespond",props:{respondData:{type:Object,default:()=>({})}},data(){return{openIng:!1}},methods:{openUser(t){this.openIng||(this.openIng=!0,this.$store.dispatch("openDialogUserid",t).then(s=>{this.$emit("on-close")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.openIng=!1}))}}},ot={};var Ta=d(Ma,Sa,Ia,!1,Aa,null,null,null);function Aa(t){for(let s in ot)this[s]=ot[s]}var Ea=function(){return Ta.exports}(),ja=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"chat-emoji-wrapper"},[e("div",{staticClass:"chat-emoji-box"},[t.type==="emosearch"?e("div",{staticClass:"chat-emoji-emosearch"},[e("Input",{attrs:{clearable:"",placeholder:t.$L("\u641C\u7D22\u8868\u60C5")},model:{value:t.emosearchKey,callback:function(i){t.emosearchKey=i},expression:"emosearchKey"}},[e("Icon",{class:{"icon-loading":t.emosearchLoad},attrs:{slot:"prefix",type:t.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):t.type==="emoji"?e("div",{staticClass:"chat-emoji-nav"},t._l(t.emojiNavList,function(i){var a;return e("div",{key:i.type,class:(a={},a[`i-${i.name}`]=!0,a.active=i.type===t.emojiNavActive,a),domProps:{innerHTML:t._s(i.content)},on:{click:function(o){t.emojiNavActive=i.type}}})}),0):t._e(),e("Scrollbar",[e("ul",{class:[t.type,"no-dark-content"]},t._l(t.list,function(i){return e("li",{on:{click:function(a){return t.onSelect(a,i)}}},[i.type==="emoticon"?e("img",{attrs:{src:i.src,title:i.name,alt:i.name}}):e("span",{attrs:{title:i.name},domProps:{innerHTML:t._s(i.html)}})])}),0)])],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(i){return t.onEmojiMenuScroll("left")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]):t._e(),e("li",{class:{active:t.type==="emosearch"},on:{click:function(i){t.type="emosearch"}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F8")])]),e("li",{class:{active:t.type==="emoji"},on:{click:function(i){t.type="emoji"}}},[e("span",{staticClass:"no-dark-content"},[t._v("\u{1F600}")])]),t._l(t.emoticonData,function(i){return e("li",{class:{active:t.type==="emoticon"&&t.emoticonPath==i.path},on:{click:function(a){return t.onEmoticon(i.path)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])}),t.showEmojiMenuScrollRightBtn?e("li",{staticClass:"right-btn",on:{click:function(i){return t.onEmojiMenuScroll("right")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e()],2)])},Fa=[];const Ra={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(){var t;this.initData(),(t=this.$store)!=null&&t.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:s})=>s===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,s=((e=t==null?void 0:t.querySelector("li"))==null?void 0:e.offsetWidth)||48;return this.emojiMenuScrollLeft{const s=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(e,i){return e.emoji_order-i.emoji_order}).map(e=>({type:"emoji",name:e.name,category:e.category,html:e.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(e=>Object.assign(e,{src:`${s}/${e.path}/${e.icon}`,list:e.list.map(i=>Object.assign(i,{type:"emoticon",asset:`images/emoticon/${e.path}/${i.path}`,src:`${s}/${e.path}/${i.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(t=>{this.$store.dispatch("call",{url:"dialog/sticker/search",data:{key:this.emosearchKey}}).then(({data:s})=>{this.emosearchList=[];const e=s.list;e.length>0&&(this.emosearchList=e.map(i=>({type:"emoticon",asset:"emosearch",name:i.name,src:i.src,height:i.height,width:i.width}))),this.emosearchList.length===0&&$A.messageWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(s=>{this.emosearchList=[],$A.messageWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(s=>{this.emosearchLoad=!1})},300))},onEmoticon(t){this.type="emoticon",this.emoticonPath=t},onSelect(t,s){s.type==="emoji"?this.$emit("on-select",{type:"emoji",text:t.target.innerText}):this.$emit("on-select",s)},onMonitorWheel(){const t=this.$refs.chatEmojiMenuRef;t==null||t.addEventListener("wheel",s=>{s.preventDefault(),t.scrollLeft=t.scrollLeft+s.deltaY})},onEmojiMenuScroll(t){const s=this.$refs.chatEmojiMenuRef,e=s.offsetWidth-68,i=t=="right"?s.scrollLeft+e:s.scrollLeft-e;s.scrollTo({left:i,behavior:"smooth"})},onHandleScroll(t){this.emojiMenuScrollLeft=t.target.scrollLeft}}},rt={};var Oa=d(Ra,ja,Fa,!1,Va,null,null,null);function Va(t){for(let s in rt)this[s]=rt[s]}var yt=function(){return Oa.exports}();const nt="ontouchend"in document;var Ba={bind(t,s){let e=!1;t.__touchEvent__={start:i=>{i.preventDefault(),e=!0,s.value("down",i)},move:i=>{e&&s.value("move",i)},end:i=>{e&&(e=!1,s.value("up"))},click:i=>{s.value("click",i)}},nt?(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)),t.addEventListener("click",t.__touchEvent__.click)},update(){},unbind(t){nt?(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)),t.removeEventListener("click",t.__touchEvent__.click),delete t.__touchEvent__}};const lt="ontouchend"in document;var wt={bind(t,s){if(lt){const e={move:!1,time:0,x:0,y:0};t.__touchEvent__={start:i=>{i.preventDefault(),e.move=!1,e.time=$A.dayjs().valueOf(),e.x=i.touches?i.touches[0].clientX:i.clientX,e.y=i.touches?i.touches[0].clientY:i.clientY},move:i=>{if(e.time>0){const a=i.touches?i.touches[0].clientX:i.clientX,o=i.touches?i.touches[0].clientY:i.clientY;(Math.abs(a-e.x)>5||Math.abs(o-e.y)>5)&&(e.move=!0)}},end:i=>{e.time>0&&(!e.move&&$A.dayjs().valueOf()-e.time<300&&s.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(),s.value()},t.addEventListener("click",t.__clickEvent__)},update(){},unbind(t){lt?(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 qa={inserted(t,{value:s},e){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className?t.className+" v-transfer-dom":"v-transfer-dom";const i=t.parentNode;if(!i)return;const a=document.createComment("");let o=!1;s!==!1&&(i.replaceChild(a,t),g(s).appendChild(t),o=!0),t.__transferDomData||(t.__transferDomData={parentNode:i,home:a,target:g(s),hasMovedOut:o})},componentUpdated(t,{value:s}){if(t.dataset&&t.dataset.transfer!=="true")return!1;const e=t.__transferDomData;if(!e)return;const i=e.parentNode,a=e.home,o=e.hasMovedOut;!o&&s?(i.replaceChild(a,t),g(s).appendChild(t),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!0,target:g(s)})):o&&s===!1?(i.replaceChild(t,a),t.__transferDomData=Object.assign({},t.__transferDomData,{hasMovedOut:!1,target:g(s)})):s&&g(s).appendChild(t)},unbind(t){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className.replace("v-transfer-dom",""),t.__transferDomData&&(t.__transferDomData.hasMovedOut===!0&&t.__transferDomData.parentNode&&t.__transferDomData.parentNode.appendChild(t),t.__transferDomData=null)}},p={};function ct(t,s){!t||typeof p[t]=="undefined"?p[t]=[]:p[t]=p[t].filter(e=>e!==s),p[t].push(s)}function dt(t,s){!t||typeof p[t]=="undefined"||(p[t]=p[t].filter(e=>e!==s))}function Pa(t,s){return typeof p[t]=="undefined"?!1:p[t][p[t].length-1]===s}function Ua(){return new Promise(t=>{const s=new Dt({render(a){return a(xt.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(yt,{attrs:{onlyEmoji:!0},on:{"on-select":o=>{this.$children[0].visible=!1,o.type==="emoji"&&t(o.text)}}})])}}),e=s.$mount();document.body.appendChild(e.$el);const i=s.$children[0];i.visible=!0,i.$el.lastChild.addEventListener("click",({target:a})=>{a.classList.contains("ivu-modal-body")&&(i.visible=!1)})})}var Na=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:t.boxClass},[e("div",{staticClass:"chat-input-quick-emoji"},[e("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:t.emojiQuickShow,callback:function(i){t.emojiQuickShow=i},expression:"emojiQuickShow"}},[e("div",{attrs:{slot:"reference"},slot:"reference"}),e("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(i){return e("li",{on:{click:function(a){return t.onEmojiQuick(i)}}},[e("img",{attrs:{title:i.name,alt:i.name,src:i.src}})])}),0)],1)],1),e("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper",on:{click:function(i){return i.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(i){return i.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(i){i.stopPropagation()}}},[e("li",[t.emojiBottom?e("ETooltip",{ref:"emojiTip",attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",enterable:!1,content:t.$L("\u8868\u60C5")}},[e("i",{staticClass:"taskfont",on:{click:function(i){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(i){t.showEmoji=i},expression:"showEmoji"}},[e("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showEmoji,placement:"top",enterable:!1,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,enterable:!1,content:t.$L("\u9009\u62E9\u6210\u5458")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("user")}}},[t._v("\uE78F")])])],1),e("li",[e("ETooltip",{attrs:{placement:"top",disabled:t.$isEEUiApp||t.windowTouch,enterable:!1,content:t.$L("\u9009\u62E9\u4EFB\u52A1")}},[e("i",{staticClass:"taskfont",on:{click:function(i){return t.onToolbar("task")}}},[t._v("\uE7D6")])])],1),e("li",[e("EPopover",{ref:"more",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:t.showMore,callback:function(i){t.showMore=i},expression:"showMore"}},[e("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.showMore,placement:"top",enterable:!1,content:t.$L("\u5C55\u5F00")},slot:"reference"},[e("i",{staticClass:"taskfont"},[t._v("\uE790")])]),t.recordReady?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("meeting")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C1")]),t._v(" "+t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ")]):t._e(),t.canCall?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("call")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BA")]),t._v(" "+t._s(t.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):t._e(),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("image")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7BC")]),t._v(" "+t._s(t.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return t.onToolbar("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7C0")]),t._v(" "+t._s(t.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),t.canAnon?e("div",{staticClass:"chat-input-popover-item",on:{click:function(i){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(i){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(i){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(i){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(i){t.showMenu=i},expression:"showMenu"}},[e("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:t.$isEEUiApp||t.windowTouch||t.showMenu,enterable:!1,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(i){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(i){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(i){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(i){return i.stopPropagation(),t.onClickCover.apply(null,arguments)}}})]),t.emojiBottom&&t.showEmoji?e("ChatEmoji",{attrs:{searchKey:t.emojiQuickKey},on:{"on-select":t.onSelectEmoji}}):t._e(),e("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(t.recordState)?e("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:t.touchLimitY},style:t.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:t.stopRecord}},[t.recordDuration>0?e("div",{staticClass:"record-duration"},[t._v(t._s(t.recordFormatDuration))]):e("div",{staticClass:"record-loading"},[e("Loading",{attrs:{type:"pure"}})],1),e("div",{staticClass:"record-cancel",on:{click:function(i){return i.stopPropagation(),t.stopRecord(!0)}}},[t._v(t._s(t.$L(t.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):t._e()]),e("Modal",{attrs:{"mask-closable":!1,beforeClose:t.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:t.fullInput,callback:function(i){t.fullInput=i},expression:"fullInput"}},[e("div",{staticClass:"chat-input-box",style:t.chatInputBoxStyle},[e("div",{staticClass:"chat-input-wrapper"},[e("div",{ref:"editorFull",staticClass:"no-dark-content"})]),e("ul",{staticClass:"chat-input-menu",class:{activation:t.fullSelection.length>0}},t._l(t.fullTools,function(i,a){return e("li",{key:a,on:{touchstart:function(o){o.preventDefault()},touchend:function(o){return o.preventDefault(),t.onFullMenu(i.label,i.type)},click:function(o){return t.onFullMenu(i.label,i.type)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}})])}),0)]),e("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[t._v("\uE6AB")])])],1)},za=[];const Wa={name:"ChatInput",components:{ChatEmoji:yt},directives:{touchmouse:Ba,touchclick:wt,TransferDom:qa,clickoutside:Ct,longpress:y},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote","link",{list:"ordered"},{list:"bullet"},{list:"check"}]},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyMsgAutoMention:{type:Boolean,default:!0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_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:{},touchFocus:!1,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,fullSelection:{index:0,length:0},fullTools:[{label:"bold",type:"",icon:""},{label:"strike",type:"",icon:""},{label:"italic",type:"",icon:""},{label:"underline",type:"",icon:""},{label:"blockquote",type:"",icon:""},{label:"link",type:"",icon:""},{label:"list",type:"ordered",icon:""},{label:"list",type:"bullet",icon:""},{label:"list",type:"unchecked",icon:""}],viewportHeight:0,iOSDevices:$A.isIos()}},created(){ct(this.dialogId,this._uid)},mounted(){this.init(),window.visualViewport&&window.visualViewport.addEventListener("resize",this.visualViewportResize),this.recordInter=setInterval(t=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(t,s)=>{t==="recordAudio"&&s===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var t;dt(this.dialogId,this._uid),this.quill&&((t=this.quill.getModule("mention"))==null||t.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordInter&&clearInterval(this.recordInter),window.visualViewport&&window.visualViewport.removeEventListener("resize",this.visualViewportResize)},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(s=>{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 s=Math.floor(t/6e4),e=Math.floor(t/1e3)%60,i=("00"+t%1e3).substr(-2);return s<10&&(s=`0${s}`),e<10&&(e=`0${e}`),`${s}:${e}\u2033${i}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:t})=>t==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:t}=this.dialogData;return t?this.dialogMsgs.find(s=>s.id===t):null},chatInputBoxStyle({iOSDevices:t,fullInput:s,viewportHeight:e}){const i={};return t&&s&&e>0&&(i.height=Math.max(100,e-70)+"px"),i}},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 s;(s=this.quill)==null||s.enable(!t)},dialogId(t,s){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft(),ct(t,this._uid),dt(s,this._uid)},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 s=this.value.replace(/ /g," ").replace(/<[^>]+>/g,"");if(s&&s.indexOf(" ")===-1&&s.length>=1&&s.length<=8?this.emojiQuickKey=s:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const 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 s;(s=this.quill)!=null&&s.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 s;(s=this.quill)==null||s.enable(!t)},windowScrollY(t){this.fullInput&&t>0&&window.scrollTo(0,0)}},methods:{init(){this._options=Object.assign({theme:"bubble",bubbleTooltipTop:!0,formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar: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(s=>{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(s=>{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(i=>{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,s)=>(this.pasteClean&&(s.ops=s.ops.map(e=>{const i={insert:e.insert};try{typeof i.insert.mention=="object"&&t.innerHTML&&(i.insert=t.innerHTML.replace(/<[^>]+>/g,""))}catch{}return e.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{e.attributes[a]&&(typeof i.attributes=="undefined"&&(i.attributes={}),i.attributes[a]=e.attributes[a])}),i})),s)),this.$nextTick(t=>{this.quill.root.addEventListener("keydown",s=>{if(s.key==="\r\r"&&s.keyCode===229){const{index:e}=this.quill.getSelection(!0);this.quill.insertText(e,`\r +`),this.keyTimer&&clearTimeout(this.keyTimer),this.keyTimer=setTimeout(i=>{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:(s,e,i,a,o,r)=>{var n;(n=this.recordWave)==null||n.input(s[s.length-1],e,a),this.recordDuration=i,i>=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 s=t.bot?'
    ':"";return`
    ${s}
    ${t.value}
    `}return t.tip?`
    ${t.value}
    ${t.tip}
    `:`
    ${t.value}
    `},renderLoading:()=>"Loading...",source:(t,s,e)=>{const i=e=="@"?"user-mention":e=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let r=0;r{const n=[];r.some(l=>{let c=l.list;t&&(c=c.filter(({value:u})=>$A.strExists(u,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)),s(n,t))})}}},updateEmojiQuick(t){if(!this.isFocus||!t){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(s=>{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(i=>{let a=0;if(i.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/${i.path}/${o.path}`,name:o.name,src:`${e}/${i.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(i=>{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(s=>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,s){var e;if(!this.loading)switch(t){case"down":if(this.touchFocus=(e=this.quill)==null?void 0:e.hasFocus(),this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=s.type==="touchstart"?s.touches[0]:s,(s.button===void 0||s.button===0)&&this.startRecord())return;s.button===2&&this.onShowMenu();break;case"move":const i=s.type==="touchmove"?s.touches[0]:s;this.touchLimitX=(this.touchStart.clientX-i.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-i.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break;case"click":this.touchFocus&&(this.quill.blur(),this.quill.focus());break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(t="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(s=>{this.filterInvalidLine(this.value)!==""&&(this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),t==="auto"&&(t=bt(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(s=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(e=>{this.recordRec.start()},300)):this.recordRec.close()},s=>{this.recordState="stop",$A.messageError(s||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(t){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((s,e)=>{this.recordRec.close(),t!==!0&&(e<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=s,this.uploadRecord(e)))},s=>{this.recordRec.close(),$A.messageError(s||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(t){this.showMenu=!1,this.showMore=!1,t!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(t=>{var s;(s=this.quill)==null||s.focus()})},uploadRecord(t){if(this.recordBlob===null)return;const s=new FileReader;s.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:s.result,duration:t})},s.readAsDataURL(this.recordBlob)},onEmojiQuick(t){t.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(t){!this.quill||(t.type==="emoji"?(this.quill.insertText(this.rangeIndex,t.text),this.rangeIndex+=t.text.length,this.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":_.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:!1,mention:this.quillMention()}},this.options)),this.fullQuill.on("selection-change",s=>{this.fullSelection=s||{index:0,length:0}}),this.fullQuill.on("text-change",s=>{this.fullSelection=this.fullQuill.getSelection()}),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(s=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(t=>{var s;(s=this.$refs.editorFull)!=null&&s.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),t()})},onFullMenu(t,s){const{length:e}=this.fullQuill.getSelection(!0);if(e===0){$A.messageWarning("\u8BF7\u9009\u62E9\u6587\u5B57\u540E\u518D\u64CD\u4F5C");return}switch(t){case"bold":this.fullQuill.format("bold",!this.fullQuill.getFormat().bold);break;case"strike":this.fullQuill.format("strike",!this.fullQuill.getFormat().strike);break;case"italic":this.fullQuill.format("italic",!this.fullQuill.getFormat().italic);break;case"underline":this.fullQuill.format("underline",!this.fullQuill.getFormat().underline);break;case"blockquote":this.fullQuill.format("blockquote",!this.fullQuill.getFormat().blockquote);break;case"link":if(this.fullQuill.getFormat().link){this.fullQuill.format("link",!1);return}$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:i=>{if(!i)return!1;this.fullQuill.format("link",i)}});break;case"list":this.fullQuill.format("list",this.fullQuill.getFormat().list===s?!1:s);break}},setQuote(t,s="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:t,extra_quote_type:s==="update"?"update":"reply"})},cancelQuote(){if(this.quoteUpdate)this.$emit("input","");else if(this.quoteData&&this.$refs.editor.firstChild.querySelectorAll("img").length===0){const t=document.createElement("div");t.innerHTML=this.$refs.editor.firstChild.innerHTML,t.querySelectorAll("span.mention").forEach(s=>{s.getAttribute("data-id")==this.quoteData.userid&&(s.innerHTML="")}),t.innerText.replace(/\s/g,"")||this.$emit("input","")}this.setQuote(0)},onQuoteUserResult(t){this.dialogData.type==="group"&&(this.quoteUpdate||!this.quoteData||!this.replyMsgAutoMention||t.bot&&!$A.rightExists(t.email,"@bot.system")||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 s=this.value.replace(/<[^>]+>/g,"");s.length===0||s.endsWith(" ")?this.quill.getModule("mention").openMenu(t):this.quill.getModule("mention").openMenu(` ${t}`)}},addMention(t){if(!this.quill||!Pa(this.dialogId,this._uid))return;const{index:s}=this.quill.getSelection(!0);this.quill.insertEmbed(s,"mention",t,$.sources.USER),this.quill.insertText(s+1," ",$.sources.USER),this.quill.setSelection(s+2,$.sources.USER)},getProjectId(){let t=null;if(this.dialogId>0){if(t=this.cacheProjects.find(({dialog_id:s})=>s==this.dialogId),t)return t.id;if(t=this.cacheTasks.find(({dialog_id:s})=>s==this.dialogId),t)return t.project_id}else if(this.taskId>0&&(t=this.cacheTasks.find(({id:s})=>s==this.taskId),t))return t.project_id;return 0},getMentionSource(t,s,e){switch(t){case"@":this.mentionMode="user-mention";const i=n=>{this.getMoreUser(s,n.map(l=>l.id)).then(l=>{let c=this.cacheDialogs.filter((u,h)=>u.type=="user"&&u.bot==0&&u.last_at);c.sort((u,h)=>u.last_at>h.last_at?-1:u.last_ath<5),l.forEach(u=>{u.last_at="1990-01-01 00:00:00",c.forEach(h=>{var f;((f=h.dialog_user)==null?void 0:f.userid)==u.id&&(u.last_at=h.last_at)})}),l.sort((u,h)=>u.last_at>h.last_at?-1:u.last_at0?(n.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]}),this.userCache.push({label:[{id:0,value:this.$L("\u7FA4\u5185\u6210\u5458"),disabled:!0}],list:n},{label:[{id:0,value:this.$L("\u7FA4\u5916\u6210\u5458"),disabled:!0}],list:l})):n.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]},{label:[{id:0,value:this.$L("\u7FA4\u6210\u5458"),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){i(this.userList);return}const a=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data: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}))),i(a)}).catch(n=>{i(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:u})=>u==l.userid);c&&a.push({id:c.userid,value:c.nickname,avatar:c.userimg,online:c.online,bot:c.bot})}),i(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(u=>({id:u.id,value:u.name,tip:u.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((u,h)=>$A.dayjs(u.end_at||"2099-12-31 23:59:59")-$A.dayjs(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(u=>({id:u.id,value:u.name}))}));let c=this.$store.getters.assistTask;c.length>0&&(c=c.sort((u,h)=>$A.dayjs(u.end_at||"2099-12-31 23:59:59")-$A.dayjs(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(u=>({id:u.id,value:u.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,u)=>$A.dayjs(u.complete_at||"2099-12-31 23:59:59")-$A.dayjs(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[s])){e(this.fileList[s]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(n=>{this.$store.dispatch("searchFiles",s).then(({data:l})=>{this.fileList[s]=[{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[s])}).catch(()=>{e([])})},300);break;default:e([]);break}},getMoreUser(t,s){return new Promise(e=>{const{owner_id:i,type:a}=this.dialogData,o=a==="group"&&[0,this.userId].includes(i);this.taskId>0||o?(this.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=>!s.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 s=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const i=(s?s[1].replace(/_/g,"."):"unknown").split(".");return+i[0]==11&&+i[1]>=0&&+i[1]<3},handlePaste(t){const s=Array.prototype.slice.call(t.clipboardData.files);s.filter(i=>!$A.leftExists(i.type,"image/")).length>0&&(t.preventDefault(),this.$emit("on-file",s))},filterInvalidLine(t){return(t+"").replace(/^(

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

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

    <\/p>)+|(

    <\/p>)+$/gi,"")},updateTools(){var s,e,i,a;this.showEmoji&&((s=this.$refs.emoji)==null||s.updatePopper()),this.showMore&&((e=this.$refs.more)==null||e.updatePopper()),this.showMenu&&((i=this.$refs.menu)==null||i.updatePopper());const t=(a=this.quill)==null?void 0:a.getModule("mention");t.isOpen&&t.setMentionContainerPosition()},visualViewportResize(){var t;this.viewportHeight=((t=window.visualViewport)==null?void 0:t.height)||0}}},ut={};var Qa=d(Wa,Na,za,!1,Ha,null,null,null);function Ha(t){for(let s in ut)this[s]=ut[s]}var Ga=function(){return Qa.exports}(),Ka=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(i){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[e("span",[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(i){t.show=i},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(i){t.value=i},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(i){return i.type=="case"&&(t.dialogDroupWordChain.type=="create"||i.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:i.text,callback:function(a){t.$set(i,"text",a)},expression:"item.text"}})],1):t._e()}),t._l(t.list.filter(function(i){return i.type!="case"}),function(i,a){return e("li",[e("span",[t._v(t._s(a+1))]),e("Input",{attrs:{disabled:i.userid!=t.userId,placeholder:t.$L("\u8BF7\u8F93\u5165\u63A5\u9F99\u5185\u5BB9")},model:{value:i.text,callback:function(o){t.$set(i,"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(i){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)])},Ja=[];const Ya={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(s=>s.type!="case"))==null?void 0:t.length)||0},allList(){var e;const t=((e=this.dialogDroupWordChain.msgData)==null?void 0:e.msg)||{};let s=JSON.parse(JSON.stringify(t.list||[]));return this.dialogMsgs.filter(i=>{var a;return i.type=="word-chain"&&((a=i.msg)==null?void 0:a.uuid)==t.uuid}).forEach(i=>{(i.msg.list||[]).forEach(a=>{a.type!="case"&&s.map(o=>o.id).indexOf(a.id)==-1&&s.push(a)})}),s.filter(i=>(i.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(s=>s.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 s,e;const t=[];this.list.forEach(i=>{(i.text||i.type!="case")&&t.map(a=>a.text).indexOf(i.text)==-1&&t.push(i)}),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=(s=this.dialogDroupWordChain.msgData)==null?void 0:s.msg)==null?void 0:e.uuid)||""}}).then(({data:i})=>{this.show=!1,this.$store.dispatch("saveDialogMsg",i)}).catch(({msg:i})=>{if(i.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(i)}).finally(i=>{this.loadIng--})}}},ht={};var Xa=d(Ya,Ka,Ja,!1,Za,null,null,null);function Za(t){for(let s in ht)this[s]=ht[s]}var to=function(){return Xa.exports}(),eo=function(){var t=this,s=t.$createElement,e=t._self._c||s;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(i){t.show=!1}}},[t._v(" "+t._s(t.$L("\u53D6\u6D88"))+" ")]),e("div",{staticClass:"chain-modal-title"},[e("span",[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(i){t.show=i},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(i){t.value=i},expression:"value"}})],1),e("ul",{ref:"wordChainListRef"},[t._l(t.list,function(i,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:i.text,callback:function(o){t.$set(i,"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(i){t.multiple=i},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(i){t.anonymous=i},expression:"anonymous"}})],1):t._e()]),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",loading:t.loadIng>0,disabled:!t.isEdit},on:{click:t.onSend}},[t._v(t._s(t.$L("\u53D1\u9001")))])],1)])},so=[];const io={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 s=JSON.parse(JSON.stringify(t.list||[]));return this.dialogMsgs.filter(i=>{var a;return i.type=="word-chain"&&((a=i.msg)==null?void 0:a.uuid)==t.uuid}).forEach(i=>{(i.msg.list||[]).forEach(a=>{s.map(o=>o.id).indexOf(a.id)==-1&&s.push(a)})}),s},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,s;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:((s=(t=this.dialogGroupVote.msgData)==null?void 0:t.msg)==null?void 0:s.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--})}}}},pt={};var ao=d(io,eo,so,!1,oo,null,null,null);function oo(t){for(let s in pt)this[s]=pt[s]}var ro=function(){return ao.exports}(),no=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-complaint-info"},[e("div",{staticClass:"group-complaint-title"},[t._v(t._s(t.$L("\u533F\u540D\u4E3E\u62A5")))]),e("div",{staticClass:"group-complaint-warp"},[e("div",{staticClass:"group-complaint-title underline required"},[t._v(t._s(t.$L("\u8BF7\u9009\u62E9\u4E3E\u62A5\u7C7B\u578B"))+":")]),e("div",{staticClass:"group-complaint-list"},[e("List",t._l(t.typeList,function(i,a){return e("ListItem",{key:a,class:{active:t.typeId==i.id}},[e("div",{staticClass:"text",on:{click:function(o){return t.onSelectType(i)}}},[t._v(t._s(t.$L(i.label)))]),e("RadioGroup",{model:{value:t.typeId,callback:function(o){t.typeId=o},expression:"typeId"}},[e("Radio",{attrs:{label:i.id,"model-value":t.typeId}},[t._v("\xA0")])],1)],1)}),1)],1),e("div",{staticClass:"group-complaint-title required"},[t._v(t._s(t.$L("\u8BF7\u8F93\u5165\u4E3E\u62A5\u539F\u56E0"))+":")]),e("div",{staticClass:"group-complaint-reason"},[e("Input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u586B\u5199\u8BE6\u7EC6\u7684\u4E3E\u62A5\u539F\u56E0\uFF0C\u4EE5\u4F7F\u6211\u4EEC\u66F4\u597D\u7684\u5E2E\u52A9\u4F60\u89E3\u51B3\u95EE\u9898")},model:{value:t.reason,callback:function(i){t.reason=i},expression:"reason"}})],1),e("div",{staticClass:"group-complaint-img"},[e("ImgUpload",{attrs:{num:5,width:512,height:512,whcut:1},model:{value:t.imgs,callback:function(i){t.imgs=i},expression:"imgs"}})],1)]),e("div",{staticClass:"group-info-button"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.onSubmit}},[t._v(t._s(t.$L("\u63D0\u4EA4")))])],1)])},lo=[];const co={name:"DialogComplaint",components:{ImgUpload:vt},props:{dialogId:{type:Number,default:0}},data(){return{typeList:[{id:10,label:"\u8BC8\u9A97\u8BF1\u5BFC\u8F6C\u8D26"},{id:20,label:"\u5F15\u6D41\u4E0B\u8F7D\u5176\u4ED6APP\u4ED8\u8D39"},{id:30,label:"\u6572\u8BC8\u52D2\u7D22"},{id:40,label:"\u7167\u7247\u4E0E\u672C\u4EBA\u4E0D\u4E00\u81F4"},{id:50,label:"\u8272\u60C5\u4F4E\u4FD7"},{id:60,label:"\u9891\u7E41\u5E7F\u544A\u9A9A\u6270"},{id:70,label:"\u5176\u4ED6\u95EE\u9898"}],typeId:0,reason:"",imgs:[]}},methods:{onSelectType(t){this.typeId==t.id?this.typeId=0:this.typeId=t.id},onSubmit(){if(!this.typeId)return $A.modalError("\u8BF7\u9009\u62E9\u4E3E\u62A5\u7C7B\u578B");if(!this.reason)return $A.modalError("\u8BF7\u586B\u5199\u4E3E\u62A5\u539F\u56E0");this.$store.dispatch("call",{url:"complaint/submit",data:{dialog_id:this.dialogId,reason:this.reason,type:this.typeId,imgs:this.imgs}}).then(({data:t})=>{$A.modalSuccess("\u4E3E\u62A5\u6210\u529F"),this.$emit("on-close")}).catch(({msg:t})=>{$A.modalError(t)})}}},mt={};var uo=d(co,no,lo,!1,ho,null,null,null);function ho(t){for(let s in mt)this[s]=mt[s]}var po=function(){return uo.exports}(),mo=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.isReady?e("div",{staticClass:"dialog-wrapper",class:t.wrapperClass,on:{drop:function(i){return i.preventDefault(),t.chatPasteDrag(i,"drag")},dragover:function(i){return i.preventDefault(),t.chatDragOver(!0,i)},dragleave:function(i){return i.preventDefault(),t.chatDragOver(!1,i)},touchstart:t.onTouchStart,pointerover:t.onPointerover}},[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(i){return t.$set(t.dialogData,"online_state",i)}}},[t.dialogData.type==="user"&&t.dialogData.online_state!==!0?e("p",{attrs:{slot:"end"},slot:"end"},[t._v(" "+t._s(t.$L(t.dialogData.online_state))+" ")]):t._e()])],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),e("div",{staticClass:"dialog-title"},[e("div",{staticClass:"main-title"},[t._l(t.$A.dialogTags(t.dialogData),function(i){return i.color!="success"?[e("Tag",{attrs:{color:i.color,fade:!1}},[t._v(t._s(t.$L(i.text)))])]:t._e()}),e("h2",[t._v(t._s(t.dialogData.name))]),t.peopleNum>0?e("em",{on:{click:function(i){return t.onDialogMenu("groupInfo")}}},[t._v("("+t._s(t.peopleNum)+")")]):t._e(),t.dialogData.bot?e("Tag",{staticClass:"after",attrs:{fade:!1}},[t._v(t._s(t.$L("\u673A\u5668\u4EBA")))]):t._e(),t.dialogData.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(i){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u5168\u5458")))]):t.dialogData.group_type=="department"?e("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(i){return t.onDialogMenu("groupInfo")}}},[t._v(t._s(t.$L("\u90E8\u95E8")))]):t._e(),t.msgLoadIng>0&&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(i){var a;return e("li",{key:i.type,class:(a={},a[i.type||"msg"]=!0,a.active=t.msgType===i.type,a),on:{click:function(o){return t.onMsgType(i.type)}}},[e("i",{staticClass:"no-dark-content"}),e("span",[t._v(t._s(t.$L(i.label)))])])}),0):t._e()])]),e("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:t.onDialogMenu}},[e("i",{staticClass:"taskfont dialog-menu-icon"},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[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")))])]),t.dialogData.bot==0?e("EDropdownItem",{attrs:{command:"report"}},[e("div",[t._v(t._s(t.$L("\u4E3E\u62A5\u6295\u8BC9")))])]):t._e()]:[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:"report"}},[e("div",[t._v(t._s(t.$L("\u4E3E\u62A5\u6295\u8BC9")))])]),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:"report"}},[e("div",[t._v(t._s(t.$L("\u4E3E\u62A5\u6295\u8BC9")))])]),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(i){return t.onSearchSwitch("prev")}}},[t._v("\uE702")]),e("i",{staticClass:"taskfont",on:{click:function(i){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(i){t.searchKey=i},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(i){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(i){return i.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(i){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,pointerMouse:t.pointerMouse,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-other":t.onOther,"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(i){return t.chatFile("progress",i)},"on-success":function(i){return t.chatFile("success",i)},"on-error":function(i){return t.chatFile("error",i)}}}),t.todoShow?e("div",{staticClass:"chat-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(i){return e("li",{on:{click:function(a){return a.stopPropagation(),t.onViewTodo(i)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content"},[t._v(t._s(t.$A.getMsgSimpleDesc(i.msg_data)))])])}),0)]):t.quickShow?e("div",{staticClass:"chat-bottom-menu"},[e("ul",{staticClass:"scrollbar-hidden"},t._l(t.quickMsgs,function(i){return e("li",{on:{click:function(a){return a.stopPropagation(),t.sendQuick(i)}}},[e("div",{staticClass:"bottom-menu-desc no-dark-content",style:i.style||null},[t._v(t._s(i.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..."),"reply-msg-auto-mention":t.replyMsgAutoMention},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(i){t.msgText=i},expression:"msgText"}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{ref:"operate",attrs:{trigger:"custom",placement:"top",visible:t.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(i){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.operateItem.created_at?[e("DropdownItem",{attrs:{name:"action"}},[e("ul",{staticClass:"operate-action"},[t.msgId===0?e("li",{on:{click:function(i){return t.onOperate("reply")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("span",[t._v(t._s(t.$L("\u56DE\u590D")))])]):t._e(),t.operateItem.userid==t.userId&&t.operateItem.type==="text"?e("li",{on:{click:function(i){return t.onOperate("update")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE779")]),e("span",[t._v(t._s(t.$L("\u7F16\u8F91")))])]):t._e(),t.actionPermission(t.operateItem,"voice2text")?e("li",{on:{click:function(i){return t.onOperate("voice2text")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE628")]),e("span",[t._v(t._s(t.$L("\u8F6C\u6587\u5B57")))])]):t._e(),t.actionPermission(t.operateItem,"translation")?e("li",{on:{click:function(i){return t.onOperate("translation")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE795")]),e("span",[t._v(t._s(t.$L("\u7FFB\u8BD1")))])]):t._e(),t._l(t.operateCopys,function(i){return e("li",{on:{click:function(a){return t.onOperate("copy",i)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("span",[t._v(t._s(t.$L(i.label)))])])}),t.actionPermission(t.operateItem,"forward")?e("li",{on:{click:function(i){return t.onOperate("forward")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE638")]),e("span",[t._v(t._s(t.$L("\u8F6C\u53D1")))])]):t._e(),t.operateItem.userid==t.userId?e("li",{on:{click:function(i){return t.onOperate("withdraw")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE637")]),e("span",[t._v(t._s(t.$L("\u64A4\u56DE")))])]):t._e(),t.operateItem.type==="file"?[e("li",{on:{click:function(i){return t.onOperate("view")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("span",[t._v(t._s(t.$L("\u67E5\u770B")))])]),e("li",{on:{click:function(i){return t.onOperate("down")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7A8")]),e("span",[t._v(t._s(t.$L("\u4E0B\u8F7D")))])])]:t._e(),e("li",{on:{click:function(i){return t.onOperate("tag")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE61E")]),e("span",[t._v(t._s(t.$L(t.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),t.actionPermission(t.operateItem,"newTask")?e("li",{on:{click:function(i){return t.onOperate("newTask")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B8")]),e("span",[t._v(t._s(t.$L("\u65B0\u4EFB\u52A1")))])]):t._e(),e("li",{on:{click:function(i){return t.onOperate("todo")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE7B7")]),e("span",[t._v(t._s(t.$L(t.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e("li",{on:{click:function(i){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(i){return t.onOperate("pos")}}},[e("i",{staticClass:"taskfont"},[t._v("\uEE15")]),e("span",[t._v(t._s(t.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):t._e()],2)]),e("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[e("ul",{staticClass:"operate-emoji scrollbar-hidden"},[t._l(t.operateEmojis,function(i,a){return e("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:t._s(i)},on:{click:function(o){return t.onOperate("emoji",i)}}})}),e("li"),e("li",{staticClass:"more-emoji",on:{click:function(i){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(i){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(i){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e(),e("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("\u53D6\u6D88"),"ok-text":t.$L("\u53D1\u9001"),"enter-ok":!0,closable:!1,"mask-closable":!1},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(i){t.pasteShow=i},expression:"pasteShow"}},[e("ul",{staticClass:"dialog-wrapper-paste",class:t.pasteClass},t._l(t.pasteItem,function(i){return e("li",[i.type=="image"?e("img",{attrs:{src:i.result}}):e("div",[t._v(t._s(t.$L("\u6587\u4EF6"))+": "+t._s(i.name)+" ("+t._s(t.$A.bytesToSize(i.size))+")")])])}),0)]),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:t.modifyShow,callback:function(i){t.modifyShow=i},expression:"modifyShow"}},[e("Form",t._b({attrs:{model:t.modifyData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.modifyData,"avatar",i)},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(i){t.$set(t.modifyData,"name",i)},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(i){t.$set(t.modifyData,"clear_day",i)},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(i){t.$set(t.modifyData,"webhook_url",i)},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(i){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(i){t.forwardSource=!t.forwardSource}}},[e("Icon",{staticClass:"user-modal-icon",attrs:{type:t.forwardSource?"ios-radio-button-off":"ios-checkmark-circle"}}),e("span",{staticClass:"forward-text-tip"},[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,3006296953),model:{value:t.forwardhow,callback:function(i){t.forwardhow=i},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(i){return e("li",{attrs:{"data-id":i.userid}},[i.type=="group"?e("div",{staticClass:"user-modal-avatar"},[i.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):i.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):i.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):i.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(i.name))])]):t._e()],1):e("UserAvatar",{attrs:{userid:i.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,"on-other":t.onOther}})],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(i){t.forwardMessage=i},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(i){t.forwardMessage=i},expression:"forwardMessage"}})],1)])])]),e("Modal",{attrs:{title:t.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:t.todoSettingShow,callback:function(i){t.todoSettingShow=i},expression:"todoSettingShow"}},[e("Form",t._b({ref:"todoSettingForm",attrs:{model:t.todoSettingData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.todoSettingData,"type",i)},expression:"todoSettingData.type"}},[e("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u6240\u6709\u6210\u5458")))]),e("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6307\u5B9A\u6210\u5458")))]),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(i){t.$set(t.todoSettingData,"quick_value",i)},expression:"todoSettingData.quick_value"}},t._l(t.todoSettingData.quick_list,function(i){return e("Checkbox",{key:i,attrs:{label:i}},[e("div",{staticClass:"dialog-wrapper-todo"},[e("div",[e("UserAvatar",{attrs:{userid:i,"show-icon":!1,"show-name":!0}}),i==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(i){t.$set(t.todoSettingData,"userids",i)},expression:"todoSettingData.userids"}})],1):t._e()],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.todoSettingShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.todoSettingLoad>0},on:{click:function(i){return t.onTodo("submit")}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)],1),t.todoSpecifyShow?e("UserSelect",{ref:"todoSpecifySelect",attrs:{"dialog-id":t.dialogId,title:t.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458"),module:"",border:"","before-submit":t.onTodoSpecify},model:{value:t.todoSpecifyData.userids,callback:function(i){t.$set(t.todoSpecifyData,"userids",i)},expression:"todoSpecifyData.userids"}}):t._e(),e("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:t.groupInfoShow,callback:function(i){t.groupInfoShow=i},expression:"groupInfoShow"}},[t.groupInfoShow?e("DialogGroupInfo",{attrs:{dialogId:t.dialogId},on:{"on-close":function(i){t.groupInfoShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:500},model:{value:t.reportShow,callback:function(i){t.reportShow=i},expression:"reportShow"}},[t.reportShow?e("DialogComplaint",{attrs:{dialogId:t.dialogId},on:{"on-close":function(i){t.reportShow=!1}}}):t._e()],1),e("Modal",{attrs:{title:t.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:t.groupTransferShow,callback:function(i){t.groupTransferShow=i},expression:"groupTransferShow"}},[e("Form",t._b({attrs:{model:t.groupTransferData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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(i){t.$set(t.groupTransferData,"userid",i)},expression:"groupTransferData.userid"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.groupTransferShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.groupTransferLoad>0},on:{click:function(i){return t.onDialogMenu("transferConfirm")}}},[t._v(t._s(t.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.replyListShow,callback:function(i){t.replyListShow=i},expression:"replyListShow"}},[t.replyListShow?e("DialogWrapper",{staticClass:"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(i){t.respondShow=i},expression:"respondShow"}},[t.respondShow?e("DialogRespond",{attrs:{"respond-data":t.respondData},on:{"on-close":function(i){t.respondShow=!1}}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:t.todoViewShow,callback:function(i){t.todoViewShow=i},expression:"todoViewShow"}},[e("div",{staticClass:"dialog-wrapper 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,"on-other":t.onOther}}),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("DialogGroupWordChain"),e("DialogGroupVote")],1):t._e()},fo=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"dialog-top-message-font"},[e("i",{staticClass:"taskfont"},[t._v("\uE7E6")])])}];const go={name:"DialogWrapper",components:{UserAvatarTip:It,UserSelect:_t,ImgUpload:vt,DialogRespond:Ea,DialogItem:st,VirtualList:St,ChatInput:Ga,DialogGroupInfo:xa,DrawerOverlay:Lt,DialogUpload:wa,DialogGroupWordChain:to,DialogGroupVote:ro,DialogComplaint:po},directives:{touchclick:wt},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:st,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:[],modifyShow:!1,modifyData:{},modifyLoad:0,forwardhow:!1,forwardData:[],forwardLoad:0,forwardDialogId:0,forwardMessage:"",forwardSource:!0,openId:0,errorId:0,dialogDrag:!1,groupInfoShow:!1,reportShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},operateClient:{x:0,y:0},operateVisible:!1,operatePreventScroll:0,operateCopys:[],operateStyles:{},operateItem:{},recordState:"",pointerMouse:!1,scrollTail:0,scrollOffset:0,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[],quick_value:[]},todoSpecifyShow:!1,todoSpecifyData:{type:"user",userids:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,scrollIng:0,scrollGroup:null,approvaUserStatus:"",observers:[],msgChangeCache:{},unreadOne:0,topPosLoad:0,positionLoad:0,positionShow:!1,preventMoreLoad:!1,preventToBottom:!1,scrollToBottomRefresh:!1,androidKeyboardVisible:!1,replyMsgAutoMention:!1}},mounted(){this.subMsgListener(),this.msgSubscribe=_.Store.subscribe("dialogMsgChange",this.onMsgChange)},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:s})=>s.disconnect()),this.observers=[];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","formOptions","cacheTranslationLanguage"]),...gt(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){const t=this.cacheDialogs.find(({id:s})=>s==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,s)=>t.top_at||s.top_at?$A.dayjs(s.top_at)-$A.dayjs(t.top_at):t.todo_num>0||s.todo_num>0?s.todo_num-t.todo_num:$A.dayjs(s.last_at)-$A.dayjs(t.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(t=>t.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(t=>t.dialog_id==this.dialogId):[]},allMsgList(){const t=[];if(t.push(...this.dialogMsgList.filter(s=>this.msgFilter(s))),this.msgId>0){const s=this.dialogMsgs.find(e=>e.id==this.msgId);s&&t.unshift(s)}if(this.tempMsgList.length>0){const s=t.map(({id:i})=>i),e=this.tempMsgList.filter(i=>!s.includes(i.id)&&this.msgFilter(i));e.length>0&&t.push(...e)}return t.sort((s,e)=>s.id-e.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:t}=this;let s=t.find(({type:i})=>i=="image"),e=t.find(({type:i})=>i!="image");return s&&e?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":s?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags({dialogData:t}){const s=[{type:"",label:"\u6D88\u606F"}];return t.has_tag&&s.push({type:"tag",label:"\u6807\u6CE8"}),t.has_todo&&s.push({type:"todo",label:"\u4E8B\u9879"}),t.has_image&&s.push({type:"image",label:"\u56FE\u7247"}),t.has_file&&s.push({type:"file",label:"\u6587\u4EF6"}),t.has_link&&s.push({type:"link",label:"\u94FE\u63A5"}),t.group_type==="project"&&s.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),t.group_type==="task"&&s.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),t.group_type==="okr"&&s.push({type:"okr",label:"\u6253\u5F00OKR"}),s},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,s)=>s.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:s,safeAreaBottom:e,windowScrollY:i,location:a,focusLazy:o}){return i<2&&a&&o&&t==="show"&&s>0&&s<120?s+e+(a==="modal"?15:0):0},msgUnreadOnly(){let t=0;return this.cacheDialogs.some(s=>{t+=$A.getDialogNum(s)}),t<=0?"":(t>999&&(t="999+"),String(t))},isMyDialog(){const{dialogData:t,userId:s}=this;return t.dialog_user&&t.dialog_user.userid==s},isManageBot(){const{dialogData:t,userId:s,userIsAdmin:e}=this;return t.bot?t.bot==s?!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(s=>s.id==this.todoViewMid);if(t)return t;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg({msgNew:t,dialogData:s,allMsgs:e}){const{unread:i,unread_one:a,mention:o,mention_ids:r}=s,n=i-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 s=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=>{s.includes(e)||s.push(e)}),s},maxSize({systemConfig:t}){return t!=null&&t.file_upload_limit?t.file_upload_limit*1024:1024e3},readEnabled({msgActivity:t,msgPrepared:s}){return t===0&&s},stickToBottom({windowActive:t,scrollTail:s,preventToBottom:e}){return t&&s<=0&&!e}},watch:{$route:{handler(t){const{name:s,params:e}=t||{};s=="manage-messenger"&&e.dialog_id&&e.open&&["word-chain","vote"].includes(e.open)&&this.$nextTick(i=>{this.$store.state[e.open=="word-chain"?"dialogDroupWordChain":"dialogGroupVote"]={type:"create",dialog_id:e.dialog_id},e.open=""})},immediate:!0},dialogId:{handler(t,s){this.getDialogBase(t),this.$store.dispatch("closeDialog",s),window.localStorage.removeItem("__cache:vote__"),window.localStorage.removeItem("__cache:unfoldWordChain__")},immediate:!0},loadMsg:{handler(t){t?this.loadIng++:setTimeout(s=>{this.loadIng--},300)},immediate:!0},isReady:{handler(t){!t||this.$nextTick(s=>{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(s=>{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 s=this.searchResult[t-1];s&&this.onPositionId(s)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:t,msgFile:s,msgRecord:e,msgText:i,dialogId:a}){t>$A.dayjs().unix()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(s)&&s.length>0?this.sendFileMsg(s):$A.isJson(e)&&e.duration>0?this.sendRecord(e):i&&this.sendMsg(i)}))},immediate:!0},wsOpenNum(t){if(t<=1)return;const s=this.allMsgs[this.allMsgs.length-1];if($A(this.$refs.scroller.$el).find(`[data-id="${s.id}"]`).length===0){this.scrollToBottomRefresh=!0;return}this.errorId===this.dialogId?this.getDialogBase(this.dialogId):this.onReGetMsg()},allMsgList(t){if(JSON.stringify(t)==JSON.stringify(this.allMsgs))return;const s=this.allMsgs.length,e=s>0?this.allMsgs[s-1].id:0;if($A.isIos()&&t.length!==s&&this.$refs.scroller){const i=this.$refs.scroller.$el;i.style.visibility="hidden",this.allMsgs=t,this.$nextTick(a=>{i.style.visibility="visible"})}else this.allMsgs=t;this.stickToBottom||(this.msgNew+=t.filter(i=>i.id&&i.id>e&&i.userid!=this.userId&&!i.read_at).length)},"allMsgs.length"(){this.stickToBottom&&this.onToBottom()},windowScrollY(t){$A.isIos()&&!this.$slots.head&&(this.$refs.nav.style.marginTop=`${Math.max(0,t)}px`)},windowActive(t){if(t&&this.autoFocus){const s=$A.last(this.dialogIns);s&&s.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 s;if(t>0){this.msgActiveId=0;const e=(s=this.$refs.scroller.$el.querySelector(`[data-id="${t}"]`))==null?void 0:s.querySelector(".dialog-head");e&&($A.scrollIntoViewIfNeeded(e),e.classList.add("common-shake"),setTimeout(i=>e.classList.remove("common-shake"),800))}},footerPaddingBottom(t){this.$refs.footer.style.paddingBottom=`${t}px`,requestAnimationFrame(s=>{this.$refs.input.updateTools()})},readLoadNum(){this.positionShow=!0},operateVisible(t){t||this.pointerMouse||this.focusLazy||document.getSelection().removeAllRanges()}},methods:{getDialogBase(t){!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.replyMsgAutoMention=!1,this.allMsgs=this.allMsgList,this.errorId=0,this.getMsgs({dialog_id:t,msg_id:this.msgId,msg_type:this.msgType}).then(s=>{this.openId=t,this.msgPrepared=!0,setTimeout(e=>{this.onSearchMsgId(),this.positionShow=this.readTimeout===null},100)}).catch(s=>{this.errorId=t}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:t}),this.autoFocus&&this.inputFocus(),this.getUserApproveStatus())},subMsgListener(t=!1){!$A.isSubElectron||(t?this.$store.dispatch("websocketMsgListener","DialogWrapper"):this.$store.dispatch("websocketMsgListener",{name:"DialogWrapper",callback:s=>{const{type:e,mode:i,data:a}=s;e==="dialog"&&i==="add"&&this.tempMsgs.push(a)}}))},sendMsg(t,s){let e,i="text",a="no",o=!1;if(typeof t=="string"&&t?e=t:(e=this.msgText,o=!0),s==="md"?(e=this.$refs.input.getText(),i="md"):s==="silence"&&(a="yes"),e==""){this.inputFocus();return}if(i==="text"&&(e=e.replace(/<\/span> <\/p>$/,"

    ").replace(/(.*?<\/span>.*?<\/span>.*?<\/span>)(\x20)?/,"$1 ")),this.dialogData.extra_quote_type==="update"){i==="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:i,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:i,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:i,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:s,content:l.msg,msg:e})})}o&&requestAnimationFrame(r=>this.msgText="")},sendRecord(t){const s={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(s),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{requestId:s.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,s.id)}).catch(e=>{this.$set(s,"error",!0),this.$set(s,"errorData",{type:"record",mType:"record",content:e.msg,msg:t})})},sendFileMsg(t){const s=$A.isArray(t)?t:[t];s.length>0&&(this.pasteFile=[],this.pasteItem=[],s.some(e=>{const i={type:$A.getMiddle(e.type,null,"/"),name:e.name,size:e.size,result:null};if(i.type==="image"){const a=new FileReader;a.readAsDataURL(e),a.onload=({target:o})=>{i.result=o.result,this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}}else this.pasteFile.push(e),this.pasteItem.push(i),this.pasteShow=!0}))},sendQuick(t){this.sendMsg(`

    ${t.label}

    `)},onMsgChange(t){const s=this.allMsgs.find(({type:e,id:i})=>e=="text"&&i==t.id);s&&(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,s.msg))},onMsgOutput(t,s){const e=`${t}_load`,i=this.msgChangeCache[t];if(!(!i||i.length===0)&&this.msgChangeCache[e]!==!0){this.msgChangeCache[e]=!0;try{const a=i.shift();if(!a){this.msgChangeCache[e]=!1;return}const{type:o,text:r}=a,{tail:n}=this.scrollInfo();o==="append"?s.text+=r:o==="replace"&&(s.text=r),this.$nextTick(l=>{if(n<=10&&n!=this.scrollInfo().tail&&(this.operatePreventScroll++,this.$refs.scroller.scrollToBottom(),setTimeout(c=>this.operatePreventScroll--,50)),i.length===0){this.msgChangeCache[e]=!1;return}setTimeout(c=>{this.msgChangeCache[e]=!1,this.onMsgOutput(t,s)},5)})}catch{this.msgChangeCache[e]=!1}}},getTempId(){return this.tempId++},getMsgs(t){return new Promise((s,e)=>{setTimeout(i=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",t).then(s).catch(e).finally(i=>{this.msgLoadIng--})})},msgFilter(t){if(this.msgType){if(this.msgType==="tag"){if(!t.tag)return!1}else if(this.msgType==="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,s=0,e=0){return new Promise((i,a)=>{if(t===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",e===0)this.$store.dispatch("showSpinner",600);else if(e>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}e++,setTimeout(n=>{this.onPositionId(t,s,e).then(i).catch(a)},Math.min(800,200*e));return}e>0&&this.$store.dispatch("hiddenSpinner");const o=this.allMsgs.findIndex(n=>n.id===t),r=this.prevId>0?0:-1;o>r?setTimeout(n=>{this.onToIndex(o,t),i()},200):(s>0&&this.$store.dispatch("setLoad",{key:`msg-${s}`,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),i()),s>0&&this.$store.dispatch("cancelLoad",`msg-${s}`)}))})},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.daytz().format("YYYY-MM-DD HH:mm:ss")}),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,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,i=Array.prototype.slice.call(e);i.length>0&&(t.preventDefault(),this.sendFileMsg(i))},chatDragOver(t,s){let e=this.__dialog_drag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialog_drag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(s.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(){this.androidKeyboardVisible&&$A.eeuiAppSetDisabledUserLongClickSelect(500)},onPointerover({pointerType:t}){this.pointerMouse=t==="mouse"},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,s){switch(t){case"progress":const e=s.showProgress?Math.max(s.percentage,.01):!1,i=this.tempMsgs.find(({id:o})=>o==s.tempId);if(i){i.msg.percentage=e;return}const a={id:s.tempId,file_uid:s.uid,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"file",userid:this.userId,msg:Object.assign(s.msg||{},{percentage:e})};this.tempMsgs.push(a),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.forgetTempMsg(s.tempId);break;case"success":this.sendSuccess(s.data,s.tempId);break}},sendSuccess(t,s=0,e=!1){if($A.isArray(t)){t.some(i=>{this.sendSuccess(i,s)});return}if(s>0){const i=this.tempMsgs.findIndex(({id:a})=>a==s);i>-1&&this.tempMsgs.splice(i,1,t),setTimeout(a=>{this.forgetTempMsg(s),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:s})=>s!=t)},setQuote(t,s){var e;(e=this.$refs.input)==null||e.setQuote(t,s)},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((s,e)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:t},method:"post"}).then(({msg:i})=>{s(i)}).catch(({msg:i})=>{e(i)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onResizeEvent(t){t.some(({target:s,contentRect:e})=>{s===this.$refs.msgs?this.onMsgsResize(e):s===this.scrollGroup&&this.onScrollGroupResize(e)})},onMsgsResize({height:t}){if(this.$refs.scroller.$el.style.height=`${t}px`,typeof this.__msgs_height!="undefined"){const s=this.__msgs_height-t;if(s!==0){const{offset:e,tail:i}=this.scrollInfo();i>0&&this.onToOffset(e+s)}}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(s=>t.scrollToBottom()))},onToIndex(t,s){const e=this.$refs.scroller;if(e){e.stopToBottom();const i=e.$el.querySelector(`[data-id="${s}"]`);i!=null&&i.parentNode.parentNode.classList.contains("item-enter")||(e.scrollToIndex(t,-80),requestAnimationFrame(a=>e.scrollToIndex(t,-80)))}requestAnimationFrame(i=>this.msgActiveId=s)},onToOffset(t,s=!1){const e=this.$refs.scroller;if(e){const i=e.getOffset()>t;e.stopToBottom(),e.scrollToOffset(t),setTimeout(a=>{i||s?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 s=t.list.map(e=>e.id);this.$nextTick(()=>{const e=this.$refs.scroller,i=s.reduce((a,o)=>({size:(typeof a=="object"?a.size:e.getSize(a))+e.getSize(o)}));this.onToOffset(e.getOffset()+i.size,!0)})}).catch(()=>{})},onDialogMenu(t){var s;switch(t){case"searchMsg":this.searchShow=!0,this.$nextTick(i=>{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),_.Store.set("createGroup",e);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:(s=this.cacheUserBasic.find(i=>i.userid===this.dialogData.dialog_user.userid))==null?void 0:s.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:i})=>{this.modifyData.clear_day=i.clear_day,this.modifyData.webhook_url=i.webhook_url,this.modifyData.system_name=i.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;case"report":this.reportShow=!0;break}},onTransferGroup(){if(this.groupTransferData.userid.length===0){$A.messageError("\u8BF7\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B");return}this.groupTransferLoad++,this.$store.dispatch("call",{url:"dialog/group/transfer",data:{dialog_id:this.dialogId,userid:this.groupTransferData.userid[0]}}).then(({data:t,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,s)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:e})=>{t(e),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{s(e)})})})},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:s})=>{$A.messageSuccess(s),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:s})=>{$A.messageSuccess(s),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,s)=>{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:i}=this.forwardData[0];e==="group"&&/^d:/.test(i)&&(this.forwardDialogId=parseInt(i.replace(/^d:/,"")))}this.forwardMessage="",this.forwardSource=!0,this.forwardhow=!0}s()})},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 s=t.filter(i=>$A.leftExists(i,"d:")).map(i=>i.replace("d:","")),e=t.filter(i=>!$A.leftExists(i,"d:"));this.forwardLoad++,this.$store.dispatch("call",{url:"dialog/msg/forward",data:{dialogids:s,userids:e,msg_id:this.operateItem.id,show_source:this.forwardSource?1:0,leave_message:this.forwardMessage}}).then(({data:i,msg:a})=>{this.$store.dispatch("saveDialogMsg",i.msgs),this.$store.dispatch("updateDialogLastMsg",i.msgs),$A.messageSuccess(a),this.$refs.forwardSelect.hide(),this.forwardhow=!1}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{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:s,tail:e}=this.scrollInfo();this.scrollOffset=s,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(i=>this.scrollTmp=this.scrollAction,0),this.scrollIng++,setTimeout(i=>this.scrollIng--,100)},onRange(t){if(this.preventMoreLoad)return;const s=this.scrollDirection==="down"?"next_id":"prev_id";for(let e=t.start;e<=t.end;e++){if(!this.allMsgs[e])continue;const i=this.allMsgs[e][s];if(!i)continue;const a=this.allMsgs[e+(s==="next_id"?1:-1)];a&&a.id!=i&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[s]:i}).finally(o=>{this.preventMoreLoad=!1}))}},onBack(){if(!this.beforeBack)return this.handleBack();const t=this.beforeBack();t&&t.then?t.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:t,params:s}=this.$store.state.routeHistoryLast;t===this.$route.name&&/^\d+$/.test(s.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(t){switch(t){case"project":this.openProject();break;case"task":this.openTask();break;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 s=this.cacheUserBasic.find(({userid:e})=>e==t.userid);s&&this.$refs.input.addMention({denotationChar:"@",id:s.userid,value:s.nickname})},onLongpress({event:t,el:s,msgData:e}){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 i=this.getSelectedTextInElement(s);if(i.length>0&&this.operateCopys.push({type:"selected",icon:"",label:"\u590D\u5236\u9009\u62E9",value:i}),e.msg.text.replace(/<[^>]+>/g,"").length>0){let a=this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236";i.length>0&&(a="\u590D\u5236\u5168\u90E8"),this.operateCopys.push({type:"text",icon:"",label:a,value:""})}}this.$nextTick(()=>{const i=s.getBoundingClientRect(),a=this.$refs.scroller.$el.getBoundingClientRect();let o=i.top+this.windowScrollY,r=i.height;i.topa.bottom&&(r-=i.bottom-a.bottom);const n=this.windowWidth<500?this.windowWidth/2:t.clientX;if(this.operateStyles={left:`${n}px`,top:`${o}px`,height:`${r}px`},this.operateClient={x:n,y:t.clientY},this.operateVisible)try{this.$refs.operate.$refs.drop.popper.update()}catch{}else this.operateVisible=!0})},onOperate(t,s=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"voice2text":this.onVoice2text();break;case"translation":this.onTranslation();break;case"copy":this.onCopy(s);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 i=$A.formatMsgBasic(this.operateItem.msg.text);i=i.replace(/]*?src=(["'])(.*?)(_thumb\.(png|jpg|jpeg))*\1[^>]*?>/g,''),i=i.replace(//g,'
  • '),i=i.replace(//g,"
  • "),i=i.replace(/]*>([\s\S]*?)<\/ol>/g,'
      $1
    '),_.Store.set("addTask",{owner:[this.userId],content:i});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":s==="more"?Ua().then(this.onEmoji):this.onEmoji(s);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,s)=>{if(this.operateItem.created_at){s("\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()):s("\u53D6\u6D88\u53D1\u9001\u5931\u8D25"):this.$store.dispatch("callCancel",this.operateItem.id).then(()=>{this.forgetTempMsg(this.operateItem.id),t()}).catch(()=>{s("\u53D6\u6D88\u53D1\u9001\u5931\u8D25")})})})},onReply(t){this.replyMsgAutoMention=!0,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:s,type:e}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),e==="md"?this.$refs.input.setText(s):(s.indexOf("mention")>-1&&(s=s.replace(/
    ]*)>~([^>]*)<\/a>/g,'~$3'),s=s.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),s=s.replace(/]*>/gi,i=>i.replace(/(width|height)="\d+"\s*/ig,"")),s=s.replace(/

    <\/p>/g,"


    "),this.msgText=$A.formatMsgBasic(s)),this.$nextTick(i=>this.$refs.input.setPasteMode(!0))}},onVoice2text(){if(!this.actionPermission(this.operateItem,"voice2text"))return;const{id:t}=this.operateItem;this.isLoad(`msg-${t}`)||(this.$store.dispatch("setLoad",`msg-${t}`),this.$store.dispatch("call",{url:"dialog/msg/voice2text",data:{msg_id:t}}).then(({data:s})=>{this.$store.dispatch("saveDialogMsg",s)}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t}`)}))},onTranslation(){if(!this.actionPermission(this.operateItem,"translation"))return;const{id:t}=this.operateItem,s=`msg-${t}`;this.isLoad(s)||(this.$store.dispatch("setLoad",s),this.$store.dispatch("call",{url:"dialog/msg/translation",data:{msg_id:t,language:this.cacheTranslationLanguage}}).then(({data:e})=>{this.$store.dispatch("saveTranslation",Object.assign(e,{key:s}))}).catch(({msg:e})=>{$A.messageError(e)}).finally(e=>{this.$store.dispatch("cancelLoad",s)}))},openTranslationMenu(t){const s=Object.keys(w).map(e=>({label:w[e],value:e}));this.$store.state.menuOperation={event:t,list:s,active:this.cacheTranslationLanguage,scrollHide:!0,onUpdate:async e=>{await this.$store.dispatch("setTranslationLanguage",e),this.onTranslation()}}},onCopy(t){if(!$A.isJson(t))return;const{type:s,value:e}=t;switch(s){case"image":this.$Electron&&this.getBase64Image(e).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$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 i=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(i.length>0){const a=i[0].innerText.replace(/\n\n/g,` +`).replace(/(^\s*)|(\s*$)/g,"");this.copyText(a)}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,s)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{t("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:e})=>{s(e)})})})},onViewReply(t){this.operateVisible||this.onPositionId(t.reply_id,t.msg_id)},onViewText(t,s){if(this.operateVisible)return;const{target:e,clientX:i}=t;if(e.classList.contains("translation-label")){this.operateItem=this.findMsgByElement(s),this.openTranslationMenu(t);return}let a=e;for(;a&&!a.classList.contains("dialog-scroller");){if(a.classList.contains("open-approve-details")){_.Store.set("approveDetails",a.getAttribute("data-id"));return}a=a.parentElement}switch(e.nodeName){case"IMG":if(e.classList.contains("browse"))this.onViewPicture(e.currentSrc);else{const r=$A.getTextImagesInfo(s.outerHTML),n=r.findIndex(l=>l.src==e.currentSrc);this.$store.dispatch("previewImage",{index:n,list:r})}break;case"SPAN":e.classList.contains("mention")&&e.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(e.getAttribute("data-id"))),e.classList.contains("mention")&&e.classList.contains("okr")&&this.$store.dispatch("openOkr",$A.runNum(e.getAttribute("data-id")));break;case"LI":const o=e.getAttribute("data-list");if(["checked","unchecked"].includes(o)){if(i-e.getBoundingClientRect().x>18)return;const r=this.findMsgByElement(s);if(r.userid!=this.userId)return;const n=[].indexOf.call(s.querySelectorAll(e.tagName),e);o==="checked"?e.setAttribute("data-list","unchecked"):e.setAttribute("data-list","checked"),this.$store.dispatch("setLoad",{key:`msg-${r.id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/checked",data:{dialog_id:this.dialogId,msg_id:r.id,index:n,checked:o==="checked"?0:1}}).then(({data:l})=>{this.$store.dispatch("saveDialogMsg",l)}).catch(({msg:l})=>{o==="checked"?e.setAttribute("data-list","checked"):e.setAttribute("data-list","unchecked"),$A.modalError(l)}).finally(l=>{this.$store.dispatch("cancelLoad",`msg-${r.id}`)})}break}},findMsgByElement(t){let s=t.parentElement;for(;s&&!s.classList.contains("dialog-scroller");){if(s.classList.contains("dialog-view")){const e=s.getAttribute("data-id");return this.allMsgs.find(i=>i.id==e)||{}}s=s.parentElement}return{}},onViewFile(t){if(this.operateVisible)return;$A.isJson(t)||(t=this.operateItem);const{msg:s}=t;if(s.ext==="mp4"){this.$store.dispatch("previewImage",{src:s.path,width:s.width,height:s.height});return}if(["jpg","jpeg","webp","gif","png"].includes(s.ext)){this.onViewPicture(s.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:`${s.name} (${$A.bytesToSize(s.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:s.ext==="drawio"}}):this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:`${s.name} (${$A.bytesToSize(s.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${e}`}}):window.open($A.mainUrl(e.substring(1)))},onViewPicture(t){const s=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=[];s.some(({type:a,msg:o})=>{a==="file"?e.push({src:o.path,width:o.width,height:o.height}):a==="text"&&e.push(...$A.getTextImagesInfo(o.text))});const i=e.findIndex(({src:a})=>a===t);i>-1?this.$store.dispatch("previewImage",{index:i,list:e}):this.$store.dispatch("previewImage",t)},onDownFile(t){this.operateVisible||($A.isJson(t)||(t=this.operateItem),$A.modalConfirm({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${t.msg.name} (${$A.bytesToSize(t.msg.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${t.id}`))}}))},onReplyList(t){this.operateVisible||(this.replyListId=t.msg_id,this.replyListShow=!0)},onError(t){if(t.error!==!0)return;const{type:s,mType:e,content:i,msg:a}=t.errorData,o={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:i,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:r=>{this.forgetTempMsg(t.id)}};if(s==="text")o.okText="\u91CD\u65B0\u53D1\u9001",o.onOk=()=>{this.forgetTempMsg(t.id),this.sendMsg(a,e)};else if(s==="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 s=this.cacheEmojis.filter(e=>e!==t.symbol);s.unshift(t.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=s.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)},onOther({event:t,data:s}){this.operateVisible||t==="todoAdd"&&(this.todoSpecifyData=Object.assign(this.todoSpecifyData,s),this.todoSpecifyShow=!0,this.$nextTick(e=>{this.$refs.todoSpecifySelect.onSelection()}))},onTag(){if(this.operateVisible)return;const t={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:t}).then(({data:s})=>{this.tagOrTodoSuccess(s)}).catch(({msg:s})=>{$A.messageError(s)}).finally(s=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})},onTypeChange(t){t==="user"&&(this.todoSettingData.userids.length===0&&this.todoSettingData.quick_value.length>0&&(this.todoSettingData.userids=this.todoSettingData.quick_value),this.$nextTick(s=>{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 s;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(i=>{$A.messageSuccess(i),this.todoSettingShow=!1}).catch(i=>{$A.messageError(i)}).finally(i=>{this.todoSettingLoad--})}else if(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({type:"user",userids:[],msg_id:this.operateItem.id})});else{const e={};e[this.userId]=this.userId;const i=(s=this.dialogData.dialog_user)==null?void 0:s.userid;if(i&&i!=this.userId&&!this.dialogData.bot&&(e[i]=i),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.todoSettingShow=!0}},onTodoSpecify(){return new Promise((t,s)=>{this.onTodoSubmit(this.todoSpecifyData).then(e=>{$A.messageSuccess(e),t()}).catch(e=>{$A.messageError(e),s()})})},onTodoSubmit(t){return new Promise((s,e)=>{this.$store.dispatch("setLoad",{key:`msg-${t.msg_id}`,delay:600}),this.$store.dispatch("call",{method:"post",url:"dialog/msg/todo",data:t}).then(({data:i,msg:a})=>{s(a),this.tagOrTodoSuccess(i),this.onActive()}).catch(({msg:i})=>{e(i)}).finally(i=>{this.$store.dispatch("cancelLoad",`msg-${t.msg_id}`)})})},tagOrTodoSuccess(t){this.$store.dispatch("saveDialogMsg",t.update),t.add&&(this.$store.dispatch("saveDialogMsg",t.add),this.$store.dispatch("updateDialogLastMsg",t.add))},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(s=>{this.positionLoad--}))},actionPermission(t,s){switch(s){case"forward":if(["word-chain","vote","template"].includes(t.type))return!1;break;case"newTask":return t.type==="text";case"voice2text":if(t.type!=="record"||t.msg.text)return!1;break;case"translation":return["text","record"].includes(t.type)&&t.msg.text}return!0},findOperateFile(t,s){const e=this.fileLinks.find(i=>i.link===s);if(e){this.addFileMenu(t,e);return}this.$store.dispatch("searchFiles",{link:s}).then(({data:i})=>{if(i.length===1){const a={link:s,id:i[0].id,pid:i[0].pid};this.fileLinks.push(a),this.addFileMenu(t,a)}}).catch(i=>{})},addFileMenu(t,s){if(this.operateItem.id!=t||this.operateCopys.findIndex(i=>i.type==="filepos")!==-1)return;const e=Math.max(0,this.operateCopys.findIndex(i=>i.type==="link")-1);this.operateCopys.splice(e,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:s.pid,fileId:null,shakeId:s.id}})},getBase64Image(t){return new Promise(s=>{let e=document.createElement("CANVAS"),i=e.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{e.height=a.height,e.width=a.width,i.drawImage(a,0,0);let o="png";$A.rightExists(t,"jpg")||$A.rightExists(t,"jpeg")?o="jpeg":$A.rightExists(t,"webp")?o="webp":$A.rightExists(t,"git")&&(o="git"),s(e.toDataURL(`image/${o}`)),e=null},a.src=t})},getSelectedTextInElement(t){let s="";if(window.getSelection){let e=window.getSelection();if(e.rangeCount>0){const i=e.getRangeAt(0);t.contains(i.commonAncestorContainer)&&(s=i.toString())}}return s},onViewAvatar(t){let s=null;t.target.tagName==="IMG"?s=t.target.src:s=$A(t.target).find("img").attr("src"),s&&this.$store.dispatch("previewImage",s)},onTopOperate(){this.operateVisible||(this.operateItem.top_at?this.onCancelTop(this.operateItem):this.onTopSubmit(this.operateItem))},onTopSubmit(t){return new Promise((s,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:i,msg:a})=>{var o,r,n;if(s(a),this.$store.dispatch("saveDialog",{id:this.dialogId,top_msg_id:((o=i.update)==null?void 0:o.top_msg_id)||0,top_userid:((r=i.update)==null?void 0:r.top_userid)||0}),(n=i.update)!=null&&n.top_msg_id){const l=this.dialogMsgs.findIndex(({id:c})=>c==i.update.top_msg_id);l>-1&&this.$store.dispatch("saveDialogMsgTop",Object.assign({},this.dialogMsgs[l]))}i.add&&(this.$store.dispatch("saveDialogMsg",i.add),this.$store.dispatch("updateDialogLastMsg",i.add),this.onActive())}).catch(({msg:i})=>{e(i)}).finally(i=>{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)})}}},ft={};var _o=d(go,mo,fo,!1,vo,null,null,null);function vo(t){for(let s in ft)this[s]=ft[s]}var To=function(){return _o.exports}();export{Ga as C,To as D}; diff --git a/public/js/build/Drawio.c7f7ca00.js b/public/js/build/Drawio.69ced14f.js similarity index 90% rename from public/js/build/Drawio.c7f7ca00.js rename to public/js/build/Drawio.69ced14f.js index 2b47cc810..8c082d44a 100644 --- a/public/js/build/Drawio.c7f7ca00.js +++ b/public/js/build/Drawio.69ced14f.js @@ -1 +1 @@ -import{m as s}from"./vuex.cc7cb26e.js";import{I as m}from"./IFrame.7f63db7a.js";import{n as l,l as r}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.aae7507a.js";import{n as l,l as r}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.35e44d8b.js b/public/js/build/FileContent.8003b48c.js similarity index 88% rename from public/js/build/FileContent.35e44d8b.js rename to public/js/build/FileContent.8003b48c.js index 44f962bf6..87e4ab264 100644 --- a/public/js/build/FileContent.35e44d8b.js +++ b/public/js/build/FileContent.8003b48c.js @@ -1 +1 @@ -import{_ as s}from"./openpgp_hi.15f91b1d.js";import{m as c}from"./vuex.cc7cb26e.js";import{n as l}from"./app.d8851986.js";import{I as d}from"./IFrame.7f63db7a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var h=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"file-history"},[e("Table",{attrs:{width:t.windowWidth-40>480?480:t.windowWidth-40,"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)},u=[];const p={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:(t,{row:n})=>t("UserAvatar",{props:{showName:!0,size:22,userid:n.userid}})},{title:this.$L("\u5927\u5C0F"),key:"size",width:90,render:(t,{row:n})=>t("AutoTip",$A.bytesToSize(n.size))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,{index:n,row:e,column:i})=>n===0&&this.page===1?t("div","-"):t("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"},{label:this.$L("\u8FD8\u539F"),action:"restore"}]},on:{action:a=>{this.onAction(a,e)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{value:{handler(t){t&&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: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,n){switch(t){case"restore":this.$emit("on-restore",n);break;case"preview":const e=$A.getFileName(this.file)+` [${n.created_at}]`,i=`/single/file/${this.fileId}?history_id=${n.id}&history_title=${e}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-${this.fileId}-${n.id}`,path:i,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:e,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: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}}}},o={};var f=l(p,h,u,!1,v,"1b488c19",null,null);function v(t){for(let n in o)this[n]=o[n]}var m=function(){return f.exports}(),_=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.ready?e("div",{staticClass:"file-content"},[t.isPreview?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl},on:{"on-load":t.onFrameLoad}}):t.contentDetail?[["word","excel","ppt"].includes(t.file.type)?e("EPopover",{attrs:{trigger:"click"},model:{value:t.historyShow,callback:function(i){t.historyShow=i},expression:"historyShow"}},[e("div",{staticClass:"file-content-history"},[e("FileHistory",{attrs:{value:t.historyShow,file:t.file},on:{"on-restore":t.onRestoreHistory}})],1),e("div",{ref:"officeHeader",staticClass:"office-header",attrs:{slot:"reference"},slot:"reference"})]):e("div",{staticClass:"edit-header"},[e("div",{staticClass:"header-title"},[t.equalContent?t._e():e("EPopover",{staticClass:"file-unsave-tip",model:{value:t.unsaveTip,callback:function(i){t.unsaveTip=i},expression:"unsaveTip"}},[e("div",{staticClass:"confirm-popover"},[e("p",[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u5F53\u524D\u4FEE\u6539\u5185\u5BB9\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:t.unSaveGive}},[t._v(t._s(t.$L("\u653E\u5F03")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:t.onSaveSave}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)]),e("span",{attrs:{slot:"reference"},slot:"reference"},[t._v("["+t._s(t.$L("\u672A\u4FDD\u5B58"))+"*]")])]),t._v(" "+t._s(t.fileName)+" ")],1),e("div",{staticClass:"header-user"},[e("ul",[t._l(t.editUser,function(i,a){return a<=10?e("li",{key:a},[e("UserAvatar",{attrs:{userid:i,size:28,"border-witdh":2}})],1):t._e()}),t.editUser.length>10?e("li",{staticClass:"more",attrs:{title:t.editUser.length}},[t._v(t._s(t.editUser.length>999?"...":t.editUser.length))]):t._e()],2)]),t.file.type=="document"&&t.contentDetail&&!t.windowPortrait?e("div",{staticClass:"header-hint"},[e("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[e("Button",{attrs:{type:`${t.contentDetail.type=="md"?"primary":"default"}`},on:{click:function(i){return t.setTextType("md")}}},[t._v(t._s(t.$L("MD\u7F16\u8F91\u5668")))]),e("Button",{attrs:{type:`${t.contentDetail.type!="md"?"primary":"default"}`},on:{click:function(i){return t.setTextType("text")}}},[t._v(t._s(t.$L("\u6587\u672C\u7F16\u8F91\u5668")))])],1)],1):t._e(),t.file.type=="mind"?e("div",{staticClass:"header-hint"},[t._v(" "+t._s(t.$L("\u9009\u4E2D\u8282\u70B9\uFF0C\u6309enter\u952E\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9\uFF0Ctab\u952E\u6DFB\u52A0\u5B50\u8282\u70B9"))+" ")]):t._e(),t.file.type=="mind"?e("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click",transfer:""},on:{"on-click":t.exportMenu}},[e("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.$L("\u5BFC\u51FA"))),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"png"}},[t._v(t._s(t.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),e("DropdownItem",{attrs:{name:"pdf"}},[t._v(t._s(t.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):t._e(),t.file.only_view?t._e():[e("div",{staticClass:"header-icons"},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u6587\u4EF6\u94FE\u63A5")}},[e("div",{staticClass:"header-icon",on:{click:function(i){return t.handleClick("link")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE785")])])]),e("EPopover",{attrs:{trigger:"click"},model:{value:t.historyShow,callback:function(i){t.historyShow=i},expression:"historyShow"}},[e("div",{staticClass:"file-content-history"},[e("FileHistory",{attrs:{value:t.historyShow,file:t.file},on:{"on-restore":t.onRestoreHistory}})],1),e("ETooltip",{ref:"historyTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.historyShow,content:t.$L("\u5386\u53F2\u7248\u672C")},slot:"reference"},[e("div",{staticClass:"header-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")])])])],1)],1),t.windowPortrait&&t.file.type=="document"?[t.edit?t.edit&&t.equalContent?e("Button",{staticClass:"header-button",attrs:{size:"small"},on:{click:function(i){t.edit=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]):e("Button",{staticClass:"header-button",attrs:{disabled:t.equalContent,loading:t.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return t.handleClick("save")}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]):e("Button",{staticClass:"header-button",attrs:{size:"small",type:"primary"},on:{click:function(i){t.edit=!0}}},[t._v(t._s(t.$L("\u7F16\u8F91")))])]:e("Button",{staticClass:"header-button",attrs:{disabled:t.equalContent,loading:t.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return t.handleClick("save")}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])]],2),e("div",{staticClass:"content-body"},[t.historyShow?e("div",{staticClass:"content-mask"}):t._e(),t.file.type=="document"?[t.contentDetail.type=="md"?[t.edit?e("VMEditor",{model:{value:t.contentDetail.content,callback:function(i){t.$set(t.contentDetail,"content",i)},expression:"contentDetail.content"}}):e("VMPreview",{attrs:{value:t.contentDetail.content}})]:e("TEditor",{attrs:{readOnly:!t.edit,height:"100%"},on:{editorSave:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail.content,callback:function(i){t.$set(t.contentDetail,"content",i)},expression:"contentDetail.content"}})]:t.file.type=="drawio"?e("Drawio",{ref:"myFlow",attrs:{title:t.file.name},on:{saveData:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail,callback:function(i){t.contentDetail=i},expression:"contentDetail"}}):t.file.type=="mind"?e("Minder",{ref:"myMind",on:{saveData:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail,callback:function(i){t.contentDetail=i},expression:"contentDetail"}}):["code","txt"].includes(t.file.type)?e("AceEditor",{attrs:{ext:t.file.ext},on:{saveData:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail.content,callback:function(i){t.$set(t.contentDetail,"content",i)},expression:"contentDetail.content"}}):["word","excel","ppt"].includes(t.file.type)?e("OnlyOffice",{attrs:{documentKey:t.documentKey},on:{"on-document-ready":function(i){return t.handleClick("officeReady")}},model:{value:t.contentDetail,callback:function(i){t.contentDetail=i},expression:"contentDetail"}}):t._e()],2)]:t._e(),t.contentLoad?e("div",{staticClass:"content-load"},[e("Loading")],1):t._e(),e("Modal",{attrs:{title:t.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:t.linkShow,callback:function(i){t.linkShow=i},expression:"linkShow"}},[e("div",[e("div",{staticStyle:{margin:"-10px 0 8px"}},[t._v(t._s(t.$L("\u6587\u4EF6\u540D\u79F0"))+": "+t._s(t.linkData.name))]),e("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":t.linkFocus},model:{value:t.linkData.url,callback:function(i){t.$set(t.linkData,"url",i)},expression:"linkData.url"}}),e("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[t._v(" "+t._s(t.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))+" "),e("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(i){return t.linkGet(!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[e("strong",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),e("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.linkShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.linkLoad>0},on:{click:t.linkCopy}},[t._v(t._s(t.$L("\u590D\u5236")))])],1)])],2):t._e()},y=[];const k=()=>s(()=>import("./index.64428982.js"),["js/build/index.64428982.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),w=()=>s(()=>import("./preview.74e7b5c4.js"),["js/build/preview.74e7b5c4.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),$=()=>s(()=>import("./TEditor.8a7b6b4c.js"),["js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.52758ba6.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>s(()=>import("./AceEditor.b43f1f26.js"),["js/build/AceEditor.b43f1f26.js","js/build/vuex.cc7cb26e.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),D=()=>s(()=>import("./OnlyOffice.27bc47d9.js"),["js/build/OnlyOffice.27bc47d9.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),C=()=>s(()=>import("./Drawio.c7f7ca00.js"),["js/build/Drawio.c7f7ca00.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),x=()=>s(()=>import("./Minder.9eb9a4e8.js"),["js/build/Minder.9eb9a4e8.js","js/build/Minder.1839e1ef.css","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),S={name:"FileContent",components:{IFrame:d,FileHistory:m,AceEditor:g,TEditor:$,VMEditor:k,OnlyOffice:D,Drawio:C,Minder:x,VMPreview: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(t){t?(this.ready=!0,this.editUser=[this.userId],this.getContent()):(this.linkShow=!1,this.historyShow=!1,this.officeReady=!1,this.fileExt=null)},immediate:!0},historyShow(t){!t&&this.$refs.historyTip&&this.$refs.historyTip.updatePopper()},wsMsg:{handler(t){const{type:n,action:e,data:i}=t;switch(n){case"path":i.path=="/single/file/"+this.fileId&&(this.editUser=i.userids);break;case"file":e=="content"&&this.value&&i.id==this.fileId&&$A.modalConfirm({title:"\u66F4\u65B0\u63D0\u793A",content:"\u56E2\u961F\u6210\u5458\uFF08"+t.nickname+"\uFF09\u66F4\u65B0\u4E86\u5185\u5BB9\uFF0C
    \u66F4\u65B0\u65F6\u95F4\uFF1A"+$A.dayjs(t.time).format("YYYY-MM-DD HH:mm:ss")+"\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:t,key:n}=this.contentDetail;return $A.onlinePreviewUrl(t,n)}return""}},methods:{handleOfficeMessage({data:t,source:n}){if(t.source==="onlyoffice")switch(t.action){case"ready":n.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const e=this.$refs.officeHeader;e&&(e.style.top=`${t.rect.top}px`,e.style.left=`${t.rect.left}px`,e.style.width=`${t.rect.width}px`,e.style.height=`${t.rect.height}px`,e.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(t){this.value&&t.keyCode===83&&(t.metaKey||t.ctrlKey)&&(t.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(t=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:t})=>{this.contentDetail=t.content,this.updateBak()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(t){switch(t){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:n,msg:e})=>{$A.messageSuccess(e);const i={id:this.fileId,size:n.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.edit=!this.windowPortrait,this.$store.dispatch("saveFile",i)}).catch(({msg:n})=>{$A.modalError(n),this.getContent()}).finally(n=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(t){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${t.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((n,e)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:t.id}}).then(({msg:i})=>{n(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{e(i)})})})},linkGet(t){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:t===!0?"yes":"no"}}).then(({data:n})=>{this.linkData=Object.assign(n,{id:this.linkData.id,name:this.linkData.name}),this.linkCopy()}).catch(({msg:n})=>{this.linkShow=!1,$A.modalError(n)}).finally(n=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.copyText(this.linkData.url))},linkFocus(){this.$nextTick(t=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(t){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(t,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(t){this.fileExt=t,this.$set(this.contentDetail,"type",t)},documentKey(){return new Promise((t,n)=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.dayjs(e.update_at).unix()}`)}).catch(e=>{n(e)})})}}},r={};var b=l(S,_,y,!1,L,null,null,null);function L(t){for(let n in r)this[n]=r[n]}var ut=function(){return b.exports}();export{ut as default}; +import{_ as s}from"./openpgp_hi.15f91b1d.js";import{m as c}from"./vuex.cc7cb26e.js";import{n as l}from"./app.879f8ead.js";import{I as d}from"./IFrame.aae7507a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var h=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"file-history"},[e("Table",{attrs:{width:t.windowWidth-40>480?480:t.windowWidth-40,"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)},u=[];const p={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:(t,{row:n})=>t("UserAvatar",{props:{showName:!0,size:22,userid:n.userid}})},{title:this.$L("\u5927\u5C0F"),key:"size",width:90,render:(t,{row:n})=>t("AutoTip",$A.bytesToSize(n.size))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,{index:n,row:e,column:i})=>n===0&&this.page===1?t("div","-"):t("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"},{label:this.$L("\u8FD8\u539F"),action:"restore"}]},on:{action:a=>{this.onAction(a,e)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{value:{handler(t){t&&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: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,n){switch(t){case"restore":this.$emit("on-restore",n);break;case"preview":const e=$A.getFileName(this.file)+` [${n.created_at}]`,i=`/single/file/${this.fileId}?history_id=${n.id}&history_title=${e}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`file-${this.fileId}-${n.id}`,path:i,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:e,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: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}}}},o={};var f=l(p,h,u,!1,v,"1b488c19",null,null);function v(t){for(let n in o)this[n]=o[n]}var m=function(){return f.exports}(),_=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.ready?e("div",{staticClass:"file-content"},[t.isPreview?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl},on:{"on-load":t.onFrameLoad}}):t.contentDetail?[["word","excel","ppt"].includes(t.file.type)?e("EPopover",{attrs:{trigger:"click"},model:{value:t.historyShow,callback:function(i){t.historyShow=i},expression:"historyShow"}},[e("div",{staticClass:"file-content-history"},[e("FileHistory",{attrs:{value:t.historyShow,file:t.file},on:{"on-restore":t.onRestoreHistory}})],1),e("div",{ref:"officeHeader",staticClass:"office-header",attrs:{slot:"reference"},slot:"reference"})]):e("div",{staticClass:"edit-header"},[e("div",{staticClass:"header-title"},[t.equalContent?t._e():e("EPopover",{staticClass:"file-unsave-tip",model:{value:t.unsaveTip,callback:function(i){t.unsaveTip=i},expression:"unsaveTip"}},[e("div",{staticClass:"confirm-popover"},[e("p",[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u5F53\u524D\u4FEE\u6539\u5185\u5BB9\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:t.unSaveGive}},[t._v(t._s(t.$L("\u653E\u5F03")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:t.onSaveSave}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)]),e("span",{attrs:{slot:"reference"},slot:"reference"},[t._v("["+t._s(t.$L("\u672A\u4FDD\u5B58"))+"*]")])]),t._v(" "+t._s(t.fileName)+" ")],1),e("div",{staticClass:"header-user"},[e("ul",[t._l(t.editUser,function(i,a){return a<=10?e("li",{key:a},[e("UserAvatar",{attrs:{userid:i,size:28,"border-witdh":2}})],1):t._e()}),t.editUser.length>10?e("li",{staticClass:"more",attrs:{title:t.editUser.length}},[t._v(t._s(t.editUser.length>999?"...":t.editUser.length))]):t._e()],2)]),t.file.type=="document"&&t.contentDetail&&!t.windowPortrait?e("div",{staticClass:"header-hint"},[e("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[e("Button",{attrs:{type:`${t.contentDetail.type=="md"?"primary":"default"}`},on:{click:function(i){return t.setTextType("md")}}},[t._v(t._s(t.$L("MD\u7F16\u8F91\u5668")))]),e("Button",{attrs:{type:`${t.contentDetail.type!="md"?"primary":"default"}`},on:{click:function(i){return t.setTextType("text")}}},[t._v(t._s(t.$L("\u6587\u672C\u7F16\u8F91\u5668")))])],1)],1):t._e(),t.file.type=="mind"?e("div",{staticClass:"header-hint"},[t._v(" "+t._s(t.$L("\u9009\u4E2D\u8282\u70B9\uFF0C\u6309enter\u952E\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9\uFF0Ctab\u952E\u6DFB\u52A0\u5B50\u8282\u70B9"))+" ")]):t._e(),t.file.type=="mind"?e("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click",transfer:""},on:{"on-click":t.exportMenu}},[e("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.$L("\u5BFC\u51FA"))),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"png"}},[t._v(t._s(t.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),e("DropdownItem",{attrs:{name:"pdf"}},[t._v(t._s(t.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):t._e(),t.file.only_view?t._e():[e("div",{staticClass:"header-icons"},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u6587\u4EF6\u94FE\u63A5")}},[e("div",{staticClass:"header-icon",on:{click:function(i){return t.handleClick("link")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE785")])])]),e("EPopover",{attrs:{trigger:"click"},model:{value:t.historyShow,callback:function(i){t.historyShow=i},expression:"historyShow"}},[e("div",{staticClass:"file-content-history"},[e("FileHistory",{attrs:{value:t.historyShow,file:t.file},on:{"on-restore":t.onRestoreHistory}})],1),e("ETooltip",{ref:"historyTip",attrs:{slot:"reference",disabled:t.$isEEUiApp||t.windowTouch||t.historyShow,content:t.$L("\u5386\u53F2\u7248\u672C")},slot:"reference"},[e("div",{staticClass:"header-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")])])])],1)],1),t.windowPortrait&&t.file.type=="document"?[t.edit?t.edit&&t.equalContent?e("Button",{staticClass:"header-button",attrs:{size:"small"},on:{click:function(i){t.edit=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]):e("Button",{staticClass:"header-button",attrs:{disabled:t.equalContent,loading:t.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return t.handleClick("save")}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]):e("Button",{staticClass:"header-button",attrs:{size:"small",type:"primary"},on:{click:function(i){t.edit=!0}}},[t._v(t._s(t.$L("\u7F16\u8F91")))])]:e("Button",{staticClass:"header-button",attrs:{disabled:t.equalContent,loading:t.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return t.handleClick("save")}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])]],2),e("div",{staticClass:"content-body"},[t.historyShow?e("div",{staticClass:"content-mask"}):t._e(),t.file.type=="document"?[t.contentDetail.type=="md"?[t.edit?e("VMEditor",{model:{value:t.contentDetail.content,callback:function(i){t.$set(t.contentDetail,"content",i)},expression:"contentDetail.content"}}):e("VMPreview",{attrs:{value:t.contentDetail.content}})]:e("TEditor",{attrs:{readOnly:!t.edit,height:"100%"},on:{editorSave:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail.content,callback:function(i){t.$set(t.contentDetail,"content",i)},expression:"contentDetail.content"}})]:t.file.type=="drawio"?e("Drawio",{ref:"myFlow",attrs:{title:t.file.name},on:{saveData:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail,callback:function(i){t.contentDetail=i},expression:"contentDetail"}}):t.file.type=="mind"?e("Minder",{ref:"myMind",on:{saveData:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail,callback:function(i){t.contentDetail=i},expression:"contentDetail"}}):["code","txt"].includes(t.file.type)?e("AceEditor",{attrs:{ext:t.file.ext},on:{saveData:function(i){return t.handleClick("saveBefore")}},model:{value:t.contentDetail.content,callback:function(i){t.$set(t.contentDetail,"content",i)},expression:"contentDetail.content"}}):["word","excel","ppt"].includes(t.file.type)?e("OnlyOffice",{attrs:{documentKey:t.documentKey},on:{"on-document-ready":function(i){return t.handleClick("officeReady")}},model:{value:t.contentDetail,callback:function(i){t.contentDetail=i},expression:"contentDetail"}}):t._e()],2)]:t._e(),t.contentLoad?e("div",{staticClass:"content-load"},[e("Loading")],1):t._e(),e("Modal",{attrs:{title:t.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:t.linkShow,callback:function(i){t.linkShow=i},expression:"linkShow"}},[e("div",[e("div",{staticStyle:{margin:"-10px 0 8px"}},[t._v(t._s(t.$L("\u6587\u4EF6\u540D\u79F0"))+": "+t._s(t.linkData.name))]),e("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":t.linkFocus},model:{value:t.linkData.url,callback:function(i){t.$set(t.linkData,"url",i)},expression:"linkData.url"}}),e("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[t._v(" "+t._s(t.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))+" "),e("Poptip",{attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(i){return t.linkGet(!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[e("strong",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),e("a",{attrs:{href:"javascript:void(0)"}},[t._v(t._s(t.$L("\u5237\u65B0\u94FE\u63A5")))])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(i){t.linkShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.linkLoad>0},on:{click:t.linkCopy}},[t._v(t._s(t.$L("\u590D\u5236")))])],1)])],2):t._e()},y=[];const k=()=>s(()=>import("./index.12cb3aa3.js"),["js/build/index.12cb3aa3.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),w=()=>s(()=>import("./preview.8cce7ada.js"),["js/build/preview.8cce7ada.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),$=()=>s(()=>import("./TEditor.dfcd2131.js"),["js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.cc22c426.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>s(()=>import("./AceEditor.a7748af5.js"),["js/build/AceEditor.a7748af5.js","js/build/vuex.cc7cb26e.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),D=()=>s(()=>import("./OnlyOffice.6f62b626.js"),["js/build/OnlyOffice.6f62b626.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),C=()=>s(()=>import("./Drawio.69ced14f.js"),["js/build/Drawio.69ced14f.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),x=()=>s(()=>import("./Minder.2fb84ce4.js"),["js/build/Minder.2fb84ce4.js","js/build/Minder.1839e1ef.css","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),S={name:"FileContent",components:{IFrame:d,FileHistory:m,AceEditor:g,TEditor:$,VMEditor:k,OnlyOffice:D,Drawio:C,Minder:x,VMPreview: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(t){t?(this.ready=!0,this.editUser=[this.userId],this.getContent()):(this.linkShow=!1,this.historyShow=!1,this.officeReady=!1,this.fileExt=null)},immediate:!0},historyShow(t){!t&&this.$refs.historyTip&&this.$refs.historyTip.updatePopper()},wsMsg:{handler(t){const{type:n,action:e,data:i}=t;switch(n){case"path":i.path=="/single/file/"+this.fileId&&(this.editUser=i.userids);break;case"file":e=="content"&&this.value&&i.id==this.fileId&&$A.modalConfirm({title:"\u66F4\u65B0\u63D0\u793A",content:"\u56E2\u961F\u6210\u5458\uFF08"+t.nickname+"\uFF09\u66F4\u65B0\u4E86\u5185\u5BB9\uFF0C
    \u66F4\u65B0\u65F6\u95F4\uFF1A"+$A.dayjs(t.time).format("YYYY-MM-DD HH:mm:ss")+"\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:t,key:n}=this.contentDetail;return $A.onlinePreviewUrl(t,n)}return""}},methods:{handleOfficeMessage({data:t,source:n}){if(t.source==="onlyoffice")switch(t.action){case"ready":n.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const e=this.$refs.officeHeader;e&&(e.style.top=`${t.rect.top}px`,e.style.left=`${t.rect.left}px`,e.style.width=`${t.rect.width}px`,e.style.height=`${t.rect.height}px`,e.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(t){this.value&&t.keyCode===83&&(t.metaKey||t.ctrlKey)&&(t.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(t=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:t})=>{this.contentDetail=t.content,this.updateBak()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(t){switch(t){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:n,msg:e})=>{$A.messageSuccess(e);const i={id:this.fileId,size:n.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.edit=!this.windowPortrait,this.$store.dispatch("saveFile",i)}).catch(({msg:n})=>{$A.modalError(n),this.getContent()}).finally(n=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(t){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${t.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((n,e)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:t.id}}).then(({msg:i})=>{n(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{e(i)})})})},linkGet(t){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:t===!0?"yes":"no"}}).then(({data:n})=>{this.linkData=Object.assign(n,{id:this.linkData.id,name:this.linkData.name}),this.linkCopy()}).catch(({msg:n})=>{this.linkShow=!1,$A.modalError(n)}).finally(n=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.copyText(this.linkData.url))},linkFocus(){this.$nextTick(t=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(t){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(t,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(t){this.fileExt=t,this.$set(this.contentDetail,"type",t)},documentKey(){return new Promise((t,n)=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:e})=>{t(`${e.id}-${$A.dayjs(e.update_at).unix()}`)}).catch(e=>{n(e)})})}}},r={};var b=l(S,_,y,!1,L,null,null,null);function L(t){for(let n in r)this[n]=r[n]}var ut=function(){return b.exports}();export{ut as default}; diff --git a/public/js/build/FilePreview.1f20c4b0.js b/public/js/build/FilePreview.1e9ff7fd.js similarity index 76% rename from public/js/build/FilePreview.1f20c4b0.js rename to public/js/build/FilePreview.1e9ff7fd.js index 3800be903..ffcbe3851 100644 --- a/public/js/build/FilePreview.1f20c4b0.js +++ b/public/js/build/FilePreview.1e9ff7fd.js @@ -1 +1 @@ -import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as n}from"./IFrame.7f63db7a.js";import{n as a}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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("VMPreview",{attrs:{value: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.74e7b5c4.js"),["js/build/preview.74e7b5c4.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),c=()=>o(()=>import("./TEditor.8a7b6b4c.js"),["js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.52758ba6.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./AceEditor.b43f1f26.js"),["js/build/AceEditor.b43f1f26.js","js/build/vuex.cc7cb26e.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),m=()=>o(()=>import("./OnlyOffice.27bc47d9.js"),["js/build/OnlyOffice.27bc47d9.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Drawio.c7f7ca00.js"),["js/build/Drawio.c7f7ca00.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Minder.9eb9a4e8.js"),["js/build/Minder.9eb9a4e8.js","js/build/Minder.1839e1ef.css","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),h={name:"FilePreview",components:{IFrame:n,AceEditor:p,TEditor:c,VMPreview: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.dayjs(e.update_at).unix()}`)}).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}; +import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as n}from"./IFrame.aae7507a.js";import{n as a}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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("VMPreview",{attrs:{value: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.8cce7ada.js"),["js/build/preview.8cce7ada.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),c=()=>o(()=>import("./TEditor.dfcd2131.js"),["js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.cc22c426.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./AceEditor.a7748af5.js"),["js/build/AceEditor.a7748af5.js","js/build/vuex.cc7cb26e.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),m=()=>o(()=>import("./OnlyOffice.6f62b626.js"),["js/build/OnlyOffice.6f62b626.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Drawio.69ced14f.js"),["js/build/Drawio.69ced14f.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Minder.2fb84ce4.js"),["js/build/Minder.2fb84ce4.js","js/build/Minder.1839e1ef.css","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),h={name:"FilePreview",components:{IFrame:n,AceEditor:p,TEditor:c,VMPreview: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.dayjs(e.update_at).unix()}`)}).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.7f63db7a.js b/public/js/build/IFrame.aae7507a.js similarity index 94% rename from public/js/build/IFrame.7f63db7a.js rename to public/js/build/IFrame.aae7507a.js index 514620279..50a64eab2 100644 --- a/public/js/build/IFrame.7f63db7a.js +++ b/public/js/build/IFrame.aae7507a.js @@ -1 +1 @@ -import{n}from"./app.d8851986.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.879f8ead.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.52758ba6.js b/public/js/build/ImgUpload.52758ba6.js deleted file mode 100644 index 50f783686..000000000 --- a/public/js/build/ImgUpload.52758ba6.js +++ /dev/null @@ -1 +0,0 @@ -import{n as o}from"./app.d8851986.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 b={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:$A.dayjs().valueOf(),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||$A.dayjs().valueOf()-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 $=r(b,D,_,!1,w,null,null,null);function w(t){for(let i in d)this[i]=d[i]}var T=function(){return $.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",t._b({ref:"addForm",attrs:{model:t.addData,rules:t.addRule},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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",t._b({ref:"invitationForm",attrs:{model:t.invitationData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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","formOptions"])},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.879f8ead.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 b={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:$A.dayjs().valueOf(),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||$A.dayjs().valueOf()-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 $=r(b,D,_,!1,w,null,null,null);function w(t){for(let i in d)this[i]=d[i]}var T=function(){return $.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",t._b({ref:"addForm",attrs:{model:t.addData,rules:t.addRule},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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",t._b({ref:"invitationForm",attrs:{model:t.invitationData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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","formOptions"])},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.bd23f92f.js b/public/js/build/MicroApps.d5179821.js similarity index 92% rename from public/js/build/MicroApps.bd23f92f.js rename to public/js/build/MicroApps.d5179821.js index 627bf9f1c..bb9831881 100644 --- a/public/js/build/MicroApps.bd23f92f.js +++ b/public/js/build/MicroApps.d5179821.js @@ -1 +1 @@ -import{V as p}from"./vue.c448ed56.js";import{s,U as o,a as r,l as n,n as h}from"./app.d8851986.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.86de099a.js";import{i as c}from"./view-design-hi.563cfadb.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.c448ed56.js";import{s,U as o,a as r,l as n,n as h}from"./app.879f8ead.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.df01caa2.js";import{i as c}from"./view-design-hi.d2045547.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.9eb9a4e8.js b/public/js/build/Minder.2fb84ce4.js similarity index 95% rename from public/js/build/Minder.9eb9a4e8.js rename to public/js/build/Minder.2fb84ce4.js index b130bb986..aec550e90 100644 --- a/public/js/build/Minder.9eb9a4e8.js +++ b/public/js/build/Minder.2fb84ce4.js @@ -1 +1 @@ -import{I as a}from"./IFrame.7f63db7a.js";import{n as r}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.aae7507a.js";import{n as r}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.27bc47d9.js b/public/js/build/OnlyOffice.6f62b626.js similarity index 94% rename from public/js/build/OnlyOffice.27bc47d9.js rename to public/js/build/OnlyOffice.6f62b626.js index c209adf2a..db3731afd 100644 --- a/public/js/build/OnlyOffice.27bc47d9.js +++ b/public/js/build/OnlyOffice.6f62b626.js @@ -1 +1 @@ -import{m as f}from"./vuex.cc7cb26e.js";import{I as c}from"./IFrame.7f63db7a.js";import{n as m,l as a}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.aae7507a.js";import{n as m,l as a}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.d652e5c8.js b/public/js/build/ProjectLog.12dff91b.js similarity index 99% rename from public/js/build/ProjectLog.d652e5c8.js rename to public/js/build/ProjectLog.12dff91b.js index cf876879c..adca93045 100644 --- a/public/js/build/ProjectLog.d652e5c8.js +++ b/public/js/build/ProjectLog.12dff91b.js @@ -1 +1 @@ -import{m as p}from"./vuex.cc7cb26e.js";import{n as u}from"./app.d8851986.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["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=u(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var P=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(n,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[n.userid?s("UserAvatar",{attrs:{userid:n.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(n.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(r,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(C){return t.onOperation(r)}}},[t._v(t._s(r.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(r){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e(),t.hasRecordSubtask(i.record)?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(r){return t.posSubTask(i.record.subtask)}}},[t._v(t._s(t.$L("\u5173\u8054\u5B50\u4EFB\u52A1"))+": "+t._s(i.record.subtask.name))])]):t._e(),s("div",{staticClass:"log-bottom"})]})],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 L={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.daytz().format("MM-DD")==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,n=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==n);if(o){let i=o.lists.find(({userid:r})=>r==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:n,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())},hasRecordSubtask(t){return $A.isJson(t)&&$A.isJson(t.subtask)},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[n,o]=s.change;a.push(t("span",": ")),n&&n!=o?(a.push(t("span",{class:"change-value"},`${n||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if($A.isJson(s.link)){const{title:n,url:o}=s.link;a.push(t("span",": ")),a.push(t("a",{attrs:{href:o,target:"_blank"},on:{click:i=>{i.preventDefault();const r=`/${o}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`project-log-${s.id}`,path:r,force:!1,config:{title:this.$L(n),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:this.$L(n),url:"web.js",params:{allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${r}`}}):window.open($A.mainUrl(r.substring(1)))}}},this.$L(n)))}if(s.userid){let n=$A.isArray(s.userid)?s.userid:[s.userid],o=[];n.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:n})=>{e(n),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)},posSubTask(t){const e=this.$parent.$refs[`subTask_${t.id}`];if(e&&e[0]){const s=e[0].$el;if(s.classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(s),requestAnimationFrame(a=>{s.classList.add("common-shake"),setTimeout(n=>{s.classList.remove("common-shake")},600)})}else{if(t.parent_id==this.taskId)return;this.$store.dispatch("openTask",t)}}}},c={};var y=u(L,$,k,!1,w,null,null,null);function w(t){for(let e in c)this[e]=c[e]}var j=function(){return y.exports}();export{j as P,P as T}; +import{m as p}from"./vuex.cc7cb26e.js";import{n as u}from"./app.879f8ead.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["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=u(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var P=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(n,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[n.userid?s("UserAvatar",{attrs:{userid:n.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(n.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(r,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(C){return t.onOperation(r)}}},[t._v(t._s(r.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(r){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e(),t.hasRecordSubtask(i.record)?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(r){return t.posSubTask(i.record.subtask)}}},[t._v(t._s(t.$L("\u5173\u8054\u5B50\u4EFB\u52A1"))+": "+t._s(i.record.subtask.name))])]):t._e(),s("div",{staticClass:"log-bottom"})]})],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 L={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.daytz().format("MM-DD")==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,n=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==n);if(o){let i=o.lists.find(({userid:r})=>r==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:n,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())},hasRecordSubtask(t){return $A.isJson(t)&&$A.isJson(t.subtask)},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[n,o]=s.change;a.push(t("span",": ")),n&&n!=o?(a.push(t("span",{class:"change-value"},`${n||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if($A.isJson(s.link)){const{title:n,url:o}=s.link;a.push(t("span",": ")),a.push(t("a",{attrs:{href:o,target:"_blank"},on:{click:i=>{i.preventDefault();const r=`/${o}`;this.$Electron?this.$store.dispatch("openChildWindow",{name:`project-log-${s.id}`,path:r,force:!1,config:{title:this.$L(n),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:this.$L(n),url:"web.js",params:{allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${r}`}}):window.open($A.mainUrl(r.substring(1)))}}},this.$L(n)))}if(s.userid){let n=$A.isArray(s.userid)?s.userid:[s.userid],o=[];n.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:n})=>{e(n),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)},posSubTask(t){const e=this.$parent.$refs[`subTask_${t.id}`];if(e&&e[0]){const s=e[0].$el;if(s.classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(s),requestAnimationFrame(a=>{s.classList.add("common-shake"),setTimeout(n=>{s.classList.remove("common-shake")},600)})}else{if(t.parent_id==this.taskId)return;this.$store.dispatch("openTask",t)}}}},c={};var y=u(L,$,k,!1,w,null,null,null);function w(t){for(let e in c)this[e]=c[e]}var j=function(){return y.exports}();export{j as P,P as T}; diff --git a/public/js/build/ReportDetail.1ea08cae.js b/public/js/build/ReportDetail.b39ad266.js similarity index 97% rename from public/js/build/ReportDetail.1ea08cae.js rename to public/js/build/ReportDetail.b39ad266.js index b064e5146..2c2d4fbad 100644 --- a/public/js/build/ReportDetail.1ea08cae.js +++ b/public/js/build/ReportDetail.b39ad266.js @@ -1 +1 @@ -import{m as i}from"./vuex.cc7cb26e.js";import{n as l}from"./app.d8851986.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.formOptions.labelWidth==="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",t._b({staticClass:"report-form"},"Form",t.formOptions,!1),[t.formOptions.labelWidth!=="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(["formOptions"])},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,_,null,null,null);function _(t){for(let e in o)this[e]=o[e]}var v=function(){return c.exports}();export{v as R}; +import{m as i}from"./vuex.cc7cb26e.js";import{n as l}from"./app.879f8ead.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.formOptions.labelWidth==="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",t._b({staticClass:"report-form"},"Form",t.formOptions,!1),[t.formOptions.labelWidth!=="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(["formOptions"])},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,_,null,null,null);function _(t){for(let e in o)this[e]=o[e]}var v=function(){return c.exports}();export{v as R}; diff --git a/public/js/build/ReportEdit.22763e0c.js b/public/js/build/ReportEdit.8be7d715.js similarity index 92% rename from public/js/build/ReportEdit.22763e0c.js rename to public/js/build/ReportEdit.8be7d715.js index a2e7f0a66..c4364d7ae 100644 --- a/public/js/build/ReportEdit.22763e0c.js +++ b/public/js/build/ReportEdit.8be7d715.js @@ -1 +1 @@ -import{_ as s}from"./openpgp_hi.15f91b1d.js";import{U as o,n as l}from"./app.d8851986.js";import{m as n}from"./vuex.cc7cb26e.js";var p=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",t._b({staticClass:"report-edit",nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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)},c=[];const h=()=>s(()=>import("./TEditor.8a7b6b4c.js"),["js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.52758ba6.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d={name:"ReportEdit",components:{UserSelect:o,TEditor:h},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}},computed:{...n(["formOptions"])},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,t.length===0&&$A.messageWarning("\u6CA1\u6709\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61")}).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 m=l(d,p,c,!1,u,null,null,null);function u(t){for(let r in i)this[r]=i[r]}var v=function(){return m.exports}();export{v as R}; +import{_ as s}from"./openpgp_hi.15f91b1d.js";import{U as o,n as l}from"./app.879f8ead.js";import{m as n}from"./vuex.cc7cb26e.js";var p=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",t._b({staticClass:"report-edit",nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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)},c=[];const h=()=>s(()=>import("./TEditor.dfcd2131.js"),["js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.cc22c426.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d={name:"ReportEdit",components:{UserSelect:o,TEditor:h},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}},computed:{...n(["formOptions"])},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,t.length===0&&$A.messageWarning("\u6CA1\u6709\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61")}).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 m=l(d,p,c,!1,u,null,null,null);function u(t){for(let r in i)this[r]=i[r]}var v=function(){return m.exports}();export{v as R}; diff --git a/public/js/build/TEditor.8a7b6b4c.js b/public/js/build/TEditor.dfcd2131.js similarity index 97% rename from public/js/build/TEditor.8a7b6b4c.js rename to public/js/build/TEditor.dfcd2131.js index fdfbff4aa..dc50b0a5f 100644 --- a/public/js/build/TEditor.8a7b6b4c.js +++ b/public/js/build/TEditor.dfcd2131.js @@ -1 +1 @@ -import{t as h}from"./tinymce.46b8e261.js";import{I as m}from"./ImgUpload.52758ba6.js";import{m as g}from"./vuex.cc7cb26e.js";import{l as u,n as f}from"./app.d8851986.js";import"./@babel.49d8906a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var y=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"teditor-wrapper"},[e("div",{staticClass:"teditor-box",class:[!t.inline&&t.spinShow?"teditor-loadstyle":"teditor-loadedstyle"]},[t.inline?[e("div",{ref:"myTextarea",attrs:{id:t.id},domProps:{innerHTML:t._s(t.spinShow?"":t.content)}}),t.spinShow?e("Icon",{staticClass:"icon-loading icon-inline",attrs:{type:"ios-loading",size:18}}):t._e()]:[e("textarea",{ref:"myTextarea",attrs:{id:t.id}},[t._v(t._s(t.content))]),t.spinShow?e("Spin",{attrs:{fix:""}},[e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading",size:18}}),e("div",[t._v(t._s(t.$L("\u52A0\u8F7D\u7EC4\u4EF6\u4E2D...")))])],1):t._e()],e("ImgUpload",{ref:"myUpload",staticClass:"upload-control",attrs:{type:"callback",uploadIng:t.uploadIng,num:"50"},on:{"update:uploadIng":function(i){t.uploadIng=i},"update:upload-ing":function(i){t.uploadIng=i},"on-callback":t.editorImage}}),e("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?e("Spin",{attrs:{fix:""}},[e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),e("div",[t._v(t._s(t.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):t._e(),e("Modal",{staticClass:"teditor-transfer",attrs:{"footer-hide":"",fullscreen:"",transfer:""},on:{"on-visible-change":t.transferChange},model:{value:t.transfer,callback:function(i){t.transfer=i},expression:"transfer"}},[e("div",{attrs:{slot:"close"},slot:"close"},[e("Button",{attrs:{type:"primary",size:"small"}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1),e("div",{staticClass:"teditor-transfer-body"},[e("textarea",{attrs:{id:"T_"+t.id}},[t._v(t._s(t.content))])]),t.uploadIng>0?e("Spin",{attrs:{fix:""}},[e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),e("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},readOnlyImagePreview:{type:Boolean,default:!0},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 e={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:i=>{this.$emit("editorSave",i)},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:i=>{i.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\u56FE\u7247\u7A7A\u95F4"),onAction:()=>{this.$refs.myUpload.browsePicture()}}];n(o)}}),i.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\u56FE\u7247\u7A7A\u95F4"),onAction:()=>{this.$refs.myUpload.browsePicture()}}]}),i.ui.registry.addMenuItem("imagePreview",{icon:"preview",text:this.$L("\u9884\u89C8\u56FE\u7247"),onAction:()=>{this.operateImg=null;const n=i.selection.getNode();n&&n.nodeName==="IMG"&&(this.operateImg=n.getAttribute("src")),this.onImagePreview()},onSetup:n=>{const o=i.selection.getNode();n.setDisabled(!(o&&o.nodeName==="IMG"))}}),i.ui.registry.addButton("uploadFiles",{text:this.$L("\u6587\u4EF6"),tooltip:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),i.ui.registry.addMenuItem("uploadFiles",{text:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),t?(i.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),i.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),i.on("Init",n=>{this.editorT=i,this.editorT.setContent(this.content),(this.readOnlyFull===null?this.readOnly:this.readOnlyFull)?(this.editorT.setMode("readonly"),this.addClickEvent(n,!0)):this.editorT.setMode("design")})):(i.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),i.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),i.on("Init",n=>{this.spinShow=!1,this.editor=i,this.editor.setContent(this.content),this.readOnly?(this.editor.setMode("readonly"),this.addClickEvent(n,!1)):this.editor.setMode("design"),this.$emit("on-editor-init",this.editor)}),i.on("KeyUp",n=>{this.editor!==null&&this.submitNewContent()}),i.on("KeyDown",n=>{(n.metaKey||n.ctrlKey)&&n.keyCode===83&&(n.preventDefault(),this.$emit("editorSave",n))}),i.on("Change",n=>{this.editor!==null&&(this.getContent()!==this.value&&this.submitNewContent(),this.$emit("editorChange",n))}),i.on("focus",()=>{this.$emit("on-focus")}),i.on("blur",()=>{this.$emit("on-blur")}))}};return this.autoSize&&e.plugins.push("autoresize"),this.minHeight>0&&(e.min_height=this.minHeight),e},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 e=[];for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);for(let i in s)s.hasOwnProperty(i)&&(e[i]=s[i]);return e},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,e=new RegExp(`src=(["'])([^'"]*)\\1`),i=new RegExp('original-width="(\\d+)"'),n=new RegExp('original-height="(\\d+)"'),o=(this.getContent()+"").match(s);if(o)for(let r=0;re.src===this.operateImg));this.$store.dispatch("previewImage",{index:s,list:t})},addClickEvent({target:t},s){!this.readOnlyImagePreview||t.getBody().addEventListener("click",e=>{if(s){if(!(this.readOnlyFull===null?this.readOnly:this.readOnlyFull))return}else if(!this.readOnly)return;e.target.nodeName==="IMG"&&(this.operateImg=e.target.src,this.onImagePreview())})},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.46b8e261.js";import{I as m}from"./ImgUpload.cc22c426.js";import{m as g}from"./vuex.cc7cb26e.js";import{l as u,n as f}from"./app.879f8ead.js";import"./@babel.49d8906a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var y=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"teditor-wrapper"},[e("div",{staticClass:"teditor-box",class:[!t.inline&&t.spinShow?"teditor-loadstyle":"teditor-loadedstyle"]},[t.inline?[e("div",{ref:"myTextarea",attrs:{id:t.id},domProps:{innerHTML:t._s(t.spinShow?"":t.content)}}),t.spinShow?e("Icon",{staticClass:"icon-loading icon-inline",attrs:{type:"ios-loading",size:18}}):t._e()]:[e("textarea",{ref:"myTextarea",attrs:{id:t.id}},[t._v(t._s(t.content))]),t.spinShow?e("Spin",{attrs:{fix:""}},[e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading",size:18}}),e("div",[t._v(t._s(t.$L("\u52A0\u8F7D\u7EC4\u4EF6\u4E2D...")))])],1):t._e()],e("ImgUpload",{ref:"myUpload",staticClass:"upload-control",attrs:{type:"callback",uploadIng:t.uploadIng,num:"50"},on:{"update:uploadIng":function(i){t.uploadIng=i},"update:upload-ing":function(i){t.uploadIng=i},"on-callback":t.editorImage}}),e("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?e("Spin",{attrs:{fix:""}},[e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),e("div",[t._v(t._s(t.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):t._e(),e("Modal",{staticClass:"teditor-transfer",attrs:{"footer-hide":"",fullscreen:"",transfer:""},on:{"on-visible-change":t.transferChange},model:{value:t.transfer,callback:function(i){t.transfer=i},expression:"transfer"}},[e("div",{attrs:{slot:"close"},slot:"close"},[e("Button",{attrs:{type:"primary",size:"small"}},[t._v(t._s(t.$L("\u5B8C\u6210")))])],1),e("div",{staticClass:"teditor-transfer-body"},[e("textarea",{attrs:{id:"T_"+t.id}},[t._v(t._s(t.content))])]),t.uploadIng>0?e("Spin",{attrs:{fix:""}},[e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}),e("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},readOnlyImagePreview:{type:Boolean,default:!0},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 e={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:i=>{this.$emit("editorSave",i)},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:i=>{i.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\u56FE\u7247\u7A7A\u95F4"),onAction:()=>{this.$refs.myUpload.browsePicture()}}];n(o)}}),i.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\u56FE\u7247\u7A7A\u95F4"),onAction:()=>{this.$refs.myUpload.browsePicture()}}]}),i.ui.registry.addMenuItem("imagePreview",{icon:"preview",text:this.$L("\u9884\u89C8\u56FE\u7247"),onAction:()=>{this.operateImg=null;const n=i.selection.getNode();n&&n.nodeName==="IMG"&&(this.operateImg=n.getAttribute("src")),this.onImagePreview()},onSetup:n=>{const o=i.selection.getNode();n.setDisabled(!(o&&o.nodeName==="IMG"))}}),i.ui.registry.addButton("uploadFiles",{text:this.$L("\u6587\u4EF6"),tooltip:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),i.ui.registry.addMenuItem("uploadFiles",{text:this.$L("\u4E0A\u4F20\u6587\u4EF6"),onAction:()=>{this.handleBeforeUpload()&&this.$refs.fileUpload.handleClick()}}),t?(i.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),i.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u9000\u51FA\u5168\u5C4F"),onAction:()=>{this.closeFull()}}),i.on("Init",n=>{this.editorT=i,this.editorT.setContent(this.content),(this.readOnlyFull===null?this.readOnly:this.readOnlyFull)?(this.editorT.setMode("readonly"),this.addClickEvent(n,!0)):this.editorT.setMode("design")})):(i.ui.registry.addButton("screenload",{icon:"fullscreen",tooltip:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),i.ui.registry.addMenuItem("screenload",{icon:"fullscreen",text:this.$L("\u5168\u5C4F"),onAction:()=>{this.onFull()}}),i.on("Init",n=>{this.spinShow=!1,this.editor=i,this.editor.setContent(this.content),this.readOnly?(this.editor.setMode("readonly"),this.addClickEvent(n,!1)):this.editor.setMode("design"),this.$emit("on-editor-init",this.editor)}),i.on("KeyUp",n=>{this.editor!==null&&this.submitNewContent()}),i.on("KeyDown",n=>{(n.metaKey||n.ctrlKey)&&n.keyCode===83&&(n.preventDefault(),this.$emit("editorSave",n))}),i.on("Change",n=>{this.editor!==null&&(this.getContent()!==this.value&&this.submitNewContent(),this.$emit("editorChange",n))}),i.on("focus",()=>{this.$emit("on-focus")}),i.on("blur",()=>{this.$emit("on-blur")}))}};return this.autoSize&&e.plugins.push("autoresize"),this.minHeight>0&&(e.min_height=this.minHeight),e},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 e=[];for(let i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);for(let i in s)s.hasOwnProperty(i)&&(e[i]=s[i]);return e},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,e=new RegExp(`src=(["'])([^'"]*)\\1`),i=new RegExp('original-width="(\\d+)"'),n=new RegExp('original-height="(\\d+)"'),o=(this.getContent()+"").match(s);if(o)for(let r=0;re.src===this.operateImg));this.$store.dispatch("previewImage",{index:s,list:t})},addClickEvent({target:t},s){!this.readOnlyImagePreview||t.getBody().addEventListener("click",e=>{if(s){if(!(this.readOnlyFull===null?this.readOnly:this.readOnlyFull))return}else if(!this.readOnly)return;e.target.nodeName==="IMG"&&(this.operateImg=e.target.src,this.onImagePreview())})},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.75c13dec.js b/public/js/build/TaskDetail.4cdae640.js similarity index 99% rename from public/js/build/TaskDetail.75c13dec.js rename to public/js/build/TaskDetail.4cdae640.js index c17d4612f..3ca2cba02 100644 --- a/public/js/build/TaskDetail.75c13dec.js +++ b/public/js/build/TaskDetail.4cdae640.js @@ -1 +1 @@ -import{m as k}from"./vuex.cc7cb26e.js";import{P as _,T as g}from"./ProjectLog.d652e5c8.js";import{n as d,U as v,T as w}from"./app.d8851986.js";import{C as b,D}from"./DialogWrapper.86de099a.js";import{l as y}from"./le5le-store.b40f9152.js";import C from"./TEditor.8a7b6b4c.js";var T=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.onContinue}},[t._v(t._s(t.$L("\u5FFD\u7565\u5E76\u7EE7\u7EED")))])],1)],1)},x=[];const L={name:"TaskExistTips",props:{value:{type:Boolean,default:!1}},data(){return{show:!1,tipsTask:[]}},methods:{onContinue(){this.$emit("onContinue"),this.show=!1},getCutTime(t){let s=$A.dayjs(t.start_at),e=$A.dayjs(t.end_at),i="";return s.format("YYYY/MM/DD")==e.format("YYYY/MM/DD")?i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("HH:mm"):s.year()==e.year()?(i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("MM/DD HH:mm"),i=i.replace(/( 00:00| 23:59)/g,"")):(i=s.format("YYYY/MM/DD HH:mm")+e.format("YYYY/MM/DD HH:mm"),i=i.replace(/( 00:00| 23:59)/g,"")),i},isExistTask({userids:t,timerange:s,taskid:e},i){return new Promise(async a=>{if($A.isArray(s)&&(!s[0]||!s[1])){a(!1);return}this.$store.dispatch("call",{url:"project/task/easylists",data:{userid:t,timerange:s,taskid:e},method:"get",spinner:i}).then(({data:o})=>{if(o.data.length<=0){a(!1);return}this.show=!0;let n={};t.map(l=>{o.data.map(r=>{(r.task_user||[]).map(c=>c.owner?c.userid:0).indexOf(l)!==-1&&(n[l]||(n[l]=[]),n[l].push(r))})}),this.tipsTask=n,a(!0)})})}}},h={};var A=d(L,T,x,!1,M,null,null,null);function M(t){for(let s in h)this[s]=h[s]}var S=function(){return A.exports}(),I=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-editor",on:{click:t.onClickWrap,touchstart:t.onTouchstart}},[e("TEditor",{ref:"desc",attrs:{plugins:t.plugins,options:t.options,"option-full":t.optionFull,placeholder:t.placeholder,placeholderFull:t.placeholderFull,readOnly:t.windowTouch,readOnlyFull:!1,readOnlyImagePreview:!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"},[t.operateMenu.checked?e("DropdownItem",{nativeOn:{click:function(i){return t.onLiPreview.apply(null,arguments)}}},[t._v(t._s(t.$L(t.operateMenu.checked==="checked"?"\u6807\u8BB0\u672A\u9009":"\u6807\u8BB0\u5DF2\u9009")))]):t._e(),t.operateMenu.link?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.operateMenu.img?e("DropdownItem",{nativeOn:{click:function(i){return t.onImagePreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u67E5\u770B\u56FE\u7247")))]):t._e(),e("DropdownItem",{nativeOn:{click:function(i){return t.onEditing.apply(null,arguments)}}},[t._v(t._s(t.$L("\u7F16\u8F91\u63CF\u8FF0")))]),t.operateMenu.history?e("DropdownItem",{nativeOn:{click:function(i){return t.onHistory.apply(null,arguments)}}},[t._v(t._s(t.$L("\u5386\u53F2\u8BB0\u5F55")))]):t._e()],1)],1)],1)],1)},F=[];const E={name:"TEditorTask",components:{TEditor:C},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,operateHiddenTime:0,operateMenu:{target:null,checked:null,link:null,img:null,history:!0},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}this.operateMenu.history=typeof this.$listeners["on-history"]=="function"},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)},operateVisible(t){t||(this.operateHiddenTime=Date.now())}},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||Date.now()-this.operateHiddenTime<300||(t.stopPropagation(),this.operateVisible=!1,this.operateMenu.target=t.target,this.operateMenu.checked=null,t.target.tagName==="LI"&&t.target.parentNode.classList.contains("tox-checklist")&&(this.operateMenu.checked=t.target.classList.contains("tox-checklist--checked")?"checked":"unchecked"),this.operateMenu.link=t.target.tagName==="A"?t.target.href:null,this.operateMenu.img=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()}})},onLiPreview(){!this.operateMenu.checked||(this.operateMenu.checked==="checked"?this.operateMenu.target.classList.remove("tox-checklist--checked"):this.operateMenu.target.classList.add("tox-checklist--checked"),this.$emit("on-blur","force"))},onLinkPreview(){this.operateMenu.link&&window.open(this.operateMenu.link)},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.operateMenu.img));this.$store.dispatch("previewImage",{index:s,list:t})}}},u={};var O=d(E,I,F,!1,H,"4a5e9d48",null,null);function H(t){for(let s in u)this[s]=u[s]}var j=function(){return O.exports}(),Y=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},P=[];const z={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},m={};var N=d(z,Y,P,!1,U,null,null,null);function U(t){for(let s in m)this[s]=m[s]}var R=function(){return N.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}}}},p={};var K=d(W,B,V,!1,q,"43d23896",null,null);function q(t){for(let s in p)this[s]=p[s]}var J=function(){return K.exports}(),G=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.$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"},[t.getOwner.length===0?e("Alert",{staticClass:"receive-box",attrs:{type:"warning"}},[e("span",{staticClass:"receive-text"},[t._v(t._s(t.$L("\u8BE5\u4EFB\u52A1\u5C1A\u672A\u88AB\u9886\u53D6\uFF0C\u70B9\u51FB\u8FD9\u91CC")))]),e("EPopover",{staticClass:"receive-button",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(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(i){return t.onOwner(!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("Button",{attrs:{slot:"reference",loading:t.ownerLoad>0,size:"small",type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1)],1):t._e(),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",i)}}}),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:t.tagColor(t.taskDetail)}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):t._e(),t.taskDetail.overdue?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",{on:{click:function(a){return t.showFileDropdown(i,a)}}},[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)))])],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",{attrs:{className:"item-subtask"}},[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}},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u5EF6\u671F"))+" ")]),e("EDropdownItem",{attrs:{command:2}},[t._v(" "+t._s(t.$L("\u4FEE\u6539\u65F6\u95F4"))+" ")]),e("EDropdownItem",{attrs:{command:3}},[t._v(" "+t._s(t.$L("\u6E05\u9664\u65F6\u95F4"))+" ")])],1)],1),e("EDropdown",{ref:"eFileRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropFile}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[t._v(" "+t._s(t.$L("\u67E5\u770B\u9644\u4EF6"))+" ")]),e("EDropdownItem",{attrs:{command:2}},[t._v(" "+t._s(t.$L("\u4E0B\u8F7D\u9644\u4EF6"))+" ")]),e("EDropdownItem",{staticClass:"task-calc-warn-text",attrs:{command:3}},[t._v(" "+t._s(t.$L("\u5220\u9664\u9644\u4EF6"))+" ")])],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:{onContinue:function(i){return t.updateData("timesSave",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",t._b({ref:"formDelayTaskRef",attrs:{model:t.delayTaskForm,rules:t.delayTaskRule},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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[e("Select",{staticStyle:{width:"auto"},model:{value:t.delayTaskForm.type,callback:function(i){t.$set(t.delayTaskForm,"type",i)},expression:"delayTaskForm.type"}},[e("Option",{attrs:{value:"hour"}},[t._v(t._s(t.$L("\u5C0F\u65F6")))]),e("Option",{attrs:{value:"day"}},[t._v(t._s(t.$L("\u5929")))])],1)]},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"},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()},X=[];const Z={name:"TaskDetail",components:{TaskContentHistory:J,TEditorTask:j,UserSelect:v,TaskExistTips:S,ChatInput:b,TaskMenu:w,ProjectLog:_,DialogWrapper:D,TaskUpload:R,TaskPriority:g},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.dayjs().unix(),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:"\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,delayTaskForm:{type:"hour",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),$A.IDBJson("delayTaskForm").then(s=>{s.type&&this.$set(this.delayTaskForm,"type",s.type),s.time&&this.$set(this.delayTaskForm,"time",s.time)})},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix()},1e3),this.receiveTaskSubscribe=y.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...k(["systemConfig","cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId","formOptions"]),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.dayjs(t.start_at),e=$A.dayjs(t.end_at),i="";return s.format("YYYY/MM/DD")==e.format("YYYY/MM/DD")?i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("HH:mm"):s.year()==e.year()?(i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("MM/DD HH:mm"),i=i.replace(/( 00:00| 23:59)/g,"")):(i=s.format("YYYY/MM/DD HH:mm")+e.format("YYYY/MM/DD HH:mm"),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.dayjs(t).unix()-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(this.nowTime,t)},tagColor(t){return t.overdue?"red":t.today?"orange":"blue"},loopLabel(t){const s=this.loops.find(e=>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){this.isExistTask(s).then(()=>{this.updateData("timesSave",s)});return}if(Math.abs($A.dayjs(this.taskDetail.start_at).unix()-$A.dayjs(s.start_at).unix())<60&&Math.abs($A.dayjs(this.taskDetail.end_at).unix()-$A.dayjs(s.end_at).unix())<60)return;if(s.desc){this.isExistTask(s).then(()=>{this.updateData("timesSave",s)});return}let a=!s.start_at||!s.end_at,o=`\u4FEE\u6539${this.taskDetail.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}\u65F6\u95F4`,n="\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8";a&&(o=`\u6E05\u9664${this.taskDetail.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}\u65F6\u95F4`,n="\u8BF7\u8F93\u5165\u6E05\u9664\u5907\u6CE8"),$A.modalInput({title:o,placeholder:n,okText:"\u786E\u5B9A",okType:a?"warning":"primary",onOk:r=>r?(s.desc=r,this.isExistTask(s).then(()=>{this.updateData("timesSave",s)}),!1):n});return;case"timesSave":t="times",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 l=this.$refs.desc.getContent();if(l==this.taskContent.replace(/\s+original-(width|height)="[^"]*"/g,""))return;if(!this.windowTouch||s==="force"){this.updateData("contentSave",{content:l});return}$A.modalConfirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u662F\u5426\u4FDD\u5B58\u7F16\u8F91\u5185\u5BB9\uFF1F",onOk:()=>{this.updateData("contentSave",{content:l})},onCancel:()=>{this.$refs.desc.updateContent(this.taskContent)}});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)})},isExistTask(t){return new Promise(s=>{if(!t.start_at||!t.end_at){s();return}this.updateParams=Object.assign({},t);const e=this.$refs.taskExistTipsRef;if(!e){s();return}e.isExistTask({taskid:this.taskDetail.id,userids:this.taskDetail.owner_userid,timerange:[t.start_at,t.end_at]},600).then(i=>{!i&&s()})})},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.newDateString(this.timeValue,"YYYY-MM-DD HH:mm");/\s+(00:00|23:59)$/.test(t[0])&&/\s+(00:00|23:59)$/.test(t[1])&&(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.newDateString(this.timeValue,"YYYY-MM-DD HH:mm");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.newDateString(this.timeValue,"YYYY-MM-DD HH:mm");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.dayjs().unix()+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({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${t.name} (${$A.bytesToSize(t.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})},showDropdown(t,s){const e=this.$refs.scroller.$el.getBoundingClientRect(),i=t.$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",t.visible&&t.hide(),setTimeout(()=>{t.show()},0)},showCisibleDropdown(t){var e;let s=null;t===null?s=(e=this.$refs.visibilityText)==null?void 0:e.getBoundingClientRect():s=t.target.getBoundingClientRect(),s!==null&&this.showDropdown(this.$refs.eDropdownRef,s)},showAtDropdown({target:t}){this.timeOpen=!1,this.showDropdown(this.$refs.eDeadlineRef,t.getBoundingClientRect())},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;case 3:this.updateData("times",{start_at:!1,end_at:!1});break}},onDelay(){this.$refs.formDelayTaskRef.validate(t=>{if(!t)return;const s=$A.dayjs(this.taskDetail.end_at).add(this.delayTaskForm.time,this.delayTaskForm.type);this.updateData("times",{start_at:this.taskDetail.start_at,end_at:s.format("YYYY-MM-DD HH:mm:ss"),desc:this.delayTaskForm.remark}),this.delayTaskShow=!1,this.delayTaskForm.remark="",$A.IDBSet("delayTaskForm",this.delayTaskForm)})},showFileDropdown(t,{target:s}){this.operationFile=t,this.showDropdown(this.$refs.eFileRef,s.getBoundingClientRect())},dropFile(t){switch(t){case 1:this.viewFile(this.operationFile);break;case 2:this.downFile(this.operationFile);break;case 3:$A.modalConfirm({title:"\u5220\u9664\u6587\u4EF6",content:`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u3010${this.operationFile.name}\u3011\u5417\uFF1F`,onOk:()=>{this.deleteFile(this.operationFile)}});break}},updateVisible(){this.updateData(["visibility","visibility_appointor"])}}},f={};var Q=d(Z,G,X,!1,tt,null,null,null);function tt(t){for(let s in f)this[s]=f[s]}var lt=function(){return Q.exports}();export{j as T,S as a,lt as b}; +import{m as k}from"./vuex.cc7cb26e.js";import{P as _,T as g}from"./ProjectLog.12dff91b.js";import{n as d,U as v,T as w}from"./app.879f8ead.js";import{C as b,D}from"./DialogWrapper.df01caa2.js";import{l as y}from"./le5le-store.b40f9152.js";import C from"./TEditor.dfcd2131.js";var T=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.onContinue}},[t._v(t._s(t.$L("\u5FFD\u7565\u5E76\u7EE7\u7EED")))])],1)],1)},x=[];const L={name:"TaskExistTips",props:{value:{type:Boolean,default:!1}},data(){return{show:!1,tipsTask:[]}},methods:{onContinue(){this.$emit("onContinue"),this.show=!1},getCutTime(t){let s=$A.dayjs(t.start_at),e=$A.dayjs(t.end_at),i="";return s.format("YYYY/MM/DD")==e.format("YYYY/MM/DD")?i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("HH:mm"):s.year()==e.year()?(i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("MM/DD HH:mm"),i=i.replace(/( 00:00| 23:59)/g,"")):(i=s.format("YYYY/MM/DD HH:mm")+e.format("YYYY/MM/DD HH:mm"),i=i.replace(/( 00:00| 23:59)/g,"")),i},isExistTask({userids:t,timerange:s,taskid:e},i){return new Promise(async a=>{if($A.isArray(s)&&(!s[0]||!s[1])){a(!1);return}this.$store.dispatch("call",{url:"project/task/easylists",data:{userid:t,timerange:s,taskid:e},method:"get",spinner:i}).then(({data:o})=>{if(o.data.length<=0){a(!1);return}this.show=!0;let n={};t.map(l=>{o.data.map(r=>{(r.task_user||[]).map(c=>c.owner?c.userid:0).indexOf(l)!==-1&&(n[l]||(n[l]=[]),n[l].push(r))})}),this.tipsTask=n,a(!0)})})}}},h={};var A=d(L,T,x,!1,M,null,null,null);function M(t){for(let s in h)this[s]=h[s]}var S=function(){return A.exports}(),I=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-editor",on:{click:t.onClickWrap,touchstart:t.onTouchstart}},[e("TEditor",{ref:"desc",attrs:{plugins:t.plugins,options:t.options,"option-full":t.optionFull,placeholder:t.placeholder,placeholderFull:t.placeholderFull,readOnly:t.windowTouch,readOnlyFull:!1,readOnlyImagePreview:!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"},[t.operateMenu.checked?e("DropdownItem",{nativeOn:{click:function(i){return t.onLiPreview.apply(null,arguments)}}},[t._v(t._s(t.$L(t.operateMenu.checked==="checked"?"\u6807\u8BB0\u672A\u9009":"\u6807\u8BB0\u5DF2\u9009")))]):t._e(),t.operateMenu.link?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.operateMenu.img?e("DropdownItem",{nativeOn:{click:function(i){return t.onImagePreview.apply(null,arguments)}}},[t._v(t._s(t.$L("\u67E5\u770B\u56FE\u7247")))]):t._e(),e("DropdownItem",{nativeOn:{click:function(i){return t.onEditing.apply(null,arguments)}}},[t._v(t._s(t.$L("\u7F16\u8F91\u63CF\u8FF0")))]),t.operateMenu.history?e("DropdownItem",{nativeOn:{click:function(i){return t.onHistory.apply(null,arguments)}}},[t._v(t._s(t.$L("\u5386\u53F2\u8BB0\u5F55")))]):t._e()],1)],1)],1)],1)},F=[];const E={name:"TEditorTask",components:{TEditor:C},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,operateHiddenTime:0,operateMenu:{target:null,checked:null,link:null,img:null,history:!0},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}this.operateMenu.history=typeof this.$listeners["on-history"]=="function"},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)},operateVisible(t){t||(this.operateHiddenTime=Date.now())}},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||Date.now()-this.operateHiddenTime<300||(t.stopPropagation(),this.operateVisible=!1,this.operateMenu.target=t.target,this.operateMenu.checked=null,t.target.tagName==="LI"&&t.target.parentNode.classList.contains("tox-checklist")&&(this.operateMenu.checked=t.target.classList.contains("tox-checklist--checked")?"checked":"unchecked"),this.operateMenu.link=t.target.tagName==="A"?t.target.href:null,this.operateMenu.img=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()}})},onLiPreview(){!this.operateMenu.checked||(this.operateMenu.checked==="checked"?this.operateMenu.target.classList.remove("tox-checklist--checked"):this.operateMenu.target.classList.add("tox-checklist--checked"),this.$emit("on-blur","force"))},onLinkPreview(){this.operateMenu.link&&window.open(this.operateMenu.link)},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.operateMenu.img));this.$store.dispatch("previewImage",{index:s,list:t})}}},u={};var O=d(E,I,F,!1,H,"4a5e9d48",null,null);function H(t){for(let s in u)this[s]=u[s]}var j=function(){return O.exports}(),Y=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},P=[];const z={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},m={};var N=d(z,Y,P,!1,U,null,null,null);function U(t){for(let s in m)this[s]=m[s]}var R=function(){return N.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}}}},p={};var K=d(W,B,V,!1,q,"43d23896",null,null);function q(t){for(let s in p)this[s]=p[s]}var J=function(){return K.exports}(),G=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.$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"},[t.getOwner.length===0?e("Alert",{staticClass:"receive-box",attrs:{type:"warning"}},[e("span",{staticClass:"receive-text"},[t._v(t._s(t.$L("\u8BE5\u4EFB\u52A1\u5C1A\u672A\u88AB\u9886\u53D6\uFF0C\u70B9\u51FB\u8FD9\u91CC")))]),e("EPopover",{staticClass:"receive-button",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(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(i){return t.onOwner(!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("Button",{attrs:{slot:"reference",loading:t.ownerLoad>0,size:"small",type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u9886\u53D6\u4EFB\u52A1")))])],1)],1):t._e(),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",i)}}}),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:t.tagColor(t.taskDetail)}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):t._e(),t.taskDetail.overdue?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",{on:{click:function(a){return t.showFileDropdown(i,a)}}},[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)))])],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",{attrs:{className:"item-subtask"}},[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}},[t._v(" "+t._s(t.$L("\u4EFB\u52A1\u5EF6\u671F"))+" ")]),e("EDropdownItem",{attrs:{command:2}},[t._v(" "+t._s(t.$L("\u4FEE\u6539\u65F6\u95F4"))+" ")]),e("EDropdownItem",{attrs:{command:3}},[t._v(" "+t._s(t.$L("\u6E05\u9664\u65F6\u95F4"))+" ")])],1)],1),e("EDropdown",{ref:"eFileRef",staticClass:"calculate-dropdown",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropFile}},[e("div",{staticClass:"calculate-content"}),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[t._v(" "+t._s(t.$L("\u67E5\u770B\u9644\u4EF6"))+" ")]),e("EDropdownItem",{attrs:{command:2}},[t._v(" "+t._s(t.$L("\u4E0B\u8F7D\u9644\u4EF6"))+" ")]),e("EDropdownItem",{staticClass:"task-calc-warn-text",attrs:{command:3}},[t._v(" "+t._s(t.$L("\u5220\u9664\u9644\u4EF6"))+" ")])],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:{onContinue:function(i){return t.updateData("timesSave",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",t._b({ref:"formDelayTaskRef",attrs:{model:t.delayTaskForm,rules:t.delayTaskRule},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[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[e("Select",{staticStyle:{width:"auto"},model:{value:t.delayTaskForm.type,callback:function(i){t.$set(t.delayTaskForm,"type",i)},expression:"delayTaskForm.type"}},[e("Option",{attrs:{value:"hour"}},[t._v(t._s(t.$L("\u5C0F\u65F6")))]),e("Option",{attrs:{value:"day"}},[t._v(t._s(t.$L("\u5929")))])],1)]},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"},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()},X=[];const Z={name:"TaskDetail",components:{TaskContentHistory:J,TEditorTask:j,UserSelect:v,TaskExistTips:S,ChatInput:b,TaskMenu:w,ProjectLog:_,DialogWrapper:D,TaskUpload:R,TaskPriority:g},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.dayjs().unix(),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:"\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,delayTaskForm:{type:"hour",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),$A.IDBJson("delayTaskForm").then(s=>{s.type&&this.$set(this.delayTaskForm,"type",s.type),s.time&&this.$set(this.delayTaskForm,"time",s.time)})},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix()},1e3),this.receiveTaskSubscribe=y.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...k(["systemConfig","cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId","formOptions"]),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.dayjs(t.start_at),e=$A.dayjs(t.end_at),i="";return s.format("YYYY/MM/DD")==e.format("YYYY/MM/DD")?i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("HH:mm"):s.year()==e.year()?(i=s.format("YYYY/MM/DD HH:mm")+" ~ "+e.format("MM/DD HH:mm"),i=i.replace(/( 00:00| 23:59)/g,"")):(i=s.format("YYYY/MM/DD HH:mm")+e.format("YYYY/MM/DD HH:mm"),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.dayjs(t).unix()-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(this.nowTime,t)},tagColor(t){return t.overdue?"red":t.today?"orange":"blue"},loopLabel(t){const s=this.loops.find(e=>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){this.isExistTask(s).then(()=>{this.updateData("timesSave",s)});return}if(Math.abs($A.dayjs(this.taskDetail.start_at).unix()-$A.dayjs(s.start_at).unix())<60&&Math.abs($A.dayjs(this.taskDetail.end_at).unix()-$A.dayjs(s.end_at).unix())<60)return;if(s.desc){this.isExistTask(s).then(()=>{this.updateData("timesSave",s)});return}let a=!s.start_at||!s.end_at,o=`\u4FEE\u6539${this.taskDetail.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}\u65F6\u95F4`,n="\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8";a&&(o=`\u6E05\u9664${this.taskDetail.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1"}\u65F6\u95F4`,n="\u8BF7\u8F93\u5165\u6E05\u9664\u5907\u6CE8"),$A.modalInput({title:o,placeholder:n,okText:"\u786E\u5B9A",okType:a?"warning":"primary",onOk:r=>r?(s.desc=r,this.isExistTask(s).then(()=>{this.updateData("timesSave",s)}),!1):n});return;case"timesSave":t="times",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 l=this.$refs.desc.getContent();if(l==this.taskContent.replace(/\s+original-(width|height)="[^"]*"/g,""))return;if(!this.windowTouch||s==="force"){this.updateData("contentSave",{content:l});return}$A.modalConfirm({title:"\u6E29\u99A8\u63D0\u793A",content:"\u662F\u5426\u4FDD\u5B58\u7F16\u8F91\u5185\u5BB9\uFF1F",onOk:()=>{this.updateData("contentSave",{content:l})},onCancel:()=>{this.$refs.desc.updateContent(this.taskContent)}});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)})},isExistTask(t){return new Promise(s=>{if(!t.start_at||!t.end_at){s();return}this.updateParams=Object.assign({},t);const e=this.$refs.taskExistTipsRef;if(!e){s();return}e.isExistTask({taskid:this.taskDetail.id,userids:this.taskDetail.owner_userid,timerange:[t.start_at,t.end_at]},600).then(i=>{!i&&s()})})},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.newDateString(this.timeValue,"YYYY-MM-DD HH:mm");/\s+(00:00|23:59)$/.test(t[0])&&/\s+(00:00|23:59)$/.test(t[1])&&(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.newDateString(this.timeValue,"YYYY-MM-DD HH:mm");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.newDateString(this.timeValue,"YYYY-MM-DD HH:mm");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.dayjs().unix()+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({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${t.name} (${$A.bytesToSize(t.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})},showDropdown(t,s){const e=this.$refs.scroller.$el.getBoundingClientRect(),i=t.$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",t.visible&&t.hide(),setTimeout(()=>{t.show()},0)},showCisibleDropdown(t){var e;let s=null;t===null?s=(e=this.$refs.visibilityText)==null?void 0:e.getBoundingClientRect():s=t.target.getBoundingClientRect(),s!==null&&this.showDropdown(this.$refs.eDropdownRef,s)},showAtDropdown({target:t}){this.timeOpen=!1,this.showDropdown(this.$refs.eDeadlineRef,t.getBoundingClientRect())},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;case 3:this.updateData("times",{start_at:!1,end_at:!1});break}},onDelay(){this.$refs.formDelayTaskRef.validate(t=>{if(!t)return;const s=$A.dayjs(this.taskDetail.end_at).add(this.delayTaskForm.time,this.delayTaskForm.type);this.updateData("times",{start_at:this.taskDetail.start_at,end_at:s.format("YYYY-MM-DD HH:mm:ss"),desc:this.delayTaskForm.remark}),this.delayTaskShow=!1,this.delayTaskForm.remark="",$A.IDBSet("delayTaskForm",this.delayTaskForm)})},showFileDropdown(t,{target:s}){this.operationFile=t,this.showDropdown(this.$refs.eFileRef,s.getBoundingClientRect())},dropFile(t){switch(t){case 1:this.viewFile(this.operationFile);break;case 2:this.downFile(this.operationFile);break;case 3:$A.modalConfirm({title:"\u5220\u9664\u6587\u4EF6",content:`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u3010${this.operationFile.name}\u3011\u5417\uFF1F`,onOk:()=>{this.deleteFile(this.operationFile)}});break}},updateVisible(){this.updateData(["visibility","visibility_appointor"])}}},f={};var Q=d(Z,G,X,!1,tt,null,null,null);function tt(t){for(let s in f)this[s]=f[s]}var lt=function(){return Q.exports}();export{j as T,S as a,lt as b}; diff --git a/public/js/build/app.3d8c6f80.css b/public/js/build/app.5c885db1.css similarity index 50% rename from public/js/build/app.3d8c6f80.css rename to public/js/build/app.5c885db1.css index 1010a5166..b99cbdebf 100644 --- a/public/js/build/app.3d8c6f80.css +++ b/public/js/build/app.5c885db1.css @@ -1,7 +1,7 @@ -@charset "UTF-8";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-25c233b1]{position:absolute;width:100%;min-height:100%;transition:all .3s cubic-bezier(.55,0,.1,1)}/*! +@charset "UTF-8";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-7a5230a8]{position:absolute;width:100%;min-height:100%;transition:all .3s cubic-bezier(.55,0,.1,1)}/*! * Quill Editor v2.0.0-rc1 * 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.ac5fcd9b.woff2) format("woff2"),url(/js/build/iconfont.ded6d007.woff) format("woff"),url(/js/build/iconfont.76ab61a5.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{display:flex;align-items:center;height:76px;flex-grow:0;flex-shrink:0;background-color:#f9fafb;padding-left:12px;padding-top:26px;overflow:hidden}.common-gantt .gantt-left .gantt-title .gantt-title-text{flex:1;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.common-gantt .gantt-left .gantt-title .gantt-title-right{flex-shrink:0}.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-size{position:absolute;top:76px;left:0;z-index:2;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:8px 14px;background:rgba(255,255,255,.502);transition:all .25s;box-shadow:0 0 #0000;border-bottom-right-radius:9px}.common-gantt .gantt-right .gantt-size:hover{box-shadow:0 0 6px #00000026;background:#fff}.common-gantt .gantt-right .gantt-size>i{font-size:20px}.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;list-style:none;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{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:20px;max-height:520px;overflow:auto}.browse-list .browse-item{display:flex;flex-direction:column;align-items:center;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,.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title,.common-user-select-modal .ivu-modal .user-modal-header .user-modal-submit{height:100%;display:flex;justify-content:center;align-items:center;line-height:normal}.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}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title>span{text-align:center;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}.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{font-size:20px;margin-bottom:10px}.report-detail .report-content table{width:100%;border-collapse:collapse;border-spacing:0}.report-detail .report-content table th,.report-detail .report-content table td{line-height:20px;padding:10px;border:1px solid #e8e8e8}.report-detail .report-content table th{background:#f8f8f8;padding:10px 16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.report-detail .report-content table td{background:#fff;text-align:left}.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;flex-wrap:wrap;align-items:flex-start;line-height:34px}.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 .vuepress-markdown-body{padding:0!important;font-size:14px}.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;padding-right:24px}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}body .vuepress-markdown-body h1,body .vuepress-markdown-body h2{padding-bottom:.8rem;border-bottom:1px solid #eaecef}*[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;display:flex;flex-wrap:wrap;gap:4px 2px}.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-body .dialog-wrapper.inde-list{border-radius:0}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}.block-setting-box{position:relative;padding:0 24px 4px;margin:8px 0 16px}.block-setting-box:before{content:"";position:absolute;top:17px;left:0;right:0;bottom:0;border:1px solid #eeeeee;border-radius:8px;transition:box-shadow .3s;pointer-events:none}.block-setting-box:hover:before{box-shadow:0 0 10px #e6ecfa}.block-setting-box h3{position:sticky;top:0;left:24px;z-index:9;line-height:32px;box-sizing:content-box;padding:0 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500}.block-setting-box .form-box{margin-top:24px;overflow:auto}.block-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.block-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.block-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.block-setting-space{height:8px}.form-label-weight-bold .ivu-form-item-label{font-weight:500}.confirm-popover{max-width:200px}.confirm-popover .buttons{text-align:right;margin-top:12px}.confirm-popover .buttons .ivu-btn-small{font-size:12px}.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-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-time,.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-time,.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-time{margin-bottom:-14px}.page-dashboard .dashboard-wrapper .dashboard-time>span{margin-right:4px}.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;display:flex;align-items:center;justify-content:space-between}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title>i{font-weight:400;opacity:.8;transform:rotate(180deg);transition:transform .3s}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title.title-close>i{opacity:1;transform:rotate(90deg)}.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.ul-hidden{margin:0;max-height:0}.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.today{color:#f90}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.overdue{color:#ed4014}.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-time,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:12px}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:20px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .scrollbar-content{overflow:visible}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .scrollbar-content>ul:last-child{margin-bottom:0}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin-bottom:20px;-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul.ul-hidden{margin-bottom:0}.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:0 10px 10px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-menu{display:flex;align-items:center;justify-content:center;line-height:1;color:#888;cursor:pointer;width:28px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-menu .nav-icon{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-menu .nav-icon>i{font-size:16px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list{flex:1;flex-shrink:0;display:flex;align-items:center;flex-wrap:nowrap;overflow-y:hidden;overflow-x:auto;margin-top:-12px;padding-top:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list::-webkit-scrollbar{display:none}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item{flex:1;flex-shrink:0;display:flex;align-items:center;justify-content:center;line-height:1;padding:2px 12px;color:#888;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item .nav-title{position:relative;max-width:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item .nav-title>em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item .nav-title .nav-num{position:absolute;top:-12px;right:-8px;transform:scale(.7)}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item.active{color:#555;font-weight:500}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item: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;margin-right:2px;height:34px;line-height:34px;position:sticky;top:0;z-index:3;background:#ffffff}.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;position:relative}.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 ul.contacts>li>ul>li:before{display:none;position:absolute;content:"";top:0;left:-24px;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li.operate:before{display:block}.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 .nav-item{display:flex;align-items:center;min-width:80px}.messenger-nav-menu .nav-item.active .nav-title{font-weight:700}.messenger-nav-menu .nav-item .nav-title{flex:1;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}.messenger-nav-menu .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-nav .nav-menu{width:46px}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item{min-width:25%}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-select .messenger-list ul.contacts>li.loaded{height:58px}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li{height:58px}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .avatar{width:36px;height:36px}body.window-portrait .page-messenger .messenger-wrapper .messenger-msg{display:none}body.window-portrait .messenger-nav-menu .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-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}.setting-head{display:flex;align-items:center;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.setting-head .setting-titbox{flex:1;margin-bottom:16px}.setting-head .setting-titbox .setting-title{display:flex;align-items:center}.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}.setting-head .setting-titbox .setting-title .setting-more{display:none}.setting-box{flex:1;height:0;display:flex;padding-bottom:16px}.setting-box .mobile-nav-box{display:none!important}.setting-box .setting-menu{width:200px;flex-shrink:0;border-right:1px solid #F4F4F5;overflow:auto}.setting-box .setting-menu>ul{padding:12px 0 0 32px}.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}.setting-box .setting-menu>ul>li.flex{display:flex;align-items:center}.setting-box .setting-menu>ul>li .ivu-badge{transform:scale(.8);transform-origin:right center}.setting-box .setting-menu>ul>li.active,.setting-box .setting-menu>ul>li:hover{background-color:#f4f5f7}.setting-box .setting-menu>ul>li.divided{position:relative;margin-top:10px;padding-top:10px}.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}.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}.setting-box .setting-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.setting-box .setting-content .setting-content-title{font-size:20px;font-weight:500;padding:12px 32px}.setting-box .setting-content .setting-content-view{flex:1;position:relative}.setting-box .setting-content .setting-content-view .setting-router-view{padding:24px 40px}.setting-item .ivu-input,.setting-item .ivu-select-default{max-width:460px}.setting-item .ivu-form{overflow:auto}.setting-item .setting-color,.setting-item .setting-template{min-width:400px;max-width:600px;margin-bottom:12px}.setting-item .setting-color>div,.setting-item .setting-template>div{text-align:center;padding-right:12px}.setting-item .setting-color>div:first-child,.setting-item .setting-template>div:first-child{text-align:left}.setting-item .setting-color>div:last-child,.setting-item .setting-template>div:last-child{padding-right:0;width:60px;flex:auto;flex-shrink:0}.setting-item .setting-color>div .ivu-color-picker,.setting-item .setting-template>div .ivu-color-picker{width:100%}.setting-item .setting-color .information,.setting-item .setting-template .information{color:#909399}.setting-item .setting-color.color-label-box .el-tooltip{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.setting-item .setting-template>div{flex-shrink:0;text-align:left}.setting-item .setting-template>div:last-child{flex:1;width:auto;max-width:none}.setting-item .setting-footer{display:flex;align-items:center}.setting-item .setting-footer>button{display:flex;align-items:center;justify-content:center;height:34px;line-height:32px;min-width:94px}.setting-item .setting-footer>button>span{margin-left:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.setting-item .setting-auto-day{display:block;width:110px;margin-top:12px;line-height:32px;margin-bottom:-10px}.setting-item .setting-checkin-load{margin-bottom:12px}.setting-item .setting-checkin-load .common-loading{width:20px;height:20px}.setting-item .setting-checkin-lately>li{padding-bottom:8px}.setting-item .setting-checkin-lately>li .time{font-weight:700}.setting-item .setting-checkin-lately>li .content{font-size:13px;opacity:.7}.setting-item .setting-checkin-row{overflow:auto}.setting-item .setting-checkin-button{padding-bottom:4px;cursor:pointer;color:#2b85e4}.setting-item .setting-checkin-button:hover{text-decoration:underline}.setting-item.submit{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding:0!important}.setting-item.submit .ivu-form{flex:1;padding:24px 40px 0;overflow:auto}.setting-item.submit .ivu-tabs{flex:1;padding:16px 32px 0;display:flex;flex-direction:column}.setting-item.submit .ivu-tabs .ivu-tabs-content{flex:1;height:0}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane{position:relative}.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}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding:8px 12px}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0 -32px}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data{margin-top:6px}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p:hover{text-decoration:underline}.setting-item.submit .setting-footer{flex-shrink:0;position:static;padding:16px 24px 0;border-top:1px solid #F4F4F5}.setting-item.submit .setting-input,.setting-item.submit .setting-send-input{max-width:460px}.setting-item.submit .setting-send-input .ivu-input-group-append{background-color:#ededed!important;border:1px solid #EDEDED!important;color:#999!important}.setting-item.submit .setting-send-input .ivu-input-group-append:before{background:#EDEDED}.setting-item.submit .setting-button{margin-left:8px}body.window-portrait .page-setting{background-color:#f8f8f8}body.window-portrait .setting-head{display:none}body.window-portrait .setting-box{position:relative}body.window-portrait .setting-box .mobile-nav-box{display:flex!important;position:sticky;top:0;z-index:3;background-color:#f8f8f8}body.window-portrait .setting-box .setting-menu{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}body.window-portrait .setting-box .setting-menu>ul{padding:0 0 20px}body.window-portrait .setting-box .setting-menu>ul>li{position:relative;padding:0 32px;line-height:48px;margin:0;background-color:#fff}body.window-portrait .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 .setting-box .setting-menu>ul>li:first-child:after{display:none}body.window-portrait .setting-box .setting-menu>ul>li.divided{margin-top:20px}body.window-portrait .setting-box .setting-menu>ul>li.divided:before,body.window-portrait .setting-box .setting-menu>ul>li.divided:after{display:none}body.window-portrait .setting-box .setting-content{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;background-color:#fff}body.window-portrait .setting-box .setting-content .setting-content-title{display:none}body.window-portrait .setting-item .setting-footer>button{flex:1;height:40px;line-height:38px}body.window-portrait .setting-item.submit .ivu-tabs{padding:0}body.window-portrait .setting-item.submit .ivu-tabs .ivu-tabs-bar{margin-bottom:0}body.window-portrait .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding-top:16px}body.window-portrait .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0}body.window-portrait .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;height:100%;border-radius:10px;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:1}.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.complaint{background-image:url(/js/build/complaint.a2ebcfe5.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;overflow:auto;height:100%;display:flex;flex-direction:column;max-width:100vw}.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;padding-left:8px}@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-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-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-item .ivu-form,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .ivu-form{padding:8px 30px;overflow:auto;flex:1}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template{margin-bottom:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template>div,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template>div{padding-right:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template>div:last-child,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template>div:last-child{padding-right:0}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .export-data>p,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-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-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-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-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-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 p.btn{-webkit-line-clamp:1}.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%}.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>.ql-ui:before{color:#08f}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=bullet]>.ql-ui:before{font-weight:900}.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";color:#777}.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 button.ql-active{position:relative;background:#3d3d3d;border-radius:6px}.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 24px 0!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{display:flex;flex-direction:column;height:100%}.chat-input-full-input .chat-input-box .chat-input-wrapper{flex:1;height:0}.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}.chat-input-full-input .chat-input-box .chat-input-menu{display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;margin:0 -12px}.chat-input-full-input .chat-input-box .chat-input-menu.activation>li{opacity:1;cursor:pointer}.chat-input-full-input .chat-input-box .chat-input-menu.activation>li:active{background-color:#eee}.chat-input-full-input .chat-input-box .chat-input-menu>li{flex:1;width:0;height:60px;max-width:60px;display:flex;justify-content:center;align-items:center;list-style:none;opacity:.8;cursor:not-allowed;border-radius:8px}.chat-input-full-input .chat-input-box .chat-input-menu>li>i{color:#555;font-size:16px}@media screen and (max-width: 320px){.chat-input-full-input .chat-input-box .chat-input-menu>li{height:52px}.chat-input-full-input .chat-input-box .chat-input-menu>li>i{font-size:14px}}.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;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.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>span{padding-right:4px}.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,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.record,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.word-chain{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.dot{position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head.dot:after{content:"";position:absolute;top:50%;right:-16px;width:8px;height:8px;border-radius:50%;background-color:#ed4014;transform:translateY(-50%)}.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{display:flex;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{flex-shrink:0;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 ol li[data-list=unchecked]:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li[data-list=unchecked]:before{color:#777}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li .mention,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li .mention{display:contents}.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);transform-origin:left top}.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-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-video{display:flex;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video>img,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video>video{width:100%;height:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video .file-play{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#ffffff1a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video .file-play .play-icon{border:2px solid #a0a0a0;border-radius:50%;width:42px;height:42px;line-height:42px;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video .file-play .play-icon>i{color:#a0a0a0;font-size:30px;padding-left:4px;transform:scaleY(.8)}.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;flex-direction:column;align-items:flex-start;color:#303133;max-width:100%}.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;max-width:100%;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-template{color:#303133;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-template .warning-color{color:#ff7070}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-template .mark-color{color:#84c56a}.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:300px}.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-content .open-approve-details{width:260px;display:inline-block;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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 .open-approve-details .cause>b{display:inline-block;margin-bottom:5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>p{display:block;margin-bottom:3px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>p:first-child{padding:15px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>span{display:inline-block;margin-bottom:3px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>span:first-child{padding:15px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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 .open-approve-details .btn-raw>button.ivu-btn{flex:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .btn-raw>button.ivu-btn-primary{margin-right:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .btn-raw>button.ivu-btn-small{height:32px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-divider{width:100%;display:flex;align-items:center;justify-content:center;margin:6px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-divider>span{flex:1;height:1px;background-color:#78787833;transform:scaleY(.5);min-width:18px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-divider .divider-label{font-size:12px;padding:0 8px;opacity:.6}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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 .mention>span{margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.task,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.okr{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.file,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention[data-denotation-char="~"]{color:#436ff6!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.user{white-space:nowrap}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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-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.dot:after{left:-16px;right:unset}.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-record{align-items:flex-end;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-template{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-template .mark-color{color:#303133}.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-content .open-approve-details .ivu-btn-grey{background-color:#efefef;border-color:#f3f3f3}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-divider>span{background-color:#fff3}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .mention{color:#303133}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .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-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.record{width:auto}.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{flex:1;width:0;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 .forward-text-tip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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;display:flex;align-items:center}.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 .read-title>span.space,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title>span.space{flex:1;height:1px}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title>button,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title>button{transform:scale(.96);transform-origin:right center}.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{flex:1;width:0;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.pointer-mouse .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.pointer-mouse .dialog-head .dialog-content a,body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.pointer-mouse .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{flex-shrink:0;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 .vmeditor-wrapper,.file-content .content-body .vmpreview-wrapper,.file-preview .content-body .vmeditor-wrapper,.file-preview .content-body .vmpreview-wrapper{position:absolute;top:0;left:0;width:100%;height:100%}.file-content .content-body .vmpreview-wrapper,.file-preview .content-body .vmpreview-wrapper{overflow:auto}.file-content .content-body .teditor-wrapper,.file-preview .content-body .teditor-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 .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}@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{padding:0 16px}.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;max-width:calc(100% - 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;max-width:100%}.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 .subtitle-value{padding-left:12px;color:#0000005c}.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{display:flex;margin-left:12px;padding-bottom:4px}.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;cursor:pointer;opacity:.6}.project-log .logs-activity>li .log-task>em:hover{opacity:1;color:#84c56a}.project-log .logs-activity>li .log-bottom{width:100%;height:6px}.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.today,.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{color:#fff}.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.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.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.today,.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{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.today{font-weight:500;background-color:#f90;border-color:#f90}.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-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 .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;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}body.window-portrait .task-add .adaption>button{padding:0}.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}@media (max-width: 320px){.task-detail .task-info .head .nav{margin-right:20px}.task-detail .task-info .head .function{display:none}}.task-detail .task-info .scroller{margin-right:-5px}.task-detail .task-info .scroller .scrollbar-content{padding:0 5px}.task-detail .task-info .scroller .receive-box{display:flex;justify-content:center;align-items:center;margin-top:18px;padding:8px 16px;line-height:18px}.task-detail .task-info .scroller .receive-box .receive-text{padding-right:8px;vertical-align:middle}.task-detail .task-info .scroller .receive-box .receive-button{display:inline-block;margin:4px 0}.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{cursor:pointer;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:hover .file-name{color:#303133}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-size{color:#606266}.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.today{font-weight:500;color:#f90}.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 .clock{margin:4px 2px 0;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 .scroller .calculate-dropdown .calculate-text{color:#ff7070}.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-loop>li{text-align:center}.task-calc-warn-text{color:#ff7070!important}body.window-portrait .task-detail .task-info .scroller .scrollbar-content{overflow-x:auto}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask{display:flex;flex-direction:column}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content{margin-left:0!important}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content>ul{margin-left:0}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content.nosub{margin-top:14px}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content.nosub>li .add-input,body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content.nosub>li .add-button{margin-top:-2px}body.window-portrait .task-detail .task-info .scroller .items .item-content.nosub{margin-top:14px}.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;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}.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;font-weight:400}.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-full-calendar-popup-detail .tui-full-calendar-content{line-height:normal}.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-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}.dialog-complaint-info{display:flex;flex-direction:column;position:absolute;top:10px;left:0;right:0;bottom:0}.dialog-complaint-info .group-complaint-title{margin:18px 24px 0;color:#303133}.dialog-complaint-info .group-complaint-title.required:after{content:"*";color:#e61f1f;font-size:22px}.dialog-complaint-info .group-complaint-title.underline{padding-bottom:10px;border-bottom:1px solid #e8eaec;text-decoration:none}.dialog-complaint-info .group-complaint-warp{height:calc(100% - 107px);overflow:auto}.dialog-complaint-info .group-complaint-list{margin:0 24px}.dialog-complaint-info .group-complaint-list .ivu-list-item{border-bottom:1px solid #f9f9f9;padding:0}.dialog-complaint-info .group-complaint-list .ivu-list-item:active{background-color:#fbfbfb}.dialog-complaint-info .group-complaint-list .ivu-list-item .text{width:calc(100% - 32px);height:100%;padding:12px 0}.dialog-complaint-info .group-complaint-reason{margin:12px 24px 18px;padding:auto}.dialog-complaint-info .group-complaint-img{margin:12px 24px 18px}.dialog-complaint-info .group-info-button{display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-complaint-info .group-info-button>button{margin:0 8px}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.today{color:#f90;background-color:transparent}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-table .project-table-body .task-row>div.row-time .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 .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,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-template{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 .open-approve-details .ivu-btn-primary{background-color:#d34521;border-color:#d34521}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .open-approve-details .ivu-btn-grey{background-color:#9e9e9e;border-color:#969696}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .open-approve-details .ivu-btn-grey:hover{background-color:#959595;border-color:#959595}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .mention{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .mention.file,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .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{color:#000}body.dark-mode-reverse .chat-emoji-wrapper .chat-emoji-box ul.emoji>li:active{background-color:#1f1f1f}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} + */.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.ac5fcd9b.woff2) format("woff2"),url(/js/build/iconfont.ded6d007.woff) format("woff"),url(/js/build/iconfont.76ab61a5.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{display:flex;align-items:center;height:76px;flex-grow:0;flex-shrink:0;background-color:#f9fafb;padding-left:12px;padding-top:26px;overflow:hidden}.common-gantt .gantt-left .gantt-title .gantt-title-text{flex:1;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.common-gantt .gantt-left .gantt-title .gantt-title-right{flex-shrink:0}.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-size{position:absolute;top:76px;left:0;z-index:2;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:8px 14px;background:rgba(255,255,255,.502);transition:all .25s;box-shadow:0 0 #0000;border-bottom-right-radius:9px}.common-gantt .gantt-right .gantt-size:hover{box-shadow:0 0 6px #00000026;background:#fff}.common-gantt .gantt-right .gantt-size>i{font-size:20px}.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;list-style:none;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{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:20px;max-height:520px;overflow:auto}.browse-list .browse-item{display:flex;flex-direction:column;align-items:center;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,.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title,.common-user-select-modal .ivu-modal .user-modal-header .user-modal-submit{height:100%;display:flex;justify-content:center;align-items:center;line-height:normal}.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}.common-user-select-modal .ivu-modal .user-modal-header .user-modal-title>span{text-align:center;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}.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{font-size:20px;margin-bottom:10px}.report-detail .report-content table{width:100%;border-collapse:collapse;border-spacing:0}.report-detail .report-content table th,.report-detail .report-content table td{line-height:20px;padding:10px;border:1px solid #e8e8e8}.report-detail .report-content table th{background:#f8f8f8;padding:10px 16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.report-detail .report-content table td{background:#fff;text-align:left}.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;flex-wrap:wrap;align-items:flex-start;line-height:34px}.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 .vuepress-markdown-body{padding:0!important;font-size:14px}.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;padding-right:24px}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}body .vuepress-markdown-body h1,body .vuepress-markdown-body h2{padding-bottom:.8rem;border-bottom:1px solid #eaecef}*[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;display:flex;flex-wrap:wrap;gap:4px 2px}.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-body .dialog-wrapper.inde-list{border-radius:0}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}.block-setting-box{position:relative;padding:0 24px 4px;margin:8px 0 16px}.block-setting-box:before{content:"";position:absolute;top:17px;left:0;right:0;bottom:0;border:1px solid #eeeeee;border-radius:8px;transition:box-shadow .3s;pointer-events:none}.block-setting-box:hover:before{box-shadow:0 0 10px #e6ecfa}.block-setting-box h3{position:sticky;top:0;left:24px;z-index:9;line-height:32px;box-sizing:content-box;padding:0 10px;border-radius:4px;display:inline-block;background-color:#fff;border:1px solid #eeeeee;font-size:15px;font-weight:500}.block-setting-box .form-box{margin-top:24px;overflow:auto}.block-setting-box .ivu-form-item .ivu-form{padding:12px 0 0}.block-setting-box .ivu-form-item .ivu-form .ivu-form-item{margin-bottom:8px}.block-setting-box .ivu-form-item .ivu-form .ivu-form-item .ivu-form-item-content{display:flex;align-items:center}.block-setting-space{height:8px}.form-label-weight-bold .ivu-form-item-label{font-weight:500}.confirm-popover{max-width:200px}.confirm-popover .buttons{text-align:right;margin-top:12px}.confirm-popover .buttons .ivu-btn-small{font-size:12px}.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-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-time,.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-time,.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-time{margin-bottom:-14px}.page-dashboard .dashboard-wrapper .dashboard-time>span{margin-right:4px}.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;display:flex;align-items:center;justify-content:space-between}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title>i{font-weight:400;opacity:.8;transform:rotate(180deg);transition:transform .3s}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-title.title-close>i{opacity:1;transform:rotate(90deg)}.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.ul-hidden{margin:0;max-height:0}.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.today{color:#f90}.page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul>li .item-icon.overdue{color:#ed4014}.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-time,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:12px}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:20px}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .scrollbar-content{overflow:visible}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .scrollbar-content>ul:last-child{margin-bottom:0}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul{margin-bottom:20px;-webkit-user-select:none;-moz-user-select:none;user-select:none}body.window-portrait .page-dashboard .dashboard-wrapper .dashboard-list .dashboard-ul.ul-hidden{margin-bottom:0}.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:0 10px 10px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-menu{display:flex;align-items:center;justify-content:center;line-height:1;color:#888;cursor:pointer;width:28px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-menu .nav-icon{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-menu .nav-icon>i{font-size:16px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list{flex:1;flex-shrink:0;display:flex;align-items:center;flex-wrap:nowrap;overflow-y:hidden;overflow-x:auto;margin-top:-12px;padding-top:12px}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list::-webkit-scrollbar{display:none}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item{flex:1;flex-shrink:0;display:flex;align-items:center;justify-content:center;line-height:1;padding:2px 12px;color:#888;cursor:pointer}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item .nav-title{position:relative;max-width:100%;display:flex;align-items:center;justify-content:center}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item .nav-title>em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item .nav-title .nav-num{position:absolute;top:-12px;right:-8px;transform:scale(.7)}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item.active{color:#555;font-weight:500}.page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item: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;margin-right:2px;height:34px;line-height:34px;position:sticky;top:0;z-index:3;background:#ffffff}.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;position:relative}.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 ul.contacts>li>ul>li:before{display:none;position:absolute;content:"";top:0;left:-24px;right:0;bottom:0;z-index:1;border:2px solid #84C56A;pointer-events:none}.page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li.operate:before{display:block}.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 .nav-item{display:flex;align-items:center;min-width:80px}.messenger-nav-menu .nav-item.active .nav-title{font-weight:700}.messenger-nav-menu .nav-item .nav-title{flex:1;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}.messenger-nav-menu .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-nav .nav-menu{width:46px}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-nav .nav-list .nav-item{min-width:25%}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-select .messenger-list ul.contacts>li.loaded{height:58px}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li{height:58px}body.window-portrait .page-messenger .messenger-wrapper .messenger-select .messenger-list ul.contacts>li>ul>li .avatar{width:36px;height:36px}body.window-portrait .page-messenger .messenger-wrapper .messenger-msg{display:none}body.window-portrait .messenger-nav-menu .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-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}.setting-head{display:flex;align-items:center;margin:32px 32px 16px;border-bottom:1px solid #F4F4F5}.setting-head .setting-titbox{flex:1;margin-bottom:16px}.setting-head .setting-titbox .setting-title{display:flex;align-items:center}.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}.setting-head .setting-titbox .setting-title .setting-more{display:none}.setting-box{flex:1;height:0;display:flex;padding-bottom:16px}.setting-box .mobile-nav-box{display:none!important}.setting-box .setting-menu{width:200px;flex-shrink:0;border-right:1px solid #F4F4F5;overflow:auto}.setting-box .setting-menu>ul{padding:12px 0 0 32px}.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}.setting-box .setting-menu>ul>li.flex{display:flex;align-items:center}.setting-box .setting-menu>ul>li .ivu-badge{transform:scale(.8);transform-origin:right center}.setting-box .setting-menu>ul>li.active,.setting-box .setting-menu>ul>li:hover{background-color:#f4f5f7}.setting-box .setting-menu>ul>li.divided{position:relative;margin-top:10px;padding-top:10px}.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}.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}.setting-box .setting-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.setting-box .setting-content .setting-content-title{font-size:20px;font-weight:500;padding:12px 32px}.setting-box .setting-content .setting-content-view{flex:1;position:relative}.setting-box .setting-content .setting-content-view .setting-router-view{padding:24px 40px}.setting-item .ivu-input,.setting-item .ivu-select-default{max-width:460px}.setting-item .ivu-form{overflow:auto}.setting-item .setting-color,.setting-item .setting-template{min-width:400px;max-width:600px;margin-bottom:12px}.setting-item .setting-color>div,.setting-item .setting-template>div{text-align:center;padding-right:12px}.setting-item .setting-color>div:first-child,.setting-item .setting-template>div:first-child{text-align:left}.setting-item .setting-color>div:last-child,.setting-item .setting-template>div:last-child{padding-right:0;width:60px;flex:auto;flex-shrink:0}.setting-item .setting-color>div .ivu-color-picker,.setting-item .setting-template>div .ivu-color-picker{width:100%}.setting-item .setting-color .information,.setting-item .setting-template .information{color:#909399}.setting-item .setting-color.color-label-box .el-tooltip{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.setting-item .setting-template>div{flex-shrink:0;text-align:left}.setting-item .setting-template>div:last-child{flex:1;width:auto;max-width:none}.setting-item .setting-footer{display:flex;align-items:center}.setting-item .setting-footer>button{display:flex;align-items:center;justify-content:center;height:34px;line-height:32px;min-width:94px}.setting-item .setting-footer>button>span{margin-left:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.setting-item .setting-auto-day{display:block;width:110px;margin-top:12px;line-height:32px;margin-bottom:-10px}.setting-item .setting-checkin-load{margin-bottom:12px}.setting-item .setting-checkin-load .common-loading{width:20px;height:20px}.setting-item .setting-checkin-lately>li{padding-bottom:8px}.setting-item .setting-checkin-lately>li .time{font-weight:700}.setting-item .setting-checkin-lately>li .content{font-size:13px;opacity:.7}.setting-item .setting-checkin-row{overflow:auto}.setting-item .setting-checkin-button{padding-bottom:4px;cursor:pointer;color:#2b85e4}.setting-item .setting-checkin-button:hover{text-decoration:underline}.setting-item.submit{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;padding:0!important}.setting-item.submit .ivu-form{flex:1;padding:24px 40px 0;overflow:auto}.setting-item.submit .ivu-tabs{flex:1;padding:16px 32px 0;display:flex;flex-direction:column}.setting-item.submit .ivu-tabs .ivu-tabs-content{flex:1;height:0}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane{position:relative}.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}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding:8px 12px}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0 -32px}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data{margin-top:6px}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .export-data>p:hover{text-decoration:underline}.setting-item.submit .setting-footer{flex-shrink:0;position:static;padding:16px 24px 0;border-top:1px solid #F4F4F5}.setting-item.submit .setting-input,.setting-item.submit .setting-send-input{max-width:460px}.setting-item.submit .setting-send-input .ivu-input-group-append{background-color:#ededed!important;border:1px solid #EDEDED!important;color:#999!important}.setting-item.submit .setting-send-input .ivu-input-group-append:before{background:#EDEDED}.setting-item.submit .setting-button{margin-left:8px}body.window-portrait .page-setting{background-color:#f8f8f8}body.window-portrait .setting-head{display:none}body.window-portrait .setting-box{position:relative}body.window-portrait .setting-box .mobile-nav-box{display:flex!important;position:sticky;top:0;z-index:3;background-color:#f8f8f8}body.window-portrait .setting-box .setting-menu{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}body.window-portrait .setting-box .setting-menu>ul{padding:0 0 20px}body.window-portrait .setting-box .setting-menu>ul>li{position:relative;padding:0 32px;line-height:48px;margin:0;background-color:#fff}body.window-portrait .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 .setting-box .setting-menu>ul>li:first-child:after{display:none}body.window-portrait .setting-box .setting-menu>ul>li.divided{margin-top:20px}body.window-portrait .setting-box .setting-menu>ul>li.divided:before,body.window-portrait .setting-box .setting-menu>ul>li.divided:after{display:none}body.window-portrait .setting-box .setting-content{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;background-color:#fff}body.window-portrait .setting-box .setting-content .setting-content-title{display:none}body.window-portrait .setting-item .setting-footer>button{flex:1;height:40px;line-height:38px}body.window-portrait .setting-item.submit .ivu-tabs{padding:0}body.window-portrait .setting-item.submit .ivu-tabs .ivu-tabs-bar{margin-bottom:0}body.window-portrait .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .ivu-form{padding-top:16px}body.window-portrait .setting-item.submit .ivu-tabs .ivu-tabs-content .ivu-tabs-tabpane .setting-component-item .setting-footer{margin:0}body.window-portrait .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;height:100%;border-radius:10px;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-avatar{display:flex;justify-content:flex-start;align-items:flex-start}.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:1}.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.complaint{background-image:url(/js/build/complaint.a2ebcfe5.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;overflow:auto;height:100%;display:flex;flex-direction:column;max-width:100vw}.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;padding-left:8px}@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-item,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-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-item .ivu-form,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .ivu-form{padding:8px 30px;overflow:auto;flex:1}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template{margin-bottom:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template>div,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template>div{padding-right:12px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-template>div:last-child,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-template>div:last-child{padding-right:0}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .export-data>p,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .export-data>p{cursor:pointer;color:#2b85e4}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-item .setting-footer,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-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-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-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-item .setting-footer .ivu-btn,.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .setting-component-item .setting-footer .ivu-btn{width:50%}}.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 p.btn{-webkit-line-clamp:1}.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 .ai-tabs{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 .ai-tabs .ivu-tabs-bar{padding:0 10px}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ai-tabs .ivu-tabs-content{height:0;flex:1}.ivu-modal-wrap-apply .ivu-modal-wrap-apply-body .ai-tabs .ivu-tabs-content .aibot-warp{position:relative;height:100%}.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>.ql-ui:before{color:#08f}.chat-input-box .chat-input-wrapper .ql-container .ql-editor ol li[data-list=bullet]>.ql-ui:before{font-weight:900}.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";color:#777}.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 button.ql-active{position:relative;background:#3d3d3d;border-radius:6px}.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 24px 0!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{display:flex;flex-direction:column;height:100%}.chat-input-full-input .chat-input-box .chat-input-wrapper{flex:1;height:0}.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}.chat-input-full-input .chat-input-box .chat-input-menu{display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;margin:0 -12px}.chat-input-full-input .chat-input-box .chat-input-menu.activation>li{opacity:1;cursor:pointer}.chat-input-full-input .chat-input-box .chat-input-menu.activation>li:active{background-color:#eee}.chat-input-full-input .chat-input-box .chat-input-menu>li{flex:1;width:0;height:60px;max-width:60px;display:flex;justify-content:center;align-items:center;list-style:none;opacity:.8;cursor:not-allowed;border-radius:8px}.chat-input-full-input .chat-input-box .chat-input-menu>li>i{color:#555;font-size:16px}@media screen and (max-width: 320px){.chat-input-full-input .chat-input-box .chat-input-menu>li{height:52px}.chat-input-full-input .chat-input-box .chat-input-menu>li>i{font-size:14px}}.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;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.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>span{padding-right:4px}.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,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.record,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view.word-chain{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.dot{position:relative}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head.dot:after{content:"";position:absolute;top:50%;right:-16px;width:8px;height:8px;border-radius:50%;background-color:#ed4014;transform:translateY(-50%)}.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{display:flex;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{flex-shrink:0;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 ol li[data-list=unchecked]:before,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li[data-list=unchecked]:before{color:#777}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ol li .mention,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-text>pre ul li .mention{display:contents}.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);transform-origin:left top}.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-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-video{display:flex;position:relative;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video>img,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video>video{width:100%;height:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video .file-play{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:#ffffff1a}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video .file-play .play-icon{border:2px solid #a0a0a0;border-radius:50%;width:42px;height:42px;line-height:42px;display:flex;align-items:center;justify-content:center}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-file.file .file-video .file-play .play-icon>i{color:#a0a0a0;font-size:30px;padding-left:4px;transform:scaleY(.8)}.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;flex-direction:column;align-items:flex-start;color:#303133;max-width:100%}.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;max-width:100%;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-template{color:#303133;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-template .warning-color{color:#ff7070}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-template .mark-color{color:#84c56a}.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:300px}.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-content .open-approve-details{width:260px;display:inline-block;max-width:100%}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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 .open-approve-details .cause>b{display:inline-block;margin-bottom:5px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>p{display:block;margin-bottom:3px;word-break:break-all}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>p:first-child{padding:15px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>span{display:inline-block;margin-bottom:3px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .cause>span:first-child{padding:15px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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 .open-approve-details .btn-raw>button.ivu-btn{flex:1}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .btn-raw>button.ivu-btn-primary{margin-right:12px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .open-approve-details .btn-raw>button.ivu-btn-small{height:32px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-divider{width:100%;display:flex;align-items:center;justify-content:center;margin:6px 0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-divider>span{flex:1;height:1px;background-color:#78787833;transform:scaleY(.5);min-width:18px}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-divider .divider-label{font-size:12px;padding:0 8px;opacity:.6;cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-divider .divider-label:hover{opacity:.8}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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 .mention>span{margin:0}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.task,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.okr{cursor:pointer}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.file,.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention[data-denotation-char="~"]{color:#436ff6!important}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .mention.user{white-space:nowrap}.dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .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-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.dot:after{left:-16px;right:unset}.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-record{align-items:flex-end;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-template{color:#fff}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-template .mark-color{color:#303133}.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-content .open-approve-details .ivu-btn-grey{background-color:#efefef;border-color:#f3f3f3}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .content-divider>span{background-color:#fff3}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .mention{color:#303133}.dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .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-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.record{width:auto}.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{flex:1;width:0;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 .forward-text-tip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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;display:flex;align-items:center}.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 .read-title>span.space,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title>span.space{flex:1;height:1px}.dialog-wrapper-read-poptip .read-poptip-content .read .read-title>button,.dialog-wrapper-read-poptip .read-poptip-content .unread .read-title>button{transform:scale(.96);transform-origin:right center}.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{flex:1;width:0;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.pointer-mouse .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,body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.template{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.pointer-mouse .dialog-head .dialog-content a,body.window-portrait .dialog-wrapper .dialog-scroller .dialog-item .dialog-view.pointer-mouse .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{flex-shrink:0;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 .vmeditor-wrapper,.file-content .content-body .vmpreview-wrapper,.file-preview .content-body .vmeditor-wrapper,.file-preview .content-body .vmpreview-wrapper{position:absolute;top:0;left:0;width:100%;height:100%}.file-content .content-body .vmpreview-wrapper,.file-preview .content-body .vmpreview-wrapper{overflow:auto}.file-content .content-body .teditor-wrapper,.file-preview .content-body .teditor-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 .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}@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{padding:0 16px}.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;max-width:calc(100% - 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;max-width:100%}.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 .subtitle-value{padding-left:12px;color:#0000005c}.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{display:flex;margin-left:12px;padding-bottom:4px}.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;cursor:pointer;opacity:.6}.project-log .logs-activity>li .log-task>em:hover{opacity:1;color:#84c56a}.project-log .logs-activity>li .log-bottom{width:100%;height:6px}.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.today,.project-panel .project-column>ul>li .column-task .task-item .task-progress .task-time.overdue{color:#fff}.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.overdue{font-weight:600;background-color:#ed4014;border-color:#ed4014}.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.today,.project-panel .project-table .project-table-body .task-row>div.row-time .task-time.overdue{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.today{font-weight:500;background-color:#f90;border-color:#f90}.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-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 .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;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}body.window-portrait .task-add .adaption>button{padding:0}.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}@media (max-width: 320px){.task-detail .task-info .head .nav{margin-right:20px}.task-detail .task-info .head .function{display:none}}.task-detail .task-info .scroller{margin-right:-5px}.task-detail .task-info .scroller .scrollbar-content{padding:0 5px}.task-detail .task-info .scroller .receive-box{display:flex;justify-content:center;align-items:center;margin-top:18px;padding:8px 16px;line-height:18px}.task-detail .task-info .scroller .receive-box .receive-text{padding-right:8px;vertical-align:middle}.task-detail .task-info .scroller .receive-box .receive-button{display:inline-block;margin:4px 0}.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{cursor:pointer;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:hover .file-name{color:#303133}.task-detail .task-info .scroller .items .item-content.file>li:hover .file-size{color:#606266}.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.today{font-weight:500;color:#f90}.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 .clock{margin:4px 2px 0;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 .scroller .calculate-dropdown .calculate-text{color:#ff7070}.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-loop>li{text-align:center}.task-calc-warn-text{color:#ff7070!important}body.window-portrait .task-detail .task-info .scroller .scrollbar-content{overflow-x:auto}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask{display:flex;flex-direction:column}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content{margin-left:0!important}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content>ul{margin-left:0}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content.nosub{margin-top:14px}body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content.nosub>li .add-input,body.window-portrait .task-detail .task-info .scroller .items .ivu-form-item.item-subtask .ivu-form-item-content.nosub>li .add-button{margin-top:-2px}body.window-portrait .task-detail .task-info .scroller .items .item-content.nosub{margin-top:14px}.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;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}.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;font-weight:400}.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-full-calendar-popup-detail .tui-full-calendar-content{line-height:normal}.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-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}.dialog-complaint-info{display:flex;flex-direction:column;position:absolute;top:10px;left:0;right:0;bottom:0}.dialog-complaint-info .group-complaint-title{margin:18px 24px 0;color:#303133}.dialog-complaint-info .group-complaint-title.required:after{content:"*";color:#e61f1f;font-size:22px}.dialog-complaint-info .group-complaint-title.underline{padding-bottom:10px;border-bottom:1px solid #e8eaec;text-decoration:none}.dialog-complaint-info .group-complaint-warp{height:calc(100% - 107px);overflow:auto}.dialog-complaint-info .group-complaint-list{margin:0 24px}.dialog-complaint-info .group-complaint-list .ivu-list-item{border-bottom:1px solid #f9f9f9;padding:0}.dialog-complaint-info .group-complaint-list .ivu-list-item:active{background-color:#fbfbfb}.dialog-complaint-info .group-complaint-list .ivu-list-item .text{width:calc(100% - 32px);height:100%;padding:12px 0}.dialog-complaint-info .group-complaint-reason{margin:12px 24px 18px;padding:auto}.dialog-complaint-info .group-complaint-img{margin:12px 24px 18px}.dialog-complaint-info .group-info-button{display:flex;align-items:center;justify-content:center;margin:18px 24px;cursor:pointer}.dialog-complaint-info .group-info-button>button{margin:0 8px}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.today{color:#f90;background-color:transparent}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-table .project-table-body .task-row>div.row-time .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 .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,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item .dialog-view .dialog-head .dialog-content .content-template{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 .open-approve-details .ivu-btn-primary{background-color:#d34521;border-color:#d34521}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .open-approve-details .ivu-btn-grey{background-color:#9e9e9e;border-color:#969696}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .open-approve-details .ivu-btn-grey:hover{background-color:#959595;border-color:#959595}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .mention{color:#000}body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .mention.file,body.dark-mode-reverse .dialog-wrapper .dialog-scroller .dialog-item.self .dialog-view .dialog-head .dialog-content .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{color:#000}body.dark-mode-reverse .chat-emoji-wrapper .chat-emoji-box ul.emoji>li:active{background-color:#1f1f1f}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.879f8ead.js b/public/js/build/app.879f8ead.js new file mode 100644 index 000000000..81e0cb5ca --- /dev/null +++ b/public/js/build/app.879f8ead.js @@ -0,0 +1,87 @@ +import{m as be}from"./@micro-zoe.c2e1472d.js";import{v as Te}from"./jquery.8b0d6caa.js";import{v as Se,a as Ie,b as De}from"./dayjs.b7f7bb8e.js";import{v as xe}from"./localforage.ec5c12b8.js";import{m as ve}from"./markdown-it.f48c10fc.js";import{H as V}from"./highlight.js.24fdca15.js";import{m as Ce}from"./markdown-it-link-attributes.e1d5d151.js";import{m as Ee}from"./@traptitech.b5c819e2.js";import{V as g}from"./vue.c448ed56.js";import{m as C,a as Ae,V as K}from"./vuex.cc7cb26e.js";import{_ as m,c as Le,V as Me,d as Pe,n as je,l as Be,W as Oe,p as Ue,r as Re}from"./openpgp_hi.15f91b1d.js";import{a as H}from"./axios.6ec123f8.js";import{l as E}from"./le5le-store.b40f9152.js";import{V as W}from"./vue-router.2d566cd7.js";import{V as Ne}from"./vue-clipboard2.6e355525.js";import{V as T}from"./view-design-hi.d2045547.js";import{D as We}from"./vuedraggable.dbf1607a.js";import{V as Fe}from"./vue-resize-observer.452c7636.js";import{e as B}from"./element-sea.e89b014c.js";import"./@babel.49d8906a.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./clipboard.7eddb2ef.js";import"./sortablejs.20b8ddfe.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";function Ve(){let e={},i={loader(t,s){return t}};e["micro-app"]=[i],e["okr-details"]=[i],be.start({plugins:{modules:e}})}var He={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",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439 \u044F\u0437\u044B\u043A"},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(/\(%[TM]\d+\)/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 F=He,U=F.languageList,x=F.getLanguage(),j=new Map,ke=[];typeof window.LANGUAGE_DATA=="undefined"&&(window.LANGUAGE_DATA={});function ze(){if(typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined")return;const e=window.LANGUAGE_DATA.key||[];delete window.LANGUAGE_DATA.key,e.forEach((i,t)=>{var s;if(/\(%[TM]\d+\)/.test(i)){const n={},o={key:new RegExp("^"+F.replaceEscape(i)+"$")};for(let r in window.LANGUAGE_DATA)typeof U[r]!="undefined"&&(o[r]=(s=window.LANGUAGE_DATA[r][t])==null?void 0:s.replace(/\(%([TM])(\d+)\)/g,function(a,l,c){return l==="M"&&(n[c]=c),"$"+c}));o._m=Object.keys(n),ke.push(o)}else for(let n in window.LANGUAGE_DATA){if(typeof U[n]=="undefined")continue;const o=window.LANGUAGE_DATA[n][t]||i;j.set(`${i}-${n}`,o)}})}function cn(e){!$A.isArray(e)||e.forEach(i=>{const{key:t,general:s}=i;if(!!t){if(s)for(let n in window.LANGUAGE_DATA)typeof U[n]!="undefined"&&j.set(`${t}-${n}`,s);for(let n in i)n==="key"||n==="general"||j.set(`${t}-${n}`,i[n])}})}function Ye(e,i=!1){e!==void 0&&(i?(F.saveLanguage(e),(async()=>(await $A.IDBDel("callAt"),$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:()=>Ye(e,!0)}))}function G(e){if(typeof e!="string"||!e)return e;const i=`${e}-${x}`;if(j.has(i))return j.get(i);for(const t of ke){const{key:s,_m:n}=t,o=s.exec(e);if(o&&t[x]){const r=t[x].replace(/\$(\d+)/g,(a,l)=>n.includes(l)?G(o[l]):o[l]||"");return j.set(i,r),r}}return window.systemInfo.debug==="yes"&&setTimeout(t=>{try{let s="__language:Undefined__",n=JSON.parse(window.localStorage.getItem(s)||"[]");$A.isArray(n)||(n=[]),n.findIndex(o=>o==e)===-1&&(n.push(e),window.localStorage.setItem(s,JSON.stringify(n)))}catch{}},10),j.set(i,e),e}const L=xe,M=Se,Je=Ie,Ke=De;(function(e,i,t){e.systemInfo=e.systemInfo||{},e.modalTransferIndex=1e3,L.config({name:"DooTask",storeName:"common"}),i.extend({isArray(s){return typeof s=="object"&&Object.prototype.toString.call(s).toLowerCase()=="[object array]"&&typeof s.length=="number"},isJson(s){return typeof s=="object"&&Object.prototype.toString.call(s).toLowerCase()=="[object object]"&&typeof s.length=="undefined"},inArray(s,n,o=!1){return this.isArray(n)?o?!!n.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(s)?!0:r==s):n.includes(s):!1},randNum(s,n){let o=n-s,r=Math.random();return s+Math.round(r*o)},last(s){let n=!1;return typeof s=="object"&&s.length>0&&(n=s[s.length-1]),n},strExists(s,n,o=!1){return s+="",n+="",o!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.indexOf(n)!==-1},leftExists(s,n,o=!1){return s+="",n+="",o!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.substring(0,n.length)===n},leftDelete(s,n,o=!1){return s+="",n+="",this.leftExists(s,n,o)&&(s=s.substring(n.length)),s||""},rightExists(s,n,o=!1){return s+="",n+="",o!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.substring(s.length-n.length)===n},rightDelete(s,n,o=!1){return s+="",n+="",this.rightExists(s,n,o)&&(s=s.substring(0,s.length-n.length)),s||""},getMiddle(s,n=null,o=null){return s=s.toString(),this.isHave(n)&&this.strExists(s,n)&&(s=s.substring(s.indexOf(n)+n.length)),this.isHave(o)&&this.strExists(s,o)&&(s=s.substring(0,s.indexOf(o))),s},subString(s,n,o){return s+="",this.isHave(o)||(o=s.length),s.substring(n,o)},randomString(s){s=s||32;let n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",o=n.length,r="";for(let a=0;aa?k=l-k:k<-a&&(k=l+k),_=u*Math.cos(d)*k,v=u*(d-p),w=Math.sqrt(_*_+v*v).toFixed(0),w},setTile(s){document.title=s;let n=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(n)){let o=document.createElement("iframe");o.style.display="none",o.setAttribute("src","/favicon.ico");let r=function(){setTimeout(function(){o.removeEventListener("load",r),document.body.removeChild(o)},0)};o.addEventListener("load",r),document.body.appendChild(o)}},cloneJSON(s){return typeof s!="object"||s===null?s:$A.jsonParse($A.jsonStringify(s))},jsonParse(s,n=t){if(s===null)return n||{};if(typeof s=="object")return s;try{return JSON.parse(s.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch{return n||{}}},jsonStringify(s,n=t){if(typeof s!="object")return s;try{return JSON.stringify(s)}catch{return n||""}},resize(s,n){let o=$A(s);if(o.length===0)return;let r=parseInt(o.outerHeight()),a=parseInt(o.outerWidth()),l=setInterval(()=>{o.length===0&&clearInterval(l);let c=parseInt(o.outerHeight()),u=parseInt(o.outerWidth());(r!==c||a!==u)&&(r=c,a=u,$A.openLog&&console.log(a,r),typeof n=="function"&&n())},250)},screenOrientation(){return $A(e).width()-$A(e).height()>50?"landscape":"portrait"},isIos(){let s=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return s&&/iphone|ipad|ipod|ios/.test(s)},isAndroid(){let s=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return s&&s.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(s,n){let o=s;return this.count(s)===0||this.count(n)===0?"":(n.replace(/,/g,"|").replace(/\./g,"|").split("|").some(a=>{o=typeof o[a]=="undefined"?"":o[a]}),o)},count(s){try{if(typeof s=="undefined")return 0;if(typeof s=="number"&&(s+=""),typeof s.length=="number")return s.length;{let n=0,o;for(o in s)n++;return n}}catch{return 0}},stringLength(s){return typeof s=="number"||typeof s=="string"?(s+"").length:0},arrayLength(s){if(s)try{return s.length}catch{return 0}return 0},objImplode(s){if(s===null)return"";let n="";return $A.each(s,(o,r)=>{r!==null&&(typeof r=="object"&&this.count(r)>0?n+=this.objImplode(r):n+=String(r))}),n.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter(s){let n=this.urlParameterAll();return typeof s=="undefined"?n:n[s]},urlParameterAll(){let s=e.location.search||e.location.hash||"",n=[];this.strExists(s,"?")&&(n=this.getMiddle(s,"?").split("&"));let o={};for(let r=0;r{s=$A.removeURLParameter(s,r)}),s;let o=s.split("?");if(o.length>=2){let r=encodeURIComponent(n)+"=",a=o[1].split(/[&;]/g);for(let l=a.length;l-- >0;)a[l].lastIndexOf(r,0)!==-1&&a.splice(l,1);return o[0]+(a.length>0?"?"+a.join("&"):"")}return s},urlAddParams(s,n){if($A.isJson(n)){s&&(s=this.removeURLParameter(s,Object.keys(n))),s+="",s+=s.indexOf("?")===-1?"?":"";for(let o in n)!n.hasOwnProperty(o)||(s+="&"+o+"="+n[o])}return this.rightDelete(s.replace("?&","?"),"?")},reloadUrl(){if($A.isEEUiApp&&$A.isAndroid()){let s=e.location.href,n="_=",o=new RegExp(n+"\\d+"),r=$A.dayjs().valueOf();if(s.indexOf(n)>-1)s=s.replace(o,n+r);else if(s.indexOf("?")>-1){let a=s.split("?");a[1]?s=a[0]+"?"+n+r+"&"+a[1]:s=a[0]+"?"+n+r}else s.indexOf("#")>-1?s=s.split("#")[0]+"?"+n+r+location.hash:s=s+"?"+n+r;$A.eeuiAppSetUrl(s)}else e.location.reload()},stringConnect(...s){let n=null,o="";return s.forEach(r=>{n===null?n=r:r&&(r&&o&&(o+=n),o+=r)}),o},objEquals(s,n){let o=s instanceof Object,r=n instanceof Object;if(!o||!r)return s===n;if(Object.keys(s).length!==Object.keys(n).length)return!1;for(let a in s)if(s.hasOwnProperty(a)){let l=s[a]instanceof Object,c=n[a]instanceof Object;if(l&&c){if(!this.objEquals(s[a],n[a]))return!1}else if(s[a]!=n[a])return!1}return!0},insert2Input(s,n){if(s===null||typeof s!="object")return;typeof s.length=="number"&&s.length>0&&(s=s[0]);let o=typeof s.$el=="object"?$A(s.$el):$A(s);if(o.length===0)return;let r=o[0];if(r.tagName!="INPUT"&&r.tagName!="TEXTAREA"&&(o.find("input").length===0?o=o.find("textarea"):o=o.find("input")),o.length===0||(r=o[0],r.tagName!="INPUT"&&r.tagName!="TEXTAREA"))return;let a=o.val(),{selectionStart:l,selectionEnd:c}=r;o.val(`${a.substring(0,l)}${n}${a.substring(c,a.length)}`),r.dispatchEvent(new Event("input")),setTimeout(()=>{if(r.setSelectionRange){let u=a.substring(0,l).length+n.length;r.focus(),r.setSelectionRange(u,u)}},10)},iOSKeyboardFixer(){!this.isIos()||(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},loadScript(s){return new Promise(async(n,o)=>{if(s=$A.originUrl(s),this.rightExists(s,".css"))return n(this.loadCss(s));let r=0;for(;this.__loadScript[s]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),r++,r>30)return o("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadScript[s]==="loaded")return n(!1);this.__loadScript[s]="loading";const a=document.createElement("script");a.type="text/javascript",a.readyState?a.onreadystatechange=()=>{(a.readyState==="loaded"||a.readyState==="complete")&&(a.onreadystatechange=null,this.__loadScript[s]="loaded",n(!0))}:(a.onload=()=>{this.__loadScript[s]="loaded",n(!0)},a.onerror=l=>{this.__loadScript[s]="error",o(l)}),this.rightExists(s,".js")?a.src=s+"?hash="+e.systemInfo.version:a.src=s,document.body.appendChild(a)})},loadScriptS(s){return new Promise(n=>{let o=0;const r=()=>{++o{if(s=$A.originUrl(s),this.rightExists(s,".js"))return n(this.loadScript(s));let r=0;for(;this.__loadCss[s]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),r++,r>30)return o("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadCss[s]==="loaded")return n(!1);this.__loadCss[s]="loading";const a=document.createElement("link");a.readyState?a.onreadystatechange=()=>{(a.readyState=="loaded"||a.readyState=="complete")&&(a.onreadystatechange=null,this.__loadCss[s]="loaded",n(!0))}:(a.onload=()=>{this.__loadCss[s]="loaded",n(!0)},a.onerror=l=>{this.__loadCss[s]="error",o(l)}),a.rel="stylesheet",this.rightExists(s,".css")?a.href=s+"?hash="+e.systemInfo.version:a.href=s,document.getElementsByTagName("head").item(0).appendChild(a)})},loadCssS(s){return new Promise(n=>{let o=0;const r=()=>{++o{s=$A.originUrl(s);let a=0;for(;this.__loadIframe[s]==="loading";)if(await new Promise(c=>setTimeout(c,1e3)),a++,a>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadIframe[s]==="loaded")return o(!1);this.__loadIframe[s]="loading";const l=document.createElement("iframe");l.style.display="none",l.src=s,l.onload=()=>{this.__loadIframe[s]="loaded",o(!0),n>0&&setTimeout(()=>{document.body.removeChild(l),delete this.__loadIframe[s]},n)},l.onerror=c=>{this.__loadIframe[s]="error",r(c)},document.body.appendChild(l)})},loadIframes(s){return new Promise(n=>{let o=0;const r=()=>{++o&"]/g,function(n){return{"<":"<",">":">","&":"&",'"':"""}[n]})},getDomain(s){let n=/http(s)?:\/\/([^\/]+)/i,o=(s+"").match(n);return o!=null&&o.length>0?o[2]:""},scrollToView(s,n){if(!!s){if(typeof n=="undefined"||n===!0?n={block:"start",inline:"nearest"}:n===!1&&(n={block:"end",inline:"nearest"}),typeof n.scrollMode!="undefined"&&typeof e.scrollIntoView=="function"){e.scrollIntoView(s,n);return}try{s.scrollIntoView(n)}catch{typeof e.scrollIntoView=="function"&&e.scrollIntoView(s,n)}}},scrollIntoViewIfNeeded(s){!s||(typeof s.scrollIntoViewIfNeeded=="function"?s.scrollIntoViewIfNeeded():$A.scrollToView(s,{block:"nearest",inline:"nearest"}))},scaleToScale(s,n,o,r=t){const a=o,l=typeof r=="undefined"?o:r;let c,u;return s>0&&n>0?(s/n>=a/l?s>a?(c=a,u=n*a/s):(c=s,u=n):n>l?(u=l,c=s*l/n):(c=s,u=n),{width:parseInt(c),height:parseInt(u)}):{width:s,height:n}},scrollPreventThrough(s){if(!s||s.getAttribute("data-prevent-through")==="yes")return;s.setAttribute("data-prevent-through","yes");let n=null;s.addEventListener("touchstart",function(o){n=Math.floor(o.targetTouches[0].clientY)}),s.addEventListener("touchmove",function(o){let r=Math.floor(o.targetTouches[0].clientY),a=s.scrollTop,l=s.scrollHeight,c=s.clientHeight;(a<=0&&r-n>0||a>=l-c&&r-n<0)&&o.preventDefault()},!1)},getAttr(s,n,o=""){return s?s.getAttribute(n):o},onBlur(s=null,n=!1){setTimeout(o=>{if($A.eeuiAppKeyboardHide(),typeof s=="boolean"&&(n=s,s=null),s)s.blur();else if(document.activeElement)if(n===!0&&document.activeElement.tagName==="BODY"){let r=document.getElementById("toLoseFocusInput");r||(r=document.createElement("input"),r.id="toLoseFocusInput",r.type="text",r.style.position="fixed",r.style.top="0px",r.style.left="0px",r.style.zIndex="-1",r.style.opacity="0",r.addEventListener("focus",a=>{document.activeElement.blur()}),document.body.appendChild(r)),setTimeout(a=>{r.focus()},1)}else document.activeElement.blur()},1)},sortObject(s,n=[]){return Object.keys(s).sort().reduce(function(o,r){return n.includes(r)||(o[r]=s[r]),o},{})},extractImageParameter(s){const n=s.match(/\s+src=(["'])([^'"]*)\1/i),o=s.match(/\s+width=(["'])([^'"]*)\1/i),r=s.match(/\s+height=(["'])([^'"]*)\1/i);return{src:n?n[2]:null,width:$A.runNum(o?o[2]:0),height:$A.runNum(r?r[2]:0),original:s}},extractImageParameterAll(s){return(s.match(/]*?>/g)||[]).map(o=>this.extractImageParameter(o))}}),i.extend({__IDBTimer:{},async IDBTest(){try{$A.isIos()&&await L.setItem("__test__",$A.dayjs().valueOf()),$A.openLog&&console.log("IDBTest OK")}catch(s){$A.openLog?(console.error("IDBTest Error: ",s),$A.modalWarning({content:s.message,onOk:()=>{$A.reloadUrl()}})):$A.reloadUrl()}},IDBSave(s,n,o=100){typeof this.__IDBTimer[s]!="undefined"&&(clearTimeout(this.__IDBTimer[s]),delete this.__IDBTimer[s]),this.__IDBTimer[s]=setTimeout(async r=>{await L.setItem(s,n)},o)},IDBDel(s){L.removeItem(s).then(n=>{})},IDBSet(s,n){return L.setItem(s,n)},IDBRemove(s){return L.removeItem(s)},IDBClear(){return L.clear()},IDBValue(s){return L.getItem(s)},async IDBString(s,n=""){const o=await this.IDBValue(s);return typeof o=="string"||typeof o=="number"?o:n},async IDBInt(s,n=0){const o=await this.IDBValue(s);return typeof o=="number"?o:n},async IDBBoolean(s,n=!1){const o=await this.IDBValue(s);return typeof o=="boolean"?o:n},async IDBArray(s,n=[]){const o=await this.IDBValue(s);return this.isArray(o)?o:n},async IDBJson(s,n={}){const o=await this.IDBValue(s);return this.isJson(o)?o:n}}),i.extend({setStorage(s,n){return this.__operationStorage(s,n)},getStorageValue(s){return this.__operationStorage(s)},getStorageString(s,n=""){let o=this.__operationStorage(s);return typeof o=="string"||typeof o=="number"?o:n},getStorageInt(s,n=0){let o=this.__operationStorage(s);return typeof o=="number"?o:n},getStorageBoolean(s,n=!1){let o=this.__operationStorage(s);return typeof o=="boolean"?o:n},getStorageArray(s,n=[]){let o=this.__operationStorage(s);return this.isArray(o)?o:n},getStorageJson(s,n={}){let o=this.__operationStorage(s);return this.isJson(o)?o:n},__operationStorage(s,n){if(!s)return;let o="__state__";if(s.substring(0,5)==="cache"&&(o="__state:"+s+"__"),typeof n=="undefined")return this.__loadFromlLocal(s,"",o);this.__savaToLocal(s,n,o)},__savaToLocal(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.localStorage[o];r?r=JSON.parse(r):r={},r[s]=n,e.localStorage[o]=JSON.stringify(r)}catch{}},__loadFromlLocal(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.localStorage[o];return!r||(r=JSON.parse(r),!r||typeof r[s]=="undefined")?n:r[s]}catch{return n}}}),i.extend({setSessionStorage(s,n){return this.__operationSessionStorage(s,n)},getSessionStorageValue(s){return this.__operationSessionStorage(s)},getSessionStorageString(s,n=""){let o=this.__operationSessionStorage(s);return typeof o=="string"||typeof o=="number"?o:n},getSessionStorageInt(s,n=0){let o=this.__operationSessionStorage(s);return typeof o=="number"?o:n},__operationSessionStorage(s,n){if(!s)return;let o="__state__";if(s.substring(0,5)==="cache"&&(o="__state:"+s+"__"),typeof n=="undefined")return this.__loadFromlSession(s,"",o);this.__savaToSession(s,n,o)},__savaToSession(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.sessionStorage.getItem(o);r?r=JSON.parse(r):r={},r[s]=n,e.sessionStorage.setItem(o,JSON.stringify(r))}catch{}},__loadFromlSession(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.sessionStorage.getItem(o);return!r||(r=JSON.parse(r),!r||typeof r[s]=="undefined")?n:r[s]}catch{return n}}}),i.extend({serializeObject(s,n){if(typeof s=="string")return s;let o=[],r="&";n=n||[];let a;function l(u){if(n.length>0){let h="";for(let d=0;d0&&o.push(h.join(r))}else s[u]===null?o.push(l(u)+"="):typeof s[u]=="object"?(a=n.slice(),a.push(u),h=i.serializeObject(s[u],a),h!==""&&o.push(h)):typeof s[u]!="undefined"&&s[u]!==""?o.push(l(u)+"="+c(s[u])):s[u]===""&&o.push(l(u))}return o.join(r)},globalAjaxOptions:{},ajaxSetup(s){s.type&&(s.method=s.type),i.each(s,function(n,o){i.globalAjaxOptions[n]=o})},_jsonpRequests:0,ihttp(s){let n={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},o=["beforeSend","error","complete","success","statusCode"];s.type&&(s.method=s.type),i.each(i.globalAjaxOptions,function(d,f){o.indexOf(d)<0&&(n[d]=f)});function r(d,f,p){let _=arguments;d&&i(document).trigger(d,f),p&&(p in i.globalAjaxOptions&&i.globalAjaxOptions[p](_[3],_[4],_[5],_[6]),s[p]&&s[p](_[3],_[4],_[5],_[6]))}i.each(n,function(d,f){d in s||(s[d]=f)}),s.url||(s.url=e.location.toString());let a=s.url.indexOf("?")>=0?"&":"?",l=s.method.toUpperCase();if((l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&s.data){let d;typeof s.data=="string"?s.data.indexOf("?")>=0?d=s.data.split("?")[1]:d=s.data:d=i.serializeObject(s.data),d.length&&(s.url+=a+d,a==="?"&&(a="&"))}if(s.dataType==="json"&&s.url.indexOf("callback=")>=0){let d="__jsonp_"+Date.now()+i._jsonpRequests++,f,p=s.url.split("callback="),_=p[0]+"callback="+d;if(p[1].indexOf("&")>=0){let k=p[1].split("&").filter(function(w){return w.indexOf("=")>0}).join("&");k.length>0&&(_+="&"+k)}let v=document.createElement("script");v.type="text/javascript",v.onerror=function(){clearTimeout(f),r(t,t,"error",null,"scripterror"),r("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},v.src=_,e[d]=function(k){clearTimeout(f),r(t,t,"success",k),v.parentNode.removeChild(v),v=null,delete e[d]},document.querySelector("head").appendChild(v),s.timeout>0&&(f=setTimeout(function(){v.parentNode.removeChild(v),v=null,r(t,t,"error",null,"timeout")},s.timeout));return}(l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&s.cache===!1&&(s.url+=a+"_nocache="+Date.now());let c=new XMLHttpRequest;c.requestUrl=s.url,c.requestParameters=s,c.open(l,s.url,s.async,s.user,s.password);let u=null;if((l==="POST"||l==="PUT"||l==="PATCH")&&s.data)if(s.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(s.data.constructor)>=0)u=s.data;else{let f="---------------------------"+Date.now().toString(16);s.contentType==="multipart/form-data"?c.setRequestHeader("Content-Type","multipart/form-data; boundary="+f):c.setRequestHeader("Content-Type",s.contentType),u="";let p=i.serializeObject(s.data);if(s.contentType==="multipart/form-data"){f="---------------------------"+Date.now().toString(16),p=p.split("&");let _=[];for(let v=0;v=200&&c.status<300||c.status===0){let f;if(s.dataType==="json")try{f=JSON.parse(c.responseText),r("ajaxSuccess ajax:success",{xhr:c},"success",f,c.status,c)}catch(p){console.error(p),r("ajaxError ajax:error",{xhr:c,parseerror:!0},"error",c,"parseerror")}else f=c.responseType==="text"||c.responseType===""?c.responseText:c.response,r("ajaxSuccess ajax:success",{xhr:c},"success",f,c.status,c)}else r("ajaxError ajax:error",{xhr:c},"error",c,c.status);s.statusCode&&(i.globalAjaxOptions.statusCode&&i.globalAjaxOptions.statusCode[c.status]&&i.globalAjaxOptions.statusCode[c.status](c),s.statusCode[c.status]&&s.statusCode[c.status](c)),r("ajaxComplete ajax:complete",{xhr:c},"complete",c,c.status)},c.onerror=function(d){h&&clearTimeout(h),r("ajaxError ajax:error",{xhr:c},"error",c,c.status),r("ajaxComplete ajax:complete",{xhr:c,error:!0},"complete",c,"error")},r("ajaxStart ajax:start",{xhr:c},"start",c),r(t,t,"beforeSend",c),s.timeout>0&&(c.onabort=function(){h&&clearTimeout(h)},h=setTimeout(function(){c.abort(),r("ajaxError ajax:error",{xhr:c,timeout:!0},"error",c,"timeout"),r("ajaxComplete ajax:complete",{xhr:c,timeout:!0},"complete",c,"timeout")},s.timeout)),c.send(u),c}}),i.extend({ajaxc(s){if(!s||typeof s.url=="undefined")return!1;typeof s.data=="undefined"&&(s.data={}),typeof s.cache=="undefined"&&(s.cache=!1),typeof s.method=="undefined"&&(s.method="GET"),typeof s.timeout=="undefined"&&(s.timeout=3e4),typeof s.dataType=="undefined"&&(s.dataType="json"),typeof s.before=="undefined"&&(s.before=()=>{}),typeof s.complete=="undefined"&&(s.complete=()=>{}),typeof s.after=="undefined"&&(s.after=()=>{}),typeof s.success=="undefined"&&(s.success=()=>{}),typeof s.error=="undefined"&&(s.error=()=>{}),typeof s.header=="undefined"&&(s.header={});const n=$A.randomString(16);s.before(),$A.__ajaxList.push({key:n,id:s.requestId||null,url:s.url,request:$A.ihttp({url:s.url,data:s.data,cache:s.cache,headers:s.header,method:s.method.toUpperCase(),contentType:"OPTIONS",crossDomain:!0,dataType:s.dataType,timeout:s.timeout,success:function(o,r,a){$A.__ajaxList=$A.__ajaxList.filter(l=>l.key!==n),s.complete(),s.success(o,r,a),s.after(!0)},error:function(o,r){$A.__ajaxList=$A.__ajaxList.filter(a=>a.key!==n),s.complete(),s.error(o,r),s.after(!1)}})})},ajaxcCancel(s){if(!s)return 0;let n=0;return $A.__ajaxList.forEach((o,r)=>{o.id===s&&(n++,o.request&&o.request.abort())}),n>0&&($A.__ajaxList=$A.__ajaxList.filter(o=>o.id!==s)),n},__ajaxList:[]}),M.extend(Je),M.extend(Ke),i.extend({dayjs(s=t){return/^\d{13,}$/.test(s)?M(Number(s)):/^\d{10,}$/.test(s)?M(Number(s)*1e3):(s===null&&(s=0),M(s))},daytz(s=t){const n=$A.dayjs(s);return $A.timezoneDifference?n.subtract($A.timezoneDifference,"hour"):n},updateTimezone(s=t){if(typeof s!="undefined"&&($A.timezoneName=s),!$A.timezoneName)return $A.timezoneDifference=0;const n=$A.daytz().startOf("hour"),o=n.tz($A.timezoneName);return $A.timezoneDifference=n.startOf("hour").diff(o.format("YYYY-MM-DD HH:mm:ss"),"hour")},timezoneName:null,timezoneDifference:0,newDateString(s,n="YYYY-MM-DD HH:mm:ss"){if(s===null)return s;if(s instanceof M||s instanceof Date)s=$A.dayjs(s).format(n);else if($A.isJson(s)){s=Object.assign({},s);for(let o in s)!s.hasOwnProperty(o)||(s[o]=$A.newDateString(s[o],n))}else $A.isArray(s)&&(s=Object.assign([],s),s.forEach((o,r)=>{s[r]=$A.newDateString(o,n)}));return s},newTimestamp(s){if(s===null)return s;if(s instanceof M||s instanceof Date||$A.isDateString(s))s=$A.dayjs(s).unix();else if($A.isJson(s)){s=Object.assign({},s);for(let n in s)!s.hasOwnProperty(n)||(s[n]=$A.newTimestamp(s[n]))}else $A.isArray(s)&&(s=Object.assign([],s),s.forEach((n,o)=>{s[o]=$A.newTimestamp(n)}));return s},isDateString(s){return typeof s=="string"&&/^\d{4}-\d{2}-\d{2}( \d{2}(:\d{2}(:\d{2})?)?)?$/i.test(s)},secondsToTime(s){let n="";s<0&&(n="-",s=-s);let o;const r=Math.floor(s/86400),a=Math.floor(s%86400/3600),l=Math.floor(s%86400%3600/60),c=Math.floor(s%86400%3600%60);return r>0?a>0?o=r+"d,"+$A.zeroFill(a,2)+"h":l>0?o=r+"d,"+$A.zeroFill(l,2)+"min":c>0?o=r+"d,"+$A.zeroFill(c,2)+"s":o=r+"d":a>0?o=$A.zeroFill(a,2)+":"+$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):l>0?o=$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):c>0&&(o=$A.zeroFill(c,2)+"s"),n+o},timeFormat(s){const n=$A.daytz(),o=$A.dayjs(s);return n.format("YYYY-MM-DD")===o.format("YYYY-MM-DD")?o.format("HH:mm"):n.clone().subtract(1,"day").format("YYYY-MM-DD")===o.format("YYYY-MM-DD")?`${$A.L("\u6628\u5929")} ${o.format("HH:mm")}`:n.year()===o.year()?o.format("MM-DD"):o.format("YYYY-MM-DD")||""},countDownFormat(s,n){s=$A.daytz(s),n=$A.dayjs(n);const o=n.diff(s,"second");return o==0?"0s":Math.abs(o)<86400*7?$A.secondsToTime(o):$A.timeFormat(n)}}),e.$A=i})(window,window.$=window.jQuery=Te);(function(e){const i=e.$A;i.extend({eeuiModule(t,s=0){return new Promise(n=>{if(typeof requireModuleJs=="function"){n(requireModuleJs(t));return}setTimeout(()=>{s<20?n(this.eeuiModuleJs(t,++s)):n(null)},500)})},eeuiModuleSync(t){return typeof requireModuleJs=="function"?requireModuleJs(t):null},eeuiAppVersion(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").getVersion()},eeuiAppLocalVersion(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").getLocalVersion()},eeuiAppAlert(t,s){!$A.isEEUiApp||(typeof s!="function"&&(s=n=>{}),$A.eeuiModule("eeui").then(n=>{n.alert(t,s)}))},eeuiAppToast(t){!$A.isEEUiApp||$A.eeuiModule("eeui").then(s=>{s.toast(t)})},eeuiAppRewriteUrl(t){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").rewriteUrl(t)},eeuiAppOpenPage(t,s){!$A.isEEUiApp||(typeof s!="function"&&(s=n=>{}),$A.eeuiModule("eeui").then(n=>{n.openPage(t,s)}))},eeuiAppOpenWeb(t){!$A.isEEUiApp||$A.eeuiModule("eeui").then(s=>{s.openWeb(t)})},eeuiAppSetPageBackPressed(t,s){!$A.isEEUiApp||(typeof s!="function"&&(s=n=>{}),$A.eeuiModule("eeui").then(n=>{n.setPageBackPressed(t,s)}))},eeuiAppGoDesktop(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.goDesktop()})},eeuiAppKeepScreenOn(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.keepScreenOn()})},eeuiAppKeepScreenOff(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.keepScreenOff()})},eeuiAppKeyboardHide(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.keyboardHide()})},eeuiAppSendMessage(t){!$A.isEEUiApp||$A.eeuiModule("webview").then(s=>{s.sendMessage(t)})},eeuiAppSetUrl(t){!$A.isEEUiApp||$A.eeuiModule("webview").then(s=>{s.setUrl(t)})},eeuiAppScan(t){!$A.isEEUiApp||$A.eeuiModule("eeui").then(s=>{s.openScaner({},n=>{switch(n.status){case"success":t(n.text);break}})})},eeuiAppGetThemeName(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").getThemeName()},eeuiAppKeyboardStatus(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").keyboardStatus()},eeuiAppSetVariate(t,s){!$A.isEEUiApp||$A.eeuiModuleSync("eeui").setVariate(t,s)},eeuiAppSetHapticBackEnabled(t){!$A.isEEUiApp||$A.eeuiModuleSync("webview").setHapticBackEnabled(t)},eeuiAppSetDisabledUserLongClickSelect(t){!$A.isEEUiApp||($A.__disabledUserLongClickSelectTimer&&clearTimeout($A.__disabledUserLongClickSelectTimer),/^\d+$/.test(t)?($A.eeuiModuleSync("webview").setDisabledUserLongClickSelect(!0),$A.__disabledUserLongClickSelectTimer=setTimeout(()=>{$A.__disabledUserLongClickSelectTimer=null,$A.eeuiModuleSync("webview").setDisabledUserLongClickSelect(!1)},t)):$A.eeuiModuleSync("webview").setDisabledUserLongClickSelect(t))},__disabledUserLongClickSelectTimer:null,eeuiAppCopyText(t){!$A.isEEUiApp||$A.eeuiModuleSync("eeui").copyText(t)},eeuiAppSetScrollEnabled(t){!$A.isEEUiApp||$A.eeuiModule("webview").then(s=>{s.setScrollEnabled(t)})}}),e.$A=i})(window);const D={mdi:null,mds:null,formatMsg:e=>{const i=e.match(/]*?>/g);return i&&i.some(t=>{e=e.replace(t,`
    ${t}
    `)}),e},highlightBlock:(e,i="")=>`
    ${i}${$A.L("\u590D\u5236")}
    ${e}
    `};function un(e){return e==="..."?'':(D.mdi===null&&(D.mdi=new ve({linkify:!0,highlight(i,t){if(!!(t&&V.getLanguage(t))){const n=t!=null?t:"";return D.highlightBlock(V.highlight(i,{language:n}).value,n)}return D.highlightBlock(V.highlightAuto(i).value,"")}}),D.mdi.use(Ce,{attrs:{target:"_blank",rel:"noopener"}}),D.mdi.use(Ee,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"})),D.formatMsg(D.mdi.render(e)))}function Ge(e){return D.mds===null&&(D.mds=ve()),D.mds.render(e)}function dn(e){if(e==="")return!1;const i=e.replace(/

    /g,` +`).replace(/(^|\s+)```([\s\S]*)```/gm,"");if(/<\/(strong|s|em|u|ol|ul|li|blockquote|pre|img|a)>/i.test(i)||/]+?class="mention"[^>]*?>/i.test(i))return!1;const t=document.createElement("div");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="10px",t.style.height="10px",t.style.overflow="hidden",t.style.zIndex="-9999",t.style.opacity="0",t.innerHTML=e,document.body.appendChild(t);const s=t.innerText;return document.body.removeChild(t),!!(/(^|\s+)#+\s(.*)$/m.test(s)||/(^|\s+)\*\*(.*)\*\*/m.test(s)||/(^|\s+)__(.*)__/m.test(s)||/(^|\s+)\*(.*)\*/m.test(s)||/(^|\s+)_(.*)_/m.test(s)||/(^|\s+)~~(.*)~~/m.test(s)||/(^|\s+)\[(.*?)\]\((.*?)\)/m.test(s)||/(^|\s+)!\[(.*?)\]\((.*?)\)/m.test(s)||/(^|\s+)`(.*?)`/m.test(s)||/(^|\s+)```([\s\S]*?)```/m.test(s))}(function(e){const i=e.$A;i.extend({apiUrl(t){if(t=="privacy"){const s=$A.getDomain(e.systemInfo.apiUrl);if(s==""||s=="public")return"https://www.dootask.com/privacy.html";t="../privacy.html"}if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.apiUrl=="string"?t=e.systemInfo.apiUrl+t:t=e.location.origin+"/api/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},mainUrl(t=null){return t||(t=""),t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/"?t:$A.apiUrl(`../${t}`)},originUrl(t){if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.origin=="string"?t=e.systemInfo.origin+t:t=e.location.origin+"/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},onlinePreviewUrl(t,s){return $A.mainUrl(`online/preview/${t}?key=${s}&version=${e.systemInfo.version}&__=${$A.dayjs().valueOf()}`)},projectParameterTemplate(t){return{project_id:t,menuInit:!1,menuType:"column",chat:!1,showMy:!0,showHelp:!0,showUndone:!0,showCompleted:!1,completedTask:!1}},timeOptionShortcuts(){const t=$A.daytz().startOf("day").toDate();return[{text:$A.L("\u4ECA\u5929"),value(){return[t,$A.daytz().endOf("day").toDate()]}},{text:$A.L("\u660E\u5929"),value(){return[t,$A.daytz().add(1,"day").endOf("day").toDate()]}},{text:$A.L("\u672C\u5468"),value(){return[t,$A.daytz().endOf("week").toDate()]}},{text:$A.L("\u672C\u6708"),value(){return[t,$A.daytz().endOf("month").toDate()]}},{text:$A.L("3\u5929"),value(){return[t,$A.daytz().add(2,"day").endOf("day").toDate()]}},{text:$A.L("5\u5929"),value(){return[t,$A.daytz().add(4,"day").endOf("day").toDate()]}},{text:$A.L("7\u5929"),value(){return[t,$A.daytz().add(6,"day").endOf("day").toDate()]}}]},dialogTags(t){let s=[];return t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)&&(t.group_type=="task"&&t.group_info.complete_at&&s.push({color:"success",text:"\u5DF2\u5B8C\u6210"}),t.group_info.deleted_at?s.push({color:"red",text:"\u5DF2\u5220\u9664"}):t.group_info.archived_at&&s.push({color:"default",text:"\u5DF2\u5F52\u6863"})),s},dialogCompleted(t){return this.dialogTags(t).find(({color:s})=>s=="success")},getDialogNum(t){return t&&((t.silence?0:t.unread)||t.mention||t.mark_unread)||0},getDialogUnread(t,s){return t&&((s||!t.silence?t.unread:0)||t.mark_unread)||0},getDialogMention(t){return(t==null?void 0:t.mention)||0},getMsgTextPreview(t,s=null){if(!t)return"";if(t=t.replace(/]*?alt="(\S+)"[^>]*?>/g,"[$1]"),t=t.replace(/]*?>/g,`[${$A.L("\u52A8\u753B\u8868\u60C5")}]`),s?t=t.replace(/]*?src="(\S+)"[^>]*?>/g,function(n,o){const r=$A.extractImageParameter(n);if(r.width&&r.height){const a=$A.imageRatioHandle({src:r.src,width:r.width,height:r.height,crops:{ratio:2,percentage:"80x0"},scaleSize:40});o=a.src,s=`${s}" style="width:${a.width}px;height:${a.height}px`}return`[image:${o}]`}):t=t.replace(/]*?>/g,`[${$A.L("\u56FE\u7247")}]`),t=t.replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/"/g,'"').replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," "),s)t=t.replace(/\[image:(.*?)\]/g,``),t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../"));else{const n=t.substring(0,30);n.length{t[n]=$A.formatMsgBasic(s)}):typeof t=="string"&&(t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));return t},formatTextMsg(t,s){if(!t)return"";const n=new RegExp(``,"g");return t=t.trim().replace(/(\n\x20*){3,}/g,` + +`),t=t.replace(/ /g," "),t=t.replace(/

    <\/p>/g,"


    "),t=t.replace(/\{\{RemoteURL\}\}/g,$A.mainUrl()),t=t.replace(n,``),/https*:\/\//.test(t)&&(t=t.split(/(<[^>]*>)/g).map(r=>(r&&!/<[^>]*>/.test(r)&&(r=r.replace(/(^|[^'"])((https*:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;|#|@|,|!)+))/g,'$1$2')),r)).join("")),$A.extractImageParameterAll(t).some(r=>{if(r.src&&r.width&&r.height){const a=$A.imageRatioHandle({src:r.src,width:r.width,height:r.height,crops:{ratio:3,percentage:"320x0"},scaleSize:r.original.indexOf("emoticon")>-1?150:220}),l=r.original.replace(/\s+width=/," original-width=").replace(/\s+height=/," original-height=").replace(/\s+src=(["'])([^'"]*)\1/i,` style="width:${a.width}px;height:${a.height}px" src="${a.src}"`);t=t.replace(r.original,l)}else t=t.replace(r.original,`
    ${r.original}
    `)}),t},getTextImagesInfo(t){const s=$A.mainUrl(),n=t.match(new RegExp("]*?>","g")),o=[];if(n){const r=new RegExp(`src=(["'])([^'"]*)\\1`),a=new RegExp('(original-)?width="(\\d+)"'),l=new RegExp('(original-)?height="(\\d+)"');n.some(c=>{const u=c.match(r),h=c.match(a),d=c.match(l);u&&o.push({src:u[2].replace(/\{\{RemoteURL\}\}/g,s),width:h?h[2]:-1,height:d?d[2]:-1})})}return o},getMsgSimpleDesc(t,s=null){if(!$A.isJson(t))return"";switch(t.type){case"text":return $A.getMsgTextPreview(t.msg.type==="md"?Ge(t.msg.text):t.msg.text,s);case"vote":return`[${$A.L("\u6295\u7968")}]`+$A.getMsgTextPreview(t.msg.text,s);case"word-chain":return`[${$A.L("\u63A5\u9F99")}]`+$A.getMsgTextPreview(t.msg.text,s);case"record":return`[${$A.L("\u8BED\u97F3")}]`;case"meeting":return`[${$A.L("\u4F1A\u8BAE")}] ${t.msg.name}`;case"file":return $A.fileMsgSimpleDesc(t.msg,s);case"tag":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"top":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"todo":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"notice":return $A.L(t.msg.notice);case"template":return $A.templateMsgSimpleDesc(t.msg);default:return`[${$A.L("\u672A\u77E5\u7684\u6D88\u606F")}]`}},fileMsgSimpleDesc(t,s=null){if(t.type=="img"){if(s){const n=$A.imageRatioHandle({src:t.thumb,width:parseInt(t.width),height:parseInt(t.height),crops:{ratio:2,percentage:"80x0"},scaleSize:40});return``}return`[${$A.L("\u56FE\u7247")}]`}else if(t.ext=="mp4")return`[${$A.L("\u89C6\u9891")}]`;return`[${$A.L("\u6587\u4EF6")}] ${t.name}`},templateMsgSimpleDesc(t){return t.title_raw?t.title_raw:t.type==="task_list"&&$A.arrayLength(t.list)===1?$A.L(t.title)+": "+t.list[0].name:t.title?$A.L(t.title):t.type==="content"&&typeof t.content=="string"&&t.content!==""?$A.L(t.content):$A.L("\u672A\u77E5\u7684\u6D88\u606F")},getFileName(t){let s=t.name||"",n=t.ext||"";return n!=""&&(s+="."+n),s},isDooServer(){const t=$A.getDomain($A.mainUrl());return/dootask\.com$/.test(t)||/hitosea\.com$/.test(t)||/^127\.0\.0\.1/.test(t)||/^(10)\./.test(t)||/^(172)\.(1[6-9]|2[0-9]|3[0-1])\./.test(t)||/^(192)\.(168)\./.test(t)},thumbRestore(t){return`${t}`.replace(/_thumb\.(png|jpg|jpeg)$/,"").replace(/\/crop\/([^\/]+)$/,"")},dataHasFolder(t){const{items:s}=t;if(s){for(const n of s)if(n.kind==="directory"||n.kind==="file"&&n.webkitGetAsEntry().isDirectory)return!0}return!1},imageRatioHandle(t){if(!$A.isJson(t.crops))return t;if($A.imageRatioJudge(t.src)){t.src=$A.thumbRestore(t.src)+"/crop/"+Object.keys(t.crops).map(n=>`${n}:${t.crops[n]}`).join(",");const s=$A.imageRatioExceed(t.width,t.height,t.crops.ratio);s>0&&(t.width>t.height?t.width=t.height*s:t.height=t.width*s)}if(t.scaleSize){const s=$A.scaleToScale(t.width,t.height,t.scaleSize);t.width=s.width,t.height=s.height}return t},imageRatioJudge(t){return/\.(png|jpg|jpeg)$/.test(t)?$A.getDomain(t)==$A.getDomain($A.mainUrl()):!1},imageRatioExceed(t,s,n,o=.5){return t&&s&&n&&(t/s>n+o||s/t>n+o)?n:0},loadVConsole(t=void 0){if(typeof t=="string"){switch(t){case"log.o":return $A.IDBSet("logOpen","open").then(s=>{$A.loadVConsole()}),!0;case"log.c":return $A.IDBSet("logOpen","close").then(s=>{$A.loadVConsole()}),!0}return!1}$A.IDBString("logOpen").then(s=>{typeof e.vConsole!="undefined"&&(e.vConsole.destroy(),e.vConsole=null),$A.openLog=s==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js").then(n=>{e.vConsole=new e.VConsole({onReady:()=>{console.log("VConsole: onReady")},onClearLog:()=>{console.log("VConsole: onClearLog")}})}).catch(n=>{$A.modalError("VConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")})})}}),i.extend({modalConfig(t){return typeof t=="undefined"?t={content:"Undefined"}:typeof t=="string"&&(t={content:t}),t.title=t.title||(typeof t.render=="undefined"?$A.modalTranslation("\u6E29\u99A8\u63D0\u793A",t.language):""),t.content=t.content||"",t.okText=t.okText||$A.modalTranslation("\u786E\u5B9A",t.language),t.cancelText=t.cancelText||$A.modalTranslation("\u53D6\u6D88",t.language),t.language!==!1&&(delete t.language,t.title=$A.L(t.title),t.content=$A.L(t.content),t.okText=$A.L(t.okText),t.cancelText=$A.L(t.cancelText)),t},modalTranslation(t,s){return s!==!1?t:$A.L(t)},modalInput(t,s=0){if(s>0){setTimeout(()=>{$A.modalInput(t)},s);return}typeof t=="string"&&(t={title:t});let n="modalInput_"+$A.randomString(6),o={type:t.type||"text",value:t.value,placeholder:$A.L(t.placeholder),elementId:n};$A.isJson(t.inputProps)&&(o=Object.assign(o,t.inputProps));const r=()=>new Promise((l,c)=>{if(!t.onOk){c();return}const u=t.onOk(t.value);if(!u){l();return}u.then?u.then(h=>{h&&$A.messageSuccess(h),l()}).catch(h=>{h&&$A.messageError(h),c()}):(typeof u=="string"&&$A.messageError(u),c())}),a=()=>{typeof t.onCancel=="function"&&t.onCancel()};$A.Modal.confirm({render:l=>l("div",[l("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},$A.L(t.title)),l("Input",{props:o,on:{input:c=>{t.value=c},"on-enter":c=>{$A(c.target).parents(".ivu-modal-body").find(".ivu-btn-primary").click()}}})]),onOk:r,onCancel:a,loading:!0,okText:$A.L(t.okText||"\u786E\u5B9A"),cancelText:$A.L(t.cancelText||"\u53D6\u6D88"),okType:t.okType||"primary",cancelType:t.cancelType||"text"}),setTimeout(()=>{document.getElementById(n)&&document.getElementById(n).focus()})},modalConfirm(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalConfirm(t)},s);return}if(t=$A.modalConfig(t),t.loading){const{onOk:n}=t;t.onOk=()=>new Promise((o,r)=>{if(!n){r();return}const a=n();if(!a){o();return}a.then?a.then(l=>{l&&$A.messageSuccess(l),o()}).catch(l=>{l&&$A.messageError(l),r()}):(typeof a=="string"&&$A.messageError(a),r())})}$A.Modal.confirm($A.modalConfig(t))}},modalSuccess(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalSuccess(t)},s);return}$A.Modal.success($A.modalConfig(t))}},modalInfo(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalInfo(t)},s);return}$A.Modal.info($A.modalConfig(t))}},modalWarning(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalWarning(t)},s);return}typeof t=="string"&&t==="Network exception"||$A.isJson(t)&&t.content==="Network exception"||$A.Modal.warning($A.modalConfig(t))}},modalError(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalError(t)},s);return}typeof t=="string"&&t==="Network exception"||$A.isJson(t)&&t.content==="Network exception"||$A.Modal.error($A.modalConfig(t))}},modalAlert(t){t!==!1&&alert($A.L(t))},messageSuccess(t){$A.Message.success($A.L(t))},messageWarning(t){typeof t=="string"&&t==="Network exception"||$A.Message.warning($A.L(t))},messageError(t){typeof t=="string"&&t==="Network exception"||$A.Message.error($A.L(t))},noticeConfig(t){return typeof t=="undefined"?t={desc:"Undefined"}:typeof t=="string"&&(t={desc:t}),t.title=$A.L(t.title||(typeof t.render=="undefined"?"\u6E29\u99A8\u63D0\u793A":"")),t.desc=$A.L(t.desc||""),t},noticeSuccess(t){$A.Notice.success($A.noticeConfig(t))},noticeWarning(t){$A.Notice.warning($A.noticeConfig(t))},noticeError(t){typeof t=="string"&&(t={desc:t,duration:6}),$A.Notice.error($A.noticeConfig(t))}}),i.extend({dark:{utils:{supportMode(){let t=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return`${t.match(/Chrome/i)}`=="chrome"?"chrome":`${t.match(/Webkit/i)}`=="webkit"?"webkit":null},defaultFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(90%) !important; filter: invert(100%) hue-rotate(180deg) contrast(90%) !important;"},reverseFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(110%) !important; filter: invert(100%) hue-rotate(180deg) contrast(110%) !important;"},noneFilter(){return"-webkit-filter: none !important; filter: none !important;"},addExtraStyle(){try{return""}catch{return""}},addStyle(t,s,n){s=s||"style";let o=document;if(o.getElementById(t))return;let a=o.createElement(s);a.rel="stylesheet",a.id=t,s==="style"?a.innerHTML=n:a.href=n,document.head.appendChild(a)},getClassList(t){return t.classList||[]},addClass(t,s){return this.getClassList(t).add(s),this},removeClass(t,s){return this.getClassList(t).remove(s),this},hasClass(t,s){return this.getClassList(t).contains(s)},hasElementById(t){return document.getElementById(t)},removeElementById(t){let s=document.getElementById(t);s&&s.parentNode.removeChild(s)}},createDarkStyle(){this.utils.addStyle("dark-mode-style","style",` + @media screen { + html { + ${this.utils.defaultFilter()} + will-change: transform; + } + + /* Default Reverse rule */ + img, + video, + iframe, + canvas, + :not(object):not(body) > embed, + object, + svg image, + [style*="background:url"], + [style*="background-image:url"], + [style*="background: url"], + [style*="background-image: url"], + [background], + .no-dark-mode, + .no-dark-content, + .no-dark-before:before { + ${this.utils.reverseFilter()} + will-change: transform; + } + + [style*="background:url"] *, + [style*="background-image:url"] *, + [style*="background: url"] *, + [style*="background-image: url"] *, + input, + [background] *, + .no-dark-content img, + .no-dark-content canvas, + .no-dark-content svg image { + ${this.utils.noneFilter()} + } + + /* Text contrast */ + html { + text-shadow: 0 0 0 !important; + } + + /* Full screen */ + .no-filter, + :-webkit-full-screen, + :-webkit-full-screen *, + :-moz-full-screen, + :-moz-full-screen *, + :fullscreen, + :fullscreen * { + ${this.utils.noneFilter()} + } + + /* Page background */ + html { + min-width: 100%; + min-height: 100%; + } + .child-view { + background-color: #fff; + } + .page-login { + background-color: #f8f8f8; + } + ${this.utils.addExtraStyle()} + } + + @media print { + .no-print { + display: none !important; + } + }`)},enableDarkMode(){!this.utils.supportMode()||this.isDarkEnabled()||(this.createDarkStyle(),this.utils.addClass(document.body,"dark-mode-reverse"))},disableDarkMode(){!this.isDarkEnabled()||(this.utils.removeElementById("dark-mode-style"),this.utils.removeClass(document.body,"dark-mode-reverse"))},autoDarkMode(){let t=e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches;$A.isEEUiApp&&(t=$A.eeuiAppGetThemeName()==="dark"),t?this.enableDarkMode():this.disableDarkMode()},isDarkEnabled(){return this.utils.hasClass(document.body,"dark-mode-reverse")}}}),e.$A=i})(window);var Xe=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("transition",{attrs:{name:"fade"}},[e.floatSpinnerLoad>0?t("div",{staticClass:"common-float-spinner"},[t("Loading",{staticClass:"common-float-circular"})],1):e._e()])},qe=[];function A(e,i,t,s,n,o,r,a){var l=typeof e=="function"?e.options:e;i&&(l.render=i,l.staticRenderFns=t,l._compiled=!0),s&&(l.functional=!0),o&&(l._scopeId="data-v-"+o);var c;if(r?(c=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(d=__VUE_SSR_CONTEXT__),n&&n.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(r)},l._ssrRegister=c):n&&(c=a?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(f,p){return c.call(p),u(f,p)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}const Qe={name:"FloatSpinner",computed:{...C(["floatSpinnerLoad"])}},Z={};var Ze=A(Qe,Xe,qe,!1,et,null,null,null);function et(e){for(let i in Z)this[i]=Z[i]}var tt=function(){return Ze.exports}(),st=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(s){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(s){e.updateShow=s},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("VMPreview",{attrs:{value:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(s){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)},it=[];const nt=()=>m(()=>import("./preview.8cce7ada.js"),["js/build/preview.8cce7ada.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),ot={name:"RightBottom",components:{VMPreview:nt},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=E.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||H.get($A.apiUrl("system/prefetch")).then(({status:e,data:i})=>{e===200&&i.forEach(t=>{const s=document.createElement("link");s.rel="prefetch",s.href=t,s.onload=()=>{document.head.removeChild(s)},s.onerror=()=>{document.head.removeChild(s)},document.head.appendChild(s)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(H.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,s=await $A.IDBJson(t),n=600;if(s.time&&s.time+n>$A.dayjs().unix()){this.downloadUrl=s.data.html_url;return}this.loadIng>0||(this.loadIng++,H.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:o,data:r})=>{this.loadIng--,o===200&&$A.isArray(r)&&(s.time=$A.dayjs().unix(),s.data=r.find(({tag_name:a})=>this.compareVersion(this.tagVersion(a),this.apiVersion)===0)||{},$A.IDBSave(t,s),this.downloadUrl=s.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){E.Store.set("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,i){let t=0,s=0;if(e===i)return 0;const n=(o,r)=>{let a=r;for(;o[a]!=="."&&al?1:-1;t=o+1,s=r+1}for(;t0)return 1;t=o+1}for(;s0)return-1;s=o+1}return 0}}},ee={};var rt=A(ot,st,it,!1,at,null,null,null);function at(e){for(let i in ee)this[i]=ee[i]}var lt=function(){return rt.exports}(),ct=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(s){e.show=s},expression:"show"}},[e.list.length>0?[e.viewVideo?t("PreviewVideoView",{attrs:{item:e.viewVideo}}):e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(s){e.show=!1}}}):e._e()]:e._e()],2)},ut=[];const dt=()=>m(()=>import("./video.1a7cfeca.js"),["js/build/video.1a7cfeca.js","js/build/video.85f66e68.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),ht=()=>m(()=>import("./view.d343368a.js"),["js/build/view.d343368a.js","js/build/view.856f2ef1.css","js/build/element-sea.e89b014c.js","js/build/vue.c448ed56.js","js/build/@babel.49d8906a.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js"]),ft=()=>m(()=>import("./swipe.e6b4680e.js"),["js/build/swipe.e6b4680e.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),pt={name:"PreviewImage",components:{PreviewVideoView:dt,PreviewImageSwipe:ft,PreviewImageView:ht},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewVideo(){return this.list.length===0?!1:this.list.find(({src:i})=>/\.mp4$/i.test(i))||!1},viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},te={};var mt=A(pt,ct,ut,!1,gt,null,null,null);function gt(e){for(let i in te)this[i]=te[i]}var _t=function(){return mt.exports}(),wt=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(s){e.show=s},expression:"show"}})},yt=[];const $t={name:"PreviewImageState",components:{PreviewImage:_t},computed:{...C(["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(o=>$A.isJson(o)?$A.thumbRestore(o.src):$A.thumbRestore(o)),s=50;if(t.length>s){const o=[];let r=0;for(;o.length=0&&o.unshift(t[a]),la===t[i]),t=o}const n=t.find(o=>/\.mp4$/i.test(o));if(n){$A.eeuiAppSendMessage({action:"videoPreview",path:n});return}$A.eeuiAppSendMessage({action:"picturePreview",position:i,paths:t})}else this.show=!0}}},se={};var vt=A($t,wt,yt,!1,At,null,null,null);function At(e){for(let i in se)this[i]=se[i]}var kt=function(){return vt.exports}(),bt=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(s){e.show=s},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(s){e.show=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])]:e._e()],2)},Tt=[];const St={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1,timeShow:null,timeCheck:null}},beforeDestroy(){this.clearTimer()},computed:{...C(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(e){this.clearTimer(),e&&(this.checkNetwork(),this.timeShow=setTimeout(i=>{this.show=!0},5e3))},immediate:!0}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},checkNetwork(){this.timeCheck&&clearTimeout(this.timeCheck),this.timeCheck=setTimeout(()=>{!this.ajaxNetworkException||this.isNotServer()||this.$store.dispatch("call",{url:"system/setting"}).finally(()=>{this.checkNetwork()})},3e3)},clearTimer(){this.timeShow&&clearTimeout(this.timeShow),this.show=!1}}},ie={};var It=A(St,bt,Tt,!1,Dt,null,null,null);function Dt(e){for(let i in ie)this[i]=ie[i]}var xt=function(){return It.exports}(),Ct=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(s){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},Et=[];const Lt={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}}},ne={};var Mt=A(Lt,Ct,Et,!1,Pt,null,null,null);function Pt(e){for(let i in ne)this[i]=ne[i]}var jt=function(){return Mt.exports}(),Bt=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)},Ot=[];const Ut={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:{...C(["loads","taskFlows"]),...Ae(["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:s})=>{$A.messageSuccess(s),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(()=>{})})}}},oe={};var Rt=A(Ut,Bt,Ot,!1,Nt,null,null,null);function Nt(e){for(let i in oe)this[i]=oe[i]}var Wt=function(){return Rt.exports}(),Ft=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(s){return s?t("li",{on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:s,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],1):e._e()}),e.addIcon||e.values.length===0?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:e.onSelection}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(s){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",{ref:"headerTitle",on:{click:e.onClickTitle}},[e._v(e._s(e.localTitle))])]),t("div",{ref:"headerSubmit",staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(s){e.showModal=s},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.formatSelect(e.selects),function(s){return t("li",{attrs:{"data-id":s.userid},on:{click:function(n){return n.stopPropagation(),e.onRemoveItem(s.userid)}}},[s.type=="group"?[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:s.userid}})],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(s){e.searchKey=s},expression:"searchKey"}})],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(s){return t("li",{key:s.key,class:{active:e.switchActive===s.key},on:{click:function(n){e.switchActive=s.key}}},[e._v(e._s(e.$L(s.label)))])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(s){return t("li",{class:e.selectClass(s.userid_list),on:{click:function(n){return e.onSelectProject(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(s.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(s.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):t("ul",[e.showSelectAll?t("li",{class:e.selectClass("all"),on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("div",{staticClass:"user-modal-all"},[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e._l(e.lists,function(s){return t("li",{class:{selected:e.selects.includes(s.userid),disabled:e.isUncancelable(s.userid)||e.isDisabled(s.userid)},on:{click:function(n){return e.onSelectItem(s)}}},[e.selects.includes(s.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),s.type=="group"?t("div",{staticClass:"user-modal-avatar"},[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:40}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(s.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:s.userid,size:40,"show-name":""}})],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)},Vt=[];const Ht={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.upTitleWidth()):this.searchKey="",this.$emit("on-show-change",e)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()},isFullscreen(e){e&&this.upTitleWidth()},"selects.length"(){this.upTitleWidth()}},computed:{...C(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:i,dialogId:t,onlyGroup:s}){return e===0&&i===0&&t===0&&!s},lists({switchActive:e,searchKey:i,recents:t,contacts:s,projects:n}){switch(e){case"recent":return i?t.filter(o=>`${o.name}`.indexOf(i)>-1):t;case"contact":return s;case"project":return n}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:{upTitleWidth(){!this.isFullscreen||this.$nextTick(()=>{const e=this.$refs.headerTitle,i=this.$refs.headerSubmit;e&&i&&(e.style.width=this.windowWidth-i.clientWidth*2+"px")})},isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},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.dayjs(i.top_at)-$A.dayjs(e.top_at):e.todo_num>0||i.todo_num>0?i.todo_num-e.todo_num:$A.dayjs(i.last_at)-$A.dayjs(e.last_at)).map(({id:e,name:i,type:t,group_type:s,avatar:n,dialog_user:o})=>({name:i,type:t,group_type:s,avatar:n,userid:t==="user"?o.userid:`d:${e}`}))},searchContact(){const e=this.searchKey,i=this.searchCache.find(t=>t.type==="contact"&&t.key==e);i&&(this.contacts=i.data,!i.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.searchRequest(e,1,()=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},searchRequest(e,i,t){this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},page:i,pagesize:50}}).then(({data:s})=>{if(this.searchKey!=e){t();return}const n=s.data.map(a=>Object.assign(a,{type:"user"}));s.current_page>1&&n.unshift(...this.contacts),this.contacts=n;const o=this.searchCache.findIndex(a=>a.type==="contact"&&a.key==e),r={type:"contact",key:e,data:n,time:$A.dayjs().unix(),more:s.current_page-1?this.searchCache.splice(o,1,r):this.searchCache.push(r),!r.more){t();return}s.current_page%5===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+s.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{this.searchRequest(e,s.current_page+1,t)},onCancel:t}):this.searchRequest(e,s.current_page+1,t)}).catch(({msg:s})=>{i===1&&(this.contacts=[]),$A.messageWarning(s),t()})},searchProject(){const e=this.searchKey,i=this.searchCache.find(t=>t.type==="project"&&t.key==e);i&&(this.projects=i.data,!i.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{if(this.searchKey!=e)return;const s=t.data.map(r=>Object.assign(r,{type:"project"}));this.projects=s;const n=this.searchCache.findIndex(r=>r.type==="project"&&r.key==e),o={type:"project",key:e,data:s,time:$A.dayjs().unix(),more:!1};n>-1?this.searchCache.splice(n,1,o):this.searchCache.push(o)}).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(s=>!this.isUncancelable(s));i.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(s=>!i.includes(s));break;default:const t=e.filter(s=>!this.isDisabled(s));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(s=>!this.selects.includes(s))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(i=>i!=e))},onClickTitle(){const e=this.$refs.headerTitle,i=document.createRange();i.setStart(e,0),i.setEnd(e,e.childNodes.length||0);const t=i.getBoundingClientRect().width;Math.floor(t)>Math.floor(e.offsetWidth)&&$A.modalInfo({title:this.$L("\u5168\u6807\u9898"),content:this.localTitle,language:!1})},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);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}}},re={};var zt=A(Ht,Ft,Vt,!1,Yt,null,null,null);function Yt(e){for(let i in re)this[i]=re[i]}var Jt=function(){return zt.exports}(),Kt=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(s){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(s){e.cascader=s},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(s){e.ownerUserids=s},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(s){e.assistUserids=s},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(s){return s.stopPropagation(),e.openMenu(s,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(s){e.$set(e.updateData,"owner_userids",s)},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(s){e.$set(e.updateData,"assist_userids",s)},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)},Gt=[];const Xt={name:"TaskMove",components:{TaskMenu:Wt,UserSelect:Jt},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:{...C(["cacheProjects","cacheColumns"])},watch:{cascader(e){var t,s;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=((s=(t=this.cacheProjects.find(n=>n.id==e[0]))==null?void 0:t.project_user)==null?void 0:s.map(n=>n.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(n=>n.owner&&i.indexOf(n.userid)!==-1).sort((n,o)=>n.id-o.id).map(n=>n.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(n=>!n.owner&&i.indexOf(n.userid)!==-1).sort((n,o)=>n.id-o.id).map(n=>n.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(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.dayjs(t.top_at)-$A.dayjs(i.top_at):t.id-i.id);this.cascaderData=e.map(i=>{const t=this.cacheColumns.filter(({project_id:n})=>n==i.id).map(n=>({value:n.id,label:n.name})),s={value:i.id,label:i.name,children:t};return t.length==0&&(s.loading=!1),s})},cascaderLoadData(e,i){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(s=>({value:s.id,label:s.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}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||0,complete_at:this.updateData.flow.complete_at||"",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,ret:i})=>{this.loadIng--,i==102?$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001"):$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){e.complete_at&&!e.flow_item_id&&(e.flow_item_name=this.$L("\u5DF2\u5B8C\u6210")),this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},ae={};var qt=A(Xt,Kt,Gt,!1,Qt,null,null,null);function Qt(e){for(let i in ae)this[i]=ae[i]}var Zt=function(){return qt.exports}(),es=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(s){return t("EDropdownItem",{key:s.id,attrs:{command:`turn::${s.id}`}},[t("div",{staticClass:"item flow"},[s.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:s.status},[e._v(e._s(s.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(s,n){return t("EDropdownItem",{key:"c_"+n,attrs:{divided:n==0,command:s}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:s.primary||"#ddd"},domProps:{innerHTML:e._s(s.color==(e.task.color||"")?"":"")}}),e._v(e._s(e.$L(s.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(s){e.moveTaskShow=s},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(s){e.moveTaskShow=s},expression:"moveTaskShow"}})],1)],1)},ts=[];const ss={name:"TaskOperation",components:{TaskMove:Zt},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:{...C(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...Ae(["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=s=>{s?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 s=$A.leftDelete(e,"turn::");if(s==this.task.flow_item_id)return;let n=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},o=this.taskFlowItems.find(({id:l})=>l==s)||{},r=n.status!=="end"&&o.status==="end",a=n.status==="end"&&o.status!=="end";this.updateBefore&&(r?t(!0):a&&t(!1)),this.updateTask({flow_item_id:s,flow_item_status:o.status,flow_item_name:o.name}).then(()=>{r?t(!0):a&&t(!1)}).catch(()=>{r?t(!1):a&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss")}).then(()=>{t(!0)}).catch(()=>{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 s=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(s),t();return}Object.keys(e).forEach(n=>this.$set(this.task,n,e[n])),this.$store.dispatch("taskUpdate",s).then(({data:n,msg:o})=>{$A.messageSuccess(o),i(),this.$store.dispatch("saveTaskBrowse",s.task_id),typeof this.onUpdate=="function"&&this.onUpdate(n)}).catch(({msg:n})=>{$A.modalError(n),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{}),t()})})},archivedOrRemoveTask(e){let i="removeTask",t="\u5220\u9664",s={task_id:this.task.id},n=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",s={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+n,content:"\u4F60\u786E\u5B9A\u8981"+t+n+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((o,r)=>{this.$store.dispatch(i,s).then(({msg:a})=>{o(a),this.$store.dispatch("saveTaskBrowse",s.task_id)}).catch(({msg:a})=>{r(a)})})}})},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]}}},le={};var is=A(ss,es,ts,!1,ns,null,null,null);function ns(e){for(let i in le)this[i]=le[i]}var os=function(){return is.exports}(),rs=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("EDropdown",{ref:"dropdown",staticClass:"task-operation-dropdown",style:e.styles,attrs:{trigger:"click",placement:"bottom",size:"small"},on:{command:e.onCommand,"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 small"},[t("ul",e._l(e.list,function(s,n){return t("EDropdownItem",{key:n,attrs:{command:s.value,disabled:e.active===s.value}},[t("div",{staticClass:"item"},[e._v(e._s(s.label))])])}),1)])])],1)},as=[];const ls={data(){return{visible:!1,list:[],active:"",onUpdate:null,scrollHide:!1,element:null,target:null,styles:{}}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...C(["menuOperation"])},watch:{menuOperation(e){if(e.event&&e.list){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.list=e.list,this.active=e.active&&this.list.find(t=>t.value===e.active)?e.active:"",this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.scrollHide=typeof e.scrollHide=="boolean"?e.scrollHide:!1,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},onCommand(e){this.hide(),typeof this.onUpdate=="function"&&this.onUpdate(e)},visibleChange(e){this.visible=e},updatePopper(){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;if(this.scrollHide){this.hide();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]}}},ce={};var cs=A(ls,rs,as,!1,us,null,null,null);function us(e){for(let i in ce)this[i]=ce[i]}var ds=function(){return cs.exports}(),hs=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("DropdownMenu"),t("FloatSpinner"),t("RightBottom"),t("PreviewImageState"),e.windowLandscape?t("NetworkException"):e._e(),t("GuidePage")],1)},fs=[];const ps={components:{DropdownMenu:ds,TaskOperation:os,NetworkException:xt,PreviewImageState:kt,RightBottom:lt,FloatSpinner:tt,GuidePage:jt},data(){return{routePath:null,appInter:null,countDown:Math.min(30,60-$A.daytz().second())}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),window.addEventListener("message",this.windowHandleMessage),this.appInter=setInterval(this.appTimerHandler,1e3),$A.loadVConsole()},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),window.removeEventListener("message",this.windowHandleMessage),this.appInter&&clearInterval(this.appInter)},computed:{...C(["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(),$A.updateTimezone(),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(s=>{this.$store.dispatch("websocketConnection")})}).catch(t=>{this.$store.dispatch("websocketConnection")})},600)):this.$store.dispatch("audioStop",!0)}},methods:{appTimerHandler(){this.searchEnter(),this.countDown--,this.countDown<=0&&(this.countDown=Math.min(30,60-$A.daytz().second()),this.$store.dispatch("todayAndOverdue"))},searchEnter(){let e=$A(".search-container");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let i=e.find("button[type='button']"),t=null;i.length!==0&&(i.each((s,n)=>{$A(n).text().indexOf("\u641C\u7D22")&&(t=$A(n))}),t!==null&&e.find("input.ivu-input").keydown(function(s){s.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.formOptions={class:e>576?"":"form-label-weight-bold",labelPosition:e>576?"right":"top",labelWidth: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.updateTimezone(),$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 s=(i+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:s?"users/meeting/tourist":"users/basic",data:{userid:s?i:(i+"").substring(6),tourist_id:i}}).then(({data:n})=>{var o,r;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:i,avatar:s?n==null?void 0:n.userimg:(o=n[0])==null?void 0:o.userimg,username:s?n==null?void 0:n.nickname:(r=n[0])==null?void 0:r.nickname}})}).catch(({msg:n})=>{$A.modalError(n)});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]})}}}},ue={};var ms=A(ps,hs,fs,!1,gs,"7a5230a8",null,null);function gs(e){for(let i in ue)this[i]=ue[i]}var _s=function(){return ms.exports}(),ws=[{name:"index",path:"/",component:()=>m(()=>import("./index.b3e6cf03.js"),["js/build/index.b3e6cf03.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>m(()=>import("./pro.0b202f1c.js"),["js/build/pro.0b202f1c.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>m(()=>import("./meeting.a6ab8619.js"),["js/build/meeting.a6ab8619.js","js/build/MeetingManager.107c56ad.js","js/build/le5le-store.b40f9152.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>m(()=>import("./manage.3363eb6c.js"),["js/build/manage.3363eb6c.js","js/build/manage.5dc9aad0.css","js/build/vuex.cc7cb26e.js","js/build/CheckinExport.9ac164be.js","js/build/CheckinExport.68b4950e.css","js/build/tip.434a62e4.js","js/build/ImgUpload.cc22c426.js","js/build/ReportEdit.8be7d715.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.b39ad266.js","js/build/index.e6513292.js","js/build/le5le-store.b40f9152.js","js/build/TaskDetail.4cdae640.js","js/build/TaskDetail.d1ade037.css","js/build/ProjectLog.12dff91b.js","js/build/DialogWrapper.df01caa2.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/@babel.49d8906a.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.d2045547.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/MeetingManager.107c56ad.js","js/build/details.9590a689.js","js/build/MicroApps.d5179821.js","js/build/notification-koro1.99b93615.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>m(()=>import("./dashboard.f387e55c.js"),["js/build/dashboard.f387e55c.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>m(()=>import("./calendar.b5bd8891.js"),["js/build/calendar.b5bd8891.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.59809517.js","js/build/tui-calendar-hi.3658e7fa.css","js/build/@babel.49d8906a.js","js/build/tui-code-snippet.cdaa497b.js","js/build/le5le-store.b40f9152.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>m(()=>import("./messenger.68ae7176.js"),["js/build/messenger.68ae7176.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.df01caa2.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.e6513292.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/@babel.49d8906a.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.d2045547.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.cc22c426.js","js/build/tip.434a62e4.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-approve",path:"approve",component:()=>m(()=>import("./index.897b0294.js"),["js/build/index.897b0294.js","js/build/index.bfb171e3.css","js/build/details.9590a689.js","js/build/CheckinExport.68b4950e.css","js/build/vuex.cc7cb26e.js","js/build/ImgUpload.cc22c426.js","js/build/index.e6513292.js","js/build/le5le-store.b40f9152.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-apps",path:"apps/*",component:()=>m(()=>import("./apps.5ae2dacb.js"),["js/build/apps.5ae2dacb.js","js/build/MicroApps.d5179821.js","js/build/vue.c448ed56.js","js/build/@babel.49d8906a.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.df01caa2.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.e6513292.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/view-design-hi.d2045547.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.cc22c426.js","js/build/tip.434a62e4.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting",path:"setting",component:()=>m(()=>import("./index.0466af7c.js"),["js/build/index.0466af7c.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.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>m(()=>import("./personal.7fc2a145.js"),["js/build/personal.7fc2a145.js","js/build/ImgUpload.cc22c426.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>m(()=>import("./checkin.7a773382.js"),["js/build/checkin.7a773382.js","js/build/checkin.2fa0bfae.css","js/build/ImgUpload.cc22c426.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>m(()=>import("./language.7a53dc5c.js"),["js/build/language.7a53dc5c.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>m(()=>import("./theme.8768a33d.js"),["js/build/theme.8768a33d.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>m(()=>import("./keyboard.780c3ff4.js"),["js/build/keyboard.780c3ff4.js","js/build/keyboard.b6840672.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>m(()=>import("./license.8aaddb7c.js"),["js/build/license.8aaddb7c.js","js/build/license.8ba0a235.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>m(()=>import("./password.030411c7.js"),["js/build/password.030411c7.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>m(()=>import("./email.0afe9b64.js"),["js/build/email.0afe9b64.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>m(()=>import("./system.7c99cb3f.js"),["js/build/system.7c99cb3f.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-version",path:"version",component:()=>m(()=>import("./version.8a875668.js"),["js/build/version.8a875668.js","js/build/version.a7e43e44.css","js/build/preview.8cce7ada.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>m(()=>import("./delete.0f4e4825.js"),["js/build/delete.0f4e4825.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite",component:()=>m(()=>import("./projectInvite.90612102.js"),["js/build/projectInvite.90612102.js","js/build/projectInvite.d01e3a2d.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>m(()=>import("./project.e38eadbd.js"),["js/build/project.e38eadbd.js","js/build/vuex.cc7cb26e.js","js/build/vuedraggable.dbf1607a.js","js/build/@babel.49d8906a.js","js/build/sortablejs.20b8ddfe.js","js/build/ProjectLog.12dff91b.js","js/build/le5le-store.b40f9152.js","js/build/index.e6513292.js","js/build/tip.434a62e4.js","js/build/DialogWrapper.df01caa2.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.d2045547.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.cc22c426.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>m(()=>import("./file.1a62fb3d.js"),["js/build/file.1a62fb3d.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.63d8be61.js","js/build/@babel.49d8906a.js","js/build/index.e6513292.js","js/build/longpress.5305f240.js","js/build/tip.434a62e4.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>m(()=>import("./application.5eb5d1b2.js"),["js/build/application.5eb5d1b2.js","js/build/vuex.cc7cb26e.js","js/build/index.e6513292.js","js/build/CheckinExport.9ac164be.js","js/build/CheckinExport.68b4950e.css","js/build/tip.434a62e4.js","js/build/ImgUpload.cc22c426.js","js/build/ReportEdit.8be7d715.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.b39ad266.js","js/build/checkin.7a773382.js","js/build/checkin.2fa0bfae.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>m(()=>import("./fileMsg.5715099d.js"),["js/build/fileMsg.5715099d.js","js/build/fileMsg.9d89f22e.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>m(()=>import("./fileTask.333ab18e.js"),["js/build/fileTask.333ab18e.js","js/build/fileTask.584e53db.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.aae7507a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>m(()=>import("./file.e506d17e.js"),["js/build/file.e506d17e.js","js/build/file.1759f11c.css","js/build/FileContent.8003b48c.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.1e9ff7fd.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>m(()=>import("./taskContent.4da98bb7.js"),["js/build/taskContent.4da98bb7.js","js/build/taskContent.4dd37439.css","js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.cc22c426.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>m(()=>import("./task.933db9c8.js"),["js/build/task.933db9c8.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.4cdae640.js","js/build/TaskDetail.d1ade037.css","js/build/vuex.cc7cb26e.js","js/build/ProjectLog.12dff91b.js","js/build/DialogWrapper.df01caa2.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.e6513292.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/@babel.49d8906a.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.d2045547.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.cc22c426.js","js/build/tip.434a62e4.js","js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-apps",path:"/single/apps/*",component:()=>m(()=>import("./apps.1f3c46d0.js"),["js/build/apps.1f3c46d0.js","js/build/MicroApps.d5179821.js","js/build/vue.c448ed56.js","js/build/@babel.49d8906a.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.df01caa2.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.e6513292.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/view-design-hi.d2045547.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.cc22c426.js","js/build/tip.434a62e4.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>m(()=>import("./validEmail.6920ea3a.js"),["js/build/validEmail.6920ea3a.js","js/build/validEmail.6e361ca9.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>m(()=>import("./reportEdit.2220c6f1.js"),["js/build/reportEdit.2220c6f1.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.8be7d715.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>m(()=>import("./reportDetail.becb3dea.js"),["js/build/reportDetail.becb3dea.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.b39ad266.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>m(()=>import("./token.53c7275e.js"),["js/build/token.53c7275e.js","js/build/token.7afc4e00.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>m(()=>import("./login.65762120.js"),["js/build/login.65762120.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.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>m(()=>import("./404.766ad184.js"),["js/build/404.766ad184.js","js/build/404.d686a01f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const R=$A(window).width(),ys=$A(window).height(),z=$A.screenOrientation();var $s={clientId:"",cacheVersion:"v8",windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:R,windowHeight:ys,windowOrientation:z,windowLandscape:z==="landscape",windowPortrait:z==="portrait",formOptions:{class:R>576?"":"form-label-weight-bold",labelPosition:R>576?"right":"top",labelWidth:R>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:{},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},cacheTranslationLanguage:"",cacheTranslations:[],menuOperation:{}},vs={isLoad(e){return function(i){const t=e.loads.find(s=>s.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:s})=>s==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:s})=>s==i);if(t)return t}return{}},transforTasks(e){return function(i){return i.filter(({parent_id:t})=>!(t>0&&i.find(({id:s})=>s==t))).map(t=>{if(t.parent_id>0){const s=e.cacheTasks.find(({id:n})=>n==t.parent_id);return s?Object.assign({},s,{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:s})=>s==t.id)})})}},dashboardTask(e){const i=$A.daytz().startOf("day"),t=$A.daytz().endOf("day"),s=$A.daytz(),n=(u,h=!0)=>u.archived_at||u.complete_at&&h===!0||u.start_at&&$A.dayjs(u.start_at)>s?!1:u.owner==1;let o=e.cacheTasks.filter(u=>n(u)),r=0;if(e.taskCompleteTemps.length>0){let u=e.cacheTasks.filter(h=>e.taskCompleteTemps.includes(h.id)&&n(h,!1));u.length>0&&(r=u.length,o=$A.cloneJSON(o),o.push(...u))}const a=o.filter(u=>{const h=$A.dayjs(u.end_at);return i<=h&&h<=t}),l=o.filter(u=>u.end_at&&$A.dayjs(u.end_at)<=s),c={today:a,today_count:a.length,overdue:l,overdue_count:l.length,all:o,all_count:o.length};return r>0&&(c.today_count-=a.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.overdue_count-=l.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.all_count-=r),c},assistTask(e){const i=(s,n=!0)=>s.archived_at||s.complete_at&&n===!0?!1:s.assist&&s.owner===0;let t=e.cacheTasks.filter(s=>i(s));if(e.taskCompleteTemps.length>0){let s=e.cacheTasks.filter(n=>e.taskCompleteTemps.includes(n.id)&&i(n,!1));s.length>0&&(t=$A.cloneJSON(t),t.push(...s))}return t}};function As(e,i,t){$A.isJson(i)||(i={});const s=e+"::"+encodeURIComponent(new URLSearchParams($.sortObject(i,["page","pagesize","timerange"])).toString()),n=t.callAt.find(o=>o.key===s)||{};return typeof n.key=="undefined"&&(n.key=s,n.updated=0,n.deleted=0,t.callAt.push(n),$A.IDBSet("callAt",t.callAt).then(o=>{})),this.get=()=>(i.timerange=i.timerange||`${n.updated||0},${n.deleted||0}`,i),this.save=({total:o,current_page:r,deleted_id:a})=>new Promise(l=>{if(r===1){let c=!1;const u=$A.dayjs().unix();o>0&&(n.updated=u,c=!0),$A.isArray(a)&&a.length>0?(n.deleted=u,c=!0):a=[],c?$A.IDBSet("callAt",t.callAt).then(h=>l(a)):l(a)}}),this}function Y(e,i,t){return new As(e,i,t)}function ks(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 bs={retry:5,interval:3*1e3};class Ts{constructor(i,t=bs){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 s=>{this.retry=this.options.retry,typeof t=="function"&&t(i,s)}}_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(s=>{this.es.removeEventListener(s,this._onMessage(s,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(s=>{this.es.addEventListener(s,this._onMessage(s,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 Ss={init({state:e,dispatch:i}){return new Promise(async t=>{let s=null;const n=await $A.IDBString("clearCache");n&&(n==="handle"&&(s="handleClearCache"),await $A.IDBRemove("clearCache"),await $A.IDBRemove("cacheVersion"));const o=await $A.IDBString("cacheVersion");o&&o!==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:r})=>{e.apiKeyData=r}),i("systemSetting"),await $A.loadScriptS(["language/web/key.js",`language/web/${x}.js`,`language/iview/${x}.js`]),ze(),t(s)})},call({state:e,dispatch:i},t){var o;$A.isJson(t)||(t={url:t});const s={"Content-Type":"application/json",language:x,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if(!e.userToken&&((o=e.meetingWindow)==null?void 0:o.meetingSharekey)&&(s.sharekey=e.meetingWindow.meetingSharekey),$A.isJson(t.header)?t.header=Object.assign(s,t.header):t.header=s,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 r=window.navigator.userAgent;(window.systemInfo.debug==="yes"||/Windows NT 5.1|Windows XP/.test(r)||r.indexOf("Windows NT 6.0")!==-1||r.indexOf("Windows NT 6.1")!==-1||r.indexOf("Windows NT 6.2")!==-1)&&(t.encrypt=!1)}t.url=$A.apiUrl(t.url),t.data=$A.newDateString(t.data);const n=$A.cloneJSON(t);return new Promise(async(r,a)=>{if(/^https*:\/\/public\//.test(t.url)){a({ret:-1,data:{},msg:"No server address"});return}const l=[];if(t.encrypt===!0&&(t.data&&e.apiKeyData.type==="pgp"&&(l.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),t.method="post",t.data={encrypted:await 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()}}t.success=async(c,u,h)=>{if(e.ajaxNetworkException=!1,!$A.isJson(c)){console.log(c,u,h),a({ret:-1,data:{},msg:$A.L("\u8FD4\u56DE\u53C2\u6570\u9519\u8BEF")});return}t.encrypt===!0&&c.encrypted&&(c=await i("pgpDecryptApi",c.encrypted));const{ret:d,data:f,msg:p}=c;if(d===-1&&(e.userId=0,t.skipAuthError!==!0)){$A.modalError({content:p,onOk:()=>{i("logout")}}),a(c);return}if(d===-2&&t.checkNick!==!1){i("userEditInput","nickname").then(()=>{i("call",n).then(r).catch(a)}).catch(_=>{a({ret:-1,data:f,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0\uFF01")})});return}if(d===-3&&t.checkTel!==!1){i("userEditInput","tel").then(()=>{i("call",n).then(r).catch(a)}).catch(_=>{a({ret:-1,data:f,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD\uFF01")})});return}d===1?r({data:f,msg:p}):(a({ret:d,data:f,msg:p||$A.L("\u672A\u77E5\u9519\u8BEF")}),d===-4001?i("forgetProject",f.project_id):d===-4002?(f.force===1&&(e.taskArchiveView=0),i("forgetTask",f.task_id)):d===-4003?i("forgetDialog",f.dialog_id):d===-4004&&i("getTaskForParent",f.task_id).catch(()=>{}))},t.error=(c,u)=>{const h=window.navigator.onLine===!1||u===0&&c.readyState===4;if(h&&n.method!=="post"&&n.__networkFailureRetry!==!0){setTimeout(d=>{n.__networkFailureRetry=!0,i("call",n).then(r).catch(a)},1e3);return}t.checkNetwork!==!1&&(e.ajaxNetworkException=h),a(h?{ret:-1001,data:{},msg:$A.L("\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u91CD\u8BD5\u3002")}:{ret:-1,data:{},msg:$A.L("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002")}),console.error(c,u)},$A.ajaxc(t)})},callCancel({state:e},i){return new Promise((t,s)=>{$A.ajaxcCancel(i)?t():s()})},systemSetting({dispatch:e,state:i}){return new Promise((t,s)=>{switch(i.systemConfig.__state){case"success":t(i.systemConfig);break;case"loading":setTimeout(n=>{e("systemSetting").then(t).catch(s)},100);break;default:i.systemConfig.__state="loading",e("call",{url:"system/setting"}).then(({data:n})=>{i.systemConfig=Object.assign(n,{timezoneDifference:$A.updateTimezone(n.server_timezone),__state:"success"}),t(i.systemConfig)}).catch(n=>{i.systemConfig.__state="error",s()});break}})},needHome({dispatch:e,state:i}){return new Promise((t,s)=>{if($A.isSoftware){s();return}e("systemSetting").then(n=>{n.start_home==="open"?t():s()}).catch(s)})},downUrl({state:e},i){if(!i)return;let t=i,s=!0;if($A.isJson(i)&&(t=i.url,s=!!i.token),s){let n={token:e.userToken};$A.isJson(i)&&(t=i.url,n=i.params||{}),t=$A.urlAddParams(t,n)}$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,s=null,n=e.projectId;if($A.isJson(i)&&(t=i.key,s=i.value,n=i.project_id),n){let o=e.cacheProjectParameter.findIndex(a=>a.project_id==n);o===-1&&(e.cacheProjectParameter.push($A.projectParameterTemplate(n)),o=e.cacheProjectParameter.findIndex(a=>a.project_id==n));const r=e.cacheProjectParameter[o];$A.isJson(t)||(t={[t]:s||!r[t]}),e.cacheProjectParameter.splice(o,1,Object.assign(r,t)),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)}},setTheme({state:e,dispatch:i},t){return new Promise(function(s){if(t===void 0){s(!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"),s(!1);return}i("synchTheme",t),s(!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(o=>i("getBasicData",null),t));return}const s=e.userId+$A.dayjs().unix();if(window.__getBasicDataKey===s)return;window.__getBasicDataKey=s,i("getProjects").catch(()=>{}),i("getDialogAuto").catch(()=>{}),i("getDialogTodo",0).catch(()=>{}),i("getReportUnread",1e3),i("getApproveUnread",1e3),i("getTaskForDashboard"),i("dialogMsgRead");const n=Object.values(e.userAvatar).map(({userid:o})=>o);[...new Set(n)].some(o=>i("getUserBasic",{userid:o}))},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:s})=>{e.reportUnreadNumber=s.total||0}).catch(s=>{})},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:s})=>{e.approveUnreadNumber=s.total||0}).catch(({msg:s})=>{s.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(s=>{e("saveUserInfo",s.data),i(s)}).catch(s=>{console.warn(s),t(s)})})},saveUserInfoBase({state:e,dispatch:i},t){return new Promise(async s=>{const n=$A.cloneJSON(t);n.userid=$A.runNum(n.userid),n.token=n.userid>0?n.token||e.userToken:"",e.userInfo=n,e.userId=n.userid,e.userToken=n.token,e.userIsAdmin=$A.inArray("admin",n.identity),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}`}),s()})},saveUserInfo({state:e,dispatch:i},t){return new Promise(async s=>{await i("saveUserInfoBase",t),i("getBasicData",null),e.userId>0&&(e.cacheUserBasic=e.cacheUserBasic.filter(({userid:n})=>n!==e.userId),i("saveUserBasic",e.userInfo)),s()})},getUserBasic({state:e,dispatch:i},t){if(e.loadUserBasic===!0){t&&e.cacheUserWait.push(t);return}let s=$A.dayjs().unix(),n=$A.cloneJSON(e.cacheUserWait);t&&t.userid&&n.push(t),e.cacheUserWait=[];let o=[],r=0;n.some(a=>{let l=e.cacheUserBasic.find(({userid:c})=>c==a.userid);if(l&&s-l._time<=30)return setTimeout(()=>{e.cacheUserActive=Object.assign(l,{__:Math.random()}),E.Store.set("userActive",{type:"cache",data:l})},r+=5),!1;o.push(a)}),o.length!==0&&(o.length>30&&(e.cacheUserWait=o.slice(30),o=o.slice(0,30)),e.loadUserBasic=!0,i("call",{url:"users/basic",data:{userid:[...new Set(o.map(({userid:a})=>a))]},skipAuthError:!0}).then(a=>{s=$A.dayjs().unix(),o.forEach(l=>{let c=a.data.find(({userid:u})=>u==l.userid)||Object.assign(l,{email:""});c._time=s,i("saveUserBasic",c)}),e.loadUserBasic=!1,i("getUserBasic")}).catch(a=>{console.warn(a),e.loadUserBasic=!1,i("getUserBasic")}))},saveUserBasic({state:e},i){$A.execMainDispatch("saveUserBasic",i);const t=e.cacheUserBasic.findIndex(({userid:s})=>s==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()}),E.Store.set("userActive",{type:"cache",data:i}),$A.IDBSave("cacheUserBasic",e.cacheUserBasic)},userEditInput({dispatch:e},i){return new Promise(function(t,s){let n="";if(i==="nickname")n="\u6635\u79F0";else if(i==="tel")n="\u8054\u7CFB\u7535\u8BDD";else{s("\u53C2\u6570\u9519\u8BEF");return}setTimeout(o=>{$A.modalInput({title:`\u8BBE\u7F6E${n}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${n}`,okText:"\u4FDD\u5B58",onOk:r=>r?new Promise((a,l)=>{e("call",{url:"users/editdata",data:{[i]:r},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(c=>{a(),t()})}).catch(({msg:c})=>{l(c)})}):`\u8BF7\u8F93\u5165${n}`,onCancel:r=>s})},100)})},logout({state:e,dispatch:i},t=!0){i("handleClearCache",{}).then(()=>{let s=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);t===!1&&(s=null),$A.goForward({name:"login",query:s?{from:s}:{}},!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 s=$A.isJson(i)?i:$A.jsonParse(window.localStorage.getItem("__system:keyboardConf__"))||{};s.screenshot_key=(s.screenshot_key||"").trim().toLowerCase(),s.send_button_app=s.send_button_app||"button",s.send_button_desktop=s.send_button_desktop||"enter",window.localStorage.setItem("__system:keyboardConf__",$A.jsonStringify(s)),e.cacheKeyboard=s,t(s)})},handleClearCache({state:e,dispatch:i},t){return new Promise(async s=>{const n=window.localStorage.getItem("__system:themeConf__"),o=window.localStorage.getItem("__system:languageName__"),r=window.localStorage.getItem("__system:keyboardConf__");window.localStorage.clear(),window.localStorage.setItem("__system:themeConf__",n),window.localStorage.setItem("__system:languageName__",o),window.localStorage.setItem("__system:keyboardConf__",r);const a=await $A.IDBString("clientId"),l=await $A.IDBString("cacheServerUrl"),c=await $A.IDBArray("cacheProjectParameter"),u=await $A.IDBString("cacheLoginEmail"),h=await $A.IDBJson("cacheFileSort"),d=await $A.IDBArray("cacheTaskBrowse"),f=await $A.IDBString("cacheTranslationLanguage"),p=await $A.IDBArray("cacheTranslations"),_=await $A.IDBArray("cacheEmojis"),v=await $A.IDBJson("userInfo");await $A.IDBClear(),await $A.IDBSet("clientId",a),await $A.IDBSet("cacheServerUrl",l),await $A.IDBSet("cacheProjectParameter",c),await $A.IDBSet("cacheLoginEmail",u),await $A.IDBSet("cacheFileSort",h),await $A.IDBSet("cacheTaskBrowse",d),await $A.IDBSet("cacheTranslationLanguage",f),await $A.IDBSet("cacheTranslations",p),await $A.IDBSet("cacheEmojis",_),await $A.IDBSet("cacheVersion",e.cacheVersion),await i("saveUserInfoBase",$A.isJson(t)?t:v),await i("handleReadCache"),s()})},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(n=>Object.assign(n,{loading:!1,extra_draft_has:n.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.cacheTranslationLanguage=await $A.IDBString("cacheTranslationLanguage"),e.cacheTranslations=await $A.IDBArray("cacheTranslations"),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"),typeof U[e.cacheTranslationLanguage]=="undefined"&&(e.cacheTranslationLanguage=x),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__")),s=window.localStorage.getItem("__system:userToken__")||"";e.userId===0&&t&&s&&(e.userId=t,e.userToken=s),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),i()})},userUrl({state:e},i){return new Promise(t=>{const s=$A.urlAddParams(i,{language:x,theme:e.themeConf,userid:e.userId,token:e.userToken});t(s)})},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(s=>{i("saveFile",s)});else if($A.isJson(t)){let s={_load:!1,_edit:!1};const n=e.fileLists.findIndex(({id:o})=>o==t.id);n>-1?e.fileLists.splice(n,1,Object.assign(s,e.fileLists[n],t)):e.fileLists.push(Object.assign(s,t)),$A.IDBSave("fileLists",e.fileLists,600)}},forgetFile({state:e,dispatch:i},t){$A.execMainDispatch("forgetFile",t),($A.isArray(t)?t:[t]).some(n=>{e.fileLists=e.fileLists.filter(o=>o.id!=n),e.fileLists.some(o=>{o.pid==n&&i("forgetFile",o.id)}),$A.IDBSave("fileLists",e.fileLists,600)})},packProgress({state:e,dispatch:i},t){$A.execMainDispatch("packProgress",t);const s=e.filePackLists.findIndex(({name:n})=>n==t.name);s>-1?e.filePackLists[s].progress=t.progress:(e.filePackLists.push(t),$A.IDBSave("filePackLists",e.filePackLists,600))},getFiles({state:e,dispatch:i},t){return new Promise(function(s,n){i("call",{url:"file/lists",data:{pid:t}}).then(o=>{const r=o.data.map(({id:a})=>a);e.fileLists=e.fileLists.filter(a=>a.pid!=t||r.includes(a.id)),$A.IDBSave("fileLists",e.fileLists,600),i("saveFile",o.data),s(o)}).catch(o=>{console.warn(o),n(o)})})},searchFiles({state:e,dispatch:i},t){return $A.isJson(t)||(t={key:t}),new Promise(function(s,n){i("call",{url:"file/search",data:t}).then(o=>{i("saveFile",o.data),s(o)}).catch(o=>{console.warn(o),n(o)})})},saveProject({state:e,dispatch:i},t){if($A.execMainDispatch("saveProject",t),$A.isArray(t))t.forEach(s=>{i("saveProject",s)});else if($A.isJson(t)){typeof t.project_column!="undefined"&&(i("saveColumn",t.project_column),delete t.project_column);const s=e.cacheProjects.findIndex(({id:n})=>n==t.id);s>-1?e.cacheProjects.splice(s,1,Object.assign({},e.cacheProjects[s],t)):(typeof t.project_user=="undefined"&&(t.project_user=[]),e.cacheProjects.push(t),e.projectTotal++),e.cacheDialogs.some(n=>{if(n.type=="group"&&n.group_type=="project"&&n.group_info.id==t.id){t.name!==void 0&&(n.name=t.name);for(let o in n.group_info)!n.group_info.hasOwnProperty(o)||t[o]===void 0||(n.group_info[o]=t[o])}}),$A.IDBSave("cacheProjects",e.cacheProjects)}},forgetProject({state:e,dispatch:i},t){$A.execMainDispatch("forgetProject",t);const s=$A.isArray(t)?t:[t];if(s.some(n=>{const o=e.cacheProjects.findIndex(r=>r.id==n);o>-1&&(i("forgetTask",e.cacheTasks.filter(r=>r.project_id==t).map(r=>r.id)),i("forgetColumn",e.cacheColumns.filter(r=>r.project_id==t).map(r=>r.id)),e.cacheProjects.splice(o,1),e.projectTotal=Math.max(0,e.projectTotal-1))}),s.includes(e.projectId)){const n=$A.cloneJSON(e.cacheProjects).sort((o,r)=>o.top_at||r.top_at?$A.dayjs(r.top_at)-$A.dayjs(o.top_at):r.id-o.id).find(({id:o})=>o&&o!=t);n?$A.goForward({name:"manage-project",params:{projectId:n.id}}):$A.goForward({name:"manage-dashboard"})}$A.IDBSave("cacheProjects",e.cacheProjects)},getProjects({state:e,dispatch:i,getters:t},s){return new Promise(function(n,o){if(e.userId===0){e.cacheProjects=[],o({msg:"Parameter error"});return}const r=Y("projects",s,e);setTimeout(()=>{e.loadProjects++},2e3),i("call",{url:"project/lists",data:r.get()}).then(({data:a})=>{i("saveProject",a.data),r.save(a).then(l=>i("forgetProject",l)),e.projectTotal=a.total_all,n(a)}).catch(a=>{console.warn(a),o(a)}).finally(a=>{e.loadProjects--})})},getProjectOne({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}e.projectLoad++,i("call",{url:"project/one",data:{project_id:t}}).then(o=>{setTimeout(()=>{e.projectLoad--},10),i("saveProject",o.data),s(o)}).catch(o=>{console.warn(o),e.projectLoad--,n(o)})})},archivedProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/archived",data:{project_id:t}}).then(o=>{i("forgetProject",t),s(o)}).catch(o=>{console.warn(o),i("getProjectOne",t).catch(()=>{}),n(o)})})},removeProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/remove",data:{project_id:t}}).then(o=>{i("forgetProject",t),s(o)}).catch(o=>{console.warn(o),i("getProjectOne",t).catch(()=>{}),n(o)})})},exitProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/exit",data:{project_id:t}}).then(o=>{i("forgetProject",t),s(o)}).catch(o=>{console.warn(o),i("getProjectOne",t).catch(()=>{}),n(o)})})},saveColumn({state:e,dispatch:i},t){if($A.execMainDispatch("saveColumn",t),$A.isArray(t))t.forEach(s=>{i("saveColumn",s)});else if($A.isJson(t)){const s=e.cacheColumns.findIndex(({id:n})=>n==t.id);s>-1?e.cacheColumns.splice(s,1,Object.assign({},e.cacheColumns[s],t)):e.cacheColumns.push(t),$A.IDBSave("cacheColumns",e.cacheColumns)}},forgetColumn({state:e,dispatch:i},t){$A.execMainDispatch("forgetColumn",t);const s=$A.isArray(t)?t:[t],n=[];s.some(o=>{const r=e.cacheColumns.findIndex(a=>a.id==o);r>-1&&(i("forgetTask",e.cacheTasks.filter(a=>a.column_id==t).map(a=>a.id)),n.push(e.cacheColumns[r].project_id),e.cacheColumns.splice(r,1))}),Array.from(new Set(n)).some(o=>i("getProjectOne",o).catch(()=>{})),$A.IDBSave("cacheColumns",e.cacheColumns)},getColumns({state:e,dispatch:i},t){return new Promise(function(s,n){if(e.userId===0){e.cacheColumns=[],n({msg:"Parameter error"});return}e.projectLoad++,i("call",{url:"project/column/lists",data:{project_id:t}}).then(({data:o})=>{e.projectLoad--;const r=o.data.map(({id:a})=>a);if(e.cacheColumns=e.cacheColumns.filter(a=>a.project_id!=t||r.includes(a.id)),i("saveColumn",o.data),s(o.data),e.cacheColumns.filter(a=>a.project_id==t).length===1){const a=e.cacheProjectParameter.find(l=>l.project_id==t)||{};(typeof a.menuInit=="undefined"||a.menuInit===!1)&&i("toggleProjectParameter",{project_id:t,key:{menuInit:!0,menuType:"table"}})}}).catch(o=>{console.warn(o),e.projectLoad--,n(o)})})},removeColumn({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/column/remove",data:{column_id:t}}).then(o=>{i("forgetColumn",t),s(o)}).catch(o=>{console.warn(o),n(o)})})},saveTask({state:e,dispatch:i},t){if($A.execMainDispatch("saveTask",t),$A.isArray(t))t.forEach(s=>{i("saveTask",s)});else if($A.isJson(t)){t._time=$A.dayjs().unix(),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(o=>o.parent_id==t.id).some(o=>{i("saveTask",Object.assign(o,{archived_at:t.archived_at,archived_userid:t.archived_userid}))});let s={};typeof t.update_marking!="undefined"&&(s=$A.isJson(t.update_marking)?t.update_marking:{},delete t.update_marking);const n=e.cacheTasks.findIndex(({id:o})=>o==t.id);n>-1?e.cacheTasks.splice(n,1,Object.assign({},e.cacheTasks[n],t)):e.cacheTasks.push(t),(s.is_update_maintask===!0||t.parent_id>0&&e.cacheTasks.findIndex(({id:o})=>o==t.parent_id)===-1)&&i("getTaskOne",t.parent_id).catch(()=>{}),s.is_update_project===!0&&i("getProjectOne",t.project_id).catch(()=>{}),s.is_update_content===!0&&i("getTaskContent",t.id),s.is_update_subtask===!0&&i("getTaskForParent",t.id).catch(()=>{}),e.cacheDialogs.some(o=>{if(o.name===void 0||o.dialog_delete===1)return!1;if(o.type=="group"&&o.group_type=="task"&&o.group_info.id==t.id){t.name!==void 0&&(o.name=t.name);for(let r in o.group_info)!o.group_info.hasOwnProperty(r)||t[r]===void 0||(o.group_info[r]=t[r])}}),$A.IDBSave("cacheTasks",e.cacheTasks)}},forgetTask({state:e,dispatch:i},t){$A.execMainDispatch("forgetTask",t);const s=($A.isArray(t)?t:[t]).filter(r=>r!=e.taskArchiveView),n=[],o=[];s.some(r=>{const a=e.cacheTasks.findIndex(l=>l.id==r);a>-1&&(e.cacheTasks[a].parent_id&&n.push(e.cacheTasks[a].parent_id),o.push(e.cacheTasks[a].project_id),e.cacheTasks.splice(a,1)),e.cacheTasks.filter(l=>l.parent_id==r).some(l=>{let c=e.cacheTasks.findIndex(u=>u.id==l.id);c>-1&&(o.push(l.project_id),e.cacheTasks.splice(c,1))})}),Array.from(new Set(n)).some(r=>i("getTaskOne",r).catch(()=>{})),Array.from(new Set(o)).some(r=>i("getProjectOne",r).catch(()=>{})),s.includes(e.taskId)&&(e.taskId=0),$A.IDBSave("cacheTasks",e.cacheTasks)},todayAndOverdue({state:e,dispatch:i}){const t=$A.daytz(),s=t.format("YYYY-MM-DD");e.cacheTasks.some(n=>{if(!n.end_at)return!1;const o={},r=$A.dayjs(n.end_at);!n.today&&r.format("YYYY-MM-DD")==s&&(o.today=!0),!n.overdue&&r0&&i("saveTask",Object.assign(n,o))})},increaseTaskMsgNum({state:e},i){if($A.execMainDispatch("increaseTaskMsgNum",i),!$A.execMainCacheJudge(`increaseTaskMsgNum:${i.id}`)&&i.dialog_id){const t=e.cacheTasks.find(({dialog_id:s})=>s===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 s=e.dialogMsgs.find(({id:n})=>n==t.reply_id);s&&s.reply_num++}},decrementMsgReplyNum({state:e,dispatch:i},t){if($A.execMainDispatch("decrementMsgReplyNum",t),!$A.execMainCacheJudge(`decrementMsgReplyNum:${t.id}`)&&t.reply_id>0){const s=e.dialogMsgs.find(({id:n})=>n==t.reply_id);s&&s.reply_num--}},getTasks({state:e,dispatch:i},t){t===null&&(t={});const s=Y("tasks",t,e);return new Promise(function(n,o){if(e.userId===0){e.cacheTasks=[],o({msg:"Parameter error"});return}t.project_id&&e.projectLoad++,i("call",{url:"project/task/lists",data:s.get()}).then(({data:r})=>{t.project_id&&e.projectLoad--,i("saveTask",r.data),s.save(r).then(a=>i("forgetTask",a)),r.next_page_url?(t.page=r.current_page+1,r.current_page%30===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+r.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{i("getTasks",t).then(n).catch(o)},onCancel:()=>{n()}}):i("getTasks",t).then(n).catch(o)):n()}).catch(r=>{console.warn(r),o(r),t.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:i},t){return new Promise(function(s,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[t.task_id])){e.taskOneLoad[t.task_id].push({resolve:s,reject:n});return}e.taskOneLoad[t.task_id]=[],i("call",{url:"project/task/one",data:t}).then(o=>{i("saveTask",o.data),s(o),e.taskOneLoad[t.task_id].some(r=>{r.resolve(o)})}).catch(o=>{console.warn(o),n(o),e.taskOneLoad[t.task_id].some(r=>{r.reject(o)})}).finally(o=>{delete e.taskOneLoad[t.task_id]})})},getTaskForDashboard({state:e,dispatch:i,getters:t},s){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof s=="number"){s>-1&&(window.__getTaskForDashboard=setTimeout(n=>i("getTaskForDashboard",null),s));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,i("getTasks",null).finally(n=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:i},t){return new Promise(function(s,n){i("getTasks",{project_id:t}).then(s).catch(n)})},getTaskForParent({state:e,dispatch:i},t){return new Promise(function(s,n){i("getTasks",{parent_id:t}).then(s).catch(n)})},removeTask({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/remove",data:t}).then(o=>{e.taskArchiveView=0,i("forgetTask",t.task_id),s(o)}).catch(o=>{console.warn(o),i("getTaskOne",t.task_id).catch(()=>{}),n(o)}).finally(o=>{i("cancelLoad",`task-${t.task_id}`)})})},archivedTask({state:e,dispatch:i},t){return new Promise(function(s,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/archived",data:t}).then(o=>{i("saveTask",o.data),s(o)}).catch(o=>{console.warn(o),i("getTaskOne",t.task_id).catch(()=>{}),n(o)}).finally(o=>{i("cancelLoad",`task-${t.task_id}`)})})},getTaskContent({state:e,dispatch:i},t){$A.runNum(t)!==0&&(i("setLoad",{key:`task-${t}`,delay:1200}),i("call",{url:"project/task/content",data:{task_id:t}}).then(s=>{i("saveTaskContent",s.data)}).catch(s=>{console.warn(s)}).finally(s=>{i("cancelLoad",`task-${t}`)}))},saveTaskContent({state:e,dispatch:i},t){if($A.execMainDispatch("saveTaskContent",t),$A.isArray(t))t.forEach(s=>{i("saveTaskContent",s)});else if($A.isJson(t)){const s=e.taskContents.findIndex(({task_id:n})=>n==t.task_id);s>-1?e.taskContents.splice(s,1,Object.assign({},e.taskContents[s],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(s=>{s.data.forEach(n=>{const o=e.taskFiles.findIndex(({id:r})=>r==n.id);o>-1?e.taskFiles.splice(o,1,n):e.taskFiles.push(n)}),i("saveTask",{id:t,file_num:s.data.length})}).catch(s=>{console.warn(s)})},forgetTaskFile({state:e,dispatch:i},t){($A.isArray(t)?t:[t]).some(n=>{const o=e.taskFiles.findIndex(r=>r.id==n);o>-1&&e.taskFiles.splice(o,1)})},openTask({state:e,dispatch:i},t){let s=t;if($A.isJson(t)&&(t.parent_id>0?s=t.parent_id:s=t.id),$A.isSubElectron){s>0?$A.Electron.sendMessage("updateChildWindow",{name:`task-${s}`,path:`/single/task/${s}`}):$A.Electron.sendMessage("windowClose");return}e.taskArchiveView=s,e.taskId=s,s>0?i("getTaskOne",{task_id:s,archived:"all"}).then(()=>{i("getTaskContent",s),i("getTaskFiles",s),i("getTaskForParent",s).catch(()=>{}),i("saveTaskBrowse",s)}).catch(({msg:n})=>{$A.modalWarning({content:n,onOk:()=>{e.taskId=0}})}):e.taskOperation={}},taskAdd({state:e,dispatch:i},t){return new Promise(function(s,n){const o=$A.cloneJSON($A.newDateString(t));$A.isArray(o.column_id)&&(o.column_id=o.column_id.find(r=>r)),i("call",{url:"project/task/add",data:o,method:"post"}).then(r=>{r.data.is_visible===1&&i("addTaskSuccess",r.data),s(r)}).catch(r=>{console.warn(r),n(r)})})},taskAddSub({dispatch:e},i){return new Promise(function(t,s){e("call",{url:"project/task/addsub",data:i}).then(n=>{e("addTaskSuccess",n.data),t(n)}).catch(n=>{console.warn(n),s(n)})})},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(s,n){i("taskBeforeUpdate",t).then(({post:o})=>{i("setLoad",{key:`task-${o.task_id}`,delay:300}),i("call",{url:"project/task/update",data:o,method:"post"}).then(r=>{i("saveTask",r.data),s(r)}).catch(r=>{console.warn(r),i("getTaskOne",o.task_id).catch(()=>{}),n(r)}).finally(r=>{i("cancelLoad",`task-${o.task_id}`)})}).catch(n)})},taskBeforeUpdate({state:e,dispatch:i},t){return new Promise(function(s,n){let o=$A.cloneJSON($A.newDateString(t)),r="\u6E29\u99A8\u63D0\u793A",a=null;if(typeof o.times!="undefined"){t.times[0]===!1&&(a="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const l=e.cacheTasks.find(({id:c})=>c==o.task_id);r=l.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",l&&(l.parent_id>0?o.times[0]&&e.cacheTasks.some(c=>{if(c.id!=l.parent_id)return!1;if(!c.end_at)return a="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let u=$A.dayjs(o.times[0]).unix(),h=$A.dayjs(o.times[1]).unix(),d=$A.dayjs(c.start_at).unix(),f=$A.dayjs(c.end_at).unix();if(uf)return a="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(c=>{if(c.parent_id!=l.id||!c.end_at)return!1;let u=$A.dayjs(o.times[0]).unix(),h=$A.dayjs(o.times[1]).unix(),d=$A.dayjs(l.start_at).unix(),f=$A.dayjs(l.end_at).unix(),p=$A.dayjs(c.start_at).unix(),_=$A.dayjs(c.end_at).unix();if(d==p&&f==_)return!1;if(!o.times[0])return a=`\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(u>p)return a=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(h<_)return a=`\u65B0\u8BBE\u7F6E\u7684\u7ED3\u675F\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0}))}if(a===null){s({confirm:!1,post:o});return}$A.modalConfirm({title:r,content:a,onOk:()=>{s({confirm:!0,post:o})},onCancel:()=>{n({msg:!1})}})})},getTaskFlow({state:e,dispatch:i},{task_id:t,project_id:s}){return new Promise(function(n,o){i("call",{url:"project/task/flow",data:{task_id:t,project_id:s||0}}).then(r=>{let a=e.cacheTasks.find(({id:u})=>u==t),{data:l}=r;l.turns.some(u=>{const h=e.taskFlowItems.findIndex(({id:d})=>d==u.id);h>-1?e.taskFlowItems.splice(h,1,u):e.taskFlowItems.push(u),a&&a.flow_item_id==u.id&&a.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),n(r)}).catch(r=>{console.warn(r),o(r)})})},getTaskPriority({state:e,dispatch:i}){return new Promise(function(t,s){i("call",{url:"system/priority"}).then(n=>{e.taskPriority=n.data,t(n)}).catch(n=>{console.warn(n),s(n)})})},getColumnTemplate({state:e,dispatch:i}){return new Promise(function(t,s){i("call",{url:"system/column/template"}).then(n=>{e.columnTemplate=n.data,t(n)}).catch(n=>{console.warn(n),s(n)})})},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:s})=>s==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 s=>{$A.isArray(t)&&(t[0]=await i("taskDefaultStartTime",t[0]),t[1]=await i("taskDefaultEndTime",t[1])),s(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 s;if($A.execMainDispatch("saveDialog",t),$A.isArray(t))t.forEach(n=>{i("saveDialog",n)});else if($A.isJson(t)){t.id=parseInt(t.id);const n=e.cacheDialogs.findIndex(({id:o})=>o==t.id);if(n>-1){const o=e.cacheDialogs[n],r=t.user_ms,a=o.user_ms||0;rl.id==t.unread_one))!=null&&s.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(n,1,Object.assign({},o,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(s=>{i("updateDialogLastMsg",s)});else if($A.isJson(t))if(e.cacheDialogs.findIndex(({id:n})=>n==t.dialog_id)>-1){const n={id:t.dialog_id,last_msg:t,last_at:t.created_at||$A.daytz().format("YYYY-MM-DD HH:mm:ss")};t.mtype=="tag"&&(n.has_tag=!0),t.mtype=="todo"&&(n.has_todo=!0),t.mtype=="image"&&(n.has_image=!0),t.mtype=="file"&&(n.has_file=!0),t.link&&(n.has_link=!0),i("saveDialog",n)}else i("getDialogOne",t.dialog_id).catch(()=>{})},getDialogAuto({state:e,dispatch:i}){return new Promise(function(t,s){if(e.loadDialogAuto){s({msg:"Loading"});return}setTimeout(n=>{e.loadDialogs++},2e3),e.loadDialogAuto=!0,i("getDialogs").then(t).catch(s).finally(n=>{e.loadDialogs--,e.loadDialogAuto=!1})})},getDialogs({state:e,dispatch:i,getters:t},s){return new Promise(function(n,o){if(e.userId===0){e.cacheDialogs=[],o({msg:"Parameter error"});return}$A.isJson(s)||(s={}),typeof s.page=="undefined"&&(s.page=1),typeof s.pagesize=="undefined"&&(s.pagesize=20);const r=Y("dialogs",s,e);i("call",{url:"dialog/lists",data:r.get()}).then(({data:a})=>{i("saveDialog",a.data),r.save(a).then(l=>i("forgetDialog",l)),a.current_page===1&&i("getDialogLatestMsgs",a.data.map(({id:l})=>l)),a.next_page_url&&a.current_page<5?(s.page++,i("getDialogs",s).then(n).catch(o)):(n(),i("getDialogBeyonds"))}).catch(a=>{console.warn(a),o(a)})})},async getDialogBeyonds({state:e,dispatch:i}){const t=await $A.IDBString("dialogBeyond"),s=$A.daytz().format("YYYY-MM-DD HH");if(t==s)return;await $A.IDBSet("dialogBeyond",s);const n=a=>e.cacheDialogs.filter(a).sort((l,c)=>$A.dayjs(l.last_at)-$A.dayjs(c.last_at)).find(({id:l})=>l>0),o=n(({unread:a,last_at:l})=>a>0&&l),r=n(({todo_num:a,last_at:l})=>a>0&&l);i("call",{url:"dialog/beyond",data:{unread_at:o?o.last_at:$A.dayjs().unix(),todo_at:r?r.last_at:$A.dayjs().unix()}}).then(({data:a})=>{i("saveDialog",a)})},getDialogOne({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"dialog/one",data:{dialog_id:t}}).then(o=>{i("saveDialog",o.data),s(o)}).catch(o=>{console.warn(o),n(o)})})},getDialogTodo({state:e,dispatch:i},t){i("call",{url:"dialog/todo",data:{dialog_id:t}}).then(({data:s})=>{$A.arrayLength(s)>0?(t>0&&(i("saveDialog",{id:t,todo_num:$A.arrayLength(s)}),e.dialogTodos=e.dialogTodos.filter(n=>n.dialog_id!=t)),i("saveDialogTodo",s)):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:s})=>{$A.isJson(s)&&i("saveDialogMsgTop",s)}).catch(console.warn)},openDialog({state:e,dispatch:i},t){return new Promise(s=>{let n,o;$A.isJson(t)&&(n=t.search_msg_id,o=t.dialog_msg_id,t=t.dialog_id),requestAnimationFrame(r=>{e.dialogSearchMsgId=/^\d+$/.test(n)?n:0,e.dialogMsgId=/^\d+$/.test(o)?o:0,e.dialogId=/^\d+$/.test(t)?t:0,s()})})},openDialogUserid({state:e,dispatch:i},t){return new Promise(function(s,n){const o=e.cacheDialogs.find(r=>r.type!=="user"||!r.dialog_user?!1:r.dialog_user.userid===t);if(o){i("openDialog",o.id),s(o);return}i("call",{url:"dialog/open/user",data:{userid:t},spinner:600}).then(({data:r})=>{i("saveDialog",r),i("openDialog",r.id),s(r)}).catch(r=>{console.warn(r),n(r)})})},forgetDialog({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialog",t);const s=$A.isArray(t)?t:[t];s.some(n=>{const o=e.cacheDialogs.findIndex(r=>r.id==n);o>-1&&(i("forgetDialogMsg",e.dialogMsgs.filter(r=>r.dialog_id==t).map(r=>r.id)),e.cacheDialogs.splice(o,1))}),s.includes(e.dialogId)&&(e.dialogId=0),$A.IDBSave("cacheDialogs",e.cacheDialogs)},saveInDialog({state:e,dispatch:i},t){$A.execMainDispatch("saveInDialog",t);const s=e.dialogIns.findIndex(r=>r.uid==t.uid);s>-1?e.dialogIns.splice(s,1,Object.assign({},e.dialogIns[s],t)):e.dialogIns.push(t);const n=5e3,o=500;if(e.dialogHistory=e.dialogHistory.filter(r=>r!=t.dialog_id),e.dialogHistory.push(t.dialog_id),e.dialogMsgs.length>n&&e.dialogHistory.length>o){const r=e.dialogHistory.slice().reverse(),a=[],l=[];r.forEach(c=>{a.lengthu.dialog_id==c)>-1?a.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=a}},forgetInDialog({state:e,dispatch:i},t){$A.execMainDispatch("forgetInDialog",t);const s=e.dialogIns.findIndex(n=>n.uid==t);s>-1&&e.dialogIns.splice(s,1)},closeDialog({state:e,dispatch:i},t){if(!/^\d+$/.test(t))return;$A.execMainDispatch("closeDialog",t);const s=e.cacheDialogs.find(o=>o.id==t);s&&(s.extra_draft_has=s.extra_draft_content?1:0);const n=e.dialogMsgs.filter(o=>o.dialog_id==t);if(n.length>e.dialogMsgKeep){const o=n.sort((r,a)=>a.id-r.id).splice(e.dialogMsgKeep).map(r=>r.id);e.dialogMsgs=e.dialogMsgs.filter(r=>!o.includes(r.id)),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}},saveDialogTodo({state:e,dispatch:i},t){if($A.execMainDispatch("saveDialogTodo",t),$A.isArray(t))t.forEach(s=>{i("saveDialogTodo",s)});else if($A.isJson(t)){const s=e.dialogTodos.findIndex(n=>n.id==t.id);s>-1?e.dialogTodos.splice(s,1,Object.assign({},e.dialogTodos[s],t)):e.dialogTodos.push(t)}},forgetDialogTodoForMsgId({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogTodoForMsgId",t);const s=e.dialogTodos.findIndex(n=>n.msg_id==t);s>-1&&e.dialogTodos.splice(s,1)},saveDialogMsgTop({state:e,dispatch:i},t){if($A.execMainDispatch("saveDialogMsgTop",t),$A.isArray(t))t.forEach(s=>{i("saveDialogMsgTop",s)});else if($A.isJson(t)){e.dialogMsgTops=e.dialogMsgTops.filter(n=>n.dialog_id!=t.dialog_id);const s=e.dialogMsgTops.findIndex(n=>n.id==t.id);s>-1?e.dialogMsgTops.splice(s,1,Object.assign({},e.dialogMsgTops[s],t)):e.dialogMsgTops.push(t)}},forgetDialogMsgTopForMsgId({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogMsgTopForMsgId",t);const s=e.dialogMsgTops.findIndex(n=>n.msg_id==t);s>-1&&e.dialogMsgTops.splice(s,1)},saveDialogDraft({state:e,dispatch:i},t){e.dialogDraftTimer[t.id]&&clearInterval(e.dialogDraftTimer[t.id]),e.dialogDraftTimer[t.id]=setTimeout(s=>{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(s=>{i("saveDialogMsg",s)});else if($A.isJson(t)){const s=e.dialogMsgs.findIndex(({id:o})=>o==t.id);if(s>-1){const o=e.dialogMsgs[s];o.read_at&&delete t.read_at,t=Object.assign({},o,t),e.dialogMsgs.splice(s,1,t)}else e.dialogMsgs.push(t);$A.IDBSave("dialogMsgs",e.dialogMsgs,600);const n=e.cacheDialogs.find(({id:o})=>o==t.dialog_id);if(n){let o=!1;!t.read_at&&t.userid!=e.userId&&!e.dialogIns.find(({dialog_id:r})=>r==n.id)&&(n.unread_one?n.unread_one=Math.min(n.unread_one,t.id):n.unread_one=t.id,o=!0),n.last_msg&&n.last_msg.id==t.id&&(n.last_msg=Object.assign({},n.last_msg,t),o=!0),o&&i("saveDialog",n)}}},forgetDialogMsg({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogMsg",t),($A.isArray(t)?t:[t]).some(n=>{const o=e.dialogMsgs.findIndex(r=>r.id==n);if(o>-1){const r=e.dialogMsgs[o];i("decrementMsgReplyNum",r),i("audioStop",$A.getObject(r,"msg.path")),e.dialogMsgs.splice(o,1),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}}),i("forgetDialogTodoForMsgId",t),i("forgetDialogMsgTopForMsgId",t)},getDialogMsgs({state:e,dispatch:i,getters:t},s){return new Promise((n,o)=>{let r=h=>{},a=h=>{},l=!1,c=!1;typeof s.save_before!="undefined"&&(r=typeof s.save_before=="function"?s.save_before:h=>{},delete s.save_before),typeof s.save_after!="undefined"&&(a=typeof s.save_after=="function"?s.save_after:h=>{},delete s.save_after),typeof s.clear_before!="undefined"&&(l=typeof s.clear_before=="boolean"?s.clear_before:!1,delete s.clear_before),typeof s.spinner!="undefined"&&(c=s.spinner,delete s.spinner);const u=`msg::${s.dialog_id}-${s.msg_id}-${s.msg_type||""}`;if(t.isLoad(u)){o({msg:"Loading"});return}i("setLoad",u),l&&(e.dialogMsgs=e.dialogMsgs.filter(({dialog_id:h})=>h!==s.dialog_id),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)),s.pagesize=25,i("call",{url:"dialog/msg/list",data:s,spinner:c,complete:h=>i("cancelLoad",u)}).then(h=>{r();const d=h.data;if($A.isJson(d.dialog)){const f=d.list.map(({id:p})=>p);e.dialogMsgs=e.dialogMsgs.filter(p=>p.dialog_id!=s.dialog_id||f.includes(p.id)||$A.dayjs(p.created_at).unix()>=d.time),$A.IDBSave("dialogMsgs",e.dialogMsgs,600),i("saveDialog",d.dialog)}$A.isArray(d.todo)&&(e.dialogTodos=e.dialogTodos.filter(f=>f.dialog_id!=s.dialog_id),i("saveDialogTodo",d.todo)),$A.isJson(d.top)&&i("saveDialogMsgTop",d.top),i("saveDialogMsg",d.list),n(h),a()}).catch(h=>{console.warn(h),o(h)}).finally(h=>{if(s.prev_id){const d=e.dialogMsgs.find(({prev_id:f})=>f==s.prev_id);d&&(d.prev_id=0)}if(s.next_id){const d=e.dialogMsgs.find(({next_id:f})=>f==s.next_id);d&&(d.next_id=0)}})})},getDialogLatestMsgs({state:e,dispatch:i},t=[]){return new Promise(function(s,n){if(e.userId===0){n({msg:"Parameter error"});return}if(!$A.isArray(t)){n({msg:"Parameter is not array"});return}if(t.length===0){s();return}const o=t.slice(5),r=t.slice(0,5);i("call",{method:"post",url:"dialog/msg/latest",data:{dialogs:r.map(a=>{var l;return{id:a,latest_id:((l=e.dialogMsgs.sort((c,u)=>u.id-c.id).find(({dialog_id:c})=>c==a))==null?void 0:l.id)||0}}),take:e.dialogMsgKeep}}).then(({data:a})=>{i("saveDialogMsg",a.data),o.length>0?i("getDialogLatestMsgs",o).then(s).catch(n):s()}).catch(a=>{n(a)})})},dialogMsgRead({state:e,dispatch:i},t){if($A.isJson(t)){if(t.userid==e.userId||t.read_at)return;t.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"),e.readWaitData[t.id]=e.readWaitData[t.id]||0;const s=e.cacheDialogs.find(({id:n})=>n==t.dialog_id);if(s){let n=!1;if(t.id==s.unread_one&&(s.unread_one=0,n=!0),$A.isArray(s.mention_ids)){const o=s.mention_ids.findIndex(r=>r==t.id);o>-1&&(s.mention_ids.splice(o,1),n=!0)}n&&(i("saveDialog",s),e.readWaitData[t.id]=t.dialog_id)}}clearTimeout(e.readTimeout),e.readTimeout=setTimeout(s=>{if(e.readTimeout=null,e.userId===0||Object.values(e.readWaitData).length===0)return;const n=$A.cloneJSON(e.readWaitData);e.readWaitData={},i("call",{method:"post",url:"dialog/msg/read",data:{id:n}}).then(({data:o})=>{for(const r in n)n.hasOwnProperty(r)&&/^\d+$/.test(n[r])&&e.dialogMsgs.some(a=>{a.dialog_id==n[r]&&a.id>=r&&(a.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))});i("saveDialog",o)}).catch(o=>{e.readWaitData=n}).finally(o=>{e.readLoadNum++})},50)},dialogMsgDot({state:e,dispatch:i},t){!$A.isJson(t)||!t.dot||(t.dot=0,i("call",{url:"dialog/msg/dot",data:{id:t.id}}).then(({data:s})=>{i("saveDialog",s)}))},dialogMsgMark({state:e,dispatch:i},t){return new Promise((s,n)=>{i("call",{url:"dialog/msg/mark",data:t}).then(o=>{typeof t.after_msg_id!="undefined"&&e.dialogMsgs.some(r=>{r.dialog_id==t.dialog_id&&r.id>=t.after_msg_id&&(r.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))}),i("saveDialog",o.data),s(o)}).catch(o=>{n(o)})})},streamDialogMsg({state:e,dispatch:i},t){if(/^https*:\/\//i.test(t)||(t=$A.mainUrl(t.substring(1))),e.dialogSseList.find(n=>n.streamUrl==t))return;const s=new Ts(t);s.subscribe(["append","replace","done"],(n,o)=>{switch(n){case"append":E.Store.set("dialogMsgChange",{id:o.lastEventId,type:"append",text:o.data});break;case"replace":E.Store.set("dialogMsgChange",{id:o.lastEventId,type:"replace",text:o.data});break;case"done":const r=e.dialogSseList.findIndex(a=>s===a.sse);r>-1&&e.dialogSseList.splice(r,1),s.unsunscribe();break}}),e.dialogSseList.push({sse:s,streamUrl:t,time:$A.dayjs().unix()}),e.dialogSseList.length>10&&e.dialogSseList.shift().sse.close()},saveTranslation({state:e},i){if(!$A.isJson(i))return;const t=e.cacheTranslations.find(s=>s.key==i.key&&s.language==i.language);if(t)t.content=i.content;else{const s=U[i.language]||i.language;e.cacheTranslations.push(Object.assign(i,{label:s}))}$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},setTranslationLanguage({state:e},i){e.cacheTranslationLanguage=i,$A.IDBSave("cacheTranslationLanguage",i)},setLoad({state:e,dispatch:i},t){if($A.isJson(t)){setTimeout(n=>{i("setLoad",t.key)},t.delay||0);return}const s=e.loads.find(n=>n.key==t);s?s.num++:e.loads.push({key:t,num:1})},cancelLoad({state:e},i){const t=e.loads.find(s=>s.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(s=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(n=>n.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)||!$A.isArray(i.list))&&(i={index:0,list:[i]}),e.previewImageIndex=i.index,e.previewImageList=i.list},audioPlay({state:e,dispatch:i},t){const s=document.getElementById("__audio_play_element__");if(s&&(s.pause(),s.src="",s.parentNode.removeChild(s)),!t||t===e.audioPlaying){e.audioPlaying=null;return}const n=document.createElement("audio");n.id=e.audioPlayId="__audio_play_element__",n.controls=!1,n.loop=!1,n.volume=1,n.src=e.audioPlaying=t,n.onended=o=>{i("audioStop",n.src)},document.body.appendChild(n),n.play().then(o=>{})},audioStop({state:e},i){const t=document.getElementById("__audio_play_element__");!t||(t.src===i||i===!0)&&(t.pause(),t.src="",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=${x}`;const s=$A.openLog,n=$A.randomString(16);e.wsRandom=n,e.ws=new WebSocket(t),e.ws.onopen=async o=>{s&&console.log("[WS] Open",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.wsOpenNum++,!(window.systemInfo.debug==="yes"||e.systemConfig.e2e_message!=="open")&&i("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await i("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async o=>{s&&console.log("[WS] Close",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{n===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onerror=async o=>{s&&console.log("[WS] Error",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{n===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onmessage=async o=>{s&&console.log("[WS] Message",o);let r=$A.jsonParse(o.data);r.type==="encrypt"&&r.encrypted&&(r=await i("pgpDecryptApi",r.encrypted));const a=$A.formatMsgBasic(r),{type:l,msgId:c}=a;switch(l){case"open":$A.setSessionStorage("userWsFd",a.data.fd);break;case"receipt":typeof e.wsCall[c]=="function"&&e.wsCall[c](a.body,!0),delete e.wsCall[c];break;case"line":E.Store.set("userActive",{type:"line",data:a.data});break;case"msgStream":i("streamDialogMsg",a.stream_url);break;default:switch(c&&i("websocketSend",{type:"receipt",msgId:c}).catch(u=>{}),e.wsMsg=a,Object.values(e.wsListener).forEach(u=>{if(typeof u=="function")try{u(a)}catch(h){s&&console.log("[WS] Callerr",h)}}),l){case"dialog":(function(u){const{mode:h,silence:d,data:f}=u,{dialog_id:p}=f;switch(h){case"delete":if(i("forgetDialogMsg",f.id),e.cacheDialogs.find(({id:w})=>w==p)){const w={id:p,last_at:f.last_msg&&f.last_msg.created_at,last_msg:f.last_msg};f.update_read?i("call",{url:"dialog/msg/unread",data:{dialog_id:p}}).then(({data:S})=>{i("saveDialog",Object.assign(w,S))}).catch(()=>{}):i("saveDialog",w)}break;case"add":case"chat":if(!e.dialogMsgs.find(({id:w})=>w==f.id)){if(i("increaseTaskMsgNum",f),i("increaseMsgReplyNum",f),h==="chat"||$A.isSubElectron)return;if(f.userid!==e.userId){const w=e.cacheDialogs.find(({id:S})=>S==p);if(w){const S={id:p,unread:w.unread+1,mention:w.mention,user_at:f.user_at,user_ms:f.user_ms};f.mention&&S.mention++,i("saveDialog",S)}}d||E.Store.set("dialogMsgPush",f)}const v=(w,S)=>{if(S>5||e.dialogMsgs.find(({id:O})=>O==w.id)){i("saveDialogMsg",w),i("updateDialogLastMsg",w);return}setTimeout(O=>{v(w,++S)},20)};v(f,0);break;case"update":case"readed":const k=(w,S)=>{if(e.dialogMsgs.find(({id:O})=>O==w.id)){i("saveDialogMsg",w),typeof w.todo!="undefined"&&i("getDialogTodo",p);return}S<=5&&setTimeout(O=>{k(w,++S)},500)};k(f,0);break;case"groupAdd":case"groupJoin":case"groupRestore":i("getDialogOne",f.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:w})=>w==f.id)&&i("saveDialog",f);break;case"groupExit":case"groupDelete":i("forgetDialog",f.id);break;case"updateTopMsg":i("saveDialog",{id:f.dialog_id,top_msg_id:f.top_msg_id,top_userid:f.top_userid}),i("getDialogMsgTop",p);break}})(a);break;case"project":(function(u){const{action:h,data:d}=u;switch(h){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}})(a);break;case"projectColumn":(function(u){const{action:h,data:d}=u;switch(h){case"add":case"update":case"recovery":i("saveColumn",d);break;case"delete":i("forgetColumn",d.id);break}})(a);break;case"projectTask":(function(u){const{action:h,data:d}=u;switch(h){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}})(a);break;case"file":(function(u){const{action:h,data:d}=u;switch(h){case"add":case"update":i("saveFile",d);break;case"delete":i("forgetFile",d.id);break;case"compress":i("packProgress",d);break}})(a);break;case"report":(function({action:u}){u=="unreadUpdate"&&i("getReportUnread",1e3)})(a);break;case"approve":(function({action:u}){u=="unread"&&i("getApproveUnread",1e3)})(a);break}break}}},websocketSend({state:e},i){return new Promise((t,s)=>{var l;if(!$A.isJson(i)){s();return}const{type:n,data:o,callback:r}=i;let a;if(!e.ws){typeof r=="function"&&r(null,!1),s();return}typeof r=="function"&&(a=$A.randomString(16),e.wsCall[a]=r);try{(l=e.ws)==null||l.send(JSON.stringify({type:n,msgId:a,data:o})),t()}catch(c){typeof r=="function"&&r(null,!1),s(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(s=>{})},1e3)},websocketMsgListener({state:e},i){if(typeof i=="string"){e.wsListener[i]&&delete e.wsListener[i];return}const{name:t,callback:s}=i;typeof s=="function"?e.wsListener[t]=s: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 Le({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});t.publicKeyB64=ks(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(s=>setTimeout(s,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 s=>{$A.isJson(t)||(t={message:t});const n=t.message||t.text,o=t.publicKey||t.key||(await i("pgpGetLocalKey")).publicKey,r=await Me({armoredKey:o}),a=await Pe({message:await je({text:n}),encryptionKeys:r});s(a)})},pgpDecrypt({state:e,dispatch:i},t){return new Promise(async s=>{$A.isJson(t)||(t={encrypted:t});const n=t.encrypted||t.text,o=t.privateKey||t.key||(await i("pgpGetLocalKey")).privateKey,r=await Be({privateKey:await Oe({armoredKey:o}),passphrase:t.passphrase||e.clientId}),{data:a}=await Ue({message:await Re({armoredMessage:n}),decryptionKeys:r});s(a)})},pgpEncryptApi({state:e,dispatch:i},t){return new Promise(s=>{t=$A.jsonStringify(t),i("pgpEncrypt",{message:t,publicKey:e.apiKeyData.key}).then(n=>{s(n.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:i},t){return new Promise(s=>{i("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE----- + +`+t+` +-----END PGP MESSAGE-----`}).then(n=>{s($A.jsonParse(n))})})},closeMeetingWindow({state:e},i){e.meetingWindow={show:!1,type:i,meetingid:0}},showMeetingWindow({state:e},{type:i,meetingid:t,meetingdisabled:s,meetingSharekey:n}){e.meetingWindow={show:!0,type:i,meetingid:t,meetingdisabled:s,meetingSharekey:n}},openOkr({state:e},i){i>0&&(window.innerWidth<910?$A.goForward({path:"/manage/apps/okr/okrDetails?data="+i}):(e.okrWindow={type:"open",model:"details",show:!0,id:i},setTimeout(()=>{e.okrWindow.show=!1,e.okrWindow.id=0},10)))}},Is={};g.use(K);var de=new K.Store({state:$s,getters:vs,mutations:Is,actions:Ss}),Ds={computed:{...C(["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","userId","userToken"])}};var xs=function(){var e=this,i=e.$createElement;return e._self._c,e._e()},Cs=[];const Es={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let e=this.title,{title:i}=document;e!==i&&this.pagePath===this.$route.path&&this.setPageTile(e)},setPageTile(e){document.title=e}}},he={};var Ls=A(Es,xs,Cs,!1,Ms,null,null,null);function Ms(e){for(let i in he)this[i]=he[i]}var Ps=function(){return Ls.exports}(),js=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.visible?t("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch||e.content=="",content:e.content}},[e.type==="svg"?t("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):t("div",{staticClass:"common-pureing"})]):e._e()},Bs=[];const Os={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""},delay:{type:Number,default:0}},data(){return{visible:this.delay===0,timer:null}},mounted(){this.delay>0&&(this.timer=setTimeout(e=>{this.visible=!0},this.delay))},beforeDestroy(){this.timer&&clearTimeout(this.timer)}},fe={};var Us=A(Os,js,Bs,!1,Rs,null,null,null);function Rs(e){for(let i in fe)this[i]=fe[i]}var Ns=function(){return Us.exports}(),Ws=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:e.$isEEUiApp||e.windowTouch||!e.showTooltip||e.disabled,"max-width":e.tooltipMaxWidth,transfer:""}},[t("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])},Fs=[];const Vs={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:e,tooltipContent:i}=this;return e||i||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const e=this.$refs.content;if(!e)return;let i=document.createRange();i.setStart(e,0),i.setEnd(e,e.childNodes.length||0);const t=i.getBoundingClientRect().width;if(this.showTooltip=Math.floor(t)>Math.floor(e.offsetWidth),this.showTooltip&&this.existSlot){const s=this.$slots.default.map(n=>n.text?n.text:n.elm.innerText?n.elm.innerText:"");this.tooltipContent=s.join("")}i=null},onClick(e){this.$emit("on-click",e)}}},pe={};var Hs=A(Vs,Ws,Fs,!1,zs,null,null,null);function zs(e){for(let i in pe)this[i]=pe[i]}var Ys=function(){return Hs.exports}(),Js=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(s){return e.pasteText(s)},click:e.focus}},[t("Draggable",{attrs:{list:e.disSource,animation:150,tag:"ul",draggable:".column-item"}},e._l(e.disSource,function(s,n){return t("div",{staticClass:"tags-item column-item"},[t("span",{staticClass:"tags-content",on:{click:function(o){return o.stopPropagation(),e.edit(e.disSource,n)}}},[e._v(e._s(s))]),t("span",{staticClass:"tags-del",on:{click:function(o){return o.stopPropagation(),e.delTag(n)}}},[e._v("\xD7")])])}),0),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,enterkeyhint:e.enterkeyhint,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.downEnter(s)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"delete",[8,46],s.key,["Backspace","Delete","Del"])?null:e.delTag(!1)}],keyup:e.onKeyup,focus:e.onFocus,blur:e.onBlur,input:function(s){s.target.composing||(e.content=s.target.value)}}}),e._v(" "),e.showPlaceholder||e.tis!==""?t("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],1)},Ks=[];const Gs={name:"TagInput",components:{Draggable:We},props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){var i;const e=[];return this.value&&((i=this.value)==null||i.split(",").forEach(t=>{t&&e.push(t)})),{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:e,isFocus:!1,editShow:!1,editData:{index:0,disSource:[],name:""},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u540D\u79F0\uFF01"),trigger:"change"}]}}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(e){if(e&&typeof e=="string"){let i=[];e==null||e.split(",").forEach(t=>{t&&i.push(t)}),this.disSource=i}},disSource(e){let i="";e.forEach(t=>{i!=""&&(i+=this.cut),i+=t}),this.$emit("input",i),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{edit(e,i){this.editData.disSource=e,this.editData.index=i,this.editData.name=e[i]+"",$A.modalInput({title:"\u7F16\u8F91",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",okText:"\u786E\u5B9A",value:e[i]+"",onOk:t=>t?(this.editData.name=t,this.editData.disSource[this.editData.index]=t,this.$set(this.disSource,this.editData.index,t),!1):"\u8BF7\u8F93\u5165\u540D\u79F0"})},focus(e){const i=this.$refs.myTextarea;i.focus(e);const{cursor:t}=e||{};if(t){const s=i.value.length;switch(t){case"start":i.setSelectionRange(0,0);break;case"end":i.setSelectionRange(s,s);break;default:i.setSelectionRange(0,s)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(e){e.preventDefault();let i=(e.clipboardData||window.clipboardData).getData("text");this.addTag(!1,i)},downEnter(e){e.preventDefault()},onFocus(e){this.isFocus=!0,this.$emit("on-focus",e)},onBlur(e){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",e)},onKeyup(e){this.addTag(e,this.content),this.$emit("on-keyup",e),e.keyCode===13&&this.$nextTick(()=>{this.$emit("on-enter",e)})},addTag(e,i){if(e===!1||e.keyCode===13){i.trim()!=""&&this.disSource.indexOf(i.trim())===-1&&this.disSource.push(i.trim()),this.content="";return}if(this.max>0&&this.disSource.length>=this.max){this.content="",this.tis="\u6700\u591A\u53EA\u80FD\u6DFB\u52A0"+this.max+"\u4E2A",clearInterval(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3);return}let t=i.trim(),s=t.length-this.cut.length;t!=""&&t.substring(s)===this.cut&&(t=t.substring(0,s),t.trim()!=""&&this.disSource.indexOf(t.trim())===-1&&this.disSource.push(t.trim()),this.content="")},delTag(e){if(e===!1){if(this.content!=="")return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}},me={};var Xs=A(Gs,Js,Ks,!1,qs,null,null,null);function qs(e){for(let i in me)this[i]=me[i]}var Qs=function(){return Xs.exports}(),Zs=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._l(e.menu,function(s,n){return s.hidden!==!0?t("ETooltip",{key:n,attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch||!s.title,content:s.title,enterable:!1,"open-delay":600}},[s.children&&s.children.length>0?t("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[s.label?t("a",{style:s.style||{},attrs:{href:s.href||"javascript:void(0)",target:s.target||"_self"}},[e._v(e._s(s.label))]):e.isAliIcon(s.icon)?t("i",{staticClass:"taskfont menu-icon",style:s.style||{},domProps:{innerHTML:e._s(s.icon)}}):t("Icon",{staticClass:"menu-icon",style:s.style||{},attrs:{type:s.icon}}),t("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(s.children,function(o,r){return o.hidden!==!0?t("EDropdownItem",{key:r,style:o.style||{},attrs:{command:o.action,disabled:!!o.disabled,divided:!!o.divided}},[t("div",[e._v(e._s(o.title))])]):e._e()}),1)],1):s.label?t("a",{style:s.style||{},attrs:{href:s.href||"javascript:void(0)",target:s.target||"_self"},on:{click:function(o){return e.onClick(s.action)}}},[e._v(e._s(s.label))]):e.isAliIcon(s.icon)?t("i",{staticClass:"taskfont menu-icon",style:s.style||{},domProps:{innerHTML:e._s(s.icon)},on:{click:function(o){return e.onClick(s.action)}}}):t("Icon",{staticClass:"menu-icon",style:s.style||{},attrs:{type:s.icon},on:{click:function(o){return e.onClick(s.action)}}})],1):e._e()})],2)])},ei=[];g.use(Fe);const ti={name:"TableAction",props:{column:{type:Object,default:()=>({})},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:()=>[]}},data(){return{width:0,height:0}},mounted(){this.onUpdate()},activated(){this.onUpdate()},beforeUpdate(){this.onUpdate()},computed:{tdStyle(){const e={},{align:i}=this;switch(i.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end";break}return e}},methods:{isAliIcon(e){return $A.leftExists(e,"&#")},handleIn(){this.$refs.action.offsetWidth!=this.width&&this.onUpdate()},onUpdate(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize({width:e,height:i}){if(!this.autoWidth)return;$A(".ivu-table-column-"+this.column.__id).each((s,n)=>{let o=$A(n).find(".td-action-container");o.length>0&&(e=Math.max(e,o[0].offsetWidth),i=Math.max(i,o[0].offsetHeight))}),this.width=e,this.height=i;let t=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(t=Math.max(this.column.minWidth,t)),this.column.maxWidth&&(t=Math.min(this.column.maxWidth,t)),t!=this.column.width&&this.$nextTick(()=>{this.$set(this.column,"width",t)})},onClick(e){this.$emit("action",e)}}},ge={};var si=A(ti,Zs,ei,!1,ii,null,null,null);function ii(e){for(let i in ge)this[i]=ge[i]}var ni=function(){return si.exports}(),oi={bind(e,i,t){function s(n){if(e.contains(n.target))return!1;i.expression&&i.value(n)}e.__vueClickOutside__=s,document.addEventListener("click",s)},update(){},unbind(e,i){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}},ri=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOut,expression:"onClickOut"}],staticClass:"quick-input"},[e.isTag?t("TagInput",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(s){e.content=s},expression:"content"}}):t("Input",{ref:"input",attrs:{disabled:e.isLoad,parser:e.parser,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(s){e.content=s},expression:"content"}}),e.isLoad?t("div",{staticClass:"quick-loading"},[t("Loading")],1):e._e()],1):[t("div",{staticClass:"quick-text"},[e._t("default")],2),e.disabled?e._e():t("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(s){return s.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)},ai=[];const li={name:"QuickEdit",directives:{clickoutside:oi},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1},clickOutSide:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},parser:{type:Function}},data(){return{isLoad:!1,isEdit:!1,content:""}},mounted(){this.autoEdit===!0&&this.onEdit()},watch:{autoEdit(e){e===!0&&setTimeout(this.onEdit,0)}},methods:{onEditChange(e){this.isEdit=e,this.$emit("on-edit-change",e)},onEdit(){this.content=this.value,this.onEditChange(!0),this.$nextTick(()=>{this.$refs.input.focus({cursor:"all"})})},onKeydown(e){e.keyCode===13?this.onEnter():e.keyCode===27&&(e.preventDefault(),e.stopPropagation(),this.isEdit=!1,this.isLoad=!1)},onEnter(){if(this.content==this.value){this.onEditChange(!1);return}this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,()=>{this.onEditChange(!1),this.isLoad=!1}))},onClickOut(){!this.clickOutSide||this.onEnter()},onBlur(){this.clickOutSide||!this.isEdit||this.onEnter()}}},_e={};var ci=A(li,ri,ai,!1,ui,null,null,null);function ui(e){for(let i in _e)this[i]=_e[i]}var di=function(){return ci.exports}(),hi={props:{userid:{type:[String,Number],default:""},size:{type:[String,Number],default:"default"},showIcon:{type:Boolean,default:!0},showName:{type:Boolean,default:!1},nameText:{type:String,default:null},borderWitdh:{type:Number,default:0},borderColor:{type:String,default:""},clickOpenDialog:{type:Boolean,default:!1},userResult:{default:null}}},fi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.user?t("div",{staticClass:"avatar-wrapper common-avatar",class:{"avatar-pointer":e.clickOpenDialog},on:{click:e.onClickOpen}},[e.showIcon?t("div",{class:e.boxClass,style:e.boxStyle},[t("em",{style:e.spotStyle}),e.showImg?t("EAvatar",{ref:"avatar",class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize,error:e.onError}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])]):t("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e.showName?t("div",{staticClass:"avatar-name",style:e.nameStyle},[e.user.bot?t("div",{staticClass:"taskfont bot"},[e._v("\uE68C")]):e._e(),t("span",[e._v(e._s(e.nameText||e.user.nickname))])]):e._e()]):e._e()},pi=[];const mi={name:"UserAvatar",mixins:[hi],data(){return{user:null,subscribe:null}},mounted(){this.getData(),this.subscribe=E.Store.subscribe("userActive",({type:e,data:i})=>{i.userid==this.userid&&(e==="line"?this.user&&this.$set(this.user,"online",i.online):this.setUser(i))}),this.$store.state.userAvatar[this._uid]=this.$props},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null),this.$store.state.userAvatar[this._uid]!==void 0&&delete this.$store.state.userAvatar[this._uid]},computed:{boxClass(){return{"avatar-box":!0,online:this.$store.state.userId===this.userid||this.user.online||this.isBot,disabled:this.user.disable_at,deleted:this.user.delete_at}},boxStyle(){const e={},{borderWitdh:i,borderColor:t}=this;return i>0&&(e.border=i+"px solid "+(t||"#ffffff")),e},spotStyle(){let{borderWitdh:e,size:i}=this;return i==="default"&&(i=32),e>0&&(i-=e),i==32?{}:{transform:"scale("+Math.min(1.25,i/32)+")"}},nameStyle(){const{showIcon:e}=this,{delete_at:i,disable_at:t}=this.user,s={};return e||(s.marginLeft=0),(i||t)&&(s.opacity=.8,s.textDecoration="line-through"),s},avatarSize(){let{borderWitdh:e,size:i}=this;return i==="default"&&(i=32),e>0?i-e*2:i},showImg(){const{userimg:e}=this.user;return e?!$A.rightExists(e,"/avatar.png"):!1},isDefault(){const{userimg:e}=this.user;return $A.strExists(e,"/avatar")},isBot(){return!!(this.user&&this.user.bot)},nickname(){const{nickname:e}=this.user;if(!e)return"D";let i=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(i)&&(i=i.substring(0,1)),i||"D"}},watch:{userid(){this.getData()}},methods:{getData(){if(!this.$store.state.userId)return;const e=this.$store.state.cacheUserBasic.find(({userid:i})=>i==this.userid);e&&this.setUser(e),this.$store.dispatch("getUserBasic",{userid:this.userid})},setUser(e){try{this.user&&this.user.userimg!=e.userimg&&this.$refs.avatar&&(this.$refs.avatar.$data.isImageExist=!0)}catch{}this.user=e,typeof this.userResult=="function"&&this.userResult(e)},onClickOpen(){this.clickOpenDialog?this.openDialog():this.$emit("open-dialog",this.userid)},openDialog(){this.$store.dispatch("openDialogUserid",this.userid).then(e=>{this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{$A.modalError(e)})},onError(){return!0}}},we={};var gi=A(mi,fi,pi,!1,_i,null,null,null);function _i(e){for(let i in we)this[i]=we[i]}var wi=function(){return gi.exports}(),yi=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("img",{attrs:{src:e.srcValue,alt:e.alt},on:{"~error":function(s){return e.onError.apply(null,arguments)}}})},$i=[];const vi={name:"ImgView",props:{src:{default:""},errorSrc:{default:""},alt:{default:""}},computed:{srcValue({src:e}){return this.toSrc(e)}},methods:{toSrc(e){return e.substring(0,10)==="data:image"||e.substring(0,2)==="//"||e.substring(0,7)==="http://"||e.substring(0,8)==="https://"||e.substring(0,6)==="ftp://"||e.substring(0,1)==="/"?e:$A.mainUrl(e)},onError(e){!this.errorSrc||(e.target.src=this.toSrc(this.errorSrc))}}},ye={};var Ai=A(vi,yi,$i,!1,ki,null,null,null);function ki(e){for(let i in ye)this[i]=ye[i]}var bi=function(){return Ai.exports}();function b(e){return parseInt(e,10)||0}const P=typeof window!="undefined"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch);function $e(e){return e?getComputedStyle(e):{}}function N(e,i){if(e)for(const t in i){let s=i[t];typeof s=="number"&&(s=`${s}px`),e.style[t]=s}return e}var Ti={name:"Scrollbar",props:{tag:{type:String,default:"div"},className:{type:String,default:""},enableX:{type:Boolean,default:!1},enableY:{type:Boolean,default:!0},hideBar:{type:Boolean,default:!1},minSize:{type:Number,default:20},touchContentBlur:{type:Boolean,default:!0}},data(){return{isReady:!1,scrollingX:!1,scrollingY:!1,moveingX:!1,moveingY:!1,containerWidth:null,containerHeight:null,contentWidth:null,contentHeight:null,contentOverflow:{x:null,y:null},thumbYHeight:null,thumbYTop:null,thumbXWidth:null,thumbXLeft:null,lastScrollTop:0,lastScrollLeft:0,timeouts:{}}},computed:{containerClass(){const e=["scrollbar-container"];return P?e.push("scrollbar-touch"):e.push("scrollbar-desktop"),this.contentWidth>this.containerWidth&&this.contentOverflow.x!=="hidden"&&this.enableX&&e.push("scrollbar-active-x"),this.contentHeight>this.containerHeight&&this.contentOverflow.y!=="hidden"&&this.enableY&&e.push("scrollbar-active-y"),this.scrollingX&&e.push("scrollbar-scrolling-x"),this.scrollingY&&e.push("scrollbar-scrolling-y"),this.moveingX&&e.push("scrollbar-moveing-x"),this.moveingY&&e.push("scrollbar-moveing-y"),(this.hideBar||!this.isReady)&&e.push("scrollbar-hidebar"),e},contentClass({className:e,enableX:i,enableY:t}){const s=["scrollbar-content"];return e&&s.push(e),i||s.push("scrollbar-disable-x"),t||s.push("scrollbar-disable-y"),s}},mounted(){this.$nextTick(()=>{this.updateBase()})},updated(){this.$nextTick(()=>{this.updateGeometry(!1)})},methods:{scrollInfo(){const e=$A(this.$refs.content),i=Math.round(e.innerHeight()),t=e.scrollTop(),s=this.$refs.content.scrollHeight;return{scale:t/(s-i),scrollY:t,scrollE:s-i-t}},scrollElement(){return this.$refs.content},querySelector(e){return this.$refs.content&&this.$refs.content.querySelector(e)},updateBase(){if(P)return;const e=$e(this.$refs.container),i=$e(this.$refs.content);N(this.$refs.trackX,{left:b(e.paddingLeft)+b(i.marginLeft),right:b(e.paddingRight)+b(i.marginRight),bottom:b(e.paddingBottom)+b(i.marginBottom)}),N(this.$refs.trackY,{top:b(e.paddingTop)+b(i.marginTop),bottom:b(e.paddingBottom)+b(i.marginBottom),right:b(e.paddingRight)+b(i.marginRight)}),this.contentOverflow={x:i.overflowX,y:i.overflowY}},updateGeometry(e){if(P)return;const i=this.$refs.content;if(!i)return;const t=Math.floor(i.scrollTop),s=i.getBoundingClientRect();this.containerWidth=Math.round(s.width),this.containerHeight=Math.round(s.height),this.contentWidth=i.scrollWidth,this.contentHeight=i.scrollHeight,this.thumbXWidth=Math.max(b(this.containerWidth*this.containerWidth/this.contentWidth),this.minSize),this.thumbXLeft=b(i.scrollLeft*(this.containerWidth-this.thumbXWidth)/(this.contentWidth-this.containerWidth)),this.thumbYHeight=Math.max(b(this.containerHeight*this.containerHeight/this.contentHeight),this.minSize),this.thumbYTop=b(t*(this.containerHeight-this.thumbYHeight)/(this.contentHeight-this.containerHeight)),N(this.$refs.thumbX,{left:this.thumbXLeft,width:this.thumbXWidth}),N(this.$refs.thumbY,{top:this.thumbYTop,height:this.thumbYHeight}),e&&(this.scrollingX=this.lastScrollLeft!==i.scrollLeft,this.scrollingY=this.lastScrollTop!==i.scrollTop,this.lastScrollTop=i.scrollTop,this.lastScrollLeft=i.scrollLeft,this.timeouts.scroll&&clearTimeout(this.timeouts.scroll),this.timeouts.scroll=setTimeout(()=>{this.scrollingX=!1,this.scrollingY=!1},1e3))},onContainerMouseMove(){var e;(e=this.$store)!=null&&e.state.windowTouch||setTimeout(()=>{this.isReady||(this.updateGeometry(!0),this.isReady=!0)},300)},onContentTouchStart(e){if(!this.touchContentBlur)return;const i=document.activeElement;i&&i.blur()},onContentScroll(e){this.updateGeometry(!0),this.$emit("on-scroll",e),this.isReady=!0},onContentMouseenter(){this.updateBase(),this.updateGeometry(!1)},onTrackXMouseDown(e){if(P)return;const i=this.$refs.content,t=this.$refs.trackX.getBoundingClientRect(),n=e.pageX-window.scrollX-t.left>this.thumbXLeft?1:-1;i.scrollLeft+=n*this.containerWidth,this.updateGeometry(!0),e.stopPropagation()},onTrackYMouseDown(e){if(P)return;const i=this.$refs.content,t=this.$refs.trackY.getBoundingClientRect(),n=e.pageY-window.scrollY-t.top>this.thumbYTop?1:-1;i.scrollTop+=n*this.containerHeight,this.updateGeometry(!0),e.stopPropagation()},onThumbXMouseDown(e){if(P)return;const i=this.$refs.content,t=i.getBoundingClientRect(),s=i.scrollLeft,n=e.pageX-window.scrollX,o=a=>{const l=a.pageX-n;i.scrollLeft=s+l*this.contentWidth/t.width},r=()=>{this.timeouts.moveX=setTimeout(()=>{this.moveingX=!1},100),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};this.moveingX=!0,this.timeouts.moveX&&clearTimeout(this.timeouts.moveX),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),e.preventDefault(),e.stopPropagation()},onThumbYMouseDown(e){if(P)return;const i=this.$refs.content,t=i.getBoundingClientRect(),s=i.scrollTop,n=e.pageY-window.scrollY,o=a=>{const l=a.pageY-n;i.scrollTop=s+l*this.contentHeight/t.height},r=()=>{this.timeouts.moveY=setTimeout(()=>{this.moveingY=!1},100),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};this.moveingY=!0,this.timeouts.moveY&&clearTimeout(this.timeouts.moveY),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),e.preventDefault(),e.stopPropagation()}},render(e){return e("div",{ref:"container",class:this.containerClass,on:{"~mousemove":this.onContainerMouseMove}},[e(this.tag,{ref:"content",class:this.contentClass,on:{touchstart:this.onContentTouchStart,scroll:this.onContentScroll,mouseenter:this.onContentMouseenter}},this.$slots.default),e("div",{ref:"trackX",class:"scrollbar-track-x",on:{mousedown:this.onTrackXMouseDown}},[e("div",{ref:"thumbX",class:"scrollbar-thumb-x",on:{mousedown:this.onThumbXMouseDown}})]),e("div",{ref:"trackY",class:"scrollbar-track-y",on:{mousedown:this.onTrackYMouseDown}},[e("div",{ref:"thumbY",class:"scrollbar-thumb-y",on:{mousedown:this.onThumbYMouseDown}})])])}};const X=!!(window&&window.process&&window.process.type),q=window&&window.navigator&&/eeui/i.test(window.navigator.userAgent),Q=X||q,I=$A.urlParameterAll();if(I.language||I.theme||I.userid||I.token){I.language&&window.localStorage.setItem("__system:languageName__",I.language),I.theme&&window.localStorage.setItem("__system:themeConf__",I.language),I.userid&&window.localStorage.setItem("__system:userId__",I.userid),I.token&&window.localStorage.setItem("__system:userToken__",I.token);const e=$A.removeURLParameter(window.location.href,["theme","language","userid","token"]);window.history.replaceState(null,"",e)}g.use(K);g.use(W);g.use(Ne,{config:{autoSetContainer:!0}});g.use(T,{modal:{checkEscClose:!0}});g.component("PageTitle",Ps);g.component("Loading",Ns);g.component("AutoTip",Ys);g.component("TagInput",Qs);g.component("TableAction",ni);g.component("QuickEdit",di);g.component("UserAvatar",wi);g.component("ImgView",bi);g.component("Scrollbar",Ti);g.component("EAvatar",B.exports.Avatar);g.component("ETooltip",B.exports.Tooltip);g.component("EPopover",B.exports.Popover);g.component("EDropdown",B.exports.Dropdown);g.component("EDropdownMenu",B.exports.DropdownMenu);g.component("EDropdownItem",B.exports.DropdownItem);const Si=W.prototype.push;W.prototype.push=function(i){return Si.call(this,i).catch(t=>t)};const J=new W({mode:Q&&!/https*:/i.test(window.location.protocol)?"hash":"history",routes:ws});Q||(T.LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"}),J.beforeEach((e,i,t)=>{T.LoadingBar._timer&&clearTimeout(T.LoadingBar._timer),T.LoadingBar._timer=setTimeout(s=>{T.LoadingBar._load=!0,T.LoadingBar.start()},300),t()}),J.afterEach(()=>{T.LoadingBar._timer&&clearTimeout(T.LoadingBar._timer),T.LoadingBar._load===!0&&(T.LoadingBar._load=!1,T.LoadingBar.finish())}));g.prototype.goForward=function(e,i){typeof e=="string"&&(e={name:e}),y.$store.state.routeHistorys.length===0&&y.$store.state.routeHistorys.push(y.$route),i===!0?y.$router.replace(e).then(t=>{y.$store.state.routeHistorys.pop(),y.$store.state.routeHistorys.push(t)}).catch(t=>{}):y.$router.push(e).then(t=>{const s=y.$store.state.routeHistorys.push(t);s>120&&y.$store.state.routeHistorys.splice(s-100),y.$store.state.routeHistoryLast=s>=2?y.$store.state.routeHistorys[s-2]:{}}).catch(t=>{})};g.prototype.goBack=function(){if(y.$store.state.routeHistorys.length>1){y.$router.back(),y.$store.state.routeHistorys.pop();const e=y.$store.state.routeHistorys.length;y.$store.state.routeHistoryLast=e>=2?y.$store.state.routeHistorys[e-2]:{}}else y.$router.replace({path:"/"}).catch(e=>{}),y.$store.state.routeHistorys=[],y.$store.state.routeHistoryLast={}};g.prototype.copyText=function(e){if($A.isJson(e)||(e={text:e,success:"\u590D\u5236\u6210\u529F",error:"\u590D\u5236\u5931\u8D25"}),$A.isEEUiApp){$A.eeuiAppCopyText(e.text),e.success&&$A.messageSuccess(e.success);return}y.$copyText(e.text).then(i=>{e.success&&$A.messageSuccess(e.success)}).catch(i=>{e.error&&$A.messageError(e.error)})};$A.L=G;$A.Electron=null;$A.Platform="web";$A.isMainElectron=!1;$A.isSubElectron=!1;$A.isEEUiApp=q;$A.isElectron=X;$A.isSoftware=Q;$A.openLog=!1;X?($A.Electron=electron,$A.Platform=/macintosh|mac os x/i.test(navigator.userAgent)?"mac":"win",$A.isMainElectron=/\s+MainTaskWindow\//.test(window.navigator.userAgent),$A.isSubElectron=/\s+SubTaskWindow\//.test(window.navigator.userAgent)):q&&($A.Platform=/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"ios":"android");$A.execMainDispatch=(e,i)=>{$A.isSubElectron&&$A.Electron.sendMessage("sendForwardMain",{channel:"dispatch",data:{action:e,data:i}})};window.execMainCacheData={};$A.execMainCacheJudge=e=>{const i=window.execMainCacheData[e]||!1;return window.execMainCacheData[e]=!0,i};$A.bindScreenshotKey=e=>{let i="";const t=(e.screenshot_key||"").trim().toLowerCase();t&&(i=/macintosh|mac os x/i.test(navigator.userAgent)?"command":"ctrl",i=`${i}+shift+${t.toLowerCase()}`),$A.Electron.sendMessage("bindScreenshotKey",{key:i})};g.prototype.$A=$A;g.prototype.$L=G;g.prototype.$Electron=$A.Electron;g.prototype.$Platform=$A.Platform;g.prototype.$isMainElectron=$A.isMainElectron;g.prototype.$isSubElectron=$A.isSubElectron;g.prototype.$isEEUiApp=$A.isEEUiApp;g.prototype.$isSoftware=$A.isSoftware;g.config.productionTip=!1;g.mixin(Ds);let y;de.dispatch("init").then(e=>{Ve(),y=new g({router:J,store:de,render:i=>i(_s),template:""}).$mount("#app"),$A.goForward=y.goForward,$A.goBack=y.goBack,$A.Message=y.$Message,$A.Notice=y.$Notice,$A.Modal=y.$Modal,e==="handleClearCache"&&$A.messageSuccess("\u6E05\u9664\u6210\u529F"),typeof window.LANGUAGE_DATA[`i_${x}`]!="undefined"&&T.locale(window.LANGUAGE_DATA[`i_${x}`])});export{bi as I,un as M,xt as N,Wt as T,Jt as U,U as a,cn as b,oi as c,$s as d,Ye as e,dn as i,x as l,hi as m,A as n,de as s}; diff --git a/public/js/build/app.d8851986.js b/public/js/build/app.d8851986.js deleted file mode 100644 index 4c88ad29c..000000000 --- a/public/js/build/app.d8851986.js +++ /dev/null @@ -1,87 +0,0 @@ -import{m as ve}from"./@micro-zoe.c2e1472d.js";import{v as ke}from"./jquery.a7761dd9.js";import{v as be,a as Te,b as Se}from"./dayjs.93c58ba1.js";import{v as Ie}from"./localforage.81c5d73d.js";import{m as ye}from"./markdown-it.f48c10fc.js";import{H as W}from"./highlight.js.24fdca15.js";import{m as De}from"./markdown-it-link-attributes.e1d5d151.js";import{m as Ce}from"./@traptitech.b5c819e2.js";import{V as g}from"./vue.c448ed56.js";import{m as x,a as $e,V as J}from"./vuex.cc7cb26e.js";import{_ as m,c as Ee,V as xe,d as Le,n as Me,l as Pe,W as je,p as Be,r as Oe}from"./openpgp_hi.15f91b1d.js";import{a as V}from"./axios.6ec123f8.js";import{l as E}from"./le5le-store.b40f9152.js";import{V as F}from"./vue-router.2d566cd7.js";import{V as Ue}from"./vue-clipboard2.6e355525.js";import{V as S}from"./view-design-hi.563cfadb.js";import{D as Re}from"./vuedraggable.dbf1607a.js";import{V as Ne}from"./vue-resize-observer.452c7636.js";import{e as B}from"./element-sea.e89b014c.js";import"./@babel.49d8906a.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./clipboard.7eddb2ef.js";import"./sortablejs.20b8ddfe.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";function Fe(){let e={},i={loader(t,s){return t}};e["micro-app"]=[i],e["okr-details"]=[i],ve.start({plugins:{modules:e}})}var We={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",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439 \u044F\u0437\u044B\u043A"},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 U=We,Ae=U.languageList,T=U.getLanguage(),j={};typeof window.LANGUAGE_DATA=="undefined"&&(window.LANGUAGE_DATA={});function Zi(e){if(!$A.isArray(e))return;const i=Object.assign(Object.keys(Ae));e.some(t=>{let s=-1;t.key&&i.some(n=>{const o=t[n]||t.general||null;o&&typeof window.LANGUAGE_DATA[n]!="undefined"&&(s=window.LANGUAGE_DATA[n].push(o)-1)}),s>-1&&(window.LANGUAGE_DATA.key[t.key]=s)})}function Ve(e,i=!1){e!==void 0&&(i?(U.saveLanguage(e),(async()=>(await $A.IDBDel("callAt"),$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:()=>Ve(e,!0)}))}function K(e){var t;if(typeof arguments[1]!="undefined")return K(U.replaceArgumentsLanguage(e,arguments));if(typeof e!="string"||!e||typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined"||typeof window.LANGUAGE_DATA[T]=="undefined")return e;const i=window.LANGUAGE_DATA.key[e]||-1;if(i>-1)return window.LANGUAGE_DATA[T][i]||e;if(typeof j[e]=="undefined"){j[e]=!1;for(let s in window.LANGUAGE_DATA.key)if(s.indexOf("(*)")>-1){const n=new RegExp("^"+U.replaceEscape(s)+"$","g");if(n.test(e)){let o=0;const r=window.LANGUAGE_DATA.key[s],a=(t=window.LANGUAGE_DATA[T][r]||s)==null?void 0:t.replace(/\(\*\)/g,function(){return"$"+ ++o});j[e]={rege:n,value:a};break}}}return j[e]?e.replace(j[e].rege,j[e].value):(window.systemInfo.debug==="yes"&&setTimeout(s=>{try{let n="__language:Undefined__",o=JSON.parse(window.localStorage.getItem(n)||"[]");$A.isArray(o)||(o=[]);let r=null;o.find(l=>(r=new RegExp("^"+l.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(r)))||(o.push(e),window.localStorage.setItem(n,JSON.stringify(o)))}catch{}},10),e)}const L=Ie,M=be,ze=Te,He=Se;(function(e,i,t){e.systemInfo=e.systemInfo||{},e.modalTransferIndex=1e3,L.config({name:"DooTask",storeName:"common"}),i.extend({isArray(s){return typeof s=="object"&&Object.prototype.toString.call(s).toLowerCase()=="[object array]"&&typeof s.length=="number"},isJson(s){return typeof s=="object"&&Object.prototype.toString.call(s).toLowerCase()=="[object object]"&&typeof s.length=="undefined"},inArray(s,n,o=!1){return this.isArray(n)?o?!!n.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(s)?!0:r==s):n.includes(s):!1},randNum(s,n){let o=n-s,r=Math.random();return s+Math.round(r*o)},last(s){let n=!1;return typeof s=="object"&&s.length>0&&(n=s[s.length-1]),n},strExists(s,n,o=!1){return s+="",n+="",o!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.indexOf(n)!==-1},leftExists(s,n,o=!1){return s+="",n+="",o!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.substring(0,n.length)===n},leftDelete(s,n,o=!1){return s+="",n+="",this.leftExists(s,n,o)&&(s=s.substring(n.length)),s||""},rightExists(s,n,o=!1){return s+="",n+="",o!==!0&&(s=s.toLowerCase(),n=n.toLowerCase()),s.substring(s.length-n.length)===n},rightDelete(s,n,o=!1){return s+="",n+="",this.rightExists(s,n,o)&&(s=s.substring(0,s.length-n.length)),s||""},getMiddle(s,n=null,o=null){return s=s.toString(),this.isHave(n)&&this.strExists(s,n)&&(s=s.substring(s.indexOf(n)+n.length)),this.isHave(o)&&this.strExists(s,o)&&(s=s.substring(0,s.indexOf(o))),s},subString(s,n,o){return s+="",this.isHave(o)||(o=s.length),s.substring(n,o)},randomString(s){s=s||32;let n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",o=n.length,r="";for(let a=0;aa?k=l-k:k<-a&&(k=l+k),_=u*Math.cos(d)*k,A=u*(d-p),w=Math.sqrt(_*_+A*A).toFixed(0),w},setTile(s){document.title=s;let n=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(n)){let o=document.createElement("iframe");o.style.display="none",o.setAttribute("src","/favicon.ico");let r=function(){setTimeout(function(){o.removeEventListener("load",r),document.body.removeChild(o)},0)};o.addEventListener("load",r),document.body.appendChild(o)}},cloneJSON(s){return typeof s!="object"||s===null?s:$A.jsonParse($A.jsonStringify(s))},jsonParse(s,n=t){if(s===null)return n||{};if(typeof s=="object")return s;try{return JSON.parse(s.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch{return n||{}}},jsonStringify(s,n=t){if(typeof s!="object")return s;try{return JSON.stringify(s)}catch{return n||""}},resize(s,n){let o=$A(s);if(o.length===0)return;let r=parseInt(o.outerHeight()),a=parseInt(o.outerWidth()),l=setInterval(()=>{o.length===0&&clearInterval(l);let c=parseInt(o.outerHeight()),u=parseInt(o.outerWidth());(r!==c||a!==u)&&(r=c,a=u,$A.openLog&&console.log(a,r),typeof n=="function"&&n())},250)},screenOrientation(){return $A(e).width()-$A(e).height()>50?"landscape":"portrait"},isIos(){let s=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return s&&/iphone|ipad|ipod|ios/.test(s)},isAndroid(){let s=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return s&&s.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(s,n){let o=s;return this.count(s)===0||this.count(n)===0?"":(n.replace(/,/g,"|").replace(/\./g,"|").split("|").some(a=>{o=typeof o[a]=="undefined"?"":o[a]}),o)},count(s){try{if(typeof s=="undefined")return 0;if(typeof s=="number"&&(s+=""),typeof s.length=="number")return s.length;{let n=0,o;for(o in s)n++;return n}}catch{return 0}},stringLength(s){return typeof s=="number"||typeof s=="string"?(s+"").length:0},arrayLength(s){if(s)try{return s.length}catch{return 0}return 0},objImplode(s){if(s===null)return"";let n="";return $A.each(s,(o,r)=>{r!==null&&(typeof r=="object"&&this.count(r)>0?n+=this.objImplode(r):n+=String(r))}),n.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter(s){let n=this.urlParameterAll();return typeof s=="undefined"?n:n[s]},urlParameterAll(){let s=e.location.search||e.location.hash||"",n=[];this.strExists(s,"?")&&(n=this.getMiddle(s,"?").split("&"));let o={};for(let r=0;r{s=$A.removeURLParameter(s,r)}),s;let o=s.split("?");if(o.length>=2){let r=encodeURIComponent(n)+"=",a=o[1].split(/[&;]/g);for(let l=a.length;l-- >0;)a[l].lastIndexOf(r,0)!==-1&&a.splice(l,1);return o[0]+(a.length>0?"?"+a.join("&"):"")}return s},urlAddParams(s,n){if($A.isJson(n)){s&&(s=this.removeURLParameter(s,Object.keys(n))),s+="",s+=s.indexOf("?")===-1?"?":"";for(let o in n)!n.hasOwnProperty(o)||(s+="&"+o+"="+n[o])}return this.rightDelete(s.replace("?&","?"),"?")},reloadUrl(){if($A.isEEUiApp&&$A.isAndroid()){let s=e.location.href,n="_=",o=new RegExp(n+"\\d+"),r=$A.dayjs().valueOf();if(s.indexOf(n)>-1)s=s.replace(o,n+r);else if(s.indexOf("?")>-1){let a=s.split("?");a[1]?s=a[0]+"?"+n+r+"&"+a[1]:s=a[0]+"?"+n+r}else s.indexOf("#")>-1?s=s.split("#")[0]+"?"+n+r+location.hash:s=s+"?"+n+r;$A.eeuiAppSetUrl(s)}else e.location.reload()},stringConnect(...s){let n=null,o="";return s.forEach(r=>{n===null?n=r:r&&(r&&o&&(o+=n),o+=r)}),o},objEquals(s,n){let o=s instanceof Object,r=n instanceof Object;if(!o||!r)return s===n;if(Object.keys(s).length!==Object.keys(n).length)return!1;for(let a in s)if(s.hasOwnProperty(a)){let l=s[a]instanceof Object,c=n[a]instanceof Object;if(l&&c){if(!this.objEquals(s[a],n[a]))return!1}else if(s[a]!=n[a])return!1}return!0},insert2Input(s,n){if(s===null||typeof s!="object")return;typeof s.length=="number"&&s.length>0&&(s=s[0]);let o=typeof s.$el=="object"?$A(s.$el):$A(s);if(o.length===0)return;let r=o[0];if(r.tagName!="INPUT"&&r.tagName!="TEXTAREA"&&(o.find("input").length===0?o=o.find("textarea"):o=o.find("input")),o.length===0||(r=o[0],r.tagName!="INPUT"&&r.tagName!="TEXTAREA"))return;let a=o.val(),{selectionStart:l,selectionEnd:c}=r;o.val(`${a.substring(0,l)}${n}${a.substring(c,a.length)}`),r.dispatchEvent(new Event("input")),setTimeout(()=>{if(r.setSelectionRange){let u=a.substring(0,l).length+n.length;r.focus(),r.setSelectionRange(u,u)}},10)},iOSKeyboardFixer(){!this.isIos()||(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},loadScript(s){return new Promise(async(n,o)=>{if(s=$A.originUrl(s),this.rightExists(s,".css"))return n(this.loadCss(s));let r=0;for(;this.__loadScript[s]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),r++,r>30)return o("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadScript[s]==="loaded")return n(!1);this.__loadScript[s]="loading";const a=document.createElement("script");a.type="text/javascript",a.readyState?a.onreadystatechange=()=>{(a.readyState==="loaded"||a.readyState==="complete")&&(a.onreadystatechange=null,this.__loadScript[s]="loaded",n(!0))}:(a.onload=()=>{this.__loadScript[s]="loaded",n(!0)},a.onerror=l=>{this.__loadScript[s]="error",o(l)}),this.rightExists(s,".js")?a.src=s+"?hash="+e.systemInfo.version:a.src=s,document.body.appendChild(a)})},loadScriptS(s){return new Promise(n=>{let o=0;const r=()=>{++o{if(s=$A.originUrl(s),this.rightExists(s,".js"))return n(this.loadScript(s));let r=0;for(;this.__loadCss[s]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),r++,r>30)return o("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadCss[s]==="loaded")return n(!1);this.__loadCss[s]="loading";const a=document.createElement("link");a.readyState?a.onreadystatechange=()=>{(a.readyState=="loaded"||a.readyState=="complete")&&(a.onreadystatechange=null,this.__loadCss[s]="loaded",n(!0))}:(a.onload=()=>{this.__loadCss[s]="loaded",n(!0)},a.onerror=l=>{this.__loadCss[s]="error",o(l)}),a.rel="stylesheet",this.rightExists(s,".css")?a.href=s+"?hash="+e.systemInfo.version:a.href=s,document.getElementsByTagName("head").item(0).appendChild(a)})},loadCssS(s){return new Promise(n=>{let o=0;const r=()=>{++o{s=$A.originUrl(s);let a=0;for(;this.__loadIframe[s]==="loading";)if(await new Promise(c=>setTimeout(c,1e3)),a++,a>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadIframe[s]==="loaded")return o(!1);this.__loadIframe[s]="loading";const l=document.createElement("iframe");l.style.display="none",l.src=s,l.onload=()=>{this.__loadIframe[s]="loaded",o(!0),n>0&&setTimeout(()=>{document.body.removeChild(l),delete this.__loadIframe[s]},n)},l.onerror=c=>{this.__loadIframe[s]="error",r(c)},document.body.appendChild(l)})},loadIframes(s){return new Promise(n=>{let o=0;const r=()=>{++o&"]/g,function(n){return{"<":"<",">":">","&":"&",'"':"""}[n]})},getDomain(s){let n=/http(s)?:\/\/([^\/]+)/i,o=(s+"").match(n);return o!=null&&o.length>0?o[2]:""},scrollToView(s,n){if(!!s){if(typeof n=="undefined"||n===!0?n={block:"start",inline:"nearest"}:n===!1&&(n={block:"end",inline:"nearest"}),typeof n.scrollMode!="undefined"&&typeof e.scrollIntoView=="function"){e.scrollIntoView(s,n);return}try{s.scrollIntoView(n)}catch{typeof e.scrollIntoView=="function"&&e.scrollIntoView(s,n)}}},scrollIntoViewIfNeeded(s){!s||(typeof s.scrollIntoViewIfNeeded=="function"?s.scrollIntoViewIfNeeded():$A.scrollToView(s,{block:"nearest",inline:"nearest"}))},scaleToScale(s,n,o,r){let a,l;return s>0&&n>0?(s/n>=o/r?s>o?(a=o,l=n*o/s):(a=s,l=n):n>r?(l=r,a=s*r/n):(a=s,l=n),{width:parseInt(a),height:parseInt(l)}):{width:s,height:n}},scrollPreventThrough(s){if(!s||s.getAttribute("data-prevent-through")==="yes")return;s.setAttribute("data-prevent-through","yes");let n=null;s.addEventListener("touchstart",function(o){n=Math.floor(o.targetTouches[0].clientY)}),s.addEventListener("touchmove",function(o){let r=Math.floor(o.targetTouches[0].clientY),a=s.scrollTop,l=s.scrollHeight,c=s.clientHeight;(a<=0&&r-n>0||a>=l-c&&r-n<0)&&o.preventDefault()},!1)},getAttr(s,n,o=""){return s?s.getAttribute(n):o},onBlur(s=null,n=!1){setTimeout(o=>{if($A.eeuiAppKeyboardHide(),typeof s=="boolean"&&(n=s,s=null),s)s.blur();else if(document.activeElement)if(n===!0&&document.activeElement.tagName==="BODY"){let r=document.getElementById("toLoseFocusInput");r||(r=document.createElement("input"),r.id="toLoseFocusInput",r.type="text",r.style.position="fixed",r.style.top="0px",r.style.left="0px",r.style.zIndex="-1",r.style.opacity="0",r.addEventListener("focus",a=>{document.activeElement.blur()}),document.body.appendChild(r)),setTimeout(a=>{r.focus()},1)}else document.activeElement.blur()},1)},sortObject(s,n=[]){return Object.keys(s).sort().reduce(function(o,r){return n.includes(r)||(o[r]=s[r]),o},{})}}),i.extend({__IDBTimer:{},async IDBTest(){try{$A.isIos()&&await L.setItem("__test__",$A.dayjs().valueOf()),$A.openLog&&console.log("IDBTest OK")}catch(s){$A.openLog?(console.error("IDBTest Error: ",s),$A.modalWarning({content:s.message,onOk:()=>{$A.reloadUrl()}})):$A.reloadUrl()}},IDBSave(s,n,o=100){typeof this.__IDBTimer[s]!="undefined"&&(clearTimeout(this.__IDBTimer[s]),delete this.__IDBTimer[s]),this.__IDBTimer[s]=setTimeout(async r=>{await L.setItem(s,n)},o)},IDBDel(s){L.removeItem(s).then(n=>{})},IDBSet(s,n){return L.setItem(s,n)},IDBRemove(s){return L.removeItem(s)},IDBClear(){return L.clear()},IDBValue(s){return L.getItem(s)},async IDBString(s,n=""){const o=await this.IDBValue(s);return typeof o=="string"||typeof o=="number"?o:n},async IDBInt(s,n=0){const o=await this.IDBValue(s);return typeof o=="number"?o:n},async IDBBoolean(s,n=!1){const o=await this.IDBValue(s);return typeof o=="boolean"?o:n},async IDBArray(s,n=[]){const o=await this.IDBValue(s);return this.isArray(o)?o:n},async IDBJson(s,n={}){const o=await this.IDBValue(s);return this.isJson(o)?o:n}}),i.extend({setStorage(s,n){return this.__operationStorage(s,n)},getStorageValue(s){return this.__operationStorage(s)},getStorageString(s,n=""){let o=this.__operationStorage(s);return typeof o=="string"||typeof o=="number"?o:n},getStorageInt(s,n=0){let o=this.__operationStorage(s);return typeof o=="number"?o:n},getStorageBoolean(s,n=!1){let o=this.__operationStorage(s);return typeof o=="boolean"?o:n},getStorageArray(s,n=[]){let o=this.__operationStorage(s);return this.isArray(o)?o:n},getStorageJson(s,n={}){let o=this.__operationStorage(s);return this.isJson(o)?o:n},__operationStorage(s,n){if(!s)return;let o="__state__";if(s.substring(0,5)==="cache"&&(o="__state:"+s+"__"),typeof n=="undefined")return this.__loadFromlLocal(s,"",o);this.__savaToLocal(s,n,o)},__savaToLocal(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.localStorage[o];r?r=JSON.parse(r):r={},r[s]=n,e.localStorage[o]=JSON.stringify(r)}catch{}},__loadFromlLocal(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.localStorage[o];return!r||(r=JSON.parse(r),!r||typeof r[s]=="undefined")?n:r[s]}catch{return n}}}),i.extend({setSessionStorage(s,n){return this.__operationSessionStorage(s,n)},getSessionStorageValue(s){return this.__operationSessionStorage(s)},getSessionStorageString(s,n=""){let o=this.__operationSessionStorage(s);return typeof o=="string"||typeof o=="number"?o:n},getSessionStorageInt(s,n=0){let o=this.__operationSessionStorage(s);return typeof o=="number"?o:n},__operationSessionStorage(s,n){if(!s)return;let o="__state__";if(s.substring(0,5)==="cache"&&(o="__state:"+s+"__"),typeof n=="undefined")return this.__loadFromlSession(s,"",o);this.__savaToSession(s,n,o)},__savaToSession(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.sessionStorage.getItem(o);r?r=JSON.parse(r):r={},r[s]=n,e.sessionStorage.setItem(o,JSON.stringify(r))}catch{}},__loadFromlSession(s,n,o){try{typeof o=="undefined"&&(o="__seller__");let r=e.sessionStorage.getItem(o);return!r||(r=JSON.parse(r),!r||typeof r[s]=="undefined")?n:r[s]}catch{return n}}}),i.extend({serializeObject(s,n){if(typeof s=="string")return s;let o=[],r="&";n=n||[];let a;function l(u){if(n.length>0){let f="";for(let d=0;d0&&o.push(f.join(r))}else s[u]===null?o.push(l(u)+"="):typeof s[u]=="object"?(a=n.slice(),a.push(u),f=i.serializeObject(s[u],a),f!==""&&o.push(f)):typeof s[u]!="undefined"&&s[u]!==""?o.push(l(u)+"="+c(s[u])):s[u]===""&&o.push(l(u))}return o.join(r)},globalAjaxOptions:{},ajaxSetup(s){s.type&&(s.method=s.type),i.each(s,function(n,o){i.globalAjaxOptions[n]=o})},_jsonpRequests:0,ihttp(s){let n={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},o=["beforeSend","error","complete","success","statusCode"];s.type&&(s.method=s.type),i.each(i.globalAjaxOptions,function(d,h){o.indexOf(d)<0&&(n[d]=h)});function r(d,h,p){let _=arguments;d&&i(document).trigger(d,h),p&&(p in i.globalAjaxOptions&&i.globalAjaxOptions[p](_[3],_[4],_[5],_[6]),s[p]&&s[p](_[3],_[4],_[5],_[6]))}i.each(n,function(d,h){d in s||(s[d]=h)}),s.url||(s.url=e.location.toString());let a=s.url.indexOf("?")>=0?"&":"?",l=s.method.toUpperCase();if((l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&s.data){let d;typeof s.data=="string"?s.data.indexOf("?")>=0?d=s.data.split("?")[1]:d=s.data:d=i.serializeObject(s.data),d.length&&(s.url+=a+d,a==="?"&&(a="&"))}if(s.dataType==="json"&&s.url.indexOf("callback=")>=0){let d="__jsonp_"+Date.now()+i._jsonpRequests++,h,p=s.url.split("callback="),_=p[0]+"callback="+d;if(p[1].indexOf("&")>=0){let k=p[1].split("&").filter(function(w){return w.indexOf("=")>0}).join("&");k.length>0&&(_+="&"+k)}let A=document.createElement("script");A.type="text/javascript",A.onerror=function(){clearTimeout(h),r(t,t,"error",null,"scripterror"),r("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},A.src=_,e[d]=function(k){clearTimeout(h),r(t,t,"success",k),A.parentNode.removeChild(A),A=null,delete e[d]},document.querySelector("head").appendChild(A),s.timeout>0&&(h=setTimeout(function(){A.parentNode.removeChild(A),A=null,r(t,t,"error",null,"timeout")},s.timeout));return}(l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&s.cache===!1&&(s.url+=a+"_nocache="+Date.now());let c=new XMLHttpRequest;c.requestUrl=s.url,c.requestParameters=s,c.open(l,s.url,s.async,s.user,s.password);let u=null;if((l==="POST"||l==="PUT"||l==="PATCH")&&s.data)if(s.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(s.data.constructor)>=0)u=s.data;else{let h="---------------------------"+Date.now().toString(16);s.contentType==="multipart/form-data"?c.setRequestHeader("Content-Type","multipart/form-data; boundary="+h):c.setRequestHeader("Content-Type",s.contentType),u="";let p=i.serializeObject(s.data);if(s.contentType==="multipart/form-data"){h="---------------------------"+Date.now().toString(16),p=p.split("&");let _=[];for(let A=0;A=200&&c.status<300||c.status===0){let h;if(s.dataType==="json")try{h=JSON.parse(c.responseText),r("ajaxSuccess ajax:success",{xhr:c},"success",h,c.status,c)}catch(p){console.error(p),r("ajaxError ajax:error",{xhr:c,parseerror:!0},"error",c,"parseerror")}else h=c.responseType==="text"||c.responseType===""?c.responseText:c.response,r("ajaxSuccess ajax:success",{xhr:c},"success",h,c.status,c)}else r("ajaxError ajax:error",{xhr:c},"error",c,c.status);s.statusCode&&(i.globalAjaxOptions.statusCode&&i.globalAjaxOptions.statusCode[c.status]&&i.globalAjaxOptions.statusCode[c.status](c),s.statusCode[c.status]&&s.statusCode[c.status](c)),r("ajaxComplete ajax:complete",{xhr:c},"complete",c,c.status)},c.onerror=function(d){f&&clearTimeout(f),r("ajaxError ajax:error",{xhr:c},"error",c,c.status),r("ajaxComplete ajax:complete",{xhr:c,error:!0},"complete",c,"error")},r("ajaxStart ajax:start",{xhr:c},"start",c),r(t,t,"beforeSend",c),s.timeout>0&&(c.onabort=function(){f&&clearTimeout(f)},f=setTimeout(function(){c.abort(),r("ajaxError ajax:error",{xhr:c,timeout:!0},"error",c,"timeout"),r("ajaxComplete ajax:complete",{xhr:c,timeout:!0},"complete",c,"timeout")},s.timeout)),c.send(u),c}}),i.extend({ajaxc(s){if(!s||typeof s.url=="undefined")return!1;typeof s.data=="undefined"&&(s.data={}),typeof s.cache=="undefined"&&(s.cache=!1),typeof s.method=="undefined"&&(s.method="GET"),typeof s.timeout=="undefined"&&(s.timeout=3e4),typeof s.dataType=="undefined"&&(s.dataType="json"),typeof s.before=="undefined"&&(s.before=()=>{}),typeof s.complete=="undefined"&&(s.complete=()=>{}),typeof s.after=="undefined"&&(s.after=()=>{}),typeof s.success=="undefined"&&(s.success=()=>{}),typeof s.error=="undefined"&&(s.error=()=>{}),typeof s.header=="undefined"&&(s.header={});const n=$A.randomString(16);s.before(),$A.__ajaxList.push({key:n,id:s.requestId||null,url:s.url,request:$A.ihttp({url:s.url,data:s.data,cache:s.cache,headers:s.header,method:s.method.toUpperCase(),contentType:"OPTIONS",crossDomain:!0,dataType:s.dataType,timeout:s.timeout,success:function(o,r,a){$A.__ajaxList=$A.__ajaxList.filter(l=>l.key!==n),s.complete(),s.success(o,r,a),s.after(!0)},error:function(o,r){$A.__ajaxList=$A.__ajaxList.filter(a=>a.key!==n),s.complete(),s.error(o,r),s.after(!1)}})})},ajaxcCancel(s){if(!s)return 0;let n=0;return $A.__ajaxList.forEach((o,r)=>{o.id===s&&(n++,o.request&&o.request.abort())}),n>0&&($A.__ajaxList=$A.__ajaxList.filter(o=>o.id!==s)),n},__ajaxList:[]}),M.extend(ze),M.extend(He),i.extend({dayjs(s=t){return/^\d{13,}$/.test(s)?M(Number(s)):/^\d{10,}$/.test(s)?M(Number(s)*1e3):(s===null&&(s=0),M(s))},daytz(s=t){const n=$A.dayjs(s);return $A.timezoneDifference?n.subtract($A.timezoneDifference,"hour"):n},updateTimezone(s=t){if(typeof s!="undefined"&&($A.timezoneName=s),!$A.timezoneName)return $A.timezoneDifference=0;const n=$A.daytz().startOf("hour"),o=n.tz($A.timezoneName);return $A.timezoneDifference=n.startOf("hour").diff(o.format("YYYY-MM-DD HH:mm:ss"),"hour")},timezoneName:null,timezoneDifference:0,newDateString(s,n="YYYY-MM-DD HH:mm:ss"){if(s===null)return s;if(s instanceof M||s instanceof Date)s=$A.dayjs(s).format(n);else if($A.isJson(s)){s=Object.assign({},s);for(let o in s)!s.hasOwnProperty(o)||(s[o]=$A.newDateString(s[o],n))}else $A.isArray(s)&&(s=Object.assign([],s),s.forEach((o,r)=>{s[r]=$A.newDateString(o,n)}));return s},newTimestamp(s){if(s===null)return s;if(s instanceof M||s instanceof Date||$A.isDateString(s))s=$A.dayjs(s).unix();else if($A.isJson(s)){s=Object.assign({},s);for(let n in s)!s.hasOwnProperty(n)||(s[n]=$A.newTimestamp(s[n]))}else $A.isArray(s)&&(s=Object.assign([],s),s.forEach((n,o)=>{s[o]=$A.newTimestamp(n)}));return s},isDateString(s){return typeof s=="string"&&/^\d{4}-\d{2}-\d{2}( \d{2}(:\d{2}(:\d{2})?)?)?$/i.test(s)},secondsToTime(s){let n="";s<0&&(n="-",s=-s);let o;const r=Math.floor(s/86400),a=Math.floor(s%86400/3600),l=Math.floor(s%86400%3600/60),c=Math.floor(s%86400%3600%60);return r>0?a>0?o=r+"d,"+$A.zeroFill(a,2)+"h":l>0?o=r+"d,"+$A.zeroFill(l,2)+"min":c>0?o=r+"d,"+$A.zeroFill(c,2)+"s":o=r+"d":a>0?o=$A.zeroFill(a,2)+":"+$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):l>0?o=$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):c>0&&(o=$A.zeroFill(c,2)+"s"),n+o},timeFormat(s){const n=$A.daytz(),o=$A.dayjs(s);return n.format("YYYY-MM-DD")===o.format("YYYY-MM-DD")?o.format("HH:mm"):n.clone().subtract(1,"day").format("YYYY-MM-DD")===o.format("YYYY-MM-DD")?`${$A.L("\u6628\u5929")} ${o.format("HH:mm")}`:n.year()===o.year()?o.format("MM-DD"):o.format("YYYY-MM-DD")||""},countDownFormat(s,n){s=$A.daytz(s),n=$A.dayjs(n);const o=n.diff(s,"second");return o==0?"0s":Math.abs(o)<86400*7?$A.secondsToTime(o):$A.timeFormat(n)}}),e.$A=i})(window,window.$=window.jQuery=ke);(function(e){const i=e.$A;i.extend({eeuiModule(t,s=0){return new Promise(n=>{if(typeof requireModuleJs=="function"){n(requireModuleJs(t));return}setTimeout(()=>{s<20?n(this.eeuiModuleJs(t,++s)):n(null)},500)})},eeuiModuleSync(t){return typeof requireModuleJs=="function"?requireModuleJs(t):null},eeuiAppVersion(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").getVersion()},eeuiAppLocalVersion(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").getLocalVersion()},eeuiAppAlert(t,s){!$A.isEEUiApp||(typeof s!="function"&&(s=n=>{}),$A.eeuiModule("eeui").then(n=>{n.alert(t,s)}))},eeuiAppToast(t){!$A.isEEUiApp||$A.eeuiModule("eeui").then(s=>{s.toast(t)})},eeuiAppRewriteUrl(t){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").rewriteUrl(t)},eeuiAppOpenPage(t,s){!$A.isEEUiApp||(typeof s!="function"&&(s=n=>{}),$A.eeuiModule("eeui").then(n=>{n.openPage(t,s)}))},eeuiAppOpenWeb(t){!$A.isEEUiApp||$A.eeuiModule("eeui").then(s=>{s.openWeb(t)})},eeuiAppSetPageBackPressed(t,s){!$A.isEEUiApp||(typeof s!="function"&&(s=n=>{}),$A.eeuiModule("eeui").then(n=>{n.setPageBackPressed(t,s)}))},eeuiAppGoDesktop(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.goDesktop()})},eeuiAppKeepScreenOn(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.keepScreenOn()})},eeuiAppKeepScreenOff(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.keepScreenOff()})},eeuiAppKeyboardHide(){!$A.isEEUiApp||$A.eeuiModule("eeui").then(t=>{t.keyboardHide()})},eeuiAppSendMessage(t){!$A.isEEUiApp||$A.eeuiModule("webview").then(s=>{s.sendMessage(t)})},eeuiAppSetUrl(t){!$A.isEEUiApp||$A.eeuiModule("webview").then(s=>{s.setUrl(t)})},eeuiAppScan(t){!$A.isEEUiApp||$A.eeuiModule("eeui").then(s=>{s.openScaner({},n=>{switch(n.status){case"success":t(n.text);break}})})},eeuiAppGetThemeName(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").getThemeName()},eeuiAppKeyboardStatus(){if(!!$A.isEEUiApp)return $A.eeuiModuleSync("eeui").keyboardStatus()},eeuiAppSetVariate(t,s){!$A.isEEUiApp||$A.eeuiModuleSync("eeui").setVariate(t,s)},eeuiAppSetHapticBackEnabled(t){!$A.isEEUiApp||$A.eeuiModuleSync("webview").setHapticBackEnabled(t)},eeuiAppSetDisabledUserLongClickSelect(t){!$A.isEEUiApp||($A.__disabledUserLongClickSelectTimer&&clearTimeout($A.__disabledUserLongClickSelectTimer),/^\d+$/.test(t)?($A.eeuiModuleSync("webview").setDisabledUserLongClickSelect(!0),$A.__disabledUserLongClickSelectTimer=setTimeout(()=>{$A.__disabledUserLongClickSelectTimer=null,$A.eeuiModuleSync("webview").setDisabledUserLongClickSelect(!1)},t)):$A.eeuiModuleSync("webview").setDisabledUserLongClickSelect(t))},__disabledUserLongClickSelectTimer:null,eeuiAppCopyText(t){!$A.isEEUiApp||$A.eeuiModuleSync("eeui").copyText(t)},eeuiAppSetScrollEnabled(t){!$A.isEEUiApp||$A.eeuiModule("webview").then(s=>{s.setScrollEnabled(t)})}}),e.$A=i})(window);const C={mdi:null,mds:null,formatMsg:e=>{const i=e.match(/]*?>/g);return i&&i.some(t=>{e=e.replace(t,`
    ${t}
    `)}),e},highlightBlock:(e,i="")=>`
    ${i}${$A.L("\u590D\u5236")}
    ${e}
    `};function en(e){return e==="..."?'':(C.mdi===null&&(C.mdi=new ye({linkify:!0,highlight(i,t){if(!!(t&&W.getLanguage(t))){const n=t!=null?t:"";return C.highlightBlock(W.highlight(i,{language:n}).value,n)}return C.highlightBlock(W.highlightAuto(i).value,"")}}),C.mdi.use(De,{attrs:{target:"_blank",rel:"noopener"}}),C.mdi.use(Ce,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"})),C.formatMsg(C.mdi.render(e)))}function Ye(e){return C.mds===null&&(C.mds=ye()),C.mds.render(e)}function tn(e){if(e==="")return!1;const i=e.replace(/

    /g,` -`).replace(/(^|\s+)```([\s\S]*)```/gm,"");if(/<\/(strong|s|em|u|ol|ul|li|blockquote|pre|img|a)>/i.test(i)||/]+?class="mention"[^>]*?>/i.test(i))return!1;const t=document.createElement("div");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="10px",t.style.height="10px",t.style.overflow="hidden",t.style.zIndex="-9999",t.style.opacity="0",t.innerHTML=e,document.body.appendChild(t);const s=t.innerText;return document.body.removeChild(t),!!(/(^|\s+)#+\s(.*)$/m.test(s)||/(^|\s+)\*\*(.*)\*\*/m.test(s)||/(^|\s+)__(.*)__/m.test(s)||/(^|\s+)\*(.*)\*/m.test(s)||/(^|\s+)_(.*)_/m.test(s)||/(^|\s+)~~(.*)~~/m.test(s)||/(^|\s+)\[(.*?)\]\((.*?)\)/m.test(s)||/(^|\s+)!\[(.*?)\]\((.*?)\)/m.test(s)||/(^|\s+)`(.*?)`/m.test(s)||/(^|\s+)```([\s\S]*?)```/m.test(s))}(function(e){const i=e.$A;i.extend({apiUrl(t){if(t=="privacy"){const s=$A.getDomain(e.systemInfo.apiUrl);if(s==""||s=="public")return"https://www.dootask.com/privacy.html";t="../privacy.html"}if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.apiUrl=="string"?t=e.systemInfo.apiUrl+t:t=e.location.origin+"/api/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},mainUrl(t=null){return t||(t=""),t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/"?t:$A.apiUrl(`../${t}`)},originUrl(t){if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.origin=="string"?t=e.systemInfo.origin+t:t=e.location.origin+"/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},onlinePreviewUrl(t,s){return $A.mainUrl(`online/preview/${t}?key=${s}&version=${e.systemInfo.version}&__=${$A.dayjs().valueOf()}`)},projectParameterTemplate(t){return{project_id:t,menuInit:!1,menuType:"column",chat:!1,showMy:!0,showHelp:!0,showUndone:!0,showCompleted:!1,completedTask:!1}},timeOptionShortcuts(){const t=$A.daytz().startOf("day").toDate();return[{text:$A.L("\u4ECA\u5929"),value(){return[t,$A.daytz().endOf("day").toDate()]}},{text:$A.L("\u660E\u5929"),value(){return[t,$A.daytz().add(1,"day").endOf("day").toDate()]}},{text:$A.L("\u672C\u5468"),value(){return[t,$A.daytz().endOf("week").toDate()]}},{text:$A.L("\u672C\u6708"),value(){return[t,$A.daytz().endOf("month").toDate()]}},{text:$A.L("3\u5929"),value(){return[t,$A.daytz().add(2,"day").endOf("day").toDate()]}},{text:$A.L("5\u5929"),value(){return[t,$A.daytz().add(4,"day").endOf("day").toDate()]}},{text:$A.L("7\u5929"),value(){return[t,$A.daytz().add(6,"day").endOf("day").toDate()]}}]},dialogTags(t){let s=[];return t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)&&(t.group_type=="task"&&t.group_info.complete_at&&s.push({color:"success",text:"\u5DF2\u5B8C\u6210"}),t.group_info.deleted_at?s.push({color:"red",text:"\u5DF2\u5220\u9664"}):t.group_info.archived_at&&s.push({color:"default",text:"\u5DF2\u5F52\u6863"})),s},dialogCompleted(t){return this.dialogTags(t).find(({color:s})=>s=="success")},getDialogNum(t){return t&&((t.silence?0:t.unread)||t.mention||t.mark_unread)||0},getDialogUnread(t,s){return t&&((s||!t.silence?t.unread:0)||t.mark_unread)||0},getDialogMention(t){return(t==null?void 0:t.mention)||0},getMsgTextPreview(t,s=null){if(!t)return"";t=t.replace(/]*?alt="(\S+)"[^>]*?>/g,"[$1]"),t=t.replace(/]*?>/g,`[${$A.L("\u52A8\u753B\u8868\u60C5")}]`),s?t=t.replace(/]*?src="(\S+)"[^>]*?>/g,function(o,r){const a=o.match('width="(\\d+)"'),l=o.match('height="(\\d+)"');if(a&&l){const c=parseInt(a[1]),u=parseInt(l[1]),f=40,d=$A.scaleToScale(c,u,f,f);s=`${s}" style="width:${d.width}px;height:${d.height}px`}return`[image:${r}]`}):t=t.replace(/]*?>/g,`[${$A.L("\u56FE\u7247")}]`),t=t.replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/"/g,'"').replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," "),s&&(t=t.replace(/\[image:(.*?)\]/g,``),t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));const n=t.substring(0,30);return n.length{t[n]=$A.formatMsgBasic(s)}):typeof t=="string"&&(t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));return t},formatTextMsg(t,s){if(!t)return"";const n=new RegExp(``,"g");t=t.trim().replace(/(\n\x20*){3,}/g,` - -`),t=t.replace(/ /g," "),t=t.replace(/

    <\/p>/g,"


    "),t=t.replace(/\{\{RemoteURL\}\}/g,$A.mainUrl()),t=t.replace(n,``),/https*:\/\//.test(t)&&(t=t.split(/(<[^>]*>)/g).map(r=>(r&&!/<[^>]*>/.test(r)&&(r=r.replace(/(^|[^'"])((https*:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;|#|@|,|!)+))/g,'$1$2')),r)).join(""));const o=t.match(/]*?>/g);if(o){const r=new RegExp('width="(\\d+)"'),a=new RegExp('height="(\\d+)"');o.some(l=>{const c=l.match(r),u=l.match(a);if(c&&u){const f=parseInt(c[1]),d=parseInt(u[1]),h=l.indexOf("emoticon")>-1?150:220,p=$A.scaleToScale(f,d,h,h),_=l.replace(r,`original-width="${f}"`).replace(a,`original-height="${d}" style="width:${p.width}px;height:${p.height}px"`);t=t.replace(l,_)}else t=t.replace(l,`
    ${l}
    `)})}return t},getTextImagesInfo(t){const s=$A.mainUrl(),n=t.match(new RegExp("]*?>","g")),o=[];if(n){const r=new RegExp(`src=(["'])([^'"]*)\\1`),a=new RegExp('(original-)?width="(\\d+)"'),l=new RegExp('(original-)?height="(\\d+)"');n.some(c=>{const u=c.match(r),f=c.match(a),d=c.match(l);u&&o.push({src:u[2].replace(/\{\{RemoteURL\}\}/g,s),width:f?f[2]:-1,height:d?d[2]:-1})})}return o},getMsgSimpleDesc(t,s=null){if(!$A.isJson(t))return"";switch(t.type){case"text":return $A.getMsgTextPreview(t.msg.type==="md"?Ye(t.msg.text):t.msg.text,s);case"vote":return`[${$A.L("\u6295\u7968")}]`+$A.getMsgTextPreview(t.msg.text,s);case"word-chain":return`[${$A.L("\u63A5\u9F99")}]`+$A.getMsgTextPreview(t.msg.text,s);case"record":return`[${$A.L("\u8BED\u97F3")}]`;case"meeting":return`[${$A.L("\u4F1A\u8BAE")}] ${t.msg.name}`;case"file":return $A.fileMsgSimpleDesc(t.msg,s);case"tag":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"top":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"todo":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"notice":return $A.L(t.msg.notice);case"template":return $A.templateMsgSimpleDesc(t.msg);default:return`[${$A.L("\u672A\u77E5\u7684\u6D88\u606F")}]`}},fileMsgSimpleDesc(t,s=null){if(t.type=="img"){if(s){const n=parseInt(t.width),o=parseInt(t.height),r=40,a=$A.scaleToScale(n,o,r,r);return``}return`[${$A.L("\u56FE\u7247")}]`}else if(t.ext=="mp4")return`[${$A.L("\u89C6\u9891")}]`;return`[${$A.L("\u6587\u4EF6")}] ${t.name}`},templateMsgSimpleDesc(t){return t.title_raw?t.title_raw:t.type==="task_list"&&$A.arrayLength(t.list)===1?$A.L(t.title)+": "+t.list[0].name:t.title?$A.L(t.title):t.type==="content"&&typeof t.content=="string"&&t.content!==""?$A.L(t.content):$A.L("\u672A\u77E5\u7684\u6D88\u606F")},getFileName(t){let s=t.name||"",n=t.ext||"";return n!=""&&(s+="."+n),s},isDooServer(){const t=$A.getDomain($A.mainUrl());return/dootask\.com$/.test(t)||/hitosea\.com$/.test(t)||/^127\.0\.0\.1/.test(t)||/^(10)\./.test(t)||/^(172)\.(1[6-9]|2[0-9]|3[0-1])\./.test(t)||/^(192)\.(168)\./.test(t)},thumbRestore(t){return t=$A.rightDelete(t,"_thumb.jpg"),t=$A.rightDelete(t,"_thumb.png"),t},dataHasFolder(t){const{items:s}=t;if(s){for(const n of s)if(n.kind==="directory"||n.kind==="file"&&n.webkitGetAsEntry().isDirectory)return!0}return!1},loadVConsole(t=void 0){if(typeof t=="string"){switch(t){case"log.o":return $A.IDBSet("logOpen","open").then(s=>{$A.loadVConsole()}),!0;case"log.c":return $A.IDBSet("logOpen","close").then(s=>{$A.loadVConsole()}),!0}return!1}$A.IDBString("logOpen").then(s=>{typeof e.vConsole!="undefined"&&(e.vConsole.destroy(),e.vConsole=null),$A.openLog=s==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js").then(n=>{e.vConsole=new e.VConsole({onReady:()=>{console.log("VConsole: onReady")},onClearLog:()=>{console.log("VConsole: onClearLog")}})}).catch(n=>{$A.modalError("VConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")})})}}),i.extend({modalConfig(t){return typeof t=="undefined"?t={content:"Undefined"}:typeof t=="string"&&(t={content:t}),t.title=t.title||(typeof t.render=="undefined"?$A.modalTranslation("\u6E29\u99A8\u63D0\u793A",t.language):""),t.content=t.content||"",t.okText=t.okText||$A.modalTranslation("\u786E\u5B9A",t.language),t.cancelText=t.cancelText||$A.modalTranslation("\u53D6\u6D88",t.language),t.language!==!1&&(delete t.language,t.title=$A.L(t.title),t.content=$A.L(t.content),t.okText=$A.L(t.okText),t.cancelText=$A.L(t.cancelText)),t},modalTranslation(t,s){return s!==!1?t:$A.L(t)},modalInput(t,s=0){if(s>0){setTimeout(()=>{$A.modalInput(t)},s);return}typeof t=="string"&&(t={title:t});let n="modalInput_"+$A.randomString(6),o={type:t.type||"text",value:t.value,placeholder:$A.L(t.placeholder),elementId:n};$A.isJson(t.inputProps)&&(o=Object.assign(o,t.inputProps));const r=()=>new Promise((l,c)=>{if(!t.onOk){c();return}const u=t.onOk(t.value);if(!u){l();return}u.then?u.then(f=>{f&&$A.messageSuccess(f),l()}).catch(f=>{f&&$A.messageError(f),c()}):(typeof u=="string"&&$A.messageError(u),c())}),a=()=>{typeof t.onCancel=="function"&&t.onCancel()};$A.Modal.confirm({render:l=>l("div",[l("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},$A.L(t.title)),l("Input",{props:o,on:{input:c=>{t.value=c},"on-enter":c=>{$A(c.target).parents(".ivu-modal-body").find(".ivu-btn-primary").click()}}})]),onOk:r,onCancel:a,loading:!0,okText:$A.L(t.okText||"\u786E\u5B9A"),cancelText:$A.L(t.cancelText||"\u53D6\u6D88"),okType:t.okType||"primary",cancelType:t.cancelType||"text"}),setTimeout(()=>{document.getElementById(n)&&document.getElementById(n).focus()})},modalConfirm(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalConfirm(t)},s);return}if(t=$A.modalConfig(t),t.loading){const{onOk:n}=t;t.onOk=()=>new Promise((o,r)=>{if(!n){r();return}const a=n();if(!a){o();return}a.then?a.then(l=>{l&&$A.messageSuccess(l),o()}).catch(l=>{l&&$A.messageError(l),r()}):(typeof a=="string"&&$A.messageError(a),r())})}$A.Modal.confirm($A.modalConfig(t))}},modalSuccess(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalSuccess(t)},s);return}$A.Modal.success($A.modalConfig(t))}},modalInfo(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalInfo(t)},s);return}$A.Modal.info($A.modalConfig(t))}},modalWarning(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalWarning(t)},s);return}typeof t=="string"&&t==="Network exception"||$A.isJson(t)&&t.content==="Network exception"||$A.Modal.warning($A.modalConfig(t))}},modalError(t,s=0){if(t!==!1){if(s>0){setTimeout(()=>{$A.modalError(t)},s);return}typeof t=="string"&&t==="Network exception"||$A.isJson(t)&&t.content==="Network exception"||$A.Modal.error($A.modalConfig(t))}},modalAlert(t){t!==!1&&alert($A.L(t))},messageSuccess(t){$A.Message.success($A.L(t))},messageWarning(t){typeof t=="string"&&t==="Network exception"||$A.Message.warning($A.L(t))},messageError(t){typeof t=="string"&&t==="Network exception"||$A.Message.error($A.L(t))},noticeConfig(t){return typeof t=="undefined"?t={desc:"Undefined"}:typeof t=="string"&&(t={desc:t}),t.title=$A.L(t.title||(typeof t.render=="undefined"?"\u6E29\u99A8\u63D0\u793A":"")),t.desc=$A.L(t.desc||""),t},noticeSuccess(t){$A.Notice.success($A.noticeConfig(t))},noticeWarning(t){$A.Notice.warning($A.noticeConfig(t))},noticeError(t){typeof t=="string"&&(t={desc:t,duration:6}),$A.Notice.error($A.noticeConfig(t))}}),i.extend({dark:{utils:{supportMode(){let t=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return`${t.match(/Chrome/i)}`=="chrome"?"chrome":`${t.match(/Webkit/i)}`=="webkit"?"webkit":null},defaultFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(90%) !important; filter: invert(100%) hue-rotate(180deg) contrast(90%) !important;"},reverseFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(110%) !important; filter: invert(100%) hue-rotate(180deg) contrast(110%) !important;"},noneFilter(){return"-webkit-filter: none !important; filter: none !important;"},addExtraStyle(){try{return""}catch{return""}},addStyle(t,s,n){s=s||"style";let o=document;if(o.getElementById(t))return;let a=o.createElement(s);a.rel="stylesheet",a.id=t,s==="style"?a.innerHTML=n:a.href=n,document.head.appendChild(a)},getClassList(t){return t.classList||[]},addClass(t,s){return this.getClassList(t).add(s),this},removeClass(t,s){return this.getClassList(t).remove(s),this},hasClass(t,s){return this.getClassList(t).contains(s)},hasElementById(t){return document.getElementById(t)},removeElementById(t){let s=document.getElementById(t);s&&s.parentNode.removeChild(s)}},createDarkStyle(){this.utils.addStyle("dark-mode-style","style",` - @media screen { - html { - ${this.utils.defaultFilter()} - will-change: transform; - } - - /* Default Reverse rule */ - img, - video, - iframe, - canvas, - :not(object):not(body) > embed, - object, - svg image, - [style*="background:url"], - [style*="background-image:url"], - [style*="background: url"], - [style*="background-image: url"], - [background], - .no-dark-mode, - .no-dark-content, - .no-dark-before:before { - ${this.utils.reverseFilter()} - will-change: transform; - } - - [style*="background:url"] *, - [style*="background-image:url"] *, - [style*="background: url"] *, - [style*="background-image: url"] *, - input, - [background] *, - .no-dark-content img, - .no-dark-content canvas, - .no-dark-content svg image { - ${this.utils.noneFilter()} - } - - /* Text contrast */ - html { - text-shadow: 0 0 0 !important; - } - - /* Full screen */ - .no-filter, - :-webkit-full-screen, - :-webkit-full-screen *, - :-moz-full-screen, - :-moz-full-screen *, - :fullscreen, - :fullscreen * { - ${this.utils.noneFilter()} - } - - /* Page background */ - html { - min-width: 100%; - min-height: 100%; - } - .child-view { - background-color: #fff; - } - .page-login { - background-color: #f8f8f8; - } - ${this.utils.addExtraStyle()} - } - - @media print { - .no-print { - display: none !important; - } - }`)},enableDarkMode(){!this.utils.supportMode()||this.isDarkEnabled()||(this.createDarkStyle(),this.utils.addClass(document.body,"dark-mode-reverse"))},disableDarkMode(){!this.isDarkEnabled()||(this.utils.removeElementById("dark-mode-style"),this.utils.removeClass(document.body,"dark-mode-reverse"))},autoDarkMode(){let t=e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches;$A.isEEUiApp&&(t=$A.eeuiAppGetThemeName()==="dark"),t?this.enableDarkMode():this.disableDarkMode()},isDarkEnabled(){return this.utils.hasClass(document.body,"dark-mode-reverse")}}}),e.$A=i})(window);var Je=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("transition",{attrs:{name:"fade"}},[e.floatSpinnerLoad>0?t("div",{staticClass:"common-float-spinner"},[t("Loading",{staticClass:"common-float-circular"})],1):e._e()])},Ke=[];function v(e,i,t,s,n,o,r,a){var l=typeof e=="function"?e.options:e;i&&(l.render=i,l.staticRenderFns=t,l._compiled=!0),s&&(l.functional=!0),o&&(l._scopeId="data-v-"+o);var c;if(r?(c=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(d=__VUE_SSR_CONTEXT__),n&&n.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(r)},l._ssrRegister=c):n&&(c=a?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(h,p){return c.call(p),u(h,p)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}const Ge={name:"FloatSpinner",computed:{...x(["floatSpinnerLoad"])}},Q={};var Xe=v(Ge,Je,Ke,!1,qe,null,null,null);function qe(e){for(let i in Q)this[i]=Q[i]}var Qe=function(){return Xe.exports}(),Ze=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(s){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(s){e.updateShow=s},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("VMPreview",{attrs:{value:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(s){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)},et=[];const tt=()=>m(()=>import("./preview.74e7b5c4.js"),["js/build/preview.74e7b5c4.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),st={name:"RightBottom",components:{VMPreview:tt},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=E.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||V.get($A.apiUrl("system/prefetch")).then(({status:e,data:i})=>{e===200&&i.forEach(t=>{const s=document.createElement("link");s.rel="prefetch",s.href=t,s.onload=()=>{document.head.removeChild(s)},s.onerror=()=>{document.head.removeChild(s)},document.head.appendChild(s)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(V.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,s=await $A.IDBJson(t),n=600;if(s.time&&s.time+n>$A.dayjs().unix()){this.downloadUrl=s.data.html_url;return}this.loadIng>0||(this.loadIng++,V.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:o,data:r})=>{this.loadIng--,o===200&&$A.isArray(r)&&(s.time=$A.dayjs().unix(),s.data=r.find(({tag_name:a})=>this.compareVersion(this.tagVersion(a),this.apiVersion)===0)||{},$A.IDBSave(t,s),this.downloadUrl=s.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){E.Store.set("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,i){let t=0,s=0;if(e===i)return 0;const n=(o,r)=>{let a=r;for(;o[a]!=="."&&al?1:-1;t=o+1,s=r+1}for(;t0)return 1;t=o+1}for(;s0)return-1;s=o+1}return 0}}},Z={};var it=v(st,Ze,et,!1,nt,null,null,null);function nt(e){for(let i in Z)this[i]=Z[i]}var ot=function(){return it.exports}(),rt=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(s){e.show=s},expression:"show"}},[e.list.length>0?[e.viewVideo?t("PreviewVideoView",{attrs:{item:e.viewVideo}}):e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(s){e.show=!1}}}):e._e()]:e._e()],2)},at=[];const lt=()=>m(()=>import("./video.bcb944e6.js"),["js/build/video.bcb944e6.js","js/build/video.85f66e68.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),ct=()=>m(()=>import("./view.a0b20db3.js"),["js/build/view.a0b20db3.js","js/build/view.856f2ef1.css","js/build/element-sea.e89b014c.js","js/build/vue.c448ed56.js","js/build/@babel.49d8906a.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js"]),ut=()=>m(()=>import("./swipe.ee8ae442.js"),["js/build/swipe.ee8ae442.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),dt={name:"PreviewImage",components:{PreviewVideoView:lt,PreviewImageSwipe:ut,PreviewImageView:ct},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewVideo(){return this.list.length===0?!1:this.list.find(({src:i})=>/\.mp4$/i.test(i))||!1},viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},ee={};var ft=v(dt,rt,at,!1,ht,null,null,null);function ht(e){for(let i in ee)this[i]=ee[i]}var pt=function(){return ft.exports}(),mt=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(s){e.show=s},expression:"show"}})},gt=[];const _t={name:"PreviewImageState",components:{PreviewImage:pt},computed:{...x(["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(o=>$A.isJson(o)?$A.thumbRestore(o.src):$A.thumbRestore(o)),s=50;if(t.length>s){const o=[];let r=0;for(;o.length=0&&o.unshift(t[a]),la===t[i]),t=o}const n=t.find(o=>/\.mp4$/i.test(o));if(n){$A.eeuiAppSendMessage({action:"videoPreview",path:n});return}$A.eeuiAppSendMessage({action:"picturePreview",position:i,paths:t})}else this.show=!0}}},te={};var wt=v(_t,mt,gt,!1,yt,null,null,null);function yt(e){for(let i in te)this[i]=te[i]}var $t=function(){return wt.exports}(),At=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(s){e.show=s},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(s){e.show=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])]:e._e()],2)},vt=[];const kt={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1,timeShow:null,timeCheck:null}},beforeDestroy(){this.clearTimer()},computed:{...x(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(e){this.clearTimer(),e&&(this.checkNetwork(),this.timeShow=setTimeout(i=>{this.show=!0},5e3))},immediate:!0}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},checkNetwork(){this.timeCheck&&clearTimeout(this.timeCheck),this.timeCheck=setTimeout(()=>{!this.ajaxNetworkException||this.isNotServer()||this.$store.dispatch("call",{url:"system/setting"}).finally(()=>{this.checkNetwork()})},3e3)},clearTimer(){this.timeShow&&clearTimeout(this.timeShow),this.show=!1}}},se={};var bt=v(kt,At,vt,!1,Tt,null,null,null);function Tt(e){for(let i in se)this[i]=se[i]}var St=function(){return bt.exports}(),It=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(s){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},Dt=[];const Ct={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}}},ie={};var Et=v(Ct,It,Dt,!1,xt,null,null,null);function xt(e){for(let i in ie)this[i]=ie[i]}var Lt=function(){return Et.exports}(),Mt=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)},Pt=[];const jt={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:{...x(["loads","taskFlows"]),...$e(["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:s})=>{$A.messageSuccess(s),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(()=>{})})}}},ne={};var Bt=v(jt,Mt,Pt,!1,Ot,null,null,null);function Ot(e){for(let i in ne)this[i]=ne[i]}var Ut=function(){return Bt.exports}(),Rt=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(s){return s?t("li",{on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:s,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],1):e._e()}),e.addIcon||e.values.length===0?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:e.onSelection}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(s){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",{ref:"headerTitle",on:{click:e.onClickTitle}},[e._v(e._s(e.localTitle))])]),t("div",{ref:"headerSubmit",staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(s){e.showModal=s},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.formatSelect(e.selects),function(s){return t("li",{attrs:{"data-id":s.userid},on:{click:function(n){return n.stopPropagation(),e.onRemoveItem(s.userid)}}},[s.type=="group"?[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:s.userid}})],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(s){e.searchKey=s},expression:"searchKey"}})],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(s){return t("li",{key:s.key,class:{active:e.switchActive===s.key},on:{click:function(n){e.switchActive=s.key}}},[e._v(e._s(e.$L(s.label)))])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(s){return t("li",{class:e.selectClass(s.userid_list),on:{click:function(n){return e.onSelectProject(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(s.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(s.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):t("ul",[e.showSelectAll?t("li",{class:e.selectClass("all"),on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("div",{staticClass:"user-modal-all"},[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e._l(e.lists,function(s){return t("li",{class:{selected:e.selects.includes(s.userid),disabled:e.isUncancelable(s.userid)||e.isDisabled(s.userid)},on:{click:function(n){return e.onSelectItem(s)}}},[e.selects.includes(s.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),s.type=="group"?t("div",{staticClass:"user-modal-avatar"},[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:40}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):s.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(s.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:s.userid,size:40,"show-name":""}})],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)},Nt=[];const Ft={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.upTitleWidth()):this.searchKey="",this.$emit("on-show-change",e)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()},isFullscreen(e){e&&this.upTitleWidth()},"selects.length"(){this.upTitleWidth()}},computed:{...x(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:i,dialogId:t,onlyGroup:s}){return e===0&&i===0&&t===0&&!s},lists({switchActive:e,searchKey:i,recents:t,contacts:s,projects:n}){switch(e){case"recent":return i?t.filter(o=>`${o.name}`.indexOf(i)>-1):t;case"contact":return s;case"project":return n}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:{upTitleWidth(){!this.isFullscreen||this.$nextTick(()=>{const e=this.$refs.headerTitle,i=this.$refs.headerSubmit;e&&i&&(e.style.width=this.windowWidth-i.clientWidth*2+"px")})},isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},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.dayjs(i.top_at)-$A.dayjs(e.top_at):e.todo_num>0||i.todo_num>0?i.todo_num-e.todo_num:$A.dayjs(i.last_at)-$A.dayjs(e.last_at)).map(({id:e,name:i,type:t,group_type:s,avatar:n,dialog_user:o})=>({name:i,type:t,group_type:s,avatar:n,userid:t==="user"?o.userid:`d:${e}`}))},searchContact(){const e=this.searchKey,i=this.searchCache.find(t=>t.type==="contact"&&t.key==e);i&&(this.contacts=i.data,!i.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.searchRequest(e,1,()=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},searchRequest(e,i,t){this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},page:i,pagesize:50}}).then(({data:s})=>{if(this.searchKey!=e){t();return}const n=s.data.map(a=>Object.assign(a,{type:"user"}));s.current_page>1&&n.unshift(...this.contacts),this.contacts=n;const o=this.searchCache.findIndex(a=>a.type==="contact"&&a.key==e),r={type:"contact",key:e,data:n,time:$A.dayjs().unix(),more:s.current_page-1?this.searchCache.splice(o,1,r):this.searchCache.push(r),!r.more){t();return}s.current_page%5===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+s.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{this.searchRequest(e,s.current_page+1,t)},onCancel:t}):this.searchRequest(e,s.current_page+1,t)}).catch(({msg:s})=>{i===1&&(this.contacts=[]),$A.messageWarning(s),t()})},searchProject(){const e=this.searchKey,i=this.searchCache.find(t=>t.type==="project"&&t.key==e);i&&(this.projects=i.data,!i.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{if(this.searchKey!=e)return;const s=t.data.map(r=>Object.assign(r,{type:"project"}));this.projects=s;const n=this.searchCache.findIndex(r=>r.type==="project"&&r.key==e),o={type:"project",key:e,data:s,time:$A.dayjs().unix(),more:!1};n>-1?this.searchCache.splice(n,1,o):this.searchCache.push(o)}).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(s=>!this.isUncancelable(s));i.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(s=>!i.includes(s));break;default:const t=e.filter(s=>!this.isDisabled(s));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(s=>!this.selects.includes(s))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(i=>i!=e))},onClickTitle(){const e=this.$refs.headerTitle,i=document.createRange();i.setStart(e,0),i.setEnd(e,e.childNodes.length||0);const t=i.getBoundingClientRect().width;Math.floor(t)>Math.floor(e.offsetWidth)&&$A.modalInfo({title:this.$L("\u5168\u6807\u9898"),content:this.localTitle,language:!1})},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);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}}},oe={};var Wt=v(Ft,Rt,Nt,!1,Vt,null,null,null);function Vt(e){for(let i in oe)this[i]=oe[i]}var zt=function(){return Wt.exports}(),Ht=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(s){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(s){e.cascader=s},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(s){e.ownerUserids=s},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(s){e.assistUserids=s},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(s){return s.stopPropagation(),e.openMenu(s,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(s){e.$set(e.updateData,"owner_userids",s)},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(s){e.$set(e.updateData,"assist_userids",s)},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)},Yt=[];const Jt={name:"TaskMove",components:{TaskMenu:Ut,UserSelect:zt},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:{...x(["cacheProjects","cacheColumns"])},watch:{cascader(e){var t,s;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=((s=(t=this.cacheProjects.find(n=>n.id==e[0]))==null?void 0:t.project_user)==null?void 0:s.map(n=>n.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(n=>n.owner&&i.indexOf(n.userid)!==-1).sort((n,o)=>n.id-o.id).map(n=>n.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(n=>!n.owner&&i.indexOf(n.userid)!==-1).sort((n,o)=>n.id-o.id).map(n=>n.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(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.dayjs(t.top_at)-$A.dayjs(i.top_at):t.id-i.id);this.cascaderData=e.map(i=>{const t=this.cacheColumns.filter(({project_id:n})=>n==i.id).map(n=>({value:n.id,label:n.name})),s={value:i.id,label:i.name,children:t};return t.length==0&&(s.loading=!1),s})},cascaderLoadData(e,i){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(s=>({value:s.id,label:s.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}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||0,complete_at:this.updateData.flow.complete_at||"",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,ret:i})=>{this.loadIng--,i==102?$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001"):$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){e.complete_at&&!e.flow_item_id&&(e.flow_item_name=this.$L("\u5DF2\u5B8C\u6210")),this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},re={};var Kt=v(Jt,Ht,Yt,!1,Gt,null,null,null);function Gt(e){for(let i in re)this[i]=re[i]}var Xt=function(){return Kt.exports}(),qt=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(s){return t("EDropdownItem",{key:s.id,attrs:{command:`turn::${s.id}`}},[t("div",{staticClass:"item flow"},[s.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:s.status},[e._v(e._s(s.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(s,n){return t("EDropdownItem",{key:"c_"+n,attrs:{divided:n==0,command:s}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:s.primary||"#ddd"},domProps:{innerHTML:e._s(s.color==(e.task.color||"")?"":"")}}),e._v(e._s(e.$L(s.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(s){e.moveTaskShow=s},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(s){e.moveTaskShow=s},expression:"moveTaskShow"}})],1)],1)},Qt=[];const Zt={name:"TaskOperation",components:{TaskMove:Xt},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:{...x(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...$e(["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=s=>{s?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 s=$A.leftDelete(e,"turn::");if(s==this.task.flow_item_id)return;let n=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},o=this.taskFlowItems.find(({id:l})=>l==s)||{},r=n.status!=="end"&&o.status==="end",a=n.status==="end"&&o.status!=="end";this.updateBefore&&(r?t(!0):a&&t(!1)),this.updateTask({flow_item_id:s,flow_item_status:o.status,flow_item_name:o.name}).then(()=>{r?t(!0):a&&t(!1)}).catch(()=>{r?t(!1):a&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss")}).then(()=>{t(!0)}).catch(()=>{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 s=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(s),t();return}Object.keys(e).forEach(n=>this.$set(this.task,n,e[n])),this.$store.dispatch("taskUpdate",s).then(({data:n,msg:o})=>{$A.messageSuccess(o),i(),this.$store.dispatch("saveTaskBrowse",s.task_id),typeof this.onUpdate=="function"&&this.onUpdate(n)}).catch(({msg:n})=>{$A.modalError(n),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{}),t()})})},archivedOrRemoveTask(e){let i="removeTask",t="\u5220\u9664",s={task_id:this.task.id},n=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",s={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+n,content:"\u4F60\u786E\u5B9A\u8981"+t+n+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((o,r)=>{this.$store.dispatch(i,s).then(({msg:a})=>{o(a),this.$store.dispatch("saveTaskBrowse",s.task_id)}).catch(({msg:a})=>{r(a)})})}})},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]}}},ae={};var es=v(Zt,qt,Qt,!1,ts,null,null,null);function ts(e){for(let i in ae)this[i]=ae[i]}var ss=function(){return es.exports}(),is=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)},ns=[];const os={components:{TaskOperation:ss,NetworkException:St,PreviewImageState:$t,RightBottom:ot,FloatSpinner:Qe,GuidePage:Lt},data(){return{routePath:null,appInter:null,countDown:Math.min(30,60-$A.daytz().second())}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),window.addEventListener("message",this.windowHandleMessage),this.appInter=setInterval(this.appTimerHandler,1e3),$A.loadVConsole()},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),window.removeEventListener("message",this.windowHandleMessage),this.appInter&&clearInterval(this.appInter)},computed:{...x(["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(),$A.updateTimezone(),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(s=>{this.$store.dispatch("websocketConnection")})}).catch(t=>{this.$store.dispatch("websocketConnection")})},600)):this.$store.dispatch("audioStop",!0)}},methods:{appTimerHandler(){this.searchEnter(),this.countDown--,this.countDown<=0&&(this.countDown=Math.min(30,60-$A.daytz().second()),this.$store.dispatch("todayAndOverdue"))},searchEnter(){let e=$A(".search-container");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let i=e.find("button[type='button']"),t=null;i.length!==0&&(i.each((s,n)=>{$A(n).text().indexOf("\u641C\u7D22")&&(t=$A(n))}),t!==null&&e.find("input.ivu-input").keydown(function(s){s.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.formOptions={class:e>576?"":"form-label-weight-bold",labelPosition:e>576?"right":"top",labelWidth: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.updateTimezone(),$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 s=(i+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:s?"users/meeting/tourist":"users/basic",data:{userid:s?i:(i+"").substring(6),tourist_id:i}}).then(({data:n})=>{var o,r;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:i,avatar:s?n==null?void 0:n.userimg:(o=n[0])==null?void 0:o.userimg,username:s?n==null?void 0:n.nickname:(r=n[0])==null?void 0:r.nickname}})}).catch(({msg:n})=>{$A.modalError(n)});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]})}}}},le={};var rs=v(os,is,ns,!1,as,"25c233b1",null,null);function as(e){for(let i in le)this[i]=le[i]}var ls=function(){return rs.exports}(),cs=[{name:"index",path:"/",component:()=>m(()=>import("./index.85658b60.js"),["js/build/index.85658b60.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>m(()=>import("./pro.41ac22dd.js"),["js/build/pro.41ac22dd.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>m(()=>import("./meeting.7dcf9ac9.js"),["js/build/meeting.7dcf9ac9.js","js/build/MeetingManager.4530bc3f.js","js/build/le5le-store.b40f9152.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>m(()=>import("./manage.fc78f152.js"),["js/build/manage.fc78f152.js","js/build/manage.5dc9aad0.css","js/build/vuex.cc7cb26e.js","js/build/CheckinExport.1b4423b3.js","js/build/CheckinExport.68b4950e.css","js/build/tip.7b94707c.js","js/build/ImgUpload.52758ba6.js","js/build/ReportEdit.22763e0c.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.1ea08cae.js","js/build/index.4892e747.js","js/build/le5le-store.b40f9152.js","js/build/TaskDetail.75c13dec.js","js/build/TaskDetail.d1ade037.css","js/build/ProjectLog.d652e5c8.js","js/build/DialogWrapper.86de099a.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/@babel.49d8906a.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.563cfadb.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/MeetingManager.4530bc3f.js","js/build/details.2a18916c.js","js/build/MicroApps.bd23f92f.js","js/build/notification-koro1.99b93615.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>m(()=>import("./dashboard.69c4962d.js"),["js/build/dashboard.69c4962d.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>m(()=>import("./calendar.81f10c67.js"),["js/build/calendar.81f10c67.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.59809517.js","js/build/tui-calendar-hi.3658e7fa.css","js/build/@babel.49d8906a.js","js/build/tui-code-snippet.cdaa497b.js","js/build/le5le-store.b40f9152.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>m(()=>import("./messenger.69561392.js"),["js/build/messenger.69561392.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.86de099a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.4892e747.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/@babel.49d8906a.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.563cfadb.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.52758ba6.js","js/build/tip.7b94707c.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-approve",path:"approve",component:()=>m(()=>import("./index.dca7e577.js"),["js/build/index.dca7e577.js","js/build/index.bfb171e3.css","js/build/details.2a18916c.js","js/build/CheckinExport.68b4950e.css","js/build/vuex.cc7cb26e.js","js/build/ImgUpload.52758ba6.js","js/build/index.4892e747.js","js/build/le5le-store.b40f9152.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-apps",path:"apps/*",component:()=>m(()=>import("./apps.3ff16850.js"),["js/build/apps.3ff16850.js","js/build/MicroApps.bd23f92f.js","js/build/vue.c448ed56.js","js/build/@babel.49d8906a.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.86de099a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.4892e747.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/view-design-hi.563cfadb.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.52758ba6.js","js/build/tip.7b94707c.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting",path:"setting",component:()=>m(()=>import("./index.a335cdfc.js"),["js/build/index.a335cdfc.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.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>m(()=>import("./personal.a06001ae.js"),["js/build/personal.a06001ae.js","js/build/ImgUpload.52758ba6.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>m(()=>import("./checkin.e2b8615d.js"),["js/build/checkin.e2b8615d.js","js/build/checkin.2fa0bfae.css","js/build/ImgUpload.52758ba6.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>m(()=>import("./language.8a3413b9.js"),["js/build/language.8a3413b9.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>m(()=>import("./theme.0b3233cd.js"),["js/build/theme.0b3233cd.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>m(()=>import("./keyboard.03852454.js"),["js/build/keyboard.03852454.js","js/build/keyboard.b6840672.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>m(()=>import("./license.a4049017.js"),["js/build/license.a4049017.js","js/build/license.8ba0a235.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>m(()=>import("./password.34ef52c3.js"),["js/build/password.34ef52c3.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>m(()=>import("./email.f542170a.js"),["js/build/email.f542170a.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>m(()=>import("./system.2285283c.js"),["js/build/system.2285283c.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-version",path:"version",component:()=>m(()=>import("./version.a1835d12.js"),["js/build/version.a1835d12.js","js/build/version.a7e43e44.css","js/build/preview.74e7b5c4.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>m(()=>import("./delete.ae94fe17.js"),["js/build/delete.ae94fe17.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite",component:()=>m(()=>import("./projectInvite.6b40c864.js"),["js/build/projectInvite.6b40c864.js","js/build/projectInvite.d01e3a2d.css","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>m(()=>import("./project.c10747c6.js"),["js/build/project.c10747c6.js","js/build/vuex.cc7cb26e.js","js/build/vuedraggable.dbf1607a.js","js/build/@babel.49d8906a.js","js/build/sortablejs.20b8ddfe.js","js/build/ProjectLog.d652e5c8.js","js/build/le5le-store.b40f9152.js","js/build/index.4892e747.js","js/build/tip.7b94707c.js","js/build/DialogWrapper.86de099a.js","js/build/DialogWrapper.bc3239e2.css","js/build/longpress.5305f240.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.563cfadb.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.52758ba6.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>m(()=>import("./file.a4de8a58.js"),["js/build/file.a4de8a58.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.63d8be61.js","js/build/@babel.49d8906a.js","js/build/index.4892e747.js","js/build/longpress.5305f240.js","js/build/tip.7b94707c.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>m(()=>import("./application.c6b5c54a.js"),["js/build/application.c6b5c54a.js","js/build/vuex.cc7cb26e.js","js/build/index.4892e747.js","js/build/CheckinExport.1b4423b3.js","js/build/CheckinExport.68b4950e.css","js/build/tip.7b94707c.js","js/build/ImgUpload.52758ba6.js","js/build/ReportEdit.22763e0c.js","js/build/openpgp_hi.15f91b1d.js","js/build/ReportDetail.1ea08cae.js","js/build/checkin.e2b8615d.js","js/build/checkin.2fa0bfae.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>m(()=>import("./fileMsg.4fc63b7c.js"),["js/build/fileMsg.4fc63b7c.js","js/build/fileMsg.9d89f22e.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>m(()=>import("./fileTask.d07363e5.js"),["js/build/fileTask.d07363e5.js","js/build/fileTask.584e53db.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.7f63db7a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>m(()=>import("./file.b4eaa610.js"),["js/build/file.b4eaa610.js","js/build/file.1759f11c.css","js/build/FileContent.35e44d8b.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.1f20c4b0.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>m(()=>import("./taskContent.b7f2a3f0.js"),["js/build/taskContent.b7f2a3f0.js","js/build/taskContent.4dd37439.css","js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.52758ba6.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>m(()=>import("./task.1f0c8920.js"),["js/build/task.1f0c8920.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.75c13dec.js","js/build/TaskDetail.d1ade037.css","js/build/vuex.cc7cb26e.js","js/build/ProjectLog.d652e5c8.js","js/build/DialogWrapper.86de099a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.4892e747.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/@babel.49d8906a.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/vue.c448ed56.js","js/build/view-design-hi.563cfadb.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.52758ba6.js","js/build/tip.7b94707c.js","js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-apps",path:"/single/apps/*",component:()=>m(()=>import("./apps.db7c3805.js"),["js/build/apps.db7c3805.js","js/build/MicroApps.bd23f92f.js","js/build/vue.c448ed56.js","js/build/@babel.49d8906a.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/DialogWrapper.86de099a.js","js/build/DialogWrapper.bc3239e2.css","js/build/le5le-store.b40f9152.js","js/build/longpress.5305f240.js","js/build/index.4892e747.js","js/build/quill-hi.b7c37d93.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.4f4718f3.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.fa843a7a.js","js/build/lodash.isequal.7dda43a9.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.df04b444.js","js/build/quill-mention-hi.f348056f.js","js/build/view-design-hi.563cfadb.js","js/build/vue-virtual-scroll-list-hi.3a8a6077.js","js/build/ImgUpload.52758ba6.js","js/build/tip.7b94707c.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>m(()=>import("./validEmail.32d69f59.js"),["js/build/validEmail.32d69f59.js","js/build/validEmail.6e361ca9.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>m(()=>import("./reportEdit.53145ec5.js"),["js/build/reportEdit.53145ec5.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.22763e0c.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>m(()=>import("./reportDetail.312f7535.js"),["js/build/reportDetail.312f7535.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.1ea08cae.js","js/build/vuex.cc7cb26e.js","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>m(()=>import("./token.e6a56e96.js"),["js/build/token.e6a56e96.js","js/build/token.7afc4e00.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>m(()=>import("./login.08e928ee.js"),["js/build/login.08e928ee.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.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>m(()=>import("./404.4d567a8e.js"),["js/build/404.4d567a8e.js","js/build/404.d686a01f.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const R=$A(window).width(),us=$A(window).height(),z=$A.screenOrientation();var ds={clientId:"",cacheVersion:"v8",windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:R,windowHeight:us,windowOrientation:z,windowLandscape:z==="landscape",windowPortrait:z==="portrait",formOptions:{class:R>576?"":"form-label-weight-bold",labelPosition:R>576?"right":"top",labelWidth:R>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:{},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},cacheTranslations:[]},fs={isLoad(e){return function(i){const t=e.loads.find(s=>s.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:s})=>s==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:s})=>s==i);if(t)return t}return{}},transforTasks(e){return function(i){return i.filter(({parent_id:t})=>!(t>0&&i.find(({id:s})=>s==t))).map(t=>{if(t.parent_id>0){const s=e.cacheTasks.find(({id:n})=>n==t.parent_id);return s?Object.assign({},s,{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:s})=>s==t.id)})})}},dashboardTask(e){const i=$A.daytz().startOf("day"),t=$A.daytz().endOf("day"),s=$A.daytz(),n=(u,f=!0)=>u.archived_at||u.complete_at&&f===!0||u.start_at&&$A.dayjs(u.start_at)>s?!1:u.owner==1;let o=e.cacheTasks.filter(u=>n(u)),r=0;if(e.taskCompleteTemps.length>0){let u=e.cacheTasks.filter(f=>e.taskCompleteTemps.includes(f.id)&&n(f,!1));u.length>0&&(r=u.length,o=$A.cloneJSON(o),o.push(...u))}const a=o.filter(u=>{const f=$A.dayjs(u.end_at);return i<=f&&f<=t}),l=o.filter(u=>u.end_at&&$A.dayjs(u.end_at)<=s),c={today:a,today_count:a.length,overdue:l,overdue_count:l.length,all:o,all_count:o.length};return r>0&&(c.today_count-=a.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.overdue_count-=l.filter(u=>e.taskCompleteTemps.includes(u.id)).length,c.all_count-=r),c},assistTask(e){const i=(s,n=!0)=>s.archived_at||s.complete_at&&n===!0?!1:s.assist&&s.owner===0;let t=e.cacheTasks.filter(s=>i(s));if(e.taskCompleteTemps.length>0){let s=e.cacheTasks.filter(n=>e.taskCompleteTemps.includes(n.id)&&i(n,!1));s.length>0&&(t=$A.cloneJSON(t),t.push(...s))}return t}};function hs(e,i,t){$A.isJson(i)||(i={});const s=e+"::"+encodeURIComponent(new URLSearchParams($.sortObject(i,["page","pagesize","timerange"])).toString()),n=t.callAt.find(o=>o.key===s)||{};return typeof n.key=="undefined"&&(n.key=s,n.updated=0,n.deleted=0,t.callAt.push(n),$A.IDBSet("callAt",t.callAt).then(o=>{})),this.get=()=>(i.timerange=i.timerange||`${n.updated||0},${n.deleted||0}`,i),this.save=({total:o,current_page:r,deleted_id:a})=>new Promise(l=>{if(r===1){let c=!1;const u=$A.dayjs().unix();o>0&&(n.updated=u,c=!0),$A.isArray(a)&&a.length>0?(n.deleted=u,c=!0):a=[],c?$A.IDBSet("callAt",t.callAt).then(f=>l(a)):l(a)}}),this}function H(e,i,t){return new hs(e,i,t)}function ps(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 ms={retry:5,interval:3*1e3};class gs{constructor(i,t=ms){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 s=>{this.retry=this.options.retry,typeof t=="function"&&t(i,s)}}_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(s=>{this.es.removeEventListener(s,this._onMessage(s,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(s=>{this.es.addEventListener(s,this._onMessage(s,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 _s={init({state:e,dispatch:i}){return new Promise(async t=>{let s=null;const n=await $A.IDBString("clearCache");n&&(n==="handle"&&(s="handleClearCache"),await $A.IDBRemove("clearCache"),await $A.IDBRemove("cacheVersion"));const o=await $A.IDBString("cacheVersion");o&&o!==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:r})=>{e.apiKeyData=r}),i("systemSetting"),await $A.loadScriptS(["language/web/key.js",`language/web/${T}.js`,`language/iview/${T}.js`]),t(s)})},call({state:e,dispatch:i},t){var o;$A.isJson(t)||(t={url:t});const s={"Content-Type":"application/json",language:T,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if(!e.userToken&&((o=e.meetingWindow)==null?void 0:o.meetingSharekey)&&(s.sharekey=e.meetingWindow.meetingSharekey),$A.isJson(t.header)?t.header=Object.assign(s,t.header):t.header=s,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 r=window.navigator.userAgent;(window.systemInfo.debug==="yes"||/Windows NT 5.1|Windows XP/.test(r)||r.indexOf("Windows NT 6.0")!==-1||r.indexOf("Windows NT 6.1")!==-1||r.indexOf("Windows NT 6.2")!==-1)&&(t.encrypt=!1)}t.url=$A.apiUrl(t.url),t.data=$A.newDateString(t.data);const n=$A.cloneJSON(t);return new Promise(async(r,a)=>{if(/^https*:\/\/public\//.test(t.url)){a({ret:-1,data:{},msg:"No server address"});return}const l=[];if(t.encrypt===!0&&(t.data&&e.apiKeyData.type==="pgp"&&(l.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),t.method="post",t.data={encrypted:await 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()}}t.success=async(c,u,f)=>{if(e.ajaxNetworkException=!1,!$A.isJson(c)){console.log(c,u,f),a({ret:-1,data:{},msg:$A.L("\u8FD4\u56DE\u53C2\u6570\u9519\u8BEF")});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")}}),a(c);return}if(d===-2&&t.checkNick!==!1){i("userEditInput","nickname").then(()=>{i("call",n).then(r).catch(a)}).catch(_=>{a({ret:-1,data:h,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0\uFF01")})});return}if(d===-3&&t.checkTel!==!1){i("userEditInput","tel").then(()=>{i("call",n).then(r).catch(a)}).catch(_=>{a({ret:-1,data:h,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD\uFF01")})});return}d===1?r({data:h,msg:p}):(a({ret:d,data:h,msg:p||$A.L("\u672A\u77E5\u9519\u8BEF")}),d===-4001?i("forgetProject",h.project_id):d===-4002?(h.force===1&&(e.taskArchiveView=0),i("forgetTask",h.task_id)):d===-4003?i("forgetDialog",h.dialog_id):d===-4004&&i("getTaskForParent",h.task_id).catch(()=>{}))},t.error=(c,u)=>{const f=window.navigator.onLine===!1||u===0&&c.readyState===4;if(f&&n.method!=="post"&&n.__networkFailureRetry!==!0){setTimeout(d=>{n.__networkFailureRetry=!0,i("call",n).then(r).catch(a)},1e3);return}t.checkNetwork!==!1&&(e.ajaxNetworkException=f),a(f?{ret:-1001,data:{},msg:$A.L("\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u91CD\u8BD5\u3002")}:{ret:-1,data:{},msg:$A.L("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002")}),console.error(c,u)},$A.ajaxc(t)})},callCancel({state:e},i){return new Promise((t,s)=>{$A.ajaxcCancel(i)?t():s()})},systemSetting({dispatch:e,state:i}){return new Promise((t,s)=>{switch(i.systemConfig.__state){case"success":t(i.systemConfig);break;case"loading":setTimeout(n=>{e("systemSetting").then(t).catch(s)},100);break;default:i.systemConfig.__state="loading",e("call",{url:"system/setting"}).then(({data:n})=>{i.systemConfig=Object.assign(n,{timezoneDifference:$A.updateTimezone(n.server_timezone),__state:"success"}),t(i.systemConfig)}).catch(n=>{i.systemConfig.__state="error",s()});break}})},needHome({dispatch:e,state:i}){return new Promise((t,s)=>{if($A.isSoftware){s();return}e("systemSetting").then(n=>{n.start_home==="open"?t():s()}).catch(s)})},downUrl({state:e},i){if(!i)return;let t=i,s=!0;if($A.isJson(i)&&(t=i.url,s=!!i.token),s){let n={token:e.userToken};$A.isJson(i)&&(t=i.url,n=i.params||{}),t=$A.urlAddParams(t,n)}$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,s=null,n=e.projectId;if($A.isJson(i)&&(t=i.key,s=i.value,n=i.project_id),n){let o=e.cacheProjectParameter.findIndex(a=>a.project_id==n);o===-1&&(e.cacheProjectParameter.push($A.projectParameterTemplate(n)),o=e.cacheProjectParameter.findIndex(a=>a.project_id==n));const r=e.cacheProjectParameter[o];$A.isJson(t)||(t={[t]:s||!r[t]}),e.cacheProjectParameter.splice(o,1,Object.assign(r,t)),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)}},setTheme({state:e,dispatch:i},t){return new Promise(function(s){if(t===void 0){s(!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"),s(!1);return}i("synchTheme",t),s(!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(o=>i("getBasicData",null),t));return}const s=e.userId+$A.dayjs().unix();if(window.__getBasicDataKey===s)return;window.__getBasicDataKey=s,i("getProjects").catch(()=>{}),i("getDialogAuto").catch(()=>{}),i("getDialogTodo",0).catch(()=>{}),i("getReportUnread",1e3),i("getApproveUnread",1e3),i("getTaskForDashboard"),i("dialogMsgRead");const n=Object.values(e.userAvatar).map(({userid:o})=>o);[...new Set(n)].some(o=>i("getUserBasic",{userid:o}))},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:s})=>{e.reportUnreadNumber=s.total||0}).catch(s=>{})},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:s})=>{e.approveUnreadNumber=s.total||0}).catch(({msg:s})=>{s.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(s=>{e("saveUserInfo",s.data),i(s)}).catch(s=>{console.warn(s),t(s)})})},saveUserInfoBase({state:e,dispatch:i},t){return new Promise(async s=>{const n=$A.cloneJSON(t);n.userid=$A.runNum(n.userid),n.token=n.userid>0?n.token||e.userToken:"",e.userInfo=n,e.userId=n.userid,e.userToken=n.token,e.userIsAdmin=$A.inArray("admin",n.identity),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}`}),s()})},saveUserInfo({state:e,dispatch:i},t){return new Promise(async s=>{await i("saveUserInfoBase",t),i("getBasicData",null),e.userId>0&&(e.cacheUserBasic=e.cacheUserBasic.filter(({userid:n})=>n!==e.userId),i("saveUserBasic",e.userInfo)),s()})},getUserBasic({state:e,dispatch:i},t){if(e.loadUserBasic===!0){t&&e.cacheUserWait.push(t);return}let s=$A.dayjs().unix(),n=$A.cloneJSON(e.cacheUserWait);t&&t.userid&&n.push(t),e.cacheUserWait=[];let o=[],r=0;n.some(a=>{let l=e.cacheUserBasic.find(({userid:c})=>c==a.userid);if(l&&s-l._time<=30)return setTimeout(()=>{e.cacheUserActive=Object.assign(l,{__:Math.random()}),E.Store.set("userActive",{type:"cache",data:l})},r+=5),!1;o.push(a)}),o.length!==0&&(o.length>30&&(e.cacheUserWait=o.slice(30),o=o.slice(0,30)),e.loadUserBasic=!0,i("call",{url:"users/basic",data:{userid:[...new Set(o.map(({userid:a})=>a))]},skipAuthError:!0}).then(a=>{s=$A.dayjs().unix(),o.forEach(l=>{let c=a.data.find(({userid:u})=>u==l.userid)||Object.assign(l,{email:""});c._time=s,i("saveUserBasic",c)}),e.loadUserBasic=!1,i("getUserBasic")}).catch(a=>{console.warn(a),e.loadUserBasic=!1,i("getUserBasic")}))},saveUserBasic({state:e},i){$A.execMainDispatch("saveUserBasic",i);const t=e.cacheUserBasic.findIndex(({userid:s})=>s==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()}),E.Store.set("userActive",{type:"cache",data:i}),$A.IDBSave("cacheUserBasic",e.cacheUserBasic)},userEditInput({dispatch:e},i){return new Promise(function(t,s){let n="";if(i==="nickname")n="\u6635\u79F0";else if(i==="tel")n="\u8054\u7CFB\u7535\u8BDD";else{s("\u53C2\u6570\u9519\u8BEF");return}setTimeout(o=>{$A.modalInput({title:`\u8BBE\u7F6E${n}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${n}`,okText:"\u4FDD\u5B58",onOk:r=>r?new Promise((a,l)=>{e("call",{url:"users/editdata",data:{[i]:r},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(c=>{a(),t()})}).catch(({msg:c})=>{l(c)})}):`\u8BF7\u8F93\u5165${n}`,onCancel:r=>s})},100)})},logout({state:e,dispatch:i},t=!0){i("handleClearCache",{}).then(()=>{let s=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);t===!1&&(s=null),$A.goForward({name:"login",query:s?{from:s}:{}},!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 s=$A.isJson(i)?i:$A.jsonParse(window.localStorage.getItem("__system:keyboardConf__"))||{};s.screenshot_key=(s.screenshot_key||"").trim().toLowerCase(),s.send_button_app=s.send_button_app||"button",s.send_button_desktop=s.send_button_desktop||"enter",window.localStorage.setItem("__system:keyboardConf__",$A.jsonStringify(s)),e.cacheKeyboard=s,t(s)})},handleClearCache({state:e,dispatch:i},t){return new Promise(async s=>{const n=window.localStorage.getItem("__system:themeConf__"),o=window.localStorage.getItem("__system:languageName__"),r=window.localStorage.getItem("__system:keyboardConf__");window.localStorage.clear(),window.localStorage.setItem("__system:themeConf__",n),window.localStorage.setItem("__system:languageName__",o),window.localStorage.setItem("__system:keyboardConf__",r);const a=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("cacheTranslations"),p=await $A.IDBArray("cacheEmojis"),_=await $A.IDBJson("userInfo");await $A.IDBClear(),await $A.IDBSet("clientId",a),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("cacheTranslations",h),await $A.IDBSet("cacheEmojis",p),await $A.IDBSet("cacheVersion",e.cacheVersion),await i("saveUserInfoBase",$A.isJson(t)?t:_),await i("handleReadCache"),s()})},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(n=>Object.assign(n,{loading:!1,extra_draft_has:n.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.cacheTranslations=await $A.IDBArray("cacheTranslations"),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__")),s=window.localStorage.getItem("__system:userToken__")||"";e.userId===0&&t&&s&&(e.userId=t,e.userToken=s),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),i()})},userUrl({state:e},i){return new Promise(t=>{const s=$A.urlAddParams(i,{language:T,theme:e.themeConf,userid:e.userId,token:e.userToken});t(s)})},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(s=>{i("saveFile",s)});else if($A.isJson(t)){let s={_load:!1,_edit:!1};const n=e.fileLists.findIndex(({id:o})=>o==t.id);n>-1?e.fileLists.splice(n,1,Object.assign(s,e.fileLists[n],t)):e.fileLists.push(Object.assign(s,t)),$A.IDBSave("fileLists",e.fileLists,600)}},forgetFile({state:e,dispatch:i},t){$A.execMainDispatch("forgetFile",t),($A.isArray(t)?t:[t]).some(n=>{e.fileLists=e.fileLists.filter(o=>o.id!=n),e.fileLists.some(o=>{o.pid==n&&i("forgetFile",o.id)}),$A.IDBSave("fileLists",e.fileLists,600)})},packProgress({state:e,dispatch:i},t){$A.execMainDispatch("packProgress",t);const s=e.filePackLists.findIndex(({name:n})=>n==t.name);s>-1?e.filePackLists[s].progress=t.progress:(e.filePackLists.push(t),$A.IDBSave("filePackLists",e.filePackLists,600))},getFiles({state:e,dispatch:i},t){return new Promise(function(s,n){i("call",{url:"file/lists",data:{pid:t}}).then(o=>{const r=o.data.map(({id:a})=>a);e.fileLists=e.fileLists.filter(a=>a.pid!=t||r.includes(a.id)),$A.IDBSave("fileLists",e.fileLists,600),i("saveFile",o.data),s(o)}).catch(o=>{console.warn(o),n(o)})})},searchFiles({state:e,dispatch:i},t){return $A.isJson(t)||(t={key:t}),new Promise(function(s,n){i("call",{url:"file/search",data:t}).then(o=>{i("saveFile",o.data),s(o)}).catch(o=>{console.warn(o),n(o)})})},saveProject({state:e,dispatch:i},t){if($A.execMainDispatch("saveProject",t),$A.isArray(t))t.forEach(s=>{i("saveProject",s)});else if($A.isJson(t)){typeof t.project_column!="undefined"&&(i("saveColumn",t.project_column),delete t.project_column);const s=e.cacheProjects.findIndex(({id:n})=>n==t.id);s>-1?e.cacheProjects.splice(s,1,Object.assign({},e.cacheProjects[s],t)):(typeof t.project_user=="undefined"&&(t.project_user=[]),e.cacheProjects.push(t),e.projectTotal++),e.cacheDialogs.some(n=>{if(n.type=="group"&&n.group_type=="project"&&n.group_info.id==t.id){t.name!==void 0&&(n.name=t.name);for(let o in n.group_info)!n.group_info.hasOwnProperty(o)||t[o]===void 0||(n.group_info[o]=t[o])}}),$A.IDBSave("cacheProjects",e.cacheProjects)}},forgetProject({state:e,dispatch:i},t){$A.execMainDispatch("forgetProject",t);const s=$A.isArray(t)?t:[t];if(s.some(n=>{const o=e.cacheProjects.findIndex(r=>r.id==n);o>-1&&(i("forgetTask",e.cacheTasks.filter(r=>r.project_id==t).map(r=>r.id)),i("forgetColumn",e.cacheColumns.filter(r=>r.project_id==t).map(r=>r.id)),e.cacheProjects.splice(o,1),e.projectTotal=Math.max(0,e.projectTotal-1))}),s.includes(e.projectId)){const n=$A.cloneJSON(e.cacheProjects).sort((o,r)=>o.top_at||r.top_at?$A.dayjs(r.top_at)-$A.dayjs(o.top_at):r.id-o.id).find(({id:o})=>o&&o!=t);n?$A.goForward({name:"manage-project",params:{projectId:n.id}}):$A.goForward({name:"manage-dashboard"})}$A.IDBSave("cacheProjects",e.cacheProjects)},getProjects({state:e,dispatch:i,getters:t},s){return new Promise(function(n,o){if(e.userId===0){e.cacheProjects=[],o({msg:"Parameter error"});return}const r=H("projects",s,e);setTimeout(()=>{e.loadProjects++},2e3),i("call",{url:"project/lists",data:r.get()}).then(({data:a})=>{i("saveProject",a.data),r.save(a).then(l=>i("forgetProject",l)),e.projectTotal=a.total_all,n(a)}).catch(a=>{console.warn(a),o(a)}).finally(a=>{e.loadProjects--})})},getProjectOne({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}e.projectLoad++,i("call",{url:"project/one",data:{project_id:t}}).then(o=>{setTimeout(()=>{e.projectLoad--},10),i("saveProject",o.data),s(o)}).catch(o=>{console.warn(o),e.projectLoad--,n(o)})})},archivedProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/archived",data:{project_id:t}}).then(o=>{i("forgetProject",t),s(o)}).catch(o=>{console.warn(o),i("getProjectOne",t).catch(()=>{}),n(o)})})},removeProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/remove",data:{project_id:t}}).then(o=>{i("forgetProject",t),s(o)}).catch(o=>{console.warn(o),i("getProjectOne",t).catch(()=>{}),n(o)})})},exitProject({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/exit",data:{project_id:t}}).then(o=>{i("forgetProject",t),s(o)}).catch(o=>{console.warn(o),i("getProjectOne",t).catch(()=>{}),n(o)})})},saveColumn({state:e,dispatch:i},t){if($A.execMainDispatch("saveColumn",t),$A.isArray(t))t.forEach(s=>{i("saveColumn",s)});else if($A.isJson(t)){const s=e.cacheColumns.findIndex(({id:n})=>n==t.id);s>-1?e.cacheColumns.splice(s,1,Object.assign({},e.cacheColumns[s],t)):e.cacheColumns.push(t),$A.IDBSave("cacheColumns",e.cacheColumns)}},forgetColumn({state:e,dispatch:i},t){$A.execMainDispatch("forgetColumn",t);const s=$A.isArray(t)?t:[t],n=[];s.some(o=>{const r=e.cacheColumns.findIndex(a=>a.id==o);r>-1&&(i("forgetTask",e.cacheTasks.filter(a=>a.column_id==t).map(a=>a.id)),n.push(e.cacheColumns[r].project_id),e.cacheColumns.splice(r,1))}),Array.from(new Set(n)).some(o=>i("getProjectOne",o).catch(()=>{})),$A.IDBSave("cacheColumns",e.cacheColumns)},getColumns({state:e,dispatch:i},t){return new Promise(function(s,n){if(e.userId===0){e.cacheColumns=[],n({msg:"Parameter error"});return}e.projectLoad++,i("call",{url:"project/column/lists",data:{project_id:t}}).then(({data:o})=>{e.projectLoad--;const r=o.data.map(({id:a})=>a);if(e.cacheColumns=e.cacheColumns.filter(a=>a.project_id!=t||r.includes(a.id)),i("saveColumn",o.data),s(o.data),e.cacheColumns.filter(a=>a.project_id==t).length===1){const a=e.cacheProjectParameter.find(l=>l.project_id==t)||{};(typeof a.menuInit=="undefined"||a.menuInit===!1)&&i("toggleProjectParameter",{project_id:t,key:{menuInit:!0,menuType:"table"}})}}).catch(o=>{console.warn(o),e.projectLoad--,n(o)})})},removeColumn({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"project/column/remove",data:{column_id:t}}).then(o=>{i("forgetColumn",t),s(o)}).catch(o=>{console.warn(o),n(o)})})},saveTask({state:e,dispatch:i},t){if($A.execMainDispatch("saveTask",t),$A.isArray(t))t.forEach(s=>{i("saveTask",s)});else if($A.isJson(t)){t._time=$A.dayjs().unix(),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(o=>o.parent_id==t.id).some(o=>{i("saveTask",Object.assign(o,{archived_at:t.archived_at,archived_userid:t.archived_userid}))});let s={};typeof t.update_marking!="undefined"&&(s=$A.isJson(t.update_marking)?t.update_marking:{},delete t.update_marking);const n=e.cacheTasks.findIndex(({id:o})=>o==t.id);n>-1?e.cacheTasks.splice(n,1,Object.assign({},e.cacheTasks[n],t)):e.cacheTasks.push(t),(s.is_update_maintask===!0||t.parent_id>0&&e.cacheTasks.findIndex(({id:o})=>o==t.parent_id)===-1)&&i("getTaskOne",t.parent_id).catch(()=>{}),s.is_update_project===!0&&i("getProjectOne",t.project_id).catch(()=>{}),s.is_update_content===!0&&i("getTaskContent",t.id),s.is_update_subtask===!0&&i("getTaskForParent",t.id).catch(()=>{}),e.cacheDialogs.some(o=>{if(o.name===void 0||o.dialog_delete===1)return!1;if(o.type=="group"&&o.group_type=="task"&&o.group_info.id==t.id){t.name!==void 0&&(o.name=t.name);for(let r in o.group_info)!o.group_info.hasOwnProperty(r)||t[r]===void 0||(o.group_info[r]=t[r])}}),$A.IDBSave("cacheTasks",e.cacheTasks)}},forgetTask({state:e,dispatch:i},t){$A.execMainDispatch("forgetTask",t);const s=($A.isArray(t)?t:[t]).filter(r=>r!=e.taskArchiveView),n=[],o=[];s.some(r=>{const a=e.cacheTasks.findIndex(l=>l.id==r);a>-1&&(e.cacheTasks[a].parent_id&&n.push(e.cacheTasks[a].parent_id),o.push(e.cacheTasks[a].project_id),e.cacheTasks.splice(a,1)),e.cacheTasks.filter(l=>l.parent_id==r).some(l=>{let c=e.cacheTasks.findIndex(u=>u.id==l.id);c>-1&&(o.push(l.project_id),e.cacheTasks.splice(c,1))})}),Array.from(new Set(n)).some(r=>i("getTaskOne",r).catch(()=>{})),Array.from(new Set(o)).some(r=>i("getProjectOne",r).catch(()=>{})),s.includes(e.taskId)&&(e.taskId=0),$A.IDBSave("cacheTasks",e.cacheTasks)},todayAndOverdue({state:e,dispatch:i}){const t=$A.daytz(),s=t.format("YYYY-MM-DD");e.cacheTasks.some(n=>{if(!n.end_at)return!1;const o={},r=$A.dayjs(n.end_at);!n.today&&r.format("YYYY-MM-DD")==s&&(o.today=!0),!n.overdue&&r0&&i("saveTask",Object.assign(n,o))})},increaseTaskMsgNum({state:e},i){if($A.execMainDispatch("increaseTaskMsgNum",i),!$A.execMainCacheJudge(`increaseTaskMsgNum:${i.id}`)&&i.dialog_id){const t=e.cacheTasks.find(({dialog_id:s})=>s===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 s=e.dialogMsgs.find(({id:n})=>n==t.reply_id);s&&s.reply_num++}},decrementMsgReplyNum({state:e,dispatch:i},t){if($A.execMainDispatch("decrementMsgReplyNum",t),!$A.execMainCacheJudge(`decrementMsgReplyNum:${t.id}`)&&t.reply_id>0){const s=e.dialogMsgs.find(({id:n})=>n==t.reply_id);s&&s.reply_num--}},getTasks({state:e,dispatch:i},t){t===null&&(t={});const s=H("tasks",t,e);return new Promise(function(n,o){if(e.userId===0){e.cacheTasks=[],o({msg:"Parameter error"});return}t.project_id&&e.projectLoad++,i("call",{url:"project/task/lists",data:s.get()}).then(({data:r})=>{t.project_id&&e.projectLoad--,i("saveTask",r.data),s.save(r).then(a=>i("forgetTask",a)),r.next_page_url?(t.page=r.current_page+1,r.current_page%30===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+r.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{i("getTasks",t).then(n).catch(o)},onCancel:()=>{n()}}):i("getTasks",t).then(n).catch(o)):n()}).catch(r=>{console.warn(r),o(r),t.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:i},t){return new Promise(function(s,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[t.task_id])){e.taskOneLoad[t.task_id].push({resolve:s,reject:n});return}e.taskOneLoad[t.task_id]=[],i("call",{url:"project/task/one",data:t}).then(o=>{i("saveTask",o.data),s(o),e.taskOneLoad[t.task_id].some(r=>{r.resolve(o)})}).catch(o=>{console.warn(o),n(o),e.taskOneLoad[t.task_id].some(r=>{r.reject(o)})}).finally(o=>{delete e.taskOneLoad[t.task_id]})})},getTaskForDashboard({state:e,dispatch:i,getters:t},s){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof s=="number"){s>-1&&(window.__getTaskForDashboard=setTimeout(n=>i("getTaskForDashboard",null),s));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,i("getTasks",null).finally(n=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:i},t){return new Promise(function(s,n){i("getTasks",{project_id:t}).then(s).catch(n)})},getTaskForParent({state:e,dispatch:i},t){return new Promise(function(s,n){i("getTasks",{parent_id:t}).then(s).catch(n)})},removeTask({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/remove",data:t}).then(o=>{e.taskArchiveView=0,i("forgetTask",t.task_id),s(o)}).catch(o=>{console.warn(o),i("getTaskOne",t.task_id).catch(()=>{}),n(o)}).finally(o=>{i("cancelLoad",`task-${t.task_id}`)})})},archivedTask({state:e,dispatch:i},t){return new Promise(function(s,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}i("setLoad",{key:`task-${t.task_id}`,delay:300}),i("call",{url:"project/task/archived",data:t}).then(o=>{i("saveTask",o.data),s(o)}).catch(o=>{console.warn(o),i("getTaskOne",t.task_id).catch(()=>{}),n(o)}).finally(o=>{i("cancelLoad",`task-${t.task_id}`)})})},getTaskContent({state:e,dispatch:i},t){$A.runNum(t)!==0&&(i("setLoad",{key:`task-${t}`,delay:1200}),i("call",{url:"project/task/content",data:{task_id:t}}).then(s=>{i("saveTaskContent",s.data)}).catch(s=>{console.warn(s)}).finally(s=>{i("cancelLoad",`task-${t}`)}))},saveTaskContent({state:e,dispatch:i},t){if($A.execMainDispatch("saveTaskContent",t),$A.isArray(t))t.forEach(s=>{i("saveTaskContent",s)});else if($A.isJson(t)){const s=e.taskContents.findIndex(({task_id:n})=>n==t.task_id);s>-1?e.taskContents.splice(s,1,Object.assign({},e.taskContents[s],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(s=>{s.data.forEach(n=>{const o=e.taskFiles.findIndex(({id:r})=>r==n.id);o>-1?e.taskFiles.splice(o,1,n):e.taskFiles.push(n)}),i("saveTask",{id:t,file_num:s.data.length})}).catch(s=>{console.warn(s)})},forgetTaskFile({state:e,dispatch:i},t){($A.isArray(t)?t:[t]).some(n=>{const o=e.taskFiles.findIndex(r=>r.id==n);o>-1&&e.taskFiles.splice(o,1)})},openTask({state:e,dispatch:i},t){let s=t;if($A.isJson(t)&&(t.parent_id>0?s=t.parent_id:s=t.id),$A.isSubElectron){s>0?$A.Electron.sendMessage("updateChildWindow",{name:`task-${s}`,path:`/single/task/${s}`}):$A.Electron.sendMessage("windowClose");return}e.taskArchiveView=s,e.taskId=s,s>0?i("getTaskOne",{task_id:s,archived:"all"}).then(()=>{i("getTaskContent",s),i("getTaskFiles",s),i("getTaskForParent",s).catch(()=>{}),i("saveTaskBrowse",s)}).catch(({msg:n})=>{$A.modalWarning({content:n,onOk:()=>{e.taskId=0}})}):e.taskOperation={}},taskAdd({state:e,dispatch:i},t){return new Promise(function(s,n){const o=$A.cloneJSON($A.newDateString(t));$A.isArray(o.column_id)&&(o.column_id=o.column_id.find(r=>r)),i("call",{url:"project/task/add",data:o,method:"post"}).then(r=>{r.data.is_visible===1&&i("addTaskSuccess",r.data),s(r)}).catch(r=>{console.warn(r),n(r)})})},taskAddSub({dispatch:e},i){return new Promise(function(t,s){e("call",{url:"project/task/addsub",data:i}).then(n=>{e("addTaskSuccess",n.data),t(n)}).catch(n=>{console.warn(n),s(n)})})},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(s,n){i("taskBeforeUpdate",t).then(({post:o})=>{i("setLoad",{key:`task-${o.task_id}`,delay:300}),i("call",{url:"project/task/update",data:o,method:"post"}).then(r=>{i("saveTask",r.data),s(r)}).catch(r=>{console.warn(r),i("getTaskOne",o.task_id).catch(()=>{}),n(r)}).finally(r=>{i("cancelLoad",`task-${o.task_id}`)})}).catch(n)})},taskBeforeUpdate({state:e,dispatch:i},t){return new Promise(function(s,n){let o=$A.cloneJSON($A.newDateString(t)),r="\u6E29\u99A8\u63D0\u793A",a=null;if(typeof o.times!="undefined"){t.times[0]===!1&&(a="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const l=e.cacheTasks.find(({id:c})=>c==o.task_id);r=l.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",l&&(l.parent_id>0?o.times[0]&&e.cacheTasks.some(c=>{if(c.id!=l.parent_id)return!1;if(!c.end_at)return a="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let u=$A.dayjs(o.times[0]).unix(),f=$A.dayjs(o.times[1]).unix(),d=$A.dayjs(c.start_at).unix(),h=$A.dayjs(c.end_at).unix();if(uh)return a="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(c=>{if(c.parent_id!=l.id||!c.end_at)return!1;let u=$A.dayjs(o.times[0]).unix(),f=$A.dayjs(o.times[1]).unix(),d=$A.dayjs(l.start_at).unix(),h=$A.dayjs(l.end_at).unix(),p=$A.dayjs(c.start_at).unix(),_=$A.dayjs(c.end_at).unix();if(d==p&&h==_)return!1;if(!o.times[0])return a=`\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(u>p)return a=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(f<_)return a=`\u65B0\u8BBE\u7F6E\u7684\u7ED3\u675F\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0}))}if(a===null){s({confirm:!1,post:o});return}$A.modalConfirm({title:r,content:a,onOk:()=>{s({confirm:!0,post:o})},onCancel:()=>{n({msg:!1})}})})},getTaskFlow({state:e,dispatch:i},{task_id:t,project_id:s}){return new Promise(function(n,o){i("call",{url:"project/task/flow",data:{task_id:t,project_id:s||0}}).then(r=>{let a=e.cacheTasks.find(({id:u})=>u==t),{data:l}=r;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),a&&a.flow_item_id==u.id&&a.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),n(r)}).catch(r=>{console.warn(r),o(r)})})},getTaskPriority({state:e,dispatch:i}){return new Promise(function(t,s){i("call",{url:"system/priority"}).then(n=>{e.taskPriority=n.data,t(n)}).catch(n=>{console.warn(n),s(n)})})},getColumnTemplate({state:e,dispatch:i}){return new Promise(function(t,s){i("call",{url:"system/column/template"}).then(n=>{e.columnTemplate=n.data,t(n)}).catch(n=>{console.warn(n),s(n)})})},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:s})=>s==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 s=>{$A.isArray(t)&&(t[0]=await i("taskDefaultStartTime",t[0]),t[1]=await i("taskDefaultEndTime",t[1])),s(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 s;if($A.execMainDispatch("saveDialog",t),$A.isArray(t))t.forEach(n=>{i("saveDialog",n)});else if($A.isJson(t)){t.id=parseInt(t.id);const n=e.cacheDialogs.findIndex(({id:o})=>o==t.id);if(n>-1){const o=e.cacheDialogs[n],r=t.user_ms,a=o.user_ms||0;rl.id==t.unread_one))!=null&&s.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(n,1,Object.assign({},o,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(s=>{i("updateDialogLastMsg",s)});else if($A.isJson(t))if(e.cacheDialogs.findIndex(({id:n})=>n==t.dialog_id)>-1){const n={id:t.dialog_id,last_msg:t,last_at:t.created_at||$A.daytz().format("YYYY-MM-DD HH:mm:ss")};t.mtype=="tag"&&(n.has_tag=!0),t.mtype=="todo"&&(n.has_todo=!0),t.mtype=="image"&&(n.has_image=!0),t.mtype=="file"&&(n.has_file=!0),t.link&&(n.has_link=!0),i("saveDialog",n)}else i("getDialogOne",t.dialog_id).catch(()=>{})},getDialogAuto({state:e,dispatch:i}){return new Promise(function(t,s){if(e.loadDialogAuto){s({msg:"Loading"});return}setTimeout(n=>{e.loadDialogs++},2e3),e.loadDialogAuto=!0,i("getDialogs").then(t).catch(s).finally(n=>{e.loadDialogs--,e.loadDialogAuto=!1})})},getDialogs({state:e,dispatch:i,getters:t},s){return new Promise(function(n,o){if(e.userId===0){e.cacheDialogs=[],o({msg:"Parameter error"});return}$A.isJson(s)||(s={}),typeof s.page=="undefined"&&(s.page=1),typeof s.pagesize=="undefined"&&(s.pagesize=20);const r=H("dialogs",s,e);i("call",{url:"dialog/lists",data:r.get()}).then(({data:a})=>{i("saveDialog",a.data),r.save(a).then(l=>i("forgetDialog",l)),a.current_page===1&&i("getDialogLatestMsgs",a.data.map(({id:l})=>l)),a.next_page_url&&a.current_page<5?(s.page++,i("getDialogs",s).then(n).catch(o)):(n(),i("getDialogBeyonds"))}).catch(a=>{console.warn(a),o(a)})})},async getDialogBeyonds({state:e,dispatch:i}){const t=await $A.IDBString("dialogBeyond"),s=$A.daytz().format("YYYY-MM-DD HH");if(t==s)return;await $A.IDBSet("dialogBeyond",s);const n=a=>e.cacheDialogs.filter(a).sort((l,c)=>$A.dayjs(l.last_at)-$A.dayjs(c.last_at)).find(({id:l})=>l>0),o=n(({unread:a,last_at:l})=>a>0&&l),r=n(({todo_num:a,last_at:l})=>a>0&&l);i("call",{url:"dialog/beyond",data:{unread_at:o?o.last_at:$A.dayjs().unix(),todo_at:r?r.last_at:$A.dayjs().unix()}}).then(({data:a})=>{i("saveDialog",a)})},getDialogOne({state:e,dispatch:i},t){return new Promise(function(s,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}i("call",{url:"dialog/one",data:{dialog_id:t}}).then(o=>{i("saveDialog",o.data),s(o)}).catch(o=>{console.warn(o),n(o)})})},getDialogTodo({state:e,dispatch:i},t){i("call",{url:"dialog/todo",data:{dialog_id:t}}).then(({data:s})=>{$A.arrayLength(s)>0?(t>0&&(i("saveDialog",{id:t,todo_num:$A.arrayLength(s)}),e.dialogTodos=e.dialogTodos.filter(n=>n.dialog_id!=t)),i("saveDialogTodo",s)):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:s})=>{$A.isJson(s)&&i("saveDialogMsgTop",s)}).catch(console.warn)},openDialog({state:e,dispatch:i},t){return new Promise(s=>{let n,o;$A.isJson(t)&&(n=t.search_msg_id,o=t.dialog_msg_id,t=t.dialog_id),requestAnimationFrame(r=>{e.dialogSearchMsgId=/^\d+$/.test(n)?n:0,e.dialogMsgId=/^\d+$/.test(o)?o:0,e.dialogId=/^\d+$/.test(t)?t:0,s()})})},openDialogUserid({state:e,dispatch:i},t){return new Promise(function(s,n){const o=e.cacheDialogs.find(r=>r.type!=="user"||!r.dialog_user?!1:r.dialog_user.userid===t);if(o){i("openDialog",o.id),s(o);return}i("showSpinner",600),i("call",{url:"dialog/open/user",data:{userid:t}}).then(({data:r})=>{i("saveDialog",r),i("openDialog",r.id),s(r)}).catch(r=>{console.warn(r),n(r)}).finally(r=>{i("hiddenSpinner")})})},forgetDialog({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialog",t);const s=$A.isArray(t)?t:[t];s.some(n=>{const o=e.cacheDialogs.findIndex(r=>r.id==n);o>-1&&(i("forgetDialogMsg",e.dialogMsgs.filter(r=>r.dialog_id==t).map(r=>r.id)),e.cacheDialogs.splice(o,1))}),s.includes(e.dialogId)&&(e.dialogId=0),$A.IDBSave("cacheDialogs",e.cacheDialogs)},saveInDialog({state:e,dispatch:i},t){$A.execMainDispatch("saveInDialog",t);const s=e.dialogIns.findIndex(r=>r.uid==t.uid);s>-1?e.dialogIns.splice(s,1,Object.assign({},e.dialogIns[s],t)):e.dialogIns.push(t);const n=5e3,o=500;if(e.dialogHistory=e.dialogHistory.filter(r=>r!=t.dialog_id),e.dialogHistory.push(t.dialog_id),e.dialogMsgs.length>n&&e.dialogHistory.length>o){const r=e.dialogHistory.slice().reverse(),a=[],l=[];r.forEach(c=>{a.lengthu.dialog_id==c)>-1?a.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=a}},forgetInDialog({state:e,dispatch:i},t){$A.execMainDispatch("forgetInDialog",t);const s=e.dialogIns.findIndex(n=>n.uid==t);s>-1&&e.dialogIns.splice(s,1)},closeDialog({state:e,dispatch:i},t){if(!/^\d+$/.test(t))return;$A.execMainDispatch("closeDialog",t);const s=e.cacheDialogs.find(o=>o.id==t);s&&(s.extra_draft_has=s.extra_draft_content?1:0);const n=e.dialogMsgs.filter(o=>o.dialog_id==t);if(n.length>e.dialogMsgKeep){const o=n.sort((r,a)=>a.id-r.id).splice(e.dialogMsgKeep).map(r=>r.id);e.dialogMsgs=e.dialogMsgs.filter(r=>!o.includes(r.id)),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}},saveDialogTodo({state:e,dispatch:i},t){if($A.execMainDispatch("saveDialogTodo",t),$A.isArray(t))t.forEach(s=>{i("saveDialogTodo",s)});else if($A.isJson(t)){const s=e.dialogTodos.findIndex(n=>n.id==t.id);s>-1?e.dialogTodos.splice(s,1,Object.assign({},e.dialogTodos[s],t)):e.dialogTodos.push(t)}},forgetDialogTodoForMsgId({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogTodoForMsgId",t);const s=e.dialogTodos.findIndex(n=>n.msg_id==t);s>-1&&e.dialogTodos.splice(s,1)},saveDialogMsgTop({state:e,dispatch:i},t){if($A.execMainDispatch("saveDialogMsgTop",t),$A.isArray(t))t.forEach(s=>{i("saveDialogMsgTop",s)});else if($A.isJson(t)){e.dialogMsgTops=e.dialogMsgTops.filter(n=>n.dialog_id!=t.dialog_id);const s=e.dialogMsgTops.findIndex(n=>n.id==t.id);s>-1?e.dialogMsgTops.splice(s,1,Object.assign({},e.dialogMsgTops[s],t)):e.dialogMsgTops.push(t)}},forgetDialogMsgTopForMsgId({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogMsgTopForMsgId",t);const s=e.dialogMsgTops.findIndex(n=>n.msg_id==t);s>-1&&e.dialogMsgTops.splice(s,1)},saveDialogDraft({state:e,dispatch:i},t){e.dialogDraftTimer[t.id]&&clearInterval(e.dialogDraftTimer[t.id]),e.dialogDraftTimer[t.id]=setTimeout(s=>{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(s=>{i("saveDialogMsg",s)});else if($A.isJson(t)){const s=e.dialogMsgs.findIndex(({id:o})=>o==t.id);if(s>-1){const o=e.dialogMsgs[s];o.read_at&&delete t.read_at,t=Object.assign({},o,t),e.dialogMsgs.splice(s,1,t)}else e.dialogMsgs.push(t);$A.IDBSave("dialogMsgs",e.dialogMsgs,600);const n=e.cacheDialogs.find(({id:o})=>o==t.dialog_id);if(n){let o=!1;!t.read_at&&t.userid!=e.userId&&!e.dialogIns.find(({dialog_id:r})=>r==n.id)&&(n.unread_one?n.unread_one=Math.min(n.unread_one,t.id):n.unread_one=t.id,o=!0),n.last_msg&&n.last_msg.id==t.id&&(n.last_msg=Object.assign({},n.last_msg,t),o=!0),o&&i("saveDialog",n)}}},forgetDialogMsg({state:e,dispatch:i},t){$A.execMainDispatch("forgetDialogMsg",t),($A.isArray(t)?t:[t]).some(n=>{const o=e.dialogMsgs.findIndex(r=>r.id==n);if(o>-1){const r=e.dialogMsgs[o];i("decrementMsgReplyNum",r),i("audioStop",$A.getObject(r,"msg.path")),e.dialogMsgs.splice(o,1),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}}),i("forgetDialogTodoForMsgId",t),i("forgetDialogMsgTopForMsgId",t)},getDialogMsgs({state:e,dispatch:i,getters:t},s){return new Promise((n,o)=>{let r=f=>{},a=f=>{},l=!1,c=!1;typeof s.save_before!="undefined"&&(r=typeof s.save_before=="function"?s.save_before:f=>{},delete s.save_before),typeof s.save_after!="undefined"&&(a=typeof s.save_after=="function"?s.save_after:f=>{},delete s.save_after),typeof s.clear_before!="undefined"&&(l=typeof s.clear_before=="boolean"?s.clear_before:!1,delete s.clear_before),typeof s.spinner!="undefined"&&(c=s.spinner,delete s.spinner);const u=`msg::${s.dialog_id}-${s.msg_id}-${s.msg_type||""}`;if(t.isLoad(u)){o({msg:"Loading"});return}i("setLoad",u),l&&(e.dialogMsgs=e.dialogMsgs.filter(({dialog_id:f})=>f!==s.dialog_id),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)),s.pagesize=25,i("call",{url:"dialog/msg/list",data:s,spinner:c,complete:f=>i("cancelLoad",u)}).then(f=>{r();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!=s.dialog_id||h.includes(p.id)||$A.dayjs(p.created_at).unix()>=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!=s.dialog_id),i("saveDialogTodo",d.todo)),$A.isJson(d.top)&&i("saveDialogMsgTop",d.top),i("saveDialogMsg",d.list),n(f),a()}).catch(f=>{console.warn(f),o(f)}).finally(f=>{if(s.prev_id){const d=e.dialogMsgs.find(({prev_id:h})=>h==s.prev_id);d&&(d.prev_id=0)}if(s.next_id){const d=e.dialogMsgs.find(({next_id:h})=>h==s.next_id);d&&(d.next_id=0)}})})},getDialogLatestMsgs({state:e,dispatch:i},t=[]){return new Promise(function(s,n){if(e.userId===0){n({msg:"Parameter error"});return}if(!$A.isArray(t)){n({msg:"Parameter is not array"});return}if(t.length===0){s();return}const o=t.slice(5),r=t.slice(0,5);i("call",{method:"post",url:"dialog/msg/latest",data:{dialogs:r.map(a=>{var l;return{id:a,latest_id:((l=e.dialogMsgs.sort((c,u)=>u.id-c.id).find(({dialog_id:c})=>c==a))==null?void 0:l.id)||0}}),take:e.dialogMsgKeep}}).then(({data:a})=>{i("saveDialogMsg",a.data),o.length>0?i("getDialogLatestMsgs",o).then(s).catch(n):s()}).catch(a=>{n(a)})})},dialogMsgRead({state:e,dispatch:i},t){if($A.isJson(t)){if(t.userid==e.userId||t.read_at)return;t.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"),e.readWaitData[t.id]=e.readWaitData[t.id]||0;const s=e.cacheDialogs.find(({id:n})=>n==t.dialog_id);if(s){let n=!1;if(t.id==s.unread_one&&(s.unread_one=0,n=!0),$A.isArray(s.mention_ids)){const o=s.mention_ids.findIndex(r=>r==t.id);o>-1&&(s.mention_ids.splice(o,1),n=!0)}n&&(i("saveDialog",s),e.readWaitData[t.id]=t.dialog_id)}}clearTimeout(e.readTimeout),e.readTimeout=setTimeout(s=>{if(e.readTimeout=null,e.userId===0||Object.values(e.readWaitData).length===0)return;const n=$A.cloneJSON(e.readWaitData);e.readWaitData={},i("call",{method:"post",url:"dialog/msg/read",data:{id:n}}).then(({data:o})=>{for(const r in n)n.hasOwnProperty(r)&&/^\d+$/.test(n[r])&&e.dialogMsgs.some(a=>{a.dialog_id==n[r]&&a.id>=r&&(a.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))});i("saveDialog",o)}).catch(o=>{e.readWaitData=n}).finally(o=>{e.readLoadNum++})},50)},dialogMsgDot({state:e,dispatch:i},t){!$A.isJson(t)||!t.dot||(t.dot=0,i("call",{url:"dialog/msg/dot",data:{id:t.id}}).then(({data:s})=>{i("saveDialog",s)}))},dialogMsgMark({state:e,dispatch:i},t){return new Promise((s,n)=>{i("call",{url:"dialog/msg/mark",data:t}).then(o=>{typeof t.after_msg_id!="undefined"&&e.dialogMsgs.some(r=>{r.dialog_id==t.dialog_id&&r.id>=t.after_msg_id&&(r.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))}),i("saveDialog",o.data),s(o)}).catch(o=>{n(o)})})},streamDialogMsg({state:e,dispatch:i},t){if(/^https*:\/\//i.test(t)||(t=$A.mainUrl(t.substring(1))),e.dialogSseList.find(n=>n.streamUrl==t))return;const s=new gs(t);s.subscribe(["append","replace","done"],(n,o)=>{switch(n){case"append":E.Store.set("dialogMsgChange",{id:o.lastEventId,type:"append",text:o.data});break;case"replace":E.Store.set("dialogMsgChange",{id:o.lastEventId,type:"replace",text:o.data});break;case"done":const r=e.dialogSseList.findIndex(a=>s===a.sse);r>-1&&e.dialogSseList.splice(r,1),s.unsunscribe();break}}),e.dialogSseList.push({sse:s,streamUrl:t,time:$A.dayjs().unix()}),e.dialogSseList.length>10&&e.dialogSseList.shift().sse.close()},saveTranslation({state:e,dispatch:i},t){if(!$A.isJson(t))return;const s=e.cacheTranslations.find(n=>n.key==t.key&&n.lang==T);s?s.value=t.value:(t.lang=T,t.label=Ae[T]||T,e.cacheTranslations.push(t)),$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},setLoad({state:e,dispatch:i},t){if($A.isJson(t)){setTimeout(n=>{i("setLoad",t.key)},t.delay||0);return}const s=e.loads.find(n=>n.key==t);s?s.num++:e.loads.push({key:t,num:1})},cancelLoad({state:e},i){const t=e.loads.find(s=>s.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(s=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(n=>n.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)||!$A.isArray(i.list))&&(i={index:0,list:[i]}),e.previewImageIndex=i.index,e.previewImageList=i.list},audioPlay({state:e,dispatch:i},t){const s=document.getElementById("__audio_play_element__");if(s&&(s.pause(),s.src="",s.parentNode.removeChild(s)),!t||t===e.audioPlaying){e.audioPlaying=null;return}const n=document.createElement("audio");n.id=e.audioPlayId="__audio_play_element__",n.controls=!1,n.loop=!1,n.volume=1,n.src=e.audioPlaying=t,n.onended=o=>{i("audioStop",n.src)},document.body.appendChild(n),n.play().then(o=>{})},audioStop({state:e},i){const t=document.getElementById("__audio_play_element__");!t||(t.src===i||i===!0)&&(t.pause(),t.src="",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=${T}`;const s=$A.openLog,n=$A.randomString(16);e.wsRandom=n,e.ws=new WebSocket(t),e.ws.onopen=async o=>{s&&console.log("[WS] Open",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.wsOpenNum++,!(window.systemInfo.debug==="yes"||e.systemConfig.e2e_message!=="open")&&i("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await i("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async o=>{s&&console.log("[WS] Close",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{n===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onerror=async o=>{s&&console.log("[WS] Error",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{n===e.wsRandom&&i("websocketConnection")},3e3)},e.ws.onmessage=async o=>{s&&console.log("[WS] Message",o);let r=$A.jsonParse(o.data);r.type==="encrypt"&&r.encrypted&&(r=await i("pgpDecryptApi",r.encrypted));const a=$A.formatMsgBasic(r),{type:l,msgId:c}=a;switch(l){case"open":$A.setSessionStorage("userWsFd",a.data.fd);break;case"receipt":typeof e.wsCall[c]=="function"&&e.wsCall[c](a.body,!0),delete e.wsCall[c];break;case"line":E.Store.set("userActive",{type:"line",data:a.data});break;case"msgStream":i("streamDialogMsg",a.stream_url);break;default:switch(c&&i("websocketSend",{type:"receipt",msgId:c}).catch(u=>{}),e.wsMsg=a,Object.values(e.wsListener).forEach(u=>{if(typeof u=="function")try{u(a)}catch(f){s&&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:w})=>w==p)){const w={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:I})=>{i("saveDialog",Object.assign(w,I))}).catch(()=>{}):i("saveDialog",w)}break;case"add":case"chat":if(!e.dialogMsgs.find(({id:w})=>w==h.id)){if(i("increaseTaskMsgNum",h),i("increaseMsgReplyNum",h),f==="chat"||$A.isSubElectron)return;if(h.userid!==e.userId){const w=e.cacheDialogs.find(({id:I})=>I==p);if(w){const I={id:p,unread:w.unread+1,mention:w.mention,user_at:h.user_at,user_ms:h.user_ms};h.mention&&I.mention++,i("saveDialog",I)}}d||E.Store.set("dialogMsgPush",h)}const A=(w,I)=>{if(I>5||e.dialogMsgs.find(({id:O})=>O==w.id)){i("saveDialogMsg",w),i("updateDialogLastMsg",w);return}setTimeout(O=>{A(w,++I)},20)};A(h,0);break;case"update":case"readed":const k=(w,I)=>{if(e.dialogMsgs.find(({id:O})=>O==w.id)){i("saveDialogMsg",w),typeof w.todo!="undefined"&&i("getDialogTodo",p);return}I<=5&&setTimeout(O=>{k(w,++I)},500)};k(h,0);break;case"groupAdd":case"groupJoin":case"groupRestore":i("getDialogOne",h.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:w})=>w==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}})(a);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}})(a);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}})(a);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}})(a);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}})(a);break;case"report":(function({action:u}){u=="unreadUpdate"&&i("getReportUnread",1e3)})(a);break;case"approve":(function({action:u}){u=="unread"&&i("getApproveUnread",1e3)})(a);break}break}}},websocketSend({state:e},i){return new Promise((t,s)=>{var l;if(!$A.isJson(i)){s();return}const{type:n,data:o,callback:r}=i;let a;if(!e.ws){typeof r=="function"&&r(null,!1),s();return}typeof r=="function"&&(a=$A.randomString(16),e.wsCall[a]=r);try{(l=e.ws)==null||l.send(JSON.stringify({type:n,msgId:a,data:o})),t()}catch(c){typeof r=="function"&&r(null,!1),s(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(s=>{})},1e3)},websocketMsgListener({state:e},i){if(typeof i=="string"){e.wsListener[i]&&delete e.wsListener[i];return}const{name:t,callback:s}=i;typeof s=="function"?e.wsListener[t]=s: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 Ee({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});t.publicKeyB64=ps(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(s=>setTimeout(s,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 s=>{$A.isJson(t)||(t={message:t});const n=t.message||t.text,o=t.publicKey||t.key||(await i("pgpGetLocalKey")).publicKey,r=await xe({armoredKey:o}),a=await Le({message:await Me({text:n}),encryptionKeys:r});s(a)})},pgpDecrypt({state:e,dispatch:i},t){return new Promise(async s=>{$A.isJson(t)||(t={encrypted:t});const n=t.encrypted||t.text,o=t.privateKey||t.key||(await i("pgpGetLocalKey")).privateKey,r=await Pe({privateKey:await je({armoredKey:o}),passphrase:t.passphrase||e.clientId}),{data:a}=await Be({message:await Oe({armoredMessage:n}),decryptionKeys:r});s(a)})},pgpEncryptApi({state:e,dispatch:i},t){return new Promise(s=>{t=$A.jsonStringify(t),i("pgpEncrypt",{message:t,publicKey:e.apiKeyData.key}).then(n=>{s(n.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:i},t){return new Promise(s=>{i("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE----- - -`+t+` ------END PGP MESSAGE-----`}).then(n=>{s($A.jsonParse(n))})})},closeMeetingWindow({state:e},i){e.meetingWindow={show:!1,type:i,meetingid:0}},showMeetingWindow({state:e},{type:i,meetingid:t,meetingdisabled:s,meetingSharekey:n}){e.meetingWindow={show:!0,type:i,meetingid:t,meetingdisabled:s,meetingSharekey:n}},openOkr({state:e},i){i>0&&(window.innerWidth<910?$A.goForward({path:"/manage/apps/okr/okrDetails?data="+i}):(e.okrWindow={type:"open",model:"details",show:!0,id:i},setTimeout(()=>{e.okrWindow.show=!1,e.okrWindow.id=0},10)))}},ws={};g.use(J);var ce=new J.Store({state:ds,getters:fs,mutations:ws,actions:_s}),ys={computed:{...x(["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","userId","userToken"])}};var $s=function(){var e=this,i=e.$createElement;return e._self._c,e._e()},As=[];const vs={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let e=this.title,{title:i}=document;e!==i&&this.pagePath===this.$route.path&&this.setPageTile(e)},setPageTile(e){document.title=e}}},ue={};var ks=v(vs,$s,As,!1,bs,null,null,null);function bs(e){for(let i in ue)this[i]=ue[i]}var Ts=function(){return ks.exports}(),Ss=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.visible?t("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch||e.content=="",content:e.content}},[e.type==="svg"?t("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):t("div",{staticClass:"common-pureing"})]):e._e()},Is=[];const Ds={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""},delay:{type:Number,default:0}},data(){return{visible:this.delay===0,timer:null}},mounted(){this.delay>0&&(this.timer=setTimeout(e=>{this.visible=!0},this.delay))},beforeDestroy(){this.timer&&clearTimeout(this.timer)}},de={};var Cs=v(Ds,Ss,Is,!1,Es,null,null,null);function Es(e){for(let i in de)this[i]=de[i]}var xs=function(){return Cs.exports}(),Ls=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:e.$isEEUiApp||e.windowTouch||!e.showTooltip||e.disabled,"max-width":e.tooltipMaxWidth,transfer:""}},[t("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])},Ms=[];const Ps={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:e,tooltipContent:i}=this;return e||i||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const e=this.$refs.content;if(!e)return;let i=document.createRange();i.setStart(e,0),i.setEnd(e,e.childNodes.length||0);const t=i.getBoundingClientRect().width;if(this.showTooltip=Math.floor(t)>Math.floor(e.offsetWidth),this.showTooltip&&this.existSlot){const s=this.$slots.default.map(n=>n.text?n.text:n.elm.innerText?n.elm.innerText:"");this.tooltipContent=s.join("")}i=null},onClick(e){this.$emit("on-click",e)}}},fe={};var js=v(Ps,Ls,Ms,!1,Bs,null,null,null);function Bs(e){for(let i in fe)this[i]=fe[i]}var Os=function(){return js.exports}(),Us=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(s){return e.pasteText(s)},click:e.focus}},[t("Draggable",{attrs:{list:e.disSource,animation:150,tag:"ul",draggable:".column-item"}},e._l(e.disSource,function(s,n){return t("div",{staticClass:"tags-item column-item"},[t("span",{staticClass:"tags-content",on:{click:function(o){return o.stopPropagation(),e.edit(e.disSource,n)}}},[e._v(e._s(s))]),t("span",{staticClass:"tags-del",on:{click:function(o){return o.stopPropagation(),e.delTag(n)}}},[e._v("\xD7")])])}),0),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,enterkeyhint:e.enterkeyhint,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.downEnter(s)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"delete",[8,46],s.key,["Backspace","Delete","Del"])?null:e.delTag(!1)}],keyup:e.onKeyup,focus:e.onFocus,blur:e.onBlur,input:function(s){s.target.composing||(e.content=s.target.value)}}}),e._v(" "),e.showPlaceholder||e.tis!==""?t("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],1)},Rs=[];const Ns={name:"TagInput",components:{Draggable:Re},props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){var i;const e=[];return this.value&&((i=this.value)==null||i.split(",").forEach(t=>{t&&e.push(t)})),{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:e,isFocus:!1,editShow:!1,editData:{index:0,disSource:[],name:""},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u540D\u79F0\uFF01"),trigger:"change"}]}}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(e){if(e&&typeof e=="string"){let i=[];e==null||e.split(",").forEach(t=>{t&&i.push(t)}),this.disSource=i}},disSource(e){let i="";e.forEach(t=>{i!=""&&(i+=this.cut),i+=t}),this.$emit("input",i),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{edit(e,i){this.editData.disSource=e,this.editData.index=i,this.editData.name=e[i]+"",$A.modalInput({title:"\u7F16\u8F91",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",okText:"\u786E\u5B9A",value:e[i]+"",onOk:t=>t?(this.editData.name=t,this.editData.disSource[this.editData.index]=t,this.$set(this.disSource,this.editData.index,t),!1):"\u8BF7\u8F93\u5165\u540D\u79F0"})},focus(e){const i=this.$refs.myTextarea;i.focus(e);const{cursor:t}=e||{};if(t){const s=i.value.length;switch(t){case"start":i.setSelectionRange(0,0);break;case"end":i.setSelectionRange(s,s);break;default:i.setSelectionRange(0,s)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(e){e.preventDefault();let i=(e.clipboardData||window.clipboardData).getData("text");this.addTag(!1,i)},downEnter(e){e.preventDefault()},onFocus(e){this.isFocus=!0,this.$emit("on-focus",e)},onBlur(e){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",e)},onKeyup(e){this.addTag(e,this.content),this.$emit("on-keyup",e),e.keyCode===13&&this.$nextTick(()=>{this.$emit("on-enter",e)})},addTag(e,i){if(e===!1||e.keyCode===13){i.trim()!=""&&this.disSource.indexOf(i.trim())===-1&&this.disSource.push(i.trim()),this.content="";return}if(this.max>0&&this.disSource.length>=this.max){this.content="",this.tis="\u6700\u591A\u53EA\u80FD\u6DFB\u52A0"+this.max+"\u4E2A",clearInterval(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3);return}let t=i.trim(),s=t.length-this.cut.length;t!=""&&t.substring(s)===this.cut&&(t=t.substring(0,s),t.trim()!=""&&this.disSource.indexOf(t.trim())===-1&&this.disSource.push(t.trim()),this.content="")},delTag(e){if(e===!1){if(this.content!=="")return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}},he={};var Fs=v(Ns,Us,Rs,!1,Ws,null,null,null);function Ws(e){for(let i in he)this[i]=he[i]}var Vs=function(){return Fs.exports}(),zs=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._l(e.menu,function(s,n){return s.hidden!==!0?t("ETooltip",{key:n,attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch||!s.title,content:s.title,enterable:!1,"open-delay":600}},[s.children&&s.children.length>0?t("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[s.label?t("a",{style:s.style||{},attrs:{href:s.href||"javascript:void(0)",target:s.target||"_self"}},[e._v(e._s(s.label))]):e.isAliIcon(s.icon)?t("i",{staticClass:"taskfont menu-icon",style:s.style||{},domProps:{innerHTML:e._s(s.icon)}}):t("Icon",{staticClass:"menu-icon",style:s.style||{},attrs:{type:s.icon}}),t("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(s.children,function(o,r){return o.hidden!==!0?t("EDropdownItem",{key:r,style:o.style||{},attrs:{command:o.action,disabled:!!o.disabled,divided:!!o.divided}},[t("div",[e._v(e._s(o.title))])]):e._e()}),1)],1):s.label?t("a",{style:s.style||{},attrs:{href:s.href||"javascript:void(0)",target:s.target||"_self"},on:{click:function(o){return e.onClick(s.action)}}},[e._v(e._s(s.label))]):e.isAliIcon(s.icon)?t("i",{staticClass:"taskfont menu-icon",style:s.style||{},domProps:{innerHTML:e._s(s.icon)},on:{click:function(o){return e.onClick(s.action)}}}):t("Icon",{staticClass:"menu-icon",style:s.style||{},attrs:{type:s.icon},on:{click:function(o){return e.onClick(s.action)}}})],1):e._e()})],2)])},Hs=[];g.use(Ne);const Ys={name:"TableAction",props:{column:{type:Object,default:()=>({})},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:()=>[]}},data(){return{width:0,height:0}},mounted(){this.onUpdate()},activated(){this.onUpdate()},beforeUpdate(){this.onUpdate()},computed:{tdStyle(){const e={},{align:i}=this;switch(i.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end";break}return e}},methods:{isAliIcon(e){return $A.leftExists(e,"&#")},handleIn(){this.$refs.action.offsetWidth!=this.width&&this.onUpdate()},onUpdate(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize({width:e,height:i}){if(!this.autoWidth)return;$A(".ivu-table-column-"+this.column.__id).each((s,n)=>{let o=$A(n).find(".td-action-container");o.length>0&&(e=Math.max(e,o[0].offsetWidth),i=Math.max(i,o[0].offsetHeight))}),this.width=e,this.height=i;let t=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(t=Math.max(this.column.minWidth,t)),this.column.maxWidth&&(t=Math.min(this.column.maxWidth,t)),t!=this.column.width&&this.$nextTick(()=>{this.$set(this.column,"width",t)})},onClick(e){this.$emit("action",e)}}},pe={};var Js=v(Ys,zs,Hs,!1,Ks,null,null,null);function Ks(e){for(let i in pe)this[i]=pe[i]}var Gs=function(){return Js.exports}(),Xs={bind(e,i,t){function s(n){if(e.contains(n.target))return!1;i.expression&&i.value(n)}e.__vueClickOutside__=s,document.addEventListener("click",s)},update(){},unbind(e,i){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}},qs=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOut,expression:"onClickOut"}],staticClass:"quick-input"},[e.isTag?t("TagInput",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(s){e.content=s},expression:"content"}}):t("Input",{ref:"input",attrs:{disabled:e.isLoad,parser:e.parser,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(s){e.content=s},expression:"content"}}),e.isLoad?t("div",{staticClass:"quick-loading"},[t("Loading")],1):e._e()],1):[t("div",{staticClass:"quick-text"},[e._t("default")],2),e.disabled?e._e():t("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(s){return s.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)},Qs=[];const Zs={name:"QuickEdit",directives:{clickoutside:Xs},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1},clickOutSide:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},parser:{type:Function}},data(){return{isLoad:!1,isEdit:!1,content:""}},mounted(){this.autoEdit===!0&&this.onEdit()},watch:{autoEdit(e){e===!0&&setTimeout(this.onEdit,0)}},methods:{onEditChange(e){this.isEdit=e,this.$emit("on-edit-change",e)},onEdit(){this.content=this.value,this.onEditChange(!0),this.$nextTick(()=>{this.$refs.input.focus({cursor:"all"})})},onKeydown(e){e.keyCode===13?this.onEnter():e.keyCode===27&&(e.preventDefault(),e.stopPropagation(),this.isEdit=!1,this.isLoad=!1)},onEnter(){if(this.content==this.value){this.onEditChange(!1);return}this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,()=>{this.onEditChange(!1),this.isLoad=!1}))},onClickOut(){!this.clickOutSide||this.onEnter()},onBlur(){this.clickOutSide||!this.isEdit||this.onEnter()}}},me={};var ei=v(Zs,qs,Qs,!1,ti,null,null,null);function ti(e){for(let i in me)this[i]=me[i]}var si=function(){return ei.exports}(),ii={props:{userid:{type:[String,Number],default:""},size:{type:[String,Number],default:"default"},showIcon:{type:Boolean,default:!0},showName:{type:Boolean,default:!1},nameText:{type:String,default:null},borderWitdh:{type:Number,default:0},borderColor:{type:String,default:""},clickOpenDialog:{type:Boolean,default:!1},userResult:{default:null}}},ni=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.user?t("div",{staticClass:"avatar-wrapper common-avatar",class:{"avatar-pointer":e.clickOpenDialog},on:{click:e.onClickOpen}},[e.showIcon?t("div",{class:e.boxClass,style:e.boxStyle},[t("em",{style:e.spotStyle}),e.showImg?t("EAvatar",{ref:"avatar",class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize,error:e.onError}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])]):t("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e.showName?t("div",{staticClass:"avatar-name",style:e.nameStyle},[e.user.bot?t("div",{staticClass:"taskfont bot"},[e._v("\uE68C")]):e._e(),t("span",[e._v(e._s(e.nameText||e.user.nickname))])]):e._e()]):e._e()},oi=[];const ri={name:"UserAvatar",mixins:[ii],data(){return{user:null,subscribe:null}},mounted(){this.getData(),this.subscribe=E.Store.subscribe("userActive",({type:e,data:i})=>{i.userid==this.userid&&(e==="line"?this.user&&this.$set(this.user,"online",i.online):this.setUser(i))}),this.$store.state.userAvatar[this._uid]=this.$props},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null),this.$store.state.userAvatar[this._uid]!==void 0&&delete this.$store.state.userAvatar[this._uid]},computed:{boxClass(){return{"avatar-box":!0,online:this.$store.state.userId===this.userid||this.user.online||this.isBot,disabled:this.user.disable_at,deleted:this.user.delete_at}},boxStyle(){const e={},{borderWitdh:i,borderColor:t}=this;return i>0&&(e.border=i+"px solid "+(t||"#ffffff")),e},spotStyle(){let{borderWitdh:e,size:i}=this;return i==="default"&&(i=32),e>0&&(i-=e),i==32?{}:{transform:"scale("+Math.min(1.25,i/32)+")"}},nameStyle(){const{showIcon:e}=this,{delete_at:i,disable_at:t}=this.user,s={};return e||(s.marginLeft=0),(i||t)&&(s.opacity=.8,s.textDecoration="line-through"),s},avatarSize(){let{borderWitdh:e,size:i}=this;return i==="default"&&(i=32),e>0?i-e*2:i},showImg(){const{userimg:e}=this.user;return e?!$A.rightExists(e,"/avatar.png"):!1},isDefault(){const{userimg:e}=this.user;return $A.strExists(e,"/avatar")},isBot(){return!!(this.user&&this.user.bot)},nickname(){const{nickname:e}=this.user;if(!e)return"D";let i=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(i)&&(i=i.substring(0,1)),i||"D"}},watch:{userid(){this.getData()}},methods:{getData(){if(!this.$store.state.userId)return;const e=this.$store.state.cacheUserBasic.find(({userid:i})=>i==this.userid);e&&this.setUser(e),this.$store.dispatch("getUserBasic",{userid:this.userid})},setUser(e){try{this.user&&this.user.userimg!=e.userimg&&this.$refs.avatar&&(this.$refs.avatar.$data.isImageExist=!0)}catch{}this.user=e,typeof this.userResult=="function"&&this.userResult(e)},onClickOpen(){this.clickOpenDialog?this.openDialog():this.$emit("open-dialog",this.userid)},openDialog(){this.$store.dispatch("openDialogUserid",this.userid).then(e=>{this.goForward({name:"manage-messenger"})}).catch(({msg:e})=>{$A.modalError(e)})},onError(){return!0}}},ge={};var ai=v(ri,ni,oi,!1,li,null,null,null);function li(e){for(let i in ge)this[i]=ge[i]}var ci=function(){return ai.exports}(),ui=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("img",{attrs:{src:e.srcValue,alt:e.alt},on:{"~error":function(s){return e.onError.apply(null,arguments)}}})},di=[];const fi={name:"ImgView",props:{src:{default:""},errorSrc:{default:""},alt:{default:""}},computed:{srcValue({src:e}){return this.toSrc(e)}},methods:{toSrc(e){return e.substring(0,10)==="data:image"||e.substring(0,2)==="//"||e.substring(0,7)==="http://"||e.substring(0,8)==="https://"||e.substring(0,6)==="ftp://"||e.substring(0,1)==="/"?e:$A.mainUrl(e)},onError(e){!this.errorSrc||(e.target.src=this.toSrc(this.errorSrc))}}},_e={};var hi=v(fi,ui,di,!1,pi,null,null,null);function pi(e){for(let i in _e)this[i]=_e[i]}var mi=function(){return hi.exports}();function b(e){return parseInt(e,10)||0}const P=typeof window!="undefined"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch);function we(e){return e?getComputedStyle(e):{}}function N(e,i){if(e)for(const t in i){let s=i[t];typeof s=="number"&&(s=`${s}px`),e.style[t]=s}return e}var gi={name:"Scrollbar",props:{tag:{type:String,default:"div"},className:{type:String,default:""},enableX:{type:Boolean,default:!1},enableY:{type:Boolean,default:!0},hideBar:{type:Boolean,default:!1},minSize:{type:Number,default:20},touchContentBlur:{type:Boolean,default:!0}},data(){return{isReady:!1,scrollingX:!1,scrollingY:!1,moveingX:!1,moveingY:!1,containerWidth:null,containerHeight:null,contentWidth:null,contentHeight:null,contentOverflow:{x:null,y:null},thumbYHeight:null,thumbYTop:null,thumbXWidth:null,thumbXLeft:null,lastScrollTop:0,lastScrollLeft:0,timeouts:{}}},computed:{containerClass(){const e=["scrollbar-container"];return P?e.push("scrollbar-touch"):e.push("scrollbar-desktop"),this.contentWidth>this.containerWidth&&this.contentOverflow.x!=="hidden"&&this.enableX&&e.push("scrollbar-active-x"),this.contentHeight>this.containerHeight&&this.contentOverflow.y!=="hidden"&&this.enableY&&e.push("scrollbar-active-y"),this.scrollingX&&e.push("scrollbar-scrolling-x"),this.scrollingY&&e.push("scrollbar-scrolling-y"),this.moveingX&&e.push("scrollbar-moveing-x"),this.moveingY&&e.push("scrollbar-moveing-y"),(this.hideBar||!this.isReady)&&e.push("scrollbar-hidebar"),e},contentClass({className:e,enableX:i,enableY:t}){const s=["scrollbar-content"];return e&&s.push(e),i||s.push("scrollbar-disable-x"),t||s.push("scrollbar-disable-y"),s}},mounted(){this.$nextTick(()=>{this.updateBase()})},updated(){this.$nextTick(()=>{this.updateGeometry(!1)})},methods:{scrollInfo(){const e=$A(this.$refs.content),i=Math.round(e.innerHeight()),t=e.scrollTop(),s=this.$refs.content.scrollHeight;return{scale:t/(s-i),scrollY:t,scrollE:s-i-t}},scrollElement(){return this.$refs.content},querySelector(e){return this.$refs.content&&this.$refs.content.querySelector(e)},updateBase(){if(P)return;const e=we(this.$refs.container),i=we(this.$refs.content);N(this.$refs.trackX,{left:b(e.paddingLeft)+b(i.marginLeft),right:b(e.paddingRight)+b(i.marginRight),bottom:b(e.paddingBottom)+b(i.marginBottom)}),N(this.$refs.trackY,{top:b(e.paddingTop)+b(i.marginTop),bottom:b(e.paddingBottom)+b(i.marginBottom),right:b(e.paddingRight)+b(i.marginRight)}),this.contentOverflow={x:i.overflowX,y:i.overflowY}},updateGeometry(e){if(P)return;const i=this.$refs.content;if(!i)return;const t=Math.floor(i.scrollTop),s=i.getBoundingClientRect();this.containerWidth=Math.round(s.width),this.containerHeight=Math.round(s.height),this.contentWidth=i.scrollWidth,this.contentHeight=i.scrollHeight,this.thumbXWidth=Math.max(b(this.containerWidth*this.containerWidth/this.contentWidth),this.minSize),this.thumbXLeft=b(i.scrollLeft*(this.containerWidth-this.thumbXWidth)/(this.contentWidth-this.containerWidth)),this.thumbYHeight=Math.max(b(this.containerHeight*this.containerHeight/this.contentHeight),this.minSize),this.thumbYTop=b(t*(this.containerHeight-this.thumbYHeight)/(this.contentHeight-this.containerHeight)),N(this.$refs.thumbX,{left:this.thumbXLeft,width:this.thumbXWidth}),N(this.$refs.thumbY,{top:this.thumbYTop,height:this.thumbYHeight}),e&&(this.scrollingX=this.lastScrollLeft!==i.scrollLeft,this.scrollingY=this.lastScrollTop!==i.scrollTop,this.lastScrollTop=i.scrollTop,this.lastScrollLeft=i.scrollLeft,this.timeouts.scroll&&clearTimeout(this.timeouts.scroll),this.timeouts.scroll=setTimeout(()=>{this.scrollingX=!1,this.scrollingY=!1},1e3))},onContainerMouseMove(){var e;(e=this.$store)!=null&&e.state.windowTouch||setTimeout(()=>{this.isReady||(this.updateGeometry(!0),this.isReady=!0)},300)},onContentTouchStart(e){if(!this.touchContentBlur)return;const i=document.activeElement;i&&i.blur()},onContentScroll(e){this.updateGeometry(!0),this.$emit("on-scroll",e),this.isReady=!0},onContentMouseenter(){this.updateBase(),this.updateGeometry(!1)},onTrackXMouseDown(e){if(P)return;const i=this.$refs.content,t=this.$refs.trackX.getBoundingClientRect(),n=e.pageX-window.scrollX-t.left>this.thumbXLeft?1:-1;i.scrollLeft+=n*this.containerWidth,this.updateGeometry(!0),e.stopPropagation()},onTrackYMouseDown(e){if(P)return;const i=this.$refs.content,t=this.$refs.trackY.getBoundingClientRect(),n=e.pageY-window.scrollY-t.top>this.thumbYTop?1:-1;i.scrollTop+=n*this.containerHeight,this.updateGeometry(!0),e.stopPropagation()},onThumbXMouseDown(e){if(P)return;const i=this.$refs.content,t=i.getBoundingClientRect(),s=i.scrollLeft,n=e.pageX-window.scrollX,o=a=>{const l=a.pageX-n;i.scrollLeft=s+l*this.contentWidth/t.width},r=()=>{this.timeouts.moveX=setTimeout(()=>{this.moveingX=!1},100),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};this.moveingX=!0,this.timeouts.moveX&&clearTimeout(this.timeouts.moveX),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),e.preventDefault(),e.stopPropagation()},onThumbYMouseDown(e){if(P)return;const i=this.$refs.content,t=i.getBoundingClientRect(),s=i.scrollTop,n=e.pageY-window.scrollY,o=a=>{const l=a.pageY-n;i.scrollTop=s+l*this.contentHeight/t.height},r=()=>{this.timeouts.moveY=setTimeout(()=>{this.moveingY=!1},100),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r)};this.moveingY=!0,this.timeouts.moveY&&clearTimeout(this.timeouts.moveY),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),e.preventDefault(),e.stopPropagation()}},render(e){return e("div",{ref:"container",class:this.containerClass,on:{"~mousemove":this.onContainerMouseMove}},[e(this.tag,{ref:"content",class:this.contentClass,on:{touchstart:this.onContentTouchStart,scroll:this.onContentScroll,mouseenter:this.onContentMouseenter}},this.$slots.default),e("div",{ref:"trackX",class:"scrollbar-track-x",on:{mousedown:this.onTrackXMouseDown}},[e("div",{ref:"thumbX",class:"scrollbar-thumb-x",on:{mousedown:this.onThumbXMouseDown}})]),e("div",{ref:"trackY",class:"scrollbar-track-y",on:{mousedown:this.onTrackYMouseDown}},[e("div",{ref:"thumbY",class:"scrollbar-thumb-y",on:{mousedown:this.onThumbYMouseDown}})])])}};const G=!!(window&&window.process&&window.process.type),X=window&&window.navigator&&/eeui/i.test(window.navigator.userAgent),q=G||X,D=$A.urlParameterAll();if(D.language||D.theme||D.userid||D.token){D.language&&window.localStorage.setItem("__system:languageName__",D.language),D.theme&&window.localStorage.setItem("__system:themeConf__",D.language),D.userid&&window.localStorage.setItem("__system:userId__",D.userid),D.token&&window.localStorage.setItem("__system:userToken__",D.token);const e=$A.removeURLParameter(window.location.href,["theme","language","userid","token"]);window.history.replaceState(null,"",e)}g.use(J);g.use(F);g.use(Ue,{config:{autoSetContainer:!0}});g.use(S,{modal:{checkEscClose:!0}});g.component("PageTitle",Ts);g.component("Loading",xs);g.component("AutoTip",Os);g.component("TagInput",Vs);g.component("TableAction",Gs);g.component("QuickEdit",si);g.component("UserAvatar",ci);g.component("ImgView",mi);g.component("Scrollbar",gi);g.component("EAvatar",B.exports.Avatar);g.component("ETooltip",B.exports.Tooltip);g.component("EPopover",B.exports.Popover);g.component("EDropdown",B.exports.Dropdown);g.component("EDropdownMenu",B.exports.DropdownMenu);g.component("EDropdownItem",B.exports.DropdownItem);const _i=F.prototype.push;F.prototype.push=function(i){return _i.call(this,i).catch(t=>t)};const Y=new F({mode:q&&!/https*:/i.test(window.location.protocol)?"hash":"history",routes:cs});q||(S.LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"}),Y.beforeEach((e,i,t)=>{S.LoadingBar._timer&&clearTimeout(S.LoadingBar._timer),S.LoadingBar._timer=setTimeout(s=>{S.LoadingBar._load=!0,S.LoadingBar.start()},300),t()}),Y.afterEach(()=>{S.LoadingBar._timer&&clearTimeout(S.LoadingBar._timer),S.LoadingBar._load===!0&&(S.LoadingBar._load=!1,S.LoadingBar.finish())}));g.prototype.goForward=function(e,i){typeof e=="string"&&(e={name:e}),y.$store.state.routeHistorys.length===0&&y.$store.state.routeHistorys.push(y.$route),i===!0?y.$router.replace(e).then(t=>{y.$store.state.routeHistorys.pop(),y.$store.state.routeHistorys.push(t)}).catch(t=>{}):y.$router.push(e).then(t=>{const s=y.$store.state.routeHistorys.push(t);s>120&&y.$store.state.routeHistorys.splice(s-100),y.$store.state.routeHistoryLast=s>=2?y.$store.state.routeHistorys[s-2]:{}}).catch(t=>{})};g.prototype.goBack=function(){if(y.$store.state.routeHistorys.length>1){y.$router.back(),y.$store.state.routeHistorys.pop();const e=y.$store.state.routeHistorys.length;y.$store.state.routeHistoryLast=e>=2?y.$store.state.routeHistorys[e-2]:{}}else y.$router.replace({path:"/"}).catch(e=>{}),y.$store.state.routeHistorys=[],y.$store.state.routeHistoryLast={}};g.prototype.copyText=function(e){if($A.isJson(e)||(e={text:e,success:"\u590D\u5236\u6210\u529F",error:"\u590D\u5236\u5931\u8D25"}),$A.isEEUiApp){$A.eeuiAppCopyText(e.text),e.success&&$A.messageSuccess(e.success);return}y.$copyText(e.text).then(i=>{e.success&&$A.messageSuccess(e.success)}).catch(i=>{e.error&&$A.messageError(e.error)})};$A.L=K;$A.Electron=null;$A.Platform="web";$A.isMainElectron=!1;$A.isSubElectron=!1;$A.isEEUiApp=X;$A.isElectron=G;$A.isSoftware=q;$A.openLog=!1;G?($A.Electron=electron,$A.Platform=/macintosh|mac os x/i.test(navigator.userAgent)?"mac":"win",$A.isMainElectron=/\s+MainTaskWindow\//.test(window.navigator.userAgent),$A.isSubElectron=/\s+SubTaskWindow\//.test(window.navigator.userAgent)):X&&($A.Platform=/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"ios":"android");$A.execMainDispatch=(e,i)=>{$A.isSubElectron&&$A.Electron.sendMessage("sendForwardMain",{channel:"dispatch",data:{action:e,data:i}})};window.execMainCacheData={};$A.execMainCacheJudge=e=>{const i=window.execMainCacheData[e]||!1;return window.execMainCacheData[e]=!0,i};$A.bindScreenshotKey=e=>{let i="";const t=(e.screenshot_key||"").trim().toLowerCase();t&&(i=/macintosh|mac os x/i.test(navigator.userAgent)?"command":"ctrl",i=`${i}+shift+${t.toLowerCase()}`),$A.Electron.sendMessage("bindScreenshotKey",{key:i})};g.prototype.$A=$A;g.prototype.$L=K;g.prototype.$Electron=$A.Electron;g.prototype.$Platform=$A.Platform;g.prototype.$isMainElectron=$A.isMainElectron;g.prototype.$isSubElectron=$A.isSubElectron;g.prototype.$isEEUiApp=$A.isEEUiApp;g.prototype.$isSoftware=$A.isSoftware;g.config.productionTip=!1;g.mixin(ys);let y;ce.dispatch("init").then(e=>{Fe(),y=new g({router:Y,store:ce,render:i=>i(ls),template:""}).$mount("#app"),$A.goForward=y.goForward,$A.goBack=y.goBack,$A.Message=y.$Message,$A.Notice=y.$Notice,$A.Modal=y.$Modal,e==="handleClearCache"&&$A.messageSuccess("\u6E05\u9664\u6210\u529F"),typeof window.LANGUAGE_DATA[`i_${T}`]!="undefined"&&S.locale(window.LANGUAGE_DATA[`i_${T}`])});export{mi as I,en as M,St as N,Ut as T,zt as U,Ae as a,Zi as b,Xs as c,ds as d,Ve as e,tn as i,T as l,ii as m,v as n,ce as s}; diff --git a/public/js/build/application.c6b5c54a.js b/public/js/build/application.5eb5d1b2.js similarity index 72% rename from public/js/build/application.c6b5c54a.js rename to public/js/build/application.5eb5d1b2.js index bcddcfe24..df7174183 100644 --- a/public/js/build/application.c6b5c54a.js +++ b/public/js/build/application.5eb5d1b2.js @@ -1 +1 @@ -import{m as i}from"./vuex.cc7cb26e.js";import{D as h}from"./index.4892e747.js";import{n as l,U as b}from"./app.d8851986.js";import{C as g,T as $,R as y}from"./CheckinExport.1b4423b3.js";import D from"./checkin.e2b8615d.js";import{l as m}from"./le5le-store.b40f9152.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.7b94707c.js";import"./ImgUpload.52758ba6.js";import"./ReportEdit.22763e0c.js";import"./ReportDetail.1ea08cae.js";var k=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[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",transfer:""},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-4o"}},[t._v("gpt-4o")]),a("Option",{attrs:{value:"gpt-4o-mini"}},[t._v("gpt-4o-mini")]),a("Option",{attrs:{value:"gpt-4-turbo"}},[t._v("gpt-4-turbo")]),a("Option",{attrs:{value:"gpt-3.5-turbo"}},[t._v("gpt-3.5-turbo")])],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",transfer:""},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",transfer:""},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",transfer:""},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(),t.type=="all"||t.type=="Zhipu"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("\u667A\u8C31\u6E05\u8A00")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"zhipu_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.zhipu_key,callback:function(e){t.$set(t.formData,"zhipu_key",e)},expression:"formData.zhipu_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://open.bigmodel.cn/usercenter/apikeys",target:"_blank"}},[t._v("https://open.bigmodel.cn/usercenter/apikeys")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"zhipu_model"}},[a("Select",{attrs:{placement:"top",transfer:""},model:{value:t.formData.zhipu_model,callback:function(e){t.$set(t.formData,"zhipu_model",e)},expression:"formData.zhipu_model"}},[a("Option",{attrs:{value:"glm-4"}},[t._v("glm-4")]),a("Option",{attrs:{value:"glm-4v"}},[t._v("glm-4v")]),a("Option",{attrs:{value:"glm-3-turbo"}},[t._v("glm-3-turbo")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://open.bigmodel.cn/dev/howuse/model",target:"_blank"}},[t._v("https://open.bigmodel.cn/dev/howuse/model")])])],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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/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--})}}},p={};var x=l(w,k,L,!1,C,null,null,null);function C(t){for(let s in p)this[s]=p[s]}var I=function(){return x.exports}(),S=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u4F1A\u5458\u7B7E\u5230\u8BBE\u7F6E")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{staticClass:"block-setting-advance",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},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.face_upload,callback:function(e){t.$set(t.formData,"face_upload",e)},expression:"formData.face_upload"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4E0A\u4F20\u4EBA\u8138\u56FE\u7247")))]),a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740"))+" ("+t._s(t.$L("WiFi\u7B7E\u5230"))+")")])],1),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65B9\u5F0F"),prop:"modes"}},[a("CheckboxGroup",{model:{value:t.formData.modes,callback:function(e){t.$set(t.formData,"modes",e)},expression:"formData.modes"}},[a("Checkbox",{attrs:{label:"face"}},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"auto"}},[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"manual"}},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),t._e()],1),t.formData.modes.includes("face")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u4EBA\u8138\u8BC6\u522B\u673A\u7B7E\u5230")))]):t._e(),t.formData.modes.includes("auto")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("WiFi\u7B7E\u5230"))+": "+t._s(t.$L("\u8BE6\u60C5\u770B\u4E0B\u6587\u5B89\u88C5\u8BF4\u660E")))]):t._e(),t.formData.modes.includes("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("face")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"face_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.face_remark,callback:function(e){t.$set(t.formData,"face_remark",e)},expression:"formData.face_remark"}})],1),a("FormItem",{attrs:{label:t.$L("\u91CD\u590D\u6253\u5361\u63D0\u9192"),prop:"face_retip"}},[a("RadioGroup",{model:{value:t.formData.face_retip,callback:function(e){t.$set(t.formData,"face_retip",e)},expression:"formData.face_retip"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1)])]:t._e(),t.formData.modes.includes("auto")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("WiFi\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5"))+":")]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e(),t.formData.modes.includes("manual")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"manual_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.manual_remark,callback:function(e){t.$set(t.formData,"manual_remark",e)},expression:"formData.manual_remark"}})],1)],1)])]:t._e()]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{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-mode":""}}):t._e()],1)],1)},A=[];const F={name:"SystemCheckin",components:{CheckinExport:g,TeamManagement:$,DrawerOverlay:h},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:"",modes:[],face_upload:"",face_remark:"",face_retip:"",manual_remark:""},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.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=l(F,S,A,!1,O,null,null,null);function O(t){for(let s in c)this[s]=c[s]}var T=function(){return E.exports}(),R=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},d={};var B=l(N,R,P,!1,z,null,null,null);function z(t){for(let s in d)this[s]=d[s]}var U=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",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("LDAP")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\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)},M=[];const j={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},u={};var q=l(j,G,M,!1,W,null,null,null);function W(t){for(let s in u)this[s]=u[s]}var K=function(){return q.exports}(),J=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E"))+":"),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{staticClass:"block-setting-msg-unread",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\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-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/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"})}}},_={};var Q=l(H,J,V,!1,Z,null,null,null);function Z(t){for(let s in _)this[s]=_[s]}var X=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",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},f={};var et=l(at,Y,tt,!1,st,null,null,null);function st(t){for(let s in f)this[s]=f[s]}var ot=function(){return et.exports}(),rt=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,r){return(e=="base"&&!o.type||o.type==e)&&o.show!==!1?a("Col",{key:r,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(n){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(n){return n.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:650},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(r){return t.openDetail(e.desc)}}},[t._v(t._s(e.desc))]),a("p",{staticClass:"btn",on:{click:function(r){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)]),a("TabPane",{attrs:{label:t.$L("\u667A\u8C31\u6E05\u8A00"),name:"zhipu"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="zhipu"?a("SystemAibot",{attrs:{type:"Zhipu"}}):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)},it=[];const lt={components:{UserSelect:b,DrawerOverlay:h,Report:y,SystemAibot:I,SystemCheckin:T,Checkin:D,SystemMeeting:U,SystemThirdAccess:K,SystemEmailSetting:X,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")},{value:"zhipu",label:"Zhipu",src:$A.mainUrl("images/avatar/default_zhipu.png"),desc:`${this.$L("\u6211\u662F\u667A\u8C31\u6E05\u8A00\uFF0C\u662F\u667A\u8C31 AI \u516C\u53F8\u4E8E2023\u8BAD\u7EC3\u7684\u8BED\u8A00\u6A21\u578B\u3002")}${this.$L("\u6211\u7684\u4EFB\u52A1\u662F\u9488\u5BF9\u7528\u6237\u7684\u95EE\u9898\u548C\u8981\u6C42\u63D0\u4F9B\u9002\u5F53\u7684\u7B54\u590D\u548C\u652F\u6301\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:{...i(["systemConfig","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.systemConfig.server_closeai==="close"&&(t=t.filter(a=>a.value!=="robot")),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:"complaint",label:"\u4E3E\u62A5\u7BA1\u7406",sort:19},{value:"allUser",label:"\u56E2\u961F\u7BA1\u7406",sort:20}):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(r=>{this.windowOrientation=="landscape"&&this.goForward({name:"manage-messenger"}),this.aibotShow=!1}).catch(({msg:r})=>{$A.modalError(r)}).finally(r=>{this.aibotDialogSearchLoad=""})}).catch(e=>{this.aibotDialogSearchLoad=""}))},onMeeting(t){switch(t){case"createMeeting":m.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":m.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}})}}},v={};var nt=l(lt,rt,it,!1,mt,null,null,null);function mt(t){for(let s in v)this[s]=v[s]}var Yt=function(){return nt.exports}();export{Yt as default}; +import{m as i}from"./vuex.cc7cb26e.js";import{D as h}from"./index.e6513292.js";import{n as l,U as b}from"./app.879f8ead.js";import{C as g,T as $,R as y}from"./CheckinExport.9ac164be.js";import D from"./checkin.7a773382.js";import{l as m}from"./le5le-store.b40f9152.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./tip.434a62e4.js";import"./ImgUpload.cc22c426.js";import"./ReportEdit.8be7d715.js";import"./ReportDetail.b39ad266.js";var k=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[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",transfer:""},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-4o"}},[t._v("gpt-4o")]),a("Option",{attrs:{value:"gpt-4o-mini"}},[t._v("gpt-4o-mini")]),a("Option",{attrs:{value:"gpt-4-turbo"}},[t._v("gpt-4-turbo")]),a("Option",{attrs:{value:"gpt-3.5-turbo"}},[t._v("gpt-3.5-turbo")])],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",transfer:""},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",transfer:""},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",transfer:""},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(),t.type=="all"||t.type=="Zhipu"?a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("\u667A\u8C31\u6E05\u8A00")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:"API Key",prop:"zhipu_key"}},[a("Input",{attrs:{maxlength:255,type:"password",placeholder:"API Key"},model:{value:t.formData.zhipu_key,callback:function(e){t.$set(t.formData,"zhipu_key",e)},expression:"formData.zhipu_key"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u83B7\u53D6\u65B9\u5F0F"))+" "),a("a",{attrs:{href:"https://open.bigmodel.cn/usercenter/apikeys",target:"_blank"}},[t._v("https://open.bigmodel.cn/usercenter/apikeys")])])],1),a("FormItem",{attrs:{label:t.$L("\u6A21\u578B"),prop:"zhipu_model"}},[a("Select",{attrs:{placement:"top",transfer:""},model:{value:t.formData.zhipu_model,callback:function(e){t.$set(t.formData,"zhipu_model",e)},expression:"formData.zhipu_model"}},[a("Option",{attrs:{value:"glm-4"}},[t._v("glm-4")]),a("Option",{attrs:{value:"glm-4v"}},[t._v("glm-4v")]),a("Option",{attrs:{value:"glm-3-turbo"}},[t._v("glm-3-turbo")])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u67E5\u770B\u8BF4\u660E"))+" "),a("a",{attrs:{href:"https://open.bigmodel.cn/dev/howuse/model",target:"_blank"}},[t._v("https://open.bigmodel.cn/dev/howuse/model")])])],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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/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--})}}},p={};var x=l(w,k,L,!1,C,null,null,null);function C(t){for(let s in p)this[s]=p[s]}var I=function(){return x.exports}(),S=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u4F1A\u5458\u7B7E\u5230\u8BBE\u7F6E")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{staticClass:"block-setting-advance",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},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.face_upload,callback:function(e){t.$set(t.formData,"face_upload",e)},expression:"formData.face_upload"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4E0A\u4F20\u4EBA\u8138\u56FE\u7247")))]),a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740"))+" ("+t._s(t.$L("WiFi\u7B7E\u5230"))+")")])],1),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65B9\u5F0F"),prop:"modes"}},[a("CheckboxGroup",{model:{value:t.formData.modes,callback:function(e){t.$set(t.formData,"modes",e)},expression:"formData.modes"}},[a("Checkbox",{attrs:{label:"face"}},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"auto"}},[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("Checkbox",{attrs:{label:"manual"}},[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),t._e()],1),t.formData.modes.includes("face")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230"))+": "+t._s(t.$L("\u901A\u8FC7\u4EBA\u8138\u8BC6\u522B\u673A\u7B7E\u5230")))]):t._e(),t.formData.modes.includes("auto")?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("WiFi\u7B7E\u5230"))+": "+t._s(t.$L("\u8BE6\u60C5\u770B\u4E0B\u6587\u5B89\u88C5\u8BF4\u660E")))]):t._e(),t.formData.modes.includes("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("face")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u4EBA\u8138\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"face_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.face_remark,callback:function(e){t.$set(t.formData,"face_remark",e)},expression:"formData.face_remark"}})],1),a("FormItem",{attrs:{label:t.$L("\u91CD\u590D\u6253\u5361\u63D0\u9192"),prop:"face_retip"}},[a("RadioGroup",{model:{value:t.formData.face_retip,callback:function(e){t.$set(t.formData,"face_retip",e)},expression:"formData.face_retip"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1)])]:t._e(),t.formData.modes.includes("auto")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("WiFi\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("WiFi\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5"))+":")]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e(),t.formData.modes.includes("manual")?[a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u624B\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u5907\u6CE8"),prop:"manual_remark"}},[a("Input",{attrs:{maxlength:30},model:{value:t.formData.manual_remark,callback:function(e){t.$set(t.formData,"manual_remark",e)},expression:"formData.manual_remark"}})],1)],1)])]:t._e()]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{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-mode":""}}):t._e()],1)],1)},A=[];const F={name:"SystemCheckin",components:{CheckinExport:g,TeamManagement:$,DrawerOverlay:h},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:"",modes:[],face_upload:"",face_remark:"",face_retip:"",manual_remark:""},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.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=l(F,S,A,!1,O,null,null,null);function O(t){for(let s in c)this[s]=c[s]}var T=function(){return E.exports}(),R=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},d={};var B=l(N,R,P,!1,z,null,null,null);function z(t){for(let s in d)this[s]=d[s]}var U=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",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v("LDAP")]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\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)},M=[];const j={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},u={};var q=l(j,G,M,!1,W,null,null,null);function W(t){for(let s in u)this[s]=u[s]}var K=function(){return q.exports}(),J=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E"))+":"),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{staticClass:"block-setting-msg-unread",nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\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-space"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/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"})}}},_={};var Q=l(H,J,V,!1,Z,null,null,null);function Z(t){for(let s in _)this[s]=_[s]}var X=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",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{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()},computed:{...i(["formOptions"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},f={};var et=l(at,Y,tt,!1,st,null,null,null);function st(t){for(let s in f)this[s]=f[s]}var ot=function(){return et.exports}(),rt=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,r){return(e=="base"&&!o.type||o.type==e)&&o.show!==!1?a("Col",{key:r,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(n){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(n){return n.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:650},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(r){return t.openDetail(e.desc)}}},[t._v(t._s(e.desc))]),a("p",{staticClass:"btn",on:{click:function(r){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",{staticClass:"ai-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)]),a("TabPane",{attrs:{label:t.$L("\u667A\u8C31\u6E05\u8A00"),name:"zhipu"}},[a("div",{staticClass:"aibot-warp"},[t.aibotTabAction=="zhipu"?a("SystemAibot",{attrs:{type:"Zhipu"}}):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)},it=[];const lt={components:{UserSelect:b,DrawerOverlay:h,Report:y,SystemAibot:I,SystemCheckin:T,Checkin:D,SystemMeeting:U,SystemThirdAccess:K,SystemEmailSetting:X,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")},{value:"zhipu",label:"Zhipu",src:$A.mainUrl("images/avatar/default_zhipu.png"),desc:`${this.$L("\u6211\u662F\u667A\u8C31\u6E05\u8A00\uFF0C\u662F\u667A\u8C31 AI \u516C\u53F8\u4E8E2023\u8BAD\u7EC3\u7684\u8BED\u8A00\u6A21\u578B\u3002")}${this.$L("\u6211\u7684\u4EFB\u52A1\u662F\u9488\u5BF9\u7528\u6237\u7684\u95EE\u9898\u548C\u8981\u6C42\u63D0\u4F9B\u9002\u5F53\u7684\u7B54\u590D\u548C\u652F\u6301\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:{...i(["systemConfig","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.systemConfig.server_closeai==="close"&&(t=t.filter(a=>a.value!=="robot")),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:"complaint",label:"\u4E3E\u62A5\u7BA1\u7406",sort:19},{value:"allUser",label:"\u56E2\u961F\u7BA1\u7406",sort:20}):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(r=>{this.windowOrientation=="landscape"&&this.goForward({name:"manage-messenger"}),this.aibotShow=!1}).catch(({msg:r})=>{$A.modalError(r)}).finally(r=>{this.aibotDialogSearchLoad=""})}).catch(e=>{this.aibotDialogSearchLoad=""}))},onMeeting(t){switch(t){case"createMeeting":m.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":m.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}})}}},v={};var nt=l(lt,rt,it,!1,mt,null,null,null);function mt(t){for(let s in v)this[s]=v[s]}var Yt=function(){return nt.exports}();export{Yt as default}; diff --git a/public/js/build/apps.db7c3805.js b/public/js/build/apps.1f3c46d0.js similarity index 77% rename from public/js/build/apps.db7c3805.js rename to public/js/build/apps.1f3c46d0.js index 2ff2d2e51..96b714927 100644 --- a/public/js/build/apps.db7c3805.js +++ b/public/js/build/apps.1f3c46d0.js @@ -1 +1 @@ -import{M as p}from"./MicroApps.bd23f92f.js";import{n as m}from"./app.d8851986.js";import"./vue.c448ed56.js";import"./@babel.49d8906a.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.86de099a.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.4892e747.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./view-design-hi.563cfadb.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.52758ba6.js";import"./tip.7b94707c.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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}; +import{M as p}from"./MicroApps.d5179821.js";import{n as m}from"./app.879f8ead.js";import"./vue.c448ed56.js";import"./@babel.49d8906a.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.df01caa2.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.e6513292.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./view-design-hi.d2045547.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.cc22c426.js";import"./tip.434a62e4.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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.3ff16850.js b/public/js/build/apps.5ae2dacb.js similarity index 76% rename from public/js/build/apps.3ff16850.js rename to public/js/build/apps.5ae2dacb.js index ae17b4389..40a18cfb4 100644 --- a/public/js/build/apps.3ff16850.js +++ b/public/js/build/apps.5ae2dacb.js @@ -1 +1 @@ -import{M as p}from"./MicroApps.bd23f92f.js";import{n as m}from"./app.d8851986.js";import"./vue.c448ed56.js";import"./@babel.49d8906a.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.86de099a.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.4892e747.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./view-design-hi.563cfadb.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.52758ba6.js";import"./tip.7b94707c.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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}; +import{M as p}from"./MicroApps.d5179821.js";import{n as m}from"./app.879f8ead.js";import"./vue.c448ed56.js";import"./@babel.49d8906a.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./DialogWrapper.df01caa2.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.e6513292.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./view-design-hi.d2045547.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.cc22c426.js";import"./tip.434a62e4.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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/calendar.81f10c67.js b/public/js/build/calendar.b5bd8891.js similarity index 98% rename from public/js/build/calendar.81f10c67.js rename to public/js/build/calendar.b5bd8891.js index f78073356..566e5fb55 100644 --- a/public/js/build/calendar.81f10c67.js +++ b/public/js/build/calendar.b5bd8891.js @@ -1 +1 @@ -import{m as p,a as m}from"./vuex.cc7cb26e.js";import"./tui-date-picker.87c69814.js";import"./tui-time-picker.edd3de9f.js";import{C as f}from"./tui-calendar-hi.59809517.js";import{n as u,T as k,b as y}from"./app.d8851986.js";import{l as g}from"./le5le-store.b40f9152.js";import"./@babel.49d8906a.js";import"./tui-code-snippet.cdaa497b.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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"})},_=[];const w={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(r=>!t.hasOwnProperty(r))}),!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 f(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}}},d={};var T=u(w,$,_,!1,v,null,null,null);function v(e){for(let a in d)this[a]=d[a]}var C=function(){return T.exports}(),b=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(r){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(r){return e.setView("day")}}},[e._v(e._s(e.$L("\u65E5")))]),t("Button",{attrs:{type:e.calendarView=="week"?"primary":"default"},on:{click:function(r){return e.setView("week")}}},[e._v(e._s(e.$L("\u5468")))]),t("Button",{attrs:{type:e.calendarView=="month"?"primary":"default"},on:{click:function(r){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 S={components:{TaskMenu:k,Calendar:C},data(){return{lists:[],rangeText:"Calendar",rangeTime:[],calendarView:"month",calendarWeek:{},calendarMonth:{},calendarTheme:{},calendarTemplate:{},calendarTask:{},calendarMenuStyles:{top:0,left:0},loadIng:0,loadTimeout:null}},created(){y([{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:{...p(["cacheTasks","taskCompleteTemps","wsOpenNum","themeName"]),...m(["transforTasks"]),list(){const{cacheTasks:e,taskCompleteTemps:a}=this,t=(s,i=!0)=>s.archived_at||s.complete_at&&i===!0||!s.end_at?!1:s.owner==1;let r=e.filter(s=>t(s));if(a.length>0){let s=e.filter(i=>a.includes(i.id)&&t(i,!1));s.length>0&&(r=$A.cloneJSON(r),r.push(...s))}return this.transforTasks(r).map(s=>{const i=$A.rightExists(s.start_at,"00:00:00")&&$A.rightExists(s.end_at,"23:59:59"),n={id:s.id,calendarId:String(s.project_id),title:s.name,body:s.desc,isAllDay:i,category:i?"allday":"time",start:$A.dayjs(s.start_at).toISOString(),end:$A.dayjs(s.end_at).toISOString(),color:"#515a6e",bgColor:s.color||"#E3EAFD",borderColor:s.p_color,priority:"",preventClick:!0,preventCheckHide:!0,isChecked:!!s.complete_at,complete_at:s.complete_at,start_at:s.start_at,end_at:s.end_at,_time:s._time};if(s.p_name){let l=`background-color:${s.p_color}`;this.themeName==="dark"&&(l=`color:${s.p_color};border:1px solid ${s.p_color};padding:1px 3px;`),n.priority=`${s.p_name}`}return s.sub_my&&s.sub_my.length>0&&(n.title=`[+${s.sub_my.length}] ${n.title}`),s.sub_top===!0&&(n.title=`[${this.$L("\u5B50\u4EFB\u52A1")}] ${n.title}`),s.flow_item_name&&(n.title=`[${s.flow_item_name}] ${n.title}`),s.complete_at?(n.color="#c3c2c2",n.bgColor="#f3f3f3",n.borderColor="#e3e3e3"):s.overdue&&(n.title=`[${this.$L("\u8D85\u671F")}] ${n.title}`,n.color="#f56c6c",n.bgColor=s.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(),r=[];t==="day"?r.push(this.currentCalendarDate("YYYY.MM.DD")):t==="month"&&(!a.month.visibleWeeksCount||a.month.visibleWeeksCount>4)?r.push(this.currentCalendarDate("YYYY.MM")):(r.push($A.dayjs(e.getDateRangeStart().getTime()).format("YYYY.MM.DD")),r.push(" ~ "),r.push($A.dayjs(e.getDateRangeEnd().getTime()).format(" MM.DD"))),this.rangeText=r.join(""),this.rangeTime=[$A.dayjs(e.getDateRangeStart().getTime()).format("YYYY-MM-DD"),$A.dayjs(e.getDateRangeEnd().getTime()).format("YYYY-MM-DD")]})},currentCalendarDate(e){const a=this.$refs.cal.getInstance();return $A.dayjs(a.getDate().toDate()).format(e)},onBeforeCreateSchedule({start:e,end:a,isAllDay:t,guide:r}){t||this.calendarView=="month"?(e=$A.dayjs(e.toDate()).startOf("day"),a=$A.dayjs(a.toDate()).endOf("day")):(e=$A.dayjs(e.toDate()),a=$A.dayjs(a.toDate())),this.$store.dispatch("taskDefaultTime",[e.format("YYYY-MM-DD HH:mm:ss"),a.format("YYYY-MM-DD HH:mm:ss")]).then(s=>{g.Store.set("addTask",{times:s,owner:[this.userId],beforeClose:()=>r.clearGuideElement()})})},onBeforeClickSchedule(e){const{type:a,schedule:t}=e;let r=this.cacheTasks.find(({id:s})=>s===t.id);if(!!r)switch(a){case"check":this.calendarMenuStyles={left:`${this.getElementLeft(e.target)}px`,top:`${this.getElementTop(e.target)-8}px`},this.calendarTask=r,this.$nextTick(this.$refs.calendarTaskMenu.show);break;case"edit":this.$store.dispatch("openTask",r);break;case"delete":$A.modalConfirm({title:"\u5220\u9664\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u3010"+r.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("removeTask",{task_id:r.id}).then(({msg:n})=>{s(n)}).catch(({msg:n})=>{i(n),this.setRenderRange()})})});break}},onBeforeUpdateSchedule(e){var s,i,n,l;const{changes:a,schedule:t}=e;let r=this.cacheTasks.find(({id:c})=>c===t.id);!r||((s=a==null?void 0:a.start)==null?void 0:s.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:r.id,times:[(a.start||t.start).toDate(),(a.end||t.end).toDate()]}).then(({msg:o})=>{$A.messageSuccess(o)}).catch(({msg:o})=>{$A.modalError(o),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}}},h={};var I=u(S,b,D,!1,R,null,null,null);function R(e){for(let a in h)this[a]=h[a]}var ke=function(){return I.exports}();export{ke as default}; +import{m as p,a as m}from"./vuex.cc7cb26e.js";import"./tui-date-picker.87c69814.js";import"./tui-time-picker.edd3de9f.js";import{C as f}from"./tui-calendar-hi.59809517.js";import{n as u,T as k,b as y}from"./app.879f8ead.js";import{l as g}from"./le5le-store.b40f9152.js";import"./@babel.49d8906a.js";import"./tui-code-snippet.cdaa497b.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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"})},_=[];const w={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(r=>!t.hasOwnProperty(r))}),!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 f(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}}},d={};var T=u(w,$,_,!1,v,null,null,null);function v(e){for(let a in d)this[a]=d[a]}var C=function(){return T.exports}(),b=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(r){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(r){return e.setView("day")}}},[e._v(e._s(e.$L("\u65E5")))]),t("Button",{attrs:{type:e.calendarView=="week"?"primary":"default"},on:{click:function(r){return e.setView("week")}}},[e._v(e._s(e.$L("\u5468")))]),t("Button",{attrs:{type:e.calendarView=="month"?"primary":"default"},on:{click:function(r){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 S={components:{TaskMenu:k,Calendar:C},data(){return{lists:[],rangeText:"Calendar",rangeTime:[],calendarView:"month",calendarWeek:{},calendarMonth:{},calendarTheme:{},calendarTemplate:{},calendarTask:{},calendarMenuStyles:{top:0,left:0},loadIng:0,loadTimeout:null}},created(){y([{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:{...p(["cacheTasks","taskCompleteTemps","wsOpenNum","themeName"]),...m(["transforTasks"]),list(){const{cacheTasks:e,taskCompleteTemps:a}=this,t=(s,i=!0)=>s.archived_at||s.complete_at&&i===!0||!s.end_at?!1:s.owner==1;let r=e.filter(s=>t(s));if(a.length>0){let s=e.filter(i=>a.includes(i.id)&&t(i,!1));s.length>0&&(r=$A.cloneJSON(r),r.push(...s))}return this.transforTasks(r).map(s=>{const i=$A.rightExists(s.start_at,"00:00:00")&&$A.rightExists(s.end_at,"23:59:59"),n={id:s.id,calendarId:String(s.project_id),title:s.name,body:s.desc,isAllDay:i,category:i?"allday":"time",start:$A.dayjs(s.start_at).toISOString(),end:$A.dayjs(s.end_at).toISOString(),color:"#515a6e",bgColor:s.color||"#E3EAFD",borderColor:s.p_color,priority:"",preventClick:!0,preventCheckHide:!0,isChecked:!!s.complete_at,complete_at:s.complete_at,start_at:s.start_at,end_at:s.end_at,_time:s._time};if(s.p_name){let l=`background-color:${s.p_color}`;this.themeName==="dark"&&(l=`color:${s.p_color};border:1px solid ${s.p_color};padding:1px 3px;`),n.priority=`${s.p_name}`}return s.sub_my&&s.sub_my.length>0&&(n.title=`[+${s.sub_my.length}] ${n.title}`),s.sub_top===!0&&(n.title=`[${this.$L("\u5B50\u4EFB\u52A1")}] ${n.title}`),s.flow_item_name&&(n.title=`[${s.flow_item_name}] ${n.title}`),s.complete_at?(n.color="#c3c2c2",n.bgColor="#f3f3f3",n.borderColor="#e3e3e3"):s.overdue&&(n.title=`[${this.$L("\u8D85\u671F")}] ${n.title}`,n.color="#f56c6c",n.bgColor=s.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(),r=[];t==="day"?r.push(this.currentCalendarDate("YYYY.MM.DD")):t==="month"&&(!a.month.visibleWeeksCount||a.month.visibleWeeksCount>4)?r.push(this.currentCalendarDate("YYYY.MM")):(r.push($A.dayjs(e.getDateRangeStart().getTime()).format("YYYY.MM.DD")),r.push(" ~ "),r.push($A.dayjs(e.getDateRangeEnd().getTime()).format(" MM.DD"))),this.rangeText=r.join(""),this.rangeTime=[$A.dayjs(e.getDateRangeStart().getTime()).format("YYYY-MM-DD"),$A.dayjs(e.getDateRangeEnd().getTime()).format("YYYY-MM-DD")]})},currentCalendarDate(e){const a=this.$refs.cal.getInstance();return $A.dayjs(a.getDate().toDate()).format(e)},onBeforeCreateSchedule({start:e,end:a,isAllDay:t,guide:r}){t||this.calendarView=="month"?(e=$A.dayjs(e.toDate()).startOf("day"),a=$A.dayjs(a.toDate()).endOf("day")):(e=$A.dayjs(e.toDate()),a=$A.dayjs(a.toDate())),this.$store.dispatch("taskDefaultTime",[e.format("YYYY-MM-DD HH:mm:ss"),a.format("YYYY-MM-DD HH:mm:ss")]).then(s=>{g.Store.set("addTask",{times:s,owner:[this.userId],beforeClose:()=>r.clearGuideElement()})})},onBeforeClickSchedule(e){const{type:a,schedule:t}=e;let r=this.cacheTasks.find(({id:s})=>s===t.id);if(!!r)switch(a){case"check":this.calendarMenuStyles={left:`${this.getElementLeft(e.target)}px`,top:`${this.getElementTop(e.target)-8}px`},this.calendarTask=r,this.$nextTick(this.$refs.calendarTaskMenu.show);break;case"edit":this.$store.dispatch("openTask",r);break;case"delete":$A.modalConfirm({title:"\u5220\u9664\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u4EFB\u52A1\u3010"+r.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("removeTask",{task_id:r.id}).then(({msg:n})=>{s(n)}).catch(({msg:n})=>{i(n),this.setRenderRange()})})});break}},onBeforeUpdateSchedule(e){var s,i,n,l;const{changes:a,schedule:t}=e;let r=this.cacheTasks.find(({id:c})=>c===t.id);!r||((s=a==null?void 0:a.start)==null?void 0:s.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:r.id,times:[(a.start||t.start).toDate(),(a.end||t.end).toDate()]}).then(({msg:o})=>{$A.messageSuccess(o)}).catch(({msg:o})=>{$A.modalError(o),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}}},h={};var I=u(S,b,D,!1,R,null,null,null);function R(e){for(let a in h)this[a]=h[a]}var ke=function(){return I.exports}();export{ke as default}; diff --git a/public/js/build/checkin.e2b8615d.js b/public/js/build/checkin.7a773382.js similarity index 97% rename from public/js/build/checkin.e2b8615d.js rename to public/js/build/checkin.7a773382.js index 9cb719047..79eda986b 100644 --- a/public/js/build/checkin.e2b8615d.js +++ b/public/js/build/checkin.7a773382.js @@ -1 +1 @@ -import{n as h}from"./app.d8851986.js";import{I as m}from"./ImgUpload.52758ba6.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"checkin-calendar"},[a("div",{staticClass:"calendar-header"},[a("div",{staticClass:"calendar-header-menu"},[a("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),a("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?a("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?a("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),a("table",{staticClass:"check-table"},[a("thead",[a("tr",[a("th",[t._v(t._s(t.$L("\u65E5")))]),a("th",[t._v(t._s(t.$L("\u4E00")))]),a("th",[t._v(t._s(t.$L("\u4E8C")))]),a("th",[t._v(t._s(t.$L("\u4E09")))]),a("th",[t._v(t._s(t.$L("\u56DB")))]),a("th",[t._v(t._s(t.$L("\u4E94")))]),a("th",[t._v(t._s(t.$L("\u516D")))])])]),a("tbody",t._l(t.dateArray,function(s){return a("tr",[t._l(s,function(i){return[i.month?a("td",{class:{today:i.today,checkin:t.isCheck(i.date)}},[a("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(i.date)}},[a("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(i.date))},slot:"content"}),a("div",{staticClass:"item-day"},[i.today?a("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):i.today?a("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):a("td",{staticClass:"disabled"},[a("div",{staticClass:"item-day"},[a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?a("div",{staticClass:"calendar-loading"},[a("Loading")],1):t._e()])},u=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=$A.daytz();this.year=t.year(),this.month=t.month()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:e,section:a})=>{e=e.replace(/-0?/g,"/");let s=this.historys.findIndex(i=>i.date==e);s>-1?this.historys.splice(s,1,{date:e,section:a}):this.historys.push({date:e,section:a})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:e}=this,a=$A.daytz();return parseInt(t)!=a.year()||parseInt(e)e.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const e=this.historys.find(a=>a.date==t);return e==null?void 0:e.section.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},generateCalendar(){let t=$A.daytz().startOf("day"),e=$A.dayjs(`${this.year}-${this.month}-1`),a=e.valueOf()-e.day()*86400*1e3,s=[];for(let i=0;i<6;i++){s[i]=[];for(let n=0;n<7;n++){let r=$A.dayjs(a),o=r.month()+1;s[i][n]={day:r.date(),date:`${r.year()}/${o}/${r.date()}`,today:t.unix()==r.unix(),future:t.unix()0?a("div",{staticClass:"setting-checkin-load"},[a("Loading")],1):a("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,i){return a("TimelineItem",{key:i,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[a("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),a("p",{staticClass:"time"},[t._v(t._s(s.date))]),a("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),a("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"setting-checkin-row"},[a("Tabs",{staticStyle:{margin:"0"},model:{value:t.checkinTabs,callback:function(s){t.checkinTabs=s},expression:"checkinTabs"}},[a("TabPane",{attrs:{label:t.$L("\u4EBA\u8138\u7B7E\u5230"),name:"face"}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[t._v(t._s(t.$L("\u4EBA\u8138\u56FE\u7247")))])],1),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.faceimgs,callback:function(s){t.faceimgs=s},expression:"faceimgs"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A500x500")))])],1)],1)],1),a("TabPane",{attrs:{label:t.$L("WiFi\u7B7E\u5230"),name:"mac"}},[a("Alert",{attrs:{type:"success"}},[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,i){return a("Row",{key:i,staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delDatum(i)}},model:{value:s.mac,callback:function(n){t.$set(s,"mac",n)},expression:"item.mac"}})],1),a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(n){t.$set(s,"remark",n)},expression:"item.remark"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2)],1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[a("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={name:"ManageCheckin",components:{CheckinCalendar:y,ImgUpload:m},data(){return{loadIng:0,formData:[],faceimgs:[],nullDatum:{mac:"",remark:""},checkinTabs:"face",latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(e=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.list.length>0?t.list:[$A.cloneJSON(this.nullDatum)],this.faceimgs=t.faceimg,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const e=this.formData.filter(s=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(s.mac.trim())).map(s=>({mac:s.mac.trim(),remark:s.remark.trim()})),a=$A.arrayLength(this.faceimgs)>0?this.faceimgs[0].url:"";this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{type:this.checkinTabs,list:e,faceimg:a},method:"post"}).then(({data:s})=>{this.formData=s.list,this.faceimgs=s.faceimg,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.daytz().format("YYYY-MM"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){this.latelyData=[];for(let e=0;e<5;e++){const a=$A.daytz().subtract(e,"day").format("YYYY-MM-DD"),s=t.find(({date:i})=>i==a)||{date:a,section:[]};this.latelyData.push(s)}},latelySection(t){return t.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(e=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:e})=>{this.$refs.calendar.ym()==t&&(this.calendarData=e,t==$A.daytz().format("YYYY-MM")&&this.latelyFormat(e))}).catch(({msg:e})=>{this.calendarData=[],$A.modalError(e)}).finally(e=>{this.calendarLoading--})}}},c={};var k=h(g,v,$,!1,C,null,null,null);function C(t){for(let e in c)this[e]=c[e]}var rt=function(){return k.exports}();export{rt as default}; +import{n as h}from"./app.879f8ead.js";import{I as m}from"./ImgUpload.cc22c426.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"checkin-calendar"},[a("div",{staticClass:"calendar-header"},[a("div",{staticClass:"calendar-header-menu"},[a("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),a("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?a("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?a("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),a("table",{staticClass:"check-table"},[a("thead",[a("tr",[a("th",[t._v(t._s(t.$L("\u65E5")))]),a("th",[t._v(t._s(t.$L("\u4E00")))]),a("th",[t._v(t._s(t.$L("\u4E8C")))]),a("th",[t._v(t._s(t.$L("\u4E09")))]),a("th",[t._v(t._s(t.$L("\u56DB")))]),a("th",[t._v(t._s(t.$L("\u4E94")))]),a("th",[t._v(t._s(t.$L("\u516D")))])])]),a("tbody",t._l(t.dateArray,function(s){return a("tr",[t._l(s,function(i){return[i.month?a("td",{class:{today:i.today,checkin:t.isCheck(i.date)}},[a("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(i.date)}},[a("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(i.date))},slot:"content"}),a("div",{staticClass:"item-day"},[i.today?a("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):i.today?a("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):a("td",{staticClass:"disabled"},[a("div",{staticClass:"item-day"},[a("div",[t._v(t._s(i.day))]),t.isCheck(i.date)?a("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?a("div",{staticClass:"calendar-loading"},[a("Loading")],1):t._e()])},u=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=$A.daytz();this.year=t.year(),this.month=t.month()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:e,section:a})=>{e=e.replace(/-0?/g,"/");let s=this.historys.findIndex(i=>i.date==e);s>-1?this.historys.splice(s,1,{date:e,section:a}):this.historys.push({date:e,section:a})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:e}=this,a=$A.daytz();return parseInt(t)!=a.year()||parseInt(e)e.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const e=this.historys.find(a=>a.date==t);return e==null?void 0:e.section.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},generateCalendar(){let t=$A.daytz().startOf("day"),e=$A.dayjs(`${this.year}-${this.month}-1`),a=e.valueOf()-e.day()*86400*1e3,s=[];for(let i=0;i<6;i++){s[i]=[];for(let n=0;n<7;n++){let r=$A.dayjs(a),o=r.month()+1;s[i][n]={day:r.date(),date:`${r.year()}/${o}/${r.date()}`,today:t.unix()==r.unix(),future:t.unix()0?a("div",{staticClass:"setting-checkin-load"},[a("Loading")],1):a("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,i){return a("TimelineItem",{key:i,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[a("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),a("p",{staticClass:"time"},[t._v(t._s(s.date))]),a("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),a("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),a("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"setting-checkin-row"},[a("Tabs",{staticStyle:{margin:"0"},model:{value:t.checkinTabs,callback:function(s){t.checkinTabs=s},expression:"checkinTabs"}},[a("TabPane",{attrs:{label:t.$L("\u4EBA\u8138\u7B7E\u5230"),name:"face"}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[t._v(t._s(t.$L("\u4EBA\u8138\u56FE\u7247")))])],1),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"24"}},[a("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.faceimgs,callback:function(s){t.faceimgs=s},expression:"faceimgs"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A500x500")))])],1)],1)],1),a("TabPane",{attrs:{label:t.$L("WiFi\u7B7E\u5230"),name:"mac"}},[a("Alert",{attrs:{type:"success"}},[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,i){return a("Row",{key:i,staticClass:"setting-template"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delDatum(i)}},model:{value:s.mac,callback:function(n){t.$set(s,"mac",n)},expression:"item.mac"}})],1),a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(n){t.$set(s,"remark",n)},expression:"item.remark"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2)],1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[a("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={name:"ManageCheckin",components:{CheckinCalendar:y,ImgUpload:m},data(){return{loadIng:0,formData:[],faceimgs:[],nullDatum:{mac:"",remark:""},checkinTabs:"face",latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(e=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.list.length>0?t.list:[$A.cloneJSON(this.nullDatum)],this.faceimgs=t.faceimg,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const e=this.formData.filter(s=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(s.mac.trim())).map(s=>({mac:s.mac.trim(),remark:s.remark.trim()})),a=$A.arrayLength(this.faceimgs)>0?this.faceimgs[0].url:"";this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{type:this.checkinTabs,list:e,faceimg:a},method:"post"}).then(({data:s})=>{this.formData=s.list,this.faceimgs=s.faceimg,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.daytz().format("YYYY-MM"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){this.latelyData=[];for(let e=0;e<5;e++){const a=$A.daytz().subtract(e,"day").format("YYYY-MM-DD"),s=t.find(({date:i})=>i==a)||{date:a,section:[]};this.latelyData.push(s)}},latelySection(t){return t.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(e=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:e})=>{this.$refs.calendar.ym()==t&&(this.calendarData=e,t==$A.daytz().format("YYYY-MM")&&this.latelyFormat(e))}).catch(({msg:e})=>{this.calendarData=[],$A.modalError(e)}).finally(e=>{this.calendarLoading--})}}},c={};var k=h(g,v,$,!1,C,null,null,null);function C(t){for(let e in c)this[e]=c[e]}var rt=function(){return k.exports}();export{rt as default}; diff --git a/public/js/build/dashboard.69c4962d.js b/public/js/build/dashboard.f387e55c.js similarity index 96% rename from public/js/build/dashboard.69c4962d.js rename to public/js/build/dashboard.f387e55c.js index 2e28a1f13..471011172 100644 --- a/public/js/build/dashboard.69c4962d.js +++ b/public/js/build/dashboard.f387e55c.js @@ -1 +1 @@ -import{m as d,a as c}from"./vuex.cc7cb26e.js";import{T as h,n as u}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var _=function(){var s=this,i=s.$createElement,t=s._self._c||i;return t("div",{staticClass:"page-dashboard"},[t("PageTitle",{attrs:{title:s.$L("\u4EEA\u8868\u76D8")}}),s.warningMsg?t("Alert",{staticClass:"dashboard-warning",attrs:{type:"warning","show-icon":""}},[t("span",{on:{click:function(e){return s.goForward({name:"manage-setting-license"})}}},[s._v(s._s(s.warningMsg))])]):s._e(),t("div",{staticClass:"dashboard-wrapper",style:s.wrapperStyle},[t("div",{staticClass:"dashboard-hello"},[s._v(s._s(s.$L("\u6B22\u8FCE\u60A8\uFF0C"+s.userInfo.nickname)))]),s.systemConfig.timezoneDifference?t("div",{staticClass:"dashboard-time"},[t("span",[s._v(s._s(s.$L("\u670D\u52A1\u5668\u65F6\u95F4"))+":")]),t("span",[s._v(s._s(s.$A.daytz().format("YYYY-MM-DD HH:mm:ss")))])]):s._e(),t("div",{staticClass:"dashboard-desc"},[t("span",[s._v(s._s(s.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E")))]),t("transition",{attrs:{name:"dashboard-load"}},[s.loadDashboardTasks?t("div",{staticClass:"dashboard-load"},[t("Loading")],1):s._e()])],1),t("ul",{staticClass:"dashboard-block"},[t("li",{on:{click:function(e){return s.scrollTo("today")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("today")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.today_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F4")])])]),t("li",{on:{click:function(e){return s.scrollTo("overdue")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("overdue")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.overdue_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE603")])])]),t("li",{on:{click:function(e){return s.scrollTo("all")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("all")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.all_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F9")])])])]),t("Scrollbar",{staticClass:"dashboard-list"},[s._l(s.columns,function(e){return e.list.length>0?[t("div",{ref:`type_${e.type}`,refInFor:!0,staticClass:"dashboard-ref"}),t("div",{staticClass:"dashboard-title",class:{"title-close":e.hidden},on:{click:function(a){return s.onDashboardHidden(e.type)}}},[t("span",[s._v(" "+s._s(e.title)+" "),e.hidden?[s._v(" ("+s._s(e.list.length)+") ")]:s._e()],2),t("i",{staticClass:"taskfont"},[s._v("\uE702")])]),t("ul",{staticClass:"dashboard-ul",class:{"ul-hidden":e.hidden}},s._l(e.list,function(a,n){return t("li",{key:n,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(o){return s.openTask(a)}}},[a.p_name?t("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):s._e(),t("div",{staticClass:"item-select",on:{click:function(o){return o.stopPropagation(),s.openMenu(o,a)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:s._s(a.complete_at?"":"")}})]),t("div",{staticClass:"item-title"},[a.flow_item_name?t("span",{class:a.flow_item_status,on:{click:function(o){return o.stopPropagation(),s.openMenu(o,a)}}},[s._v(s._s(a.flow_item_name))]):s._e(),a.sub_top===!0?t("span",[s._v(s._s(s.$L("\u5B50\u4EFB\u52A1")))]):s._e(),a.sub_my&&a.sub_my.length>0?t("span",[s._v("+"+s._s(a.sub_my.length))]):s._e(),s._v(" "+s._s(a.name)+" ")]),a.desc?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71A")])]):s._e(),a.sub_num>0?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71F")]),t("em",[s._v(s._s(a.sub_complete)+"/"+s._s(a.sub_num))])]):s._e(),a.end_at?t("ETooltip",{attrs:{disabled:s.$isEEUiApp||s.windowTouch,content:a.end_at,placement:"right"}},[t("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[t("i",{staticClass:"taskfont"},[s._v("\uE71D")]),t("em",[s._v(s._s(s.expiresFormat(a.end_at)))])])]):s._e()],1)}),0)]:s._e()})],2)],1)],1)},p=[];const r=[],m={components:{TaskMenu:h},data(){return{nowTime:$A.dayjs().unix(),nowInter:null,licenseTimer:null,loadIng:0,dashboard:"today",warningMsg:"",hiddenColumns:r}},async beforeRouteEnter(s,i,t){r.push(...await $A.IDBArray("dashboardHiddenColumns")),t()},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:{...d(["systemConfig","userInfo","userIsAdmin","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),routeName(){return this.$route.name},columns({hiddenColumns:s}){const i=[];return["today","overdue","all"].some(t=>{let e=this.transforTasks(this.dashboardTask[t]);i.push({type:t,title:this.getTitle(t),hidden:s.includes(t),list:e.sort((a,n)=>$A.dayjs(a.end_at||"2099-12-31 23:59:59")-$A.dayjs(n.end_at||"2099-12-31 23:59:59"))})}),i.push({type:"assist",title:this.getTitle("assist"),hidden:s.includes("assist"),list:this.assistTask.sort((t,e)=>$A.dayjs(t.end_at||"2099-12-31 23:59:59")-$A.dayjs(e.end_at||"2099-12-31 23:59:59"))}),i},total(){const{dashboardTask:s}=this;return s.today_count+s.overdue_count+s.all_count},wrapperStyle({warningMsg:s}){return s?{"max-height":"calc(100% - 50px)"}:null}},watch:{windowActive(s){this.routeName==="manage-dashboard"&&(this.loadInterval(s),this.loadLicense(s),s&&this.$store.dispatch("getTaskForDashboard",600))}},methods:{getTitle(s){switch(s){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(s){const i=this.$refs[`type_${s}`];if(i){const t=this.hiddenColumns.indexOf(s);t!==-1&&this.hiddenColumns.splice(t,1),this.$nextTick(e=>{$A.scrollToView(i[0],{behavior:"smooth",inline:"end"})})}},onDashboardHidden(s){this.hiddenColumns.indexOf(s)===-1?this.hiddenColumns.push(s):this.hiddenColumns=this.hiddenColumns.filter(t=>t!==s),$A.IDBSave("dashboardHiddenColumns",this.hiddenColumns)},openTask(s){this.$store.dispatch("openTask",s)},openMenu(s,i){this.$store.state.taskOperation={event:s,task:i}},expiresFormat(s){return $A.countDownFormat(this.nowTime,s)},loadInterval(s){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),s!==!1&&(this.nowInter=setInterval(i=>{this.nowTime=$A.dayjs().unix()},1e3))},loadLicense(s){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(s===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(i=>{this.$store.dispatch("call",{url:"system/license",data:{type:"get"}}).then(({data:t})=>{this.warningMsg=t.error.length>0?t.error[0]:""}).catch(t=>{this.warningMsg=""})},1500))}}},l={};var v=u(m,_,p,!1,f,null,null,null);function f(s){for(let i in l)this[i]=l[i]}var ss=function(){return v.exports}();export{ss as default}; +import{m as d,a as c}from"./vuex.cc7cb26e.js";import{T as h,n as u}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var _=function(){var s=this,i=s.$createElement,t=s._self._c||i;return t("div",{staticClass:"page-dashboard"},[t("PageTitle",{attrs:{title:s.$L("\u4EEA\u8868\u76D8")}}),s.warningMsg?t("Alert",{staticClass:"dashboard-warning",attrs:{type:"warning","show-icon":""}},[t("span",{on:{click:function(e){return s.goForward({name:"manage-setting-license"})}}},[s._v(s._s(s.warningMsg))])]):s._e(),t("div",{staticClass:"dashboard-wrapper",style:s.wrapperStyle},[t("div",{staticClass:"dashboard-hello"},[s._v(s._s(s.$L("\u6B22\u8FCE\u60A8\uFF0C"+s.userInfo.nickname)))]),s.systemConfig.timezoneDifference?t("div",{staticClass:"dashboard-time"},[t("span",[s._v(s._s(s.$L("\u670D\u52A1\u5668\u65F6\u95F4"))+":")]),t("span",[s._v(s._s(s.$A.daytz().format("YYYY-MM-DD HH:mm:ss")))])]):s._e(),t("div",{staticClass:"dashboard-desc"},[t("span",[s._v(s._s(s.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E")))]),t("transition",{attrs:{name:"dashboard-load"}},[s.loadDashboardTasks?t("div",{staticClass:"dashboard-load"},[t("Loading")],1):s._e()])],1),t("ul",{staticClass:"dashboard-block"},[t("li",{on:{click:function(e){return s.scrollTo("today")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("today")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.today_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F4")])])]),t("li",{on:{click:function(e){return s.scrollTo("overdue")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("overdue")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.overdue_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE603")])])]),t("li",{on:{click:function(e){return s.scrollTo("all")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("all")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.all_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F9")])])])]),t("Scrollbar",{staticClass:"dashboard-list"},[s._l(s.columns,function(e){return e.list.length>0?[t("div",{ref:`type_${e.type}`,refInFor:!0,staticClass:"dashboard-ref"}),t("div",{staticClass:"dashboard-title",class:{"title-close":e.hidden},on:{click:function(a){return s.onDashboardHidden(e.type)}}},[t("span",[s._v(" "+s._s(e.title)+" "),e.hidden?[s._v(" ("+s._s(e.list.length)+") ")]:s._e()],2),t("i",{staticClass:"taskfont"},[s._v("\uE702")])]),t("ul",{staticClass:"dashboard-ul",class:{"ul-hidden":e.hidden}},s._l(e.list,function(a,n){return t("li",{key:n,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(o){return s.openTask(a)}}},[a.p_name?t("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):s._e(),t("div",{staticClass:"item-select",on:{click:function(o){return o.stopPropagation(),s.openMenu(o,a)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:s._s(a.complete_at?"":"")}})]),t("div",{staticClass:"item-title"},[a.flow_item_name?t("span",{class:a.flow_item_status,on:{click:function(o){return o.stopPropagation(),s.openMenu(o,a)}}},[s._v(s._s(a.flow_item_name))]):s._e(),a.sub_top===!0?t("span",[s._v(s._s(s.$L("\u5B50\u4EFB\u52A1")))]):s._e(),a.sub_my&&a.sub_my.length>0?t("span",[s._v("+"+s._s(a.sub_my.length))]):s._e(),s._v(" "+s._s(a.name)+" ")]),a.desc?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71A")])]):s._e(),a.sub_num>0?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71F")]),t("em",[s._v(s._s(a.sub_complete)+"/"+s._s(a.sub_num))])]):s._e(),a.end_at?t("ETooltip",{attrs:{disabled:s.$isEEUiApp||s.windowTouch,content:a.end_at,placement:"right"}},[t("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[t("i",{staticClass:"taskfont"},[s._v("\uE71D")]),t("em",[s._v(s._s(s.expiresFormat(a.end_at)))])])]):s._e()],1)}),0)]:s._e()})],2)],1)],1)},p=[];const r=[],m={components:{TaskMenu:h},data(){return{nowTime:$A.dayjs().unix(),nowInter:null,licenseTimer:null,loadIng:0,dashboard:"today",warningMsg:"",hiddenColumns:r}},async beforeRouteEnter(s,i,t){r.push(...await $A.IDBArray("dashboardHiddenColumns")),t()},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:{...d(["systemConfig","userInfo","userIsAdmin","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),routeName(){return this.$route.name},columns({hiddenColumns:s}){const i=[];return["today","overdue","all"].some(t=>{let e=this.transforTasks(this.dashboardTask[t]);i.push({type:t,title:this.getTitle(t),hidden:s.includes(t),list:e.sort((a,n)=>$A.dayjs(a.end_at||"2099-12-31 23:59:59")-$A.dayjs(n.end_at||"2099-12-31 23:59:59"))})}),i.push({type:"assist",title:this.getTitle("assist"),hidden:s.includes("assist"),list:this.assistTask.sort((t,e)=>$A.dayjs(t.end_at||"2099-12-31 23:59:59")-$A.dayjs(e.end_at||"2099-12-31 23:59:59"))}),i},total(){const{dashboardTask:s}=this;return s.today_count+s.overdue_count+s.all_count},wrapperStyle({warningMsg:s}){return s?{"max-height":"calc(100% - 50px)"}:null}},watch:{windowActive(s){this.routeName==="manage-dashboard"&&(this.loadInterval(s),this.loadLicense(s),s&&this.$store.dispatch("getTaskForDashboard",600))}},methods:{getTitle(s){switch(s){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(s){const i=this.$refs[`type_${s}`];if(i){const t=this.hiddenColumns.indexOf(s);t!==-1&&this.hiddenColumns.splice(t,1),this.$nextTick(e=>{$A.scrollToView(i[0],{behavior:"smooth",inline:"end"})})}},onDashboardHidden(s){this.hiddenColumns.indexOf(s)===-1?this.hiddenColumns.push(s):this.hiddenColumns=this.hiddenColumns.filter(t=>t!==s),$A.IDBSave("dashboardHiddenColumns",this.hiddenColumns)},openTask(s){this.$store.dispatch("openTask",s)},openMenu(s,i){this.$store.state.taskOperation={event:s,task:i}},expiresFormat(s){return $A.countDownFormat(this.nowTime,s)},loadInterval(s){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),s!==!1&&(this.nowInter=setInterval(i=>{this.nowTime=$A.dayjs().unix()},1e3))},loadLicense(s){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(s===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(i=>{this.$store.dispatch("call",{url:"system/license",data:{type:"get"}}).then(({data:t})=>{this.warningMsg=t.error.length>0?t.error[0]:""}).catch(t=>{this.warningMsg=""})},1500))}}},l={};var v=u(m,_,p,!1,f,null,null,null);function f(s){for(let i in l)this[i]=l[i]}var ss=function(){return v.exports}();export{ss as default}; diff --git a/public/js/build/dayjs.93c58ba1.js b/public/js/build/dayjs.b7f7bb8e.js similarity index 100% rename from public/js/build/dayjs.93c58ba1.js rename to public/js/build/dayjs.b7f7bb8e.js diff --git a/public/js/build/delete.ae94fe17.js b/public/js/build/delete.0f4e4825.js similarity index 96% rename from public/js/build/delete.ae94fe17.js rename to public/js/build/delete.0f4e4825.js index 87304174d..e7434f738 100644 --- a/public/js/build/delete.ae94fe17.js +++ b/public/js/build/delete.0f4e4825.js @@ -1 +1 @@ -import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(i){t.$set(t.formDatum,"password",i)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(i){t.$set(t.formDatum,"reason",i)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{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","formOptions"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let r=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(r))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(r=>{r&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,p,null,null,null);function p(t){for(let r in o)this[r]=o[r]}var P=function(){return u.exports}();export{P as default}; +import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(i){t.$set(t.formDatum,"email",i)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(i){t.$set(t.formDatum,"password",i)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(i){t.$set(t.formDatum,"reason",i)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{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","formOptions"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let r=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(r))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(r=>{r&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},o={};var u=a(l,n,m,!1,p,null,null,null);function p(t){for(let r in o)this[r]=o[r]}var P=function(){return u.exports}();export{P as default}; diff --git a/public/js/build/details.2a18916c.js b/public/js/build/details.2a18916c.js deleted file mode 100644 index 683155b9f..000000000 --- a/public/js/build/details.2a18916c.js +++ /dev/null @@ -1 +0,0 @@ -import{m as B}from"./vuex.cc7cb26e.js";import{n as M,I as P}from"./app.d8851986.js";import{I as z}from"./ImgUpload.52758ba6.js";var E=function(){var a=this,o=a.$createElement,i=a._self._c||o;return i("Modal",{attrs:{title:a.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E"),"mask-closable":!1},model:{value:a.show,callback:function(r){a.show=r},expression:"show"}},[i("Form",a._b({ref:"exportTask",attrs:{model:a.formData},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",a.formOptions,!1),[i("FormItem",{attrs:{label:a.$L("\u5BA1\u6279\u7C7B\u578B")}},[i("Select",{attrs:{placeholder:a.$L("\u8BF7\u9009\u62E9\u7C7B\u578B")},on:{"on-open-change":a.getProcName},model:{value:a.formData.proc_def_name,callback:function(r){a.$set(a.formData,"proc_def_name",r)},expression:"formData.proc_def_name"}},a._l(a.procList,function(r,n){return i("Option",{key:n,attrs:{value:r.name}},[a._v(a._s(a.$L(r.name)))])}),1)],1),i("FormItem",{attrs:{label:a.$L("\u65F6\u95F4\u8303\u56F4")}},[i("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:a.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:a.formData.date,callback:function(r){a.$set(a.formData,"date",r)},expression:"formData.date"}}),i("div",{staticClass:"form-tip checkin-export-quick-select"},[i("span",[a._v(a._s(a.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),i("em",{on:{click:function(r){a.formData.date=a.dateShortcuts("prev")}}},[a._v(a._s(a.$L("\u4E0A\u4E2A\u6708")))]),i("em",{on:{click:function(r){a.formData.date=a.dateShortcuts("this")}}},[a._v(a._s(a.$L("\u8FD9\u4E2A\u6708")))])])],1),i("FormItem",{attrs:{prop:"type",label:a.$L("\u5BFC\u51FA\u7C7B\u578B")}},[i("RadioGroup",{model:{value:a.formData.is_finished,callback:function(r){a.$set(a.formData,"is_finished",r)},expression:"formData.is_finished"}},[i("Radio",{attrs:{label:"0"}},[a._v(a._s(a.$L("\u672A\u5B8C\u6210")))]),i("Radio",{attrs:{label:"1"}},[a._v(a._s(a.$L("\u5DF2\u5B8C\u6210")))])],1)],1)],1),i("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[i("Button",{attrs:{type:"default"},on:{click:function(r){a.show=!1}}},[a._v(a._s(a.$L("\u53D6\u6D88")))]),i("Button",{attrs:{type:"primary",loading:a.loadIng>0},on:{click:a.onExport}},[a._v(a._s(a.$L("\u5BFC\u51FA")))])],1)],1)},F=[];const j={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(a){this.show=a},show(a){this.value!==a&&this.$emit("input",a)}},computed:{...B(["formOptions"])},methods:{dateShortcuts(a){if(a==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(a==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},getProcName(){this.loadIng++,this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:a})=>{this.procList=a.rows}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"approve/export",data:this.formData}).then(({data:a})=>{this.show=!1,this.$store.dispatch("downUrl",{url:a.url})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))}}},T={};var R=M(j,E,F,!1,N,null,null,null);function N(a){for(let o in T)this[o]=T[o]}var Q=function(){return R.exports}(),U=function(){var a,o,i,r,n,l,v,p,u,h,f,$,g,y,L,t=this,O=t.$createElement,e=t._self._c||O;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:t.onBack}},[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&&(a=t.datas.var)!==null&&a!==void 0&&a.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(((o=t.datas.var)===null||o===void 0?void 0:o.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(((i=t.datas.var)===null||i===void 0?void 0:i.start_time)||"- -"))]),(r=t.datas.var)!==null&&r!==void 0&&r.start_time?e("span",[t._v("("+t._s(t.getWeekday((n=t.datas.var)===null||n===void 0?void 0:n.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((p=t.datas.var)===null||p===void 0?void 0:p.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((f=t.datas.var)!==null&&f!==void 0&&f.start_time?t.getTimeDifference(($=t.datas.var)===null||$===void 0?void 0:$.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,1)}}},[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,_,k,C,w,x,I,D,b,A;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&&((_=s.node_user_list[0])===null||_===void 0?void 0:_.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?[e("Divider"),e("h3",{staticClass:"approve-details-subtitle"},[t._v(t._s(t.$L("\u5168\u6587\u8BC4\u8BBA")))]),e("div",{staticClass:"approve-record-comment"},[e("List",{attrs:{split:!1,border:!1}},t._l(t.datas.global_comments,function(s,d){return e("ListItem",{key:d},[e("div",[e("div",{staticClass:"top"},[e("Avatar",{attrs:{src:s.userimg,size:"38"}}),e("div",[e("p",[t._v(t._s(s.nickname))]),e("p",{staticClass:"time"},[t._v(t._s(s.created_at))])]),e("span",[t._v(t._s(t.getTimeAgo(s.created_at)))])],1),e("div",{staticClass:"content"},[t._v(" "+t._s(t.getContent(s.content))+" ")]),e("div",{staticClass:"content",staticStyle:{display:"flex",gap:"10px"}},t._l(t.getPictures(s.content),function(c,m){return e("div",{key:m,on:{click:function(_){return t.onViewPicture(c,2)}}},[e("ImgView",{staticClass:"img-view",attrs:{src:t.getPictureThumb(c),"error-src":c}})],1)}),0)])])}),1)],1)]:t._e()],2),e("div",{staticClass:"approve-operation"},[t.isShowAgreeBtn&&!t.loadIng?e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.approve(1)}}},[t._v(t._s(t.$L("\u540C\u610F")))]):t._e(),t.isShowAgreeBtn&&!t.loadIng?e("Button",{attrs:{type:"error"},on:{click:function(s){return t.approve(2)}}},[t._v(t._s(t.$L("\u62D2\u7EDD")))]):t._e(),t.isShowWarningBtn&&!t.loadIng?e("Button",{attrs:{type:"warning"},on:{click:t.revocation}},[t._v(t._s(t.$L("\u64A4\u9500")))]):t._e(),e("Button",{attrs:{type:"primary",loading:t.loadIng>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",t._b({ref:"initiateRef",attrs:{model:t.commentData,rules:t.commentRule},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[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)},V=[];const q={name:"ApproveDetails",components:{ImgView:P,ImgUpload:z},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(a,o){a.name=="manage-approve-details"&&this.init()},data:{handler(a,o){a.id&&this.getInfo()},deep:!0}},computed:{...B(["formOptions"]),isShowAgreeBtn(){return(this.datas.candidate||"").split(",").indexOf(this.userId+"")!=-1&&!this.datas.is_finished},isShowWarningBtn(){var o;let a=this.userId==this.datas.start_user_id&&((o=this.datas)==null?void 0:o.is_finished)!=!0;return(this.datas.node_infos||[]).map(i=>{var r;i.type!="starter"&&i.is_finished==!0&&((r=i.identitylink)==null?void 0:r.userid)!=this.userId&&(a=!1)}),a}},mounted(){this.init()},methods:{init(){this.modalTransferIndex=window.modalTransferIndex=window.modalTransferIndex+1,this.$route.query.id&&this.getInfo()},onBack(){this.$emit("onBack")},getTimeAgo(a,o){const i=$A.dayjs().unix()-$A.dayjs(a).unix();if(i<60)return o==2?"0"+this.$L("\u5206\u949F"):this.$L("\u521A\u521A");if(i<3600){const r=Math.floor(i/60);return o==2?`${r}${this.$L("\u5206\u949F")}`:`${r} ${this.$L("\u5206\u949F\u524D")}`}else if(i<3600*24){const r=Math.floor(i/3600);return o==2?`${r}${this.$L("\u5C0F\u65F6")}`:`${r} ${this.$L("\u5C0F\u65F6\u524D")}`}else if(i<3600*24*30){const r=Math.floor(i/3600/24);return o==2?`${r+1}${this.$L("\u5929")}`:`${r+1} ${this.$L("\u5929\u524D")}`}else{const r=Math.floor(i/3600/720);return o==2?`${r+1}${this.$L("\u6708")}`:`${r+1} ${this.$L("\u6708\u524D")}`}},getWeekday(a){return this.$L(["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][$A.dayjs(a).day()])},getTimeDifference(a,o){const i=$A.dayjs(o),r=$A.dayjs(a),n=i.unix()-r.unix();return n<60?{time:n,unit:this.$L("\u79D2")}:n<3600?{time:Math.floor(n/60),unit:this.$L("\u5206\u949F")}:n<3600*24?{time:Math.floor(n/60/60),unit:this.$L("\u5C0F\u65F6")}:{time:Math.floor(n/60/60/24)+1,unit:this.$L("\u5929")}},getInfo(a=!1){this.loadIng++,this.$store.dispatch("call",{method:"get",url:"approve/process/detail",data:{id:this.$route.query.id||this.data.id}}).then(({data:o})=>{var i=!0;o.node_infos=o.node_infos.map(r=>{var n,l;return r._show=i,(((n=r.identitylink)==null?void 0:n.state)==2||((l=r.identitylink)==null?void 0:l.state)==3)&&(i=!1),r}),this.datas=o,a&&this.scrollToBottom()}).catch(({msg:o})=>{$A.modalError(o)}).finally(o=>{this.loadIng--})},approve(a){$A.modalInput({title:"\u5BA1\u6279",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1",type:"textarea",okText:a==1?"\u540C\u610F":"\u62D2\u7EDD",okType:a==1?"primary":"error",onOk:o=>a!=1&&!o?"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1":new Promise((i,r)=>{this.$store.dispatch("call",{url:"approve/task/complete",data:{task_id:this.datas.task_id,pass:a==1,comment:o}}).then(({msg:n})=>{$A.messageSuccess(n),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve"),i()}).catch(({msg:n})=>{r(n)})})})},revocation(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u5417\uFF1F",loading:!0,okType:"warning",onOk:()=>new Promise((a,o)=>{this.$store.dispatch("call",{url:"approve/task/withdraw",data:{task_id:this.datas.task_id,proc_inst_id:this.datas.id}}).then(({msg:i})=>{$A.messageSuccess(i),a(),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("revocation")}).catch(({msg:i})=>{o(i)})})})},comment(){this.commentData.content="",this.commentData.pictures=[],this.commentShow=!0},confirmComment(){this.commentLoad++,this.$refs.initiateRef.validate(a=>{a?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(o=>o.path)})}}).then(({msg:o})=>{$A.messageSuccess("\u6DFB\u52A0\u6210\u529F"),this.getInfo(!0),this.commentShow=!1}).catch(({msg:o})=>{$A.modalError(o)}).finally(o=>{this.commentLoad--}):this.commentLoad--})},scrollToBottom(){this.$nextTick(()=>{const a=this.$refs.approveDetailsBox;a.scrollTo({top:a.scrollHeight+1e3,behavior:"smooth"})})},getContent(a){try{return JSON.parse(a).content||""}catch{return""}},getPictures(a){try{return JSON.parse(a).pictures||[]}catch{return""}},getPictureThumb(a){return a+"_thumb."+a.split(".").pop()},onViewPicture(a,o){const i=[];o==1&&i.push(...this.datas.var.other.split(",")),o==2&&this.datas.global_comments.map(l=>{i.push(...this.getPictures(l.content))});const r=i.map(l=>({src:$A.mainUrl(l)})),n=r.findIndex(({src:l})=>l===$A.mainUrl(a));this.$store.dispatch("previewImage",{index:n,list:r})}}},S={};var W=M(q,U,V,!1,J,null,null,null);function J(a){for(let o in S)this[o]=S[o]}var X=function(){return W.exports}();export{Q as A,X as l}; diff --git a/public/js/build/details.9590a689.js b/public/js/build/details.9590a689.js new file mode 100644 index 000000000..b41177196 --- /dev/null +++ b/public/js/build/details.9590a689.js @@ -0,0 +1 @@ +import{m as O}from"./vuex.cc7cb26e.js";import{n as Y,I as z}from"./app.879f8ead.js";import{I as E}from"./ImgUpload.cc22c426.js";var F=function(){var a=this,i=a.$createElement,o=a._self._c||i;return o("Modal",{attrs:{title:a.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E"),"mask-closable":!1},model:{value:a.show,callback:function(r){a.show=r},expression:"show"}},[o("Form",a._b({ref:"exportTask",attrs:{model:a.formData},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",a.formOptions,!1),[o("FormItem",{attrs:{label:a.$L("\u5BA1\u6279\u7C7B\u578B")}},[o("Select",{attrs:{placeholder:a.$L("\u8BF7\u9009\u62E9\u7C7B\u578B")},on:{"on-open-change":a.getProcName},model:{value:a.formData.proc_def_name,callback:function(r){a.$set(a.formData,"proc_def_name",r)},expression:"formData.proc_def_name"}},a._l(a.procList,function(r,n){return o("Option",{key:n,attrs:{value:r.name}},[a._v(a._s(a.$L(r.name)))])}),1)],1),o("FormItem",{attrs:{label:a.$L("\u65F6\u95F4\u8303\u56F4")}},[o("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:a.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:a.formData.date,callback:function(r){a.$set(a.formData,"date",r)},expression:"formData.date"}}),o("div",{staticClass:"form-tip checkin-export-quick-select"},[o("span",[a._v(a._s(a.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),o("em",{on:{click:function(r){a.formData.date=a.dateShortcuts("prev")}}},[a._v(a._s(a.$L("\u4E0A\u4E2A\u6708")))]),o("em",{on:{click:function(r){a.formData.date=a.dateShortcuts("this")}}},[a._v(a._s(a.$L("\u8FD9\u4E2A\u6708")))])])],1),o("FormItem",{attrs:{prop:"type",label:a.$L("\u5BFC\u51FA\u7C7B\u578B")}},[o("RadioGroup",{model:{value:a.formData.is_finished,callback:function(r){a.$set(a.formData,"is_finished",r)},expression:"formData.is_finished"}},[o("Radio",{attrs:{label:"0"}},[a._v(a._s(a.$L("\u672A\u5B8C\u6210")))]),o("Radio",{attrs:{label:"1"}},[a._v(a._s(a.$L("\u5DF2\u5B8C\u6210")))])],1)],1)],1),o("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[o("Button",{attrs:{type:"default"},on:{click:function(r){a.show=!1}}},[a._v(a._s(a.$L("\u53D6\u6D88")))]),o("Button",{attrs:{type:"primary",loading:a.loadIng>0},on:{click:a.onExport}},[a._v(a._s(a.$L("\u5BFC\u51FA")))])],1)],1)},j=[];const R={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(a){this.show=a},show(a){this.value!==a&&this.$emit("input",a)}},computed:{...O(["formOptions"])},methods:{dateShortcuts(a){if(a==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(a==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},getProcName(){this.loadIng++,this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:a})=>{this.procList=a.rows}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"approve/export",data:this.formData}).then(({data:a})=>{this.show=!1,this.$store.dispatch("downUrl",{url:a.url})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))}}},B={};var N=Y(R,F,j,!1,U,null,null,null);function U(a){for(let i in B)this[i]=B[i]}var X=function(){return N.exports}(),V=function(){var a,i,o,r,n,l,m,p,u,h,f,$,g,y,L,t=this,P=t.$createElement,e=t._self._c||P;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:t.onBack}},[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&&(a=t.datas.var)!==null&&a!==void 0&&a.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(((i=t.datas.var)===null||i===void 0?void 0:i.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(((o=t.datas.var)===null||o===void 0?void 0:o.start_time)||"- -"))]),(r=t.datas.var)!==null&&r!==void 0&&r.start_time?e("span",[t._v("("+t._s(t.getWeekday((n=t.datas.var)===null||n===void 0?void 0:n.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)||"- -"))]),(m=t.datas.var)!==null&&m!==void 0&&m.end_time?e("span",[t._v("("+t._s(t.getWeekday((p=t.datas.var)===null||p===void 0?void 0:p.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((f=t.datas.var)!==null&&f!==void 0&&f.start_time?t.getTimeDifference(($=t.datas.var)===null||$===void 0?void 0:$.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,1)}}},[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,_,v,k,C,w,x,I,A,D,b;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("div",{staticClass:"approve-process-avatar",on:{click:function(T){return t.onAvatar(t.data.start_user_id)}}},[e("Avatar",{attrs:{src:t.data.userimg||t.datas.userimg,size:"38"}})],1),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("div",{staticClass:"approve-process-avatar",on:{click:function(T){var S;return t.onAvatar(s.node_user_list&&((S=s.node_user_list[0])===null||S===void 0?void 0:S.target_id))}}},[e("Avatar",{attrs:{src:s.node_user_list&&((v=s.node_user_list[0])===null||v===void 0?void 0:v.userimg)||s.userimg,size:"38"}})],1),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?[e("Divider"),e("h3",{staticClass:"approve-details-subtitle"},[t._v(t._s(t.$L("\u5168\u6587\u8BC4\u8BBA")))]),e("div",{staticClass:"approve-record-comment"},[e("List",{attrs:{split:!1,border:!1}},t._l(t.datas.global_comments,function(s,d){return e("ListItem",{key:d},[e("div",[e("div",{staticClass:"top"},[e("span",{on:{click:function(c){return t.onAvatar(s.user_id)}}},[e("Avatar",{attrs:{src:s.userimg,size:"38"}})],1),e("div",[e("p",[t._v(t._s(s.nickname))]),e("p",{staticClass:"time"},[t._v(t._s(s.created_at))])]),e("span",[t._v(t._s(t.getTimeAgo(s.created_at)))])]),e("div",{staticClass:"content"},[t._v(" "+t._s(t.getContent(s.content))+" ")]),e("div",{staticClass:"content",staticStyle:{display:"flex",gap:"10px"}},t._l(t.getPictures(s.content),function(c,_){return e("div",{key:_,on:{click:function(v){return t.onViewPicture(c,2)}}},[e("ImgView",{staticClass:"img-view",attrs:{src:t.getPictureThumb(c),"error-src":c}})],1)}),0)])])}),1)],1)]:t._e()],2),e("div",{staticClass:"approve-operation"},[t.isShowAgreeBtn&&!t.loadIng?e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.approve(1)}}},[t._v(t._s(t.$L("\u540C\u610F")))]):t._e(),t.isShowAgreeBtn&&!t.loadIng?e("Button",{attrs:{type:"error"},on:{click:function(s){return t.approve(2)}}},[t._v(t._s(t.$L("\u62D2\u7EDD")))]):t._e(),t.isShowWarningBtn&&!t.loadIng?e("Button",{attrs:{type:"warning"},on:{click:t.revocation}},[t._v(t._s(t.$L("\u64A4\u9500")))]):t._e(),e("Button",{attrs:{type:"primary",loading:t.loadIng>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",t._b({ref:"initiateRef",attrs:{model:t.commentData,rules:t.commentRule},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[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)},q=[];const W={name:"ApproveDetails",components:{ImgView:z,ImgUpload:E},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(a,i){a.name=="manage-approve-details"&&this.init()},data:{handler(a,i){a.id&&this.getInfo()},deep:!0}},computed:{...O(["formOptions"]),isShowAgreeBtn(){return(this.datas.candidate||"").split(",").indexOf(this.userId+"")!=-1&&!this.datas.is_finished},isShowWarningBtn(){var i;let a=this.userId==this.datas.start_user_id&&((i=this.datas)==null?void 0:i.is_finished)!=!0;return(this.datas.node_infos||[]).map(o=>{var r;o.type!="starter"&&o.is_finished==!0&&((r=o.identitylink)==null?void 0:r.userid)!=this.userId&&(a=!1)}),a}},mounted(){this.init()},methods:{init(){this.modalTransferIndex=window.modalTransferIndex=window.modalTransferIndex+1,this.$route.query.id&&this.getInfo()},onBack(){this.$emit("onBack")},getTimeAgo(a,i){const o=$A.dayjs().unix()-$A.dayjs(a).unix();if(o<60)return i==2?"0"+this.$L("\u5206\u949F"):this.$L("\u521A\u521A");if(o<3600){const r=Math.floor(o/60);return i==2?`${r}${this.$L("\u5206\u949F")}`:`${r} ${this.$L("\u5206\u949F\u524D")}`}else if(o<3600*24){const r=Math.floor(o/3600);return i==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 i==2?`${r+1}${this.$L("\u5929")}`:`${r+1} ${this.$L("\u5929\u524D")}`}else{const r=Math.floor(o/3600/720);return i==2?`${r+1}${this.$L("\u6708")}`:`${r+1} ${this.$L("\u6708\u524D")}`}},getWeekday(a){return this.$L(["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][$A.dayjs(a).day()])},getTimeDifference(a,i){const o=$A.dayjs(i),r=$A.dayjs(a),n=o.unix()-r.unix();return n<60?{time:n,unit:this.$L("\u79D2")}:n<3600?{time:Math.floor(n/60),unit:this.$L("\u5206\u949F")}:n<3600*24?{time:Math.floor(n/60/60),unit:this.$L("\u5C0F\u65F6")}:{time:Math.floor(n/60/60/24)+1,unit:this.$L("\u5929")}},getInfo(a=!1){this.loadIng++,this.$store.dispatch("call",{method:"get",url:"approve/process/detail",data:{id:this.$route.query.id||this.data.id}}).then(({data:i})=>{var o=!0;i.node_infos=i.node_infos.map(r=>{var n,l;return r._show=o,(((n=r.identitylink)==null?void 0:n.state)==2||((l=r.identitylink)==null?void 0:l.state)==3)&&(o=!1),r}),this.datas=i,a&&this.scrollToBottom()}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--})},approve(a){$A.modalInput({title:"\u5BA1\u6279",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1",type:"textarea",okText:a==1?"\u540C\u610F":"\u62D2\u7EDD",okType:a==1?"primary":"error",onOk:i=>a!=1&&!i?"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1":new Promise((o,r)=>{this.$store.dispatch("call",{url:"approve/task/complete",data:{task_id:this.datas.task_id,pass:a==1,comment:i}}).then(({msg:n})=>{$A.messageSuccess(n),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve"),o()}).catch(({msg:n})=>{r(n)})})})},revocation(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u5417\uFF1F",loading:!0,okType:"warning",onOk:()=>new Promise((a,i)=>{this.$store.dispatch("call",{url:"approve/task/withdraw",data:{task_id:this.datas.task_id,proc_inst_id:this.datas.id}}).then(({msg:o})=>{$A.messageSuccess(o),a(),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("revocation")}).catch(({msg:o})=>{i(o)})})})},comment(){this.commentData.content="",this.commentData.pictures=[],this.commentShow=!0},confirmComment(){this.commentLoad++,this.$refs.initiateRef.validate(a=>{a?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(i=>i.path)})}}).then(({msg:i})=>{$A.messageSuccess("\u6DFB\u52A0\u6210\u529F"),this.getInfo(!0),this.commentShow=!1}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.commentLoad--}):this.commentLoad--})},scrollToBottom(){this.$nextTick(()=>{const a=this.$refs.approveDetailsBox;a.scrollTo({top:a.scrollHeight+1e3,behavior:"smooth"})})},getContent(a){try{return JSON.parse(a).content||""}catch{return""}},getPictures(a){try{return JSON.parse(a).pictures||[]}catch{return""}},getPictureThumb(a){return/\.(png|jpg|jpeg)$/.test(a)?$A.thumbRestore(a)+"_thumb."+a.split(".").pop():a},onViewPicture(a,i){const o=[];i==1&&o.push(...this.datas.var.other.split(",")),i==2&&this.datas.global_comments.map(l=>{o.push(...this.getPictures(l.content))});const r=o.map(l=>({src:$A.mainUrl(l)})),n=r.findIndex(({src:l})=>l===$A.mainUrl(a));this.$store.dispatch("previewImage",{index:n,list:r})},onAvatar(a){!/^\d+$/.test(a)||this.$store.dispatch("openDialogUserid",a).then(i=>{this.goForward({name:"manage-messenger"})}).catch(({msg:i})=>{$A.modalError(i)})}}},M={};var J=Y(W,V,q,!1,G,null,null,null);function G(a){for(let i in M)this[i]=M[i]}var Z=function(){return J.exports}();export{X as A,Z as l}; diff --git a/public/js/build/editor.d5ddd8a7.js b/public/js/build/editor.85bb3838.js similarity index 94% rename from public/js/build/editor.d5ddd8a7.js rename to public/js/build/editor.85bb3838.js index ed9cbc76a..65ae79d90 100644 --- a/public/js/build/editor.d5ddd8a7.js +++ b/public/js/build/editor.85bb3838.js @@ -1,2 +1,2 @@ -import{f as a,d as s,a as l,b as d,c as m,_ as p,e as u,v as c}from"./@kangc.0e27bf4b.js";import{P as h}from"./prismjs.e9e594e5.js";import{l as i,n as f}from"./app.d8851986.js";import{C as g}from"./codemirror.b84e0a0e.js";import{e as _}from"./index.40a8e116.js";import{I as v}from"./ImgUpload.52758ba6.js";import"./@babel.49d8906a.js";import"./vue.c448ed56.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var $=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vmeditor-wrapper"},[o("v-md-editor",{directives:[{name:"show",rawName:"v-show",value:e.showEditor,expression:"showEditor"}],ref:"editor",staticClass:"vmeditor-editor",attrs:{toolbar:e.toolbar,"left-toolbar":e.leftToolbar,"right-toolbar":e.rightToolbar,"toc-nav-position-right":e.tocNavPositionRight,"include-level":e.includeLevel,"disabled-menus":[]},on:{"upload-image":e.handleUpload},model:{value:e.content,callback:function(r){e.content=r},expression:"content"}}),e.uploadIng>0?o("Spin",{attrs:{fix:""}},[o("Icon",{staticClass:"vmeditor-icon-loading",attrs:{type:"ios-loading"}}),o("div",[e._v(e._s(e.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):e._e(),o("ImgUpload",{ref:"myUpload",staticClass:"vmeditor-upload-control",attrs:{type:"callback",uploadIng:e.uploadIng,num:"50"},on:{"update:uploadIng":function(r){e.uploadIng=r},"update:upload-ing":function(r){e.uploadIng=r},"on-callback":e.handleInsertImages}}),o("Upload",{ref:"fileUpload",staticClass:"vmeditor-upload-control",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:"",paste:"",format:e.uploadFormat,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}})],1)},x=[];i==="zh"||i==="zh-CHT"?a.lang.use("zh-CN",s):a.lang.use("en-US",l);a.use(d());a.use(m());a.use(p());a.use(u());a.Codemirror=g;const I={mixins:[_],components:{[a.name]:a,ImgUpload:v},data(){return{showEditor:!1,content:"",toolbar:{customImages:{icon:"v-md-icon-img",title:e=>e.langConfig.image.toolbar,menus:[{name:"image-link",text:e=>e.langConfig.imageLink.toolbar,action:e=>{this.handleInsertImages([{name:"Description",url:"http://"}])}},{name:"browse-image",text:this.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),action:e=>{this.$refs.myUpload.browsePicture()}},{name:"upload-image",text:e=>e.langConfig.uploadImage.toolbar,action:e=>{this.$refs.myUpload.handleClick()}},{name:"upload-local",text:this.$L("\u4E0A\u4F20\u672C\u5730\u6587\u4EF6"),action:e=>{this.$refs.fileUpload.handleClick()}}]}},uploadIng:0,uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"],actionUrl:$A.apiUrl("system/fileupload"),maxSize:1024e3}},created(){a.use(c,{Prism:h,extend(e){}})},mounted(){this.windowWidth>1200&&this.$refs.editor.toggleToc(!0),this.showEditor=!0},computed:{headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}}},watch:{value:{handler(e){e==null&&(e=""),this.content=e},immediate:!0},content(e){this.$emit("input",e)}},methods:{handleUpload(e){e.type==="drop"?this.$refs.fileUpload.onDrop(e):this.$refs.fileUpload.handlePaste(e)},handleInsertText(e,t=""){this.$refs.editor.focus(),this.$refs.editor.replaceSelectionText(e),this.$refs.editor.changeSelctionTo(e,t)},handleInsertImages(e){this.$refs.editor.focus(),e.forEach(t=>{const o=t.name||"image",r=`![${o}](${t.url}) +import{f as a,d as s,a as l,b as d,c as m,_ as p,e as u,v as c}from"./@kangc.0e27bf4b.js";import{P as h}from"./prismjs.e9e594e5.js";import{l as i,n as f}from"./app.879f8ead.js";import{C as g}from"./codemirror.b84e0a0e.js";import{e as _}from"./index.40a8e116.js";import{I as v}from"./ImgUpload.cc22c426.js";import"./@babel.49d8906a.js";import"./vue.c448ed56.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var $=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"vmeditor-wrapper"},[o("v-md-editor",{directives:[{name:"show",rawName:"v-show",value:e.showEditor,expression:"showEditor"}],ref:"editor",staticClass:"vmeditor-editor",attrs:{toolbar:e.toolbar,"left-toolbar":e.leftToolbar,"right-toolbar":e.rightToolbar,"toc-nav-position-right":e.tocNavPositionRight,"include-level":e.includeLevel,"disabled-menus":[]},on:{"upload-image":e.handleUpload},model:{value:e.content,callback:function(r){e.content=r},expression:"content"}}),e.uploadIng>0?o("Spin",{attrs:{fix:""}},[o("Icon",{staticClass:"vmeditor-icon-loading",attrs:{type:"ios-loading"}}),o("div",[e._v(e._s(e.$L("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6...")))])],1):e._e(),o("ImgUpload",{ref:"myUpload",staticClass:"vmeditor-upload-control",attrs:{type:"callback",uploadIng:e.uploadIng,num:"50"},on:{"update:uploadIng":function(r){e.uploadIng=r},"update:upload-ing":function(r){e.uploadIng=r},"on-callback":e.handleInsertImages}}),o("Upload",{ref:"fileUpload",staticClass:"vmeditor-upload-control",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:"",paste:"",format:e.uploadFormat,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}})],1)},x=[];i==="zh"||i==="zh-CHT"?a.lang.use("zh-CN",s):a.lang.use("en-US",l);a.use(d());a.use(m());a.use(p());a.use(u());a.Codemirror=g;const I={mixins:[_],components:{[a.name]:a,ImgUpload:v},data(){return{showEditor:!1,content:"",toolbar:{customImages:{icon:"v-md-icon-img",title:e=>e.langConfig.image.toolbar,menus:[{name:"image-link",text:e=>e.langConfig.imageLink.toolbar,action:e=>{this.handleInsertImages([{name:"Description",url:"http://"}])}},{name:"browse-image",text:this.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),action:e=>{this.$refs.myUpload.browsePicture()}},{name:"upload-image",text:e=>e.langConfig.uploadImage.toolbar,action:e=>{this.$refs.myUpload.handleClick()}},{name:"upload-local",text:this.$L("\u4E0A\u4F20\u672C\u5730\u6587\u4EF6"),action:e=>{this.$refs.fileUpload.handleClick()}}]}},uploadIng:0,uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"],actionUrl:$A.apiUrl("system/fileupload"),maxSize:1024e3}},created(){a.use(c,{Prism:h,extend(e){}})},mounted(){this.windowWidth>1200&&this.$refs.editor.toggleToc(!0),this.showEditor=!0},computed:{headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}}},watch:{value:{handler(e){e==null&&(e=""),this.content=e},immediate:!0},content(e){this.$emit("input",e)}},methods:{handleUpload(e){e.type==="drop"?this.$refs.fileUpload.onDrop(e):this.$refs.fileUpload.handlePaste(e)},handleInsertText(e,t=""){this.$refs.editor.focus(),this.$refs.editor.replaceSelectionText(e),this.$refs.editor.changeSelctionTo(e,t)},handleInsertImages(e){this.$refs.editor.focus(),e.forEach(t=>{const o=t.name||"image",r=`![${o}](${t.url}) `;this.$refs.editor.replaceSelectionText(r),this.$refs.editor.changeSelctionTo(r,e.length===1?o:"")})},handleProgress(e,t){t._uploadIng===void 0&&(t._uploadIng=!0,this.uploadIng++)},handleSuccess(e,t){if(this.uploadIng--,e.ret===1){const{data:o}=e;this.handleInsertText(`[${o.name} (${$A.bytesToSize(o.size*1024)})](${o.url})`)}else $A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+t.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+e.msg})},handleError(){this.uploadIng--},handleFormatError(e){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+e.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(e){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+e.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(){return!0}}},n={};var b=f(I,$,x,!1,S,"62f2a7b2",null,null);function S(e){for(let t in n)this[t]=n[t]}var ce=function(){return b.exports}();export{ce as default}; diff --git a/public/js/build/email.f542170a.js b/public/js/build/email.0afe9b64.js similarity index 94% rename from public/js/build/email.f542170a.js rename to public/js/build/email.0afe9b64.js index bfc5d925e..8bcc17e3a 100644 --- a/public/js/build/email.f542170a.js +++ b/public/js/build/email.0afe9b64.js @@ -1 +1 @@ -import{m as o}from"./vuex.cc7cb26e.js";import{n as a}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\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:{...o(["formOptions"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let i=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(i))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:i})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",i),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},s={};var u=a(l,n,m,!1,p,null,null,null);function p(t){for(let i in s)this[i]=s[i]}var N=function(){return u.exports}();export{N as default}; +import{m as o}from"./vuex.cc7cb26e.js";import{n as a}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\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:{...o(["formOptions"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let i=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(i))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:i})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",i),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:i})=>{$A.modalError(i)}).finally(i=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},s={};var u=a(l,n,m,!1,p,null,null,null);function p(t){for(let i in s)this[i]=s[i]}var N=function(){return u.exports}();export{N as default}; diff --git a/public/js/build/file.a4de8a58.js b/public/js/build/file.1a62fb3d.js similarity index 97% rename from public/js/build/file.a4de8a58.js rename to public/js/build/file.1a62fb3d.js index e2363a9f0..561b73912 100644 --- a/public/js/build/file.a4de8a58.js +++ b/public/js/build/file.1a62fb3d.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.63d8be61.js";import{D as v}from"./index.4892e747.js";import{l as g}from"./longpress.5305f240.js";import{U as $,n as _}from"./app.d8851986.js";import{U as k}from"./tip.7b94707c.js";import"./@babel.49d8906a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var w=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)]),e.selectIds.length>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)]):e._e(),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")))]),e.selectIds.length>1?t("DropdownItem",{attrs:{name:"downloadzip",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))]):e._e(),t("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[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("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)},I=[];const L=()=>u(()=>import("./FilePreview.1f20c4b0.js"),["js/build/FilePreview.1f20c4b0.js","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),x=()=>u(()=>import("./FileContent.35e44d8b.js"),["js/build/FileContent.35e44d8b.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/IFrame.7f63db7a.js"]),o={sort:null,mode:null,shared:null},C={components:{UserAvatarTip:k,UserSelect:$,FilePreview:L,DrawerOverlay:v,FileContent:x},directives:{longpress:g},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},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":l=>{const d=this.fileLists.find(({id:c})=>c==i.id);d&&setTimeout(()=>{this.setEdit(d.id,l)},100)},"on-update":(l,d)=>{const c=this.fileLists.find(({id:p})=>p==i.id);c&&c._edit===!0&&(c.newname=l,this.onEnter(c)),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":"",n=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}${n}`},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(l=>t&&l.userid!=r&&l.created_id!=r?!1:i?l.name.indexOf(i)!==-1:l.pid==s),l=>(l.type=="folder"?"a":"b")+l.name)).map(l=>(l._checked=a.includes(l.id),l))},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))},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;return}if(this.fid<=0){this.fileShow=!1;return}const e=this.fileList.find(({id:i})=>i===this.fid);if(!e){this.fileShow=!1;return}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(e);return}this.fileInfo=e,this.fileShow=!0},openFileSingle(e){const i=`/single/file/${e.id}`;this.$Electron?this.$store.dispatch("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;if(e.type=="folder"){this.browseFolder(e.id);return}if(e.image_url){const s=this.fileList.filter(({image_url:a})=>!!a);if(s.length>0){const a=s.findIndex(({id:n})=>e.id===n),r=s.map(n=>n.image_width?{src:n.image_url,width:n.image_width,height:n.image_height}:n.image_url);this.$store.dispatch("previewImage",{index:a,list:r});return}}this.browseFile(e.id);break;case"upperFolder":this.searchKey="",this.browseFolder(e.pid,e.id);break;case"select":let t=this.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({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${e.name}.${e.ext} (${$A.bytesToSize(e.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${e.id}&down=yes`))}});break;case"downloadzip":this.downloadZipFile([e.id]);break;case"delete":this.deleteFile([e.id]);break}},onSendFile(){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(n=>n.type!="folder"&&n.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,n)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:e}}).then(({msg:l})=>{r(l),this.$store.dispatch("forgetFile",e),this.selectIds=this.selectIds.filter(d=>!e.includes(d))}).catch(({msg:l})=>{n(l)})})})},packPercentageParse(e){return parseInt(e,10)},packClear(){this.packList=this.packList.filter(e=>e.status!=="finished"),this.packShow=!1},async startPack(e){this.packList.push(Object.assign(e,{status:"packing",percentage:0})),this.uploadShow=!1,this.packShow=!0},updatePackProgress(){this.packList.forEach(e=>{const i=this.filePackLists.find(({name:t})=>t==e.name);if(i){if(typeof e.percentage=="number"&&e.percentage>=100)return;e.percentage=Math.max(1,i.progress),e.percentage>=100&&(e.status="finished")}})},downloadZipFile(e){if(e.length===0)return;const i=this.fileLists.find(({id:r})=>r===e[0])||{},s=!e.some(r=>this.fileLists.some(({type:n,id:l})=>n!=="folder"&&l===r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=e.length===1?`\u3010${i.name}\u3011${s}`:`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;$A.modalConfirm({title:"\u6253\u5305\u4E0B\u8F7D",content:`\u4F60\u786E\u5B9A\u8981\u6253\u5305\u4E0B\u8F7D${a}\u5417\uFF1F`,okText:"\u786E\u5B9A",onOk:()=>{if(this.packList.find(({status:n})=>n==="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:n})=>{this.startPack(n)}).catch(({msg:n})=>{$A.modalError(n)})}})},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:n})=>{a.result=n.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}}},h={};var b=_(C,w,I,!1,S,null,null,null);function S(e){for(let i in h)this[i]=h[i]}var fe=function(){return b.exports}();export{fe as default}; +import{_ as u}from"./openpgp_hi.15f91b1d.js";import{m as f}from"./vuex.cc7cb26e.js";import{l as m}from"./lodash.63d8be61.js";import{D as v}from"./index.e6513292.js";import{l as g}from"./longpress.5305f240.js";import{U as $,n as _}from"./app.879f8ead.js";import{U as k}from"./tip.434a62e4.js";import"./@babel.49d8906a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var w=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)]),e.selectIds.length>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)]):e._e(),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")))]),e.selectIds.length>1?t("DropdownItem",{attrs:{name:"downloadzip",disabled:e.contextMenuItem.userid!=e.userId&&e.contextMenuItem.permission==0}},[e._v(e._s(e.$L("\u6253\u5305\u4E0B\u8F7D")))]):e._e(),t("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[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("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)},I=[];const L=()=>u(()=>import("./FilePreview.1e9ff7fd.js"),["js/build/FilePreview.1e9ff7fd.js","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),x=()=>u(()=>import("./FileContent.8003b48c.js"),["js/build/FileContent.8003b48c.js","js/build/FileContent.6459ca29.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/IFrame.aae7507a.js"]),o={sort:null,mode:null,shared:null},C={components:{UserAvatarTip:k,UserSelect:$,FilePreview:L,DrawerOverlay:v,FileContent:x},directives:{longpress:g},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},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":l=>{const d=this.fileLists.find(({id:c})=>c==i.id);d&&setTimeout(()=>{this.setEdit(d.id,l)},100)},"on-update":(l,d)=>{const c=this.fileLists.find(({id:p})=>p==i.id);c&&c._edit===!0&&(c.newname=l,this.onEnter(c)),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":"",n=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}${n}`},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(l=>t&&l.userid!=r&&l.created_id!=r?!1:i?l.name.indexOf(i)!==-1:l.pid==s),l=>(l.type=="folder"?"a":"b")+l.name)).map(l=>(l._checked=a.includes(l.id),l))},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))},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;return}if(this.fid<=0){this.fileShow=!1;return}const e=this.fileList.find(({id:i})=>i===this.fid);if(!e){this.fileShow=!1;return}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(e);return}this.fileInfo=e,this.fileShow=!0},openFileSingle(e){const i=`/single/file/${e.id}`;this.$Electron?this.$store.dispatch("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;if(e.type=="folder"){this.browseFolder(e.id);return}if(e.image_url){const s=this.fileList.filter(({image_url:a})=>!!a);if(s.length>0){const a=s.findIndex(({id:n})=>e.id===n),r=s.map(n=>n.image_width?{src:n.image_url,width:n.image_width,height:n.image_height}:n.image_url);this.$store.dispatch("previewImage",{index:a,list:r});return}}this.browseFile(e.id);break;case"upperFolder":this.searchKey="",this.browseFolder(e.pid,e.id);break;case"select":let t=this.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({language:!1,title:this.$L("\u4E0B\u8F7D\u6587\u4EF6"),okText:this.$L("\u7ACB\u5373\u4E0B\u8F7D"),content:`${e.name}.${e.ext} (${$A.bytesToSize(e.size)})`,onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${e.id}&down=yes`))}});break;case"downloadzip":this.downloadZipFile([e.id]);break;case"delete":this.deleteFile([e.id]);break}},onSendFile(){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(n=>n.type!="folder"&&n.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,n)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:e}}).then(({msg:l})=>{r(l),this.$store.dispatch("forgetFile",e),this.selectIds=this.selectIds.filter(d=>!e.includes(d))}).catch(({msg:l})=>{n(l)})})})},packPercentageParse(e){return parseInt(e,10)},packClear(){this.packList=this.packList.filter(e=>e.status!=="finished"),this.packShow=!1},async startPack(e){this.packList.push(Object.assign(e,{status:"packing",percentage:0})),this.uploadShow=!1,this.packShow=!0},updatePackProgress(){this.packList.forEach(e=>{const i=this.filePackLists.find(({name:t})=>t==e.name);if(i){if(typeof e.percentage=="number"&&e.percentage>=100)return;e.percentage=Math.max(1,i.progress),e.percentage>=100&&(e.status="finished")}})},downloadZipFile(e){if(e.length===0)return;const i=this.fileLists.find(({id:r})=>r===e[0])||{},s=!e.some(r=>this.fileLists.some(({type:n,id:l})=>n!=="folder"&&l===r))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",a=e.length===1?`\u3010${i.name}\u3011${s}`:`\u3010${i.name}\u3011\u7B49${e.length}\u4E2A${s}`;$A.modalConfirm({title:"\u6253\u5305\u4E0B\u8F7D",content:`\u4F60\u786E\u5B9A\u8981\u6253\u5305\u4E0B\u8F7D${a}\u5417\uFF1F`,okText:"\u786E\u5B9A",onOk:()=>{if(this.packList.find(({status:n})=>n==="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:n})=>{this.startPack(n)}).catch(({msg:n})=>{$A.modalError(n)})}})},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:n})=>{a.result=n.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}}},h={};var b=_(C,w,I,!1,S,null,null,null);function S(e){for(let i in h)this[i]=h[i]}var fe=function(){return b.exports}();export{fe as default}; diff --git a/public/js/build/file.b4eaa610.js b/public/js/build/file.e506d17e.js similarity index 86% rename from public/js/build/file.b4eaa610.js rename to public/js/build/file.e506d17e.js index 687fd1881..99260d29a 100644 --- a/public/js/build/file.b4eaa610.js +++ b/public/js/build/file.e506d17e.js @@ -1 +1 @@ -import n from"./FileContent.35e44d8b.js";import l from"./FilePreview.1f20c4b0.js";import{n as s}from"./app.d8851986.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./IFrame.7f63db7a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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}; +import n from"./FileContent.8003b48c.js";import l from"./FilePreview.1e9ff7fd.js";import{n as s}from"./app.879f8ead.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./IFrame.aae7507a.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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/fileMsg.4fc63b7c.js b/public/js/build/fileMsg.5715099d.js similarity index 76% rename from public/js/build/fileMsg.4fc63b7c.js rename to public/js/build/fileMsg.5715099d.js index 7b1041b3e..7a5690efd 100644 --- a/public/js/build/fileMsg.4fc63b7c.js +++ b/public/js/build/fileMsg.5715099d.js @@ -1 +1 @@ -import{_ as o}from"./openpgp_hi.15f91b1d.js";import{m as n}from"./vuex.cc7cb26e.js";import{I as a}from"./IFrame.7f63db7a.js";import{n as m}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(r){t.$set(t.msgDetail,"content",r)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.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.74e7b5c4.js"),["js/build/preview.74e7b5c4.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.8a7b6b4c.js"),["js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.52758ba6.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./AceEditor.b43f1f26.js"),["js/build/AceEditor.b43f1f26.js","js/build/vuex.cc7cb26e.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./OnlyOffice.27bc47d9.js"),["js/build/OnlyOffice.27bc47d9.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>o(()=>import("./Drawio.c7f7ca00.js"),["js/build/Drawio.c7f7ca00.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./Minder.9eb9a4e8.js"),["js/build/Minder.9eb9a4e8.js","js/build/Minder.1839e1ef.css","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:a,AceEditor:_,TEditor:p,VMPreview: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.dayjs(e.update_at).unix()}`)}).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}; +import{_ as o}from"./openpgp_hi.15f91b1d.js";import{m as n}from"./vuex.cc7cb26e.js";import{I as a}from"./IFrame.aae7507a.js";import{n as m}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var l=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(r){t.$set(t.msgDetail,"content",r)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.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.8cce7ada.js"),["js/build/preview.8cce7ada.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.dfcd2131.js"),["js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.cc22c426.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./AceEditor.a7748af5.js"),["js/build/AceEditor.a7748af5.js","js/build/vuex.cc7cb26e.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./OnlyOffice.6f62b626.js"),["js/build/OnlyOffice.6f62b626.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),g=()=>o(()=>import("./Drawio.69ced14f.js"),["js/build/Drawio.69ced14f.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./Minder.2fb84ce4.js"),["js/build/Minder.2fb84ce4.js","js/build/Minder.1839e1ef.css","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:a,AceEditor:_,TEditor:p,VMPreview: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.dayjs(e.update_at).unix()}`)}).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.d07363e5.js b/public/js/build/fileTask.333ab18e.js similarity index 76% rename from public/js/build/fileTask.d07363e5.js rename to public/js/build/fileTask.333ab18e.js index 3dac6ff66..4b5b42c4d 100644 --- a/public/js/build/fileTask.d07363e5.js +++ b/public/js/build/fileTask.333ab18e.js @@ -1 +1 @@ -import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as l}from"./IFrame.7f63db7a.js";import{n as a}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-task"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.fileDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.fileDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.fileDetail.name,readOnly:""},model:{value:t.fileDetail.content,callback:function(r){t.$set(t.fileDetail,"content",r)},expression:"fileDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.fileDetail.content,readOnly:""}}):t.isType("code")?e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.fileDetail.ext,readOnly:""},model:{value:t.fileDetail.content.content,callback:function(r){t.$set(t.fileDetail.content,"content",r)},expression:"fileDetail.content.content"}}):t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const m=()=>o(()=>import("./preview.74e7b5c4.js"),["js/build/preview.74e7b5c4.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.8a7b6b4c.js"),["js/build/TEditor.8a7b6b4c.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.52758ba6.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./AceEditor.b43f1f26.js"),["js/build/AceEditor.b43f1f26.js","js/build/vuex.cc7cb26e.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./OnlyOffice.27bc47d9.js"),["js/build/OnlyOffice.27bc47d9.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Drawio.c7f7ca00.js"),["js/build/Drawio.c7f7ca00.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Minder.9eb9a4e8.js"),["js/build/Minder.9eb9a4e8.js","js/build/Minder.1839e1ef.css","js/build/IFrame.7f63db7a.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/@babel.49d8906a.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:l,AceEditor:d,TEditor:p,VMPreview: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.dayjs(e.update_at).unix()}`)}).catch(e=>{i(e)})})}}},n={};var h=a(v,s,c,!1,y,null,null,null);function y(t){for(let i in n)this[i]=n[i]}var it=function(){return h.exports}();export{it as default}; +import{_ as o}from"./openpgp_hi.15f91b1d.js";import{I as l}from"./IFrame.aae7507a.js";import{n as a}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-task"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("VMPreview",{attrs:{value:t.fileDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.fileDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.fileDetail.name,readOnly:""},model:{value:t.fileDetail.content,callback:function(r){t.$set(t.fileDetail,"content",r)},expression:"fileDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.fileDetail.content,readOnly:""}}):t.isType("code")?e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.fileDetail.ext,readOnly:""},model:{value:t.fileDetail.content.content,callback:function(r){t.$set(t.fileDetail.content,"content",r)},expression:"fileDetail.content.content"}}):t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(r){t.officeContent=r},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const m=()=>o(()=>import("./preview.8cce7ada.js"),["js/build/preview.8cce7ada.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.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.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),p=()=>o(()=>import("./TEditor.dfcd2131.js"),["js/build/TEditor.dfcd2131.js","js/build/tinymce.46b8e261.js","js/build/@babel.49d8906a.js","js/build/ImgUpload.cc22c426.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),d=()=>o(()=>import("./AceEditor.a7748af5.js"),["js/build/AceEditor.a7748af5.js","js/build/vuex.cc7cb26e.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),f=()=>o(()=>import("./OnlyOffice.6f62b626.js"),["js/build/OnlyOffice.6f62b626.js","js/build/OnlyOffice.5570973b.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),_=()=>o(()=>import("./Drawio.69ced14f.js"),["js/build/Drawio.69ced14f.js","js/build/Drawio.6a04e353.css","js/build/vuex.cc7cb26e.js","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),u=()=>o(()=>import("./Minder.2fb84ce4.js"),["js/build/Minder.2fb84ce4.js","js/build/Minder.1839e1ef.css","js/build/IFrame.aae7507a.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/@babel.49d8906a.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vue.c448ed56.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),v={components:{IFrame:l,AceEditor:d,TEditor:p,VMPreview: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.dayjs(e.update_at).unix()}`)}).catch(e=>{i(e)})})}}},n={};var h=a(v,s,c,!1,y,null,null,null);function y(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/index.a335cdfc.js b/public/js/build/index.0466af7c.js similarity index 96% rename from public/js/build/index.a335cdfc.js rename to public/js/build/index.0466af7c.js index c5d14b311..2d2c7bf5f 100644 --- a/public/js/build/index.a335cdfc.js +++ b/public/js/build/index.0466af7c.js @@ -1 +1 @@ -import{m as l}from"./vuex.cc7cb26e.js";import{l as m}from"./le5le-store.b40f9152.js";import{a as p}from"./axios.6ec123f8.js";import{n as r}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-nav-box"},[t._t("left",function(){return[e("div",{staticClass:"nav-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])])]}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.title))]),t._t("right")],2)},u=[];const h={name:"MobileNavTitle",props:{title:{default:""},beforeBack:{type:Function}},methods:{onBack(){if(typeof this.beforeBack=="function"){const t=this.beforeBack();t&&t.then&&t.then(()=>{this.goBack()});return}this.goBack()}}},n={};var d=r(h,c,u,!1,v,"305e6ddf",null,null);function v(t){for(let i in n)this[i]=n[i]}var _=function(){return d.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,o){return e("li",{key:o,class:t.classNameRoute(s.path,s.divided),on:{click:function(b){return t.toggleRoute(s.path)}}},[s.path==="version"?[e("AutoTip",{attrs:{disabled:""}},[t._v(t._s(t.$L(s.name)))]),t.clientNewVersion?e("Badge",{attrs:{text:t.clientNewVersion}}):t._e()]:s.path==="version-show"?[e("AutoTip",[t._v(t._s(t.$L(s.name))+": "+t._s(t.version))])]:e("span",[t._v(t._s(t.$L(s.name)))])],2)}),0)],1),e("transition",{attrs:{name:t.$isEEUiApp?"mobile-dialog":"none"}},[t.showContent?e("div",{staticClass:"setting-content"},[e("MobileNavTitle",{attrs:{title:t.settingTitleName}}),e("div",{staticClass:"setting-content-title"},[t._v(t._s(t.titleNameRoute))]),e("div",{staticClass:"setting-content-view"},[e("router-view",{staticClass:"setting-router-view"})],1)],1):t._e()])],1)],1)},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:"version",name:"\u66F4\u65B0\u65E5\u5FD7",divided:!0},{path:"version-show",name:"\u7248\u672C"},{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-show":this.onVersion();break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:if(t==="version"&&!!this.clientNewVersion){m.Store.set("updateNotification",null);return}this.goForward({name:"manage-setting-"+t});break}},openPrivacy(){const t=$A.apiUrl("privacy");this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}}):window.open(t)},classNameRoute(t,i){return{flex:!0,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}p.get($A.apiUrl("system/version")).then(({status:i,data:e})=>{i===200&&t(e.version)}).catch(i=>{})})}}},a={};var w=r($,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 p}from"./axios.6ec123f8.js";import{n as r}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"mobile-nav-box"},[t._t("left",function(){return[e("div",{staticClass:"nav-back",on:{click:t.onBack}},[e("i",{staticClass:"taskfont"},[t._v("\uE676")])])]}),e("div",{staticClass:"nav-title"},[t._v(t._s(t.title))]),t._t("right")],2)},u=[];const h={name:"MobileNavTitle",props:{title:{default:""},beforeBack:{type:Function}},methods:{onBack(){if(typeof this.beforeBack=="function"){const t=this.beforeBack();t&&t.then&&t.then(()=>{this.goBack()});return}this.goBack()}}},n={};var d=r(h,c,u,!1,v,"305e6ddf",null,null);function v(t){for(let i in n)this[i]=n[i]}var _=function(){return d.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,o){return e("li",{key:o,class:t.classNameRoute(s.path,s.divided),on:{click:function(b){return t.toggleRoute(s.path)}}},[s.path==="version"?[e("AutoTip",{attrs:{disabled:""}},[t._v(t._s(t.$L(s.name)))]),t.clientNewVersion?e("Badge",{attrs:{text:t.clientNewVersion}}):t._e()]:s.path==="version-show"?[e("AutoTip",[t._v(t._s(t.$L(s.name))+": "+t._s(t.version))])]:e("span",[t._v(t._s(t.$L(s.name)))])],2)}),0)],1),e("transition",{attrs:{name:t.$isEEUiApp?"mobile-dialog":"none"}},[t.showContent?e("div",{staticClass:"setting-content"},[e("MobileNavTitle",{attrs:{title:t.settingTitleName}}),e("div",{staticClass:"setting-content-title"},[t._v(t._s(t.titleNameRoute))]),e("div",{staticClass:"setting-content-view"},[e("router-view",{staticClass:"setting-router-view"})],1)],1):t._e()])],1)],1)},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:"version",name:"\u66F4\u65B0\u65E5\u5FD7",divided:!0},{path:"version-show",name:"\u7248\u672C"},{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-show":this.onVersion();break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:if(t==="version"&&!!this.clientNewVersion){m.Store.set("updateNotification",null);return}this.goForward({name:"manage-setting-"+t});break}},openPrivacy(){const t=$A.apiUrl("privacy");this.$isEEUiApp?this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}}):window.open(t)},classNameRoute(t,i){return{flex:!0,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}p.get($A.apiUrl("system/version")).then(({status:i,data:e})=>{i===200&&t(e.version)}).catch(i=>{})})}}},a={};var w=r($,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/index.64428982.js b/public/js/build/index.12cb3aa3.js similarity index 78% rename from public/js/build/index.64428982.js rename to public/js/build/index.12cb3aa3.js index 22fd4a73d..c5df0993d 100644 --- a/public/js/build/index.64428982.js +++ b/public/js/build/index.12cb3aa3.js @@ -1 +1 @@ -import{_ as n}from"./openpgp_hi.15f91b1d.js";import{e as m}from"./index.40a8e116.js";import{n as p}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,o=t.$createElement,i=t._self._c||o;return t.ready?i("VEditor",{attrs:{leftToolbar:t.leftToolbar,rightToolbar:t.rightToolbar,tocNavPositionRight:t.tocNavPositionRight,includeLevel:t.includeLevel},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}):i("Loading")},s=[];const l={name:"VMEditor",mixins:[m],components:{VEditor:()=>n(()=>import("./editor.d5ddd8a7.js"),["js/build/editor.d5ddd8a7.js","js/build/editor.7850ceb2.css","js/build/@kangc.0e27bf4b.js","js/build/@kangc.d8464d83.css","js/build/@babel.49d8906a.js","js/build/vue.c448ed56.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.e9e594e5.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/codemirror.b84e0a0e.js","js/build/codemirror.9ace6687.css","js/build/index.40a8e116.js","js/build/ImgUpload.52758ba6.js"])},data(){return{ready:!1,content:""}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0},watch:{value:{handler(t){t==null&&(t=""),this.content=t},immediate:!0},content(t){this.$emit("input",t)}}},r={};var c=p(l,a,s,!1,_,null,null,null);function _(t){for(let o in r)this[o]=r[o]}var W=function(){return c.exports}();export{W as default}; +import{_ as n}from"./openpgp_hi.15f91b1d.js";import{e as m}from"./index.40a8e116.js";import{n as p}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,o=t.$createElement,i=t._self._c||o;return t.ready?i("VEditor",{attrs:{leftToolbar:t.leftToolbar,rightToolbar:t.rightToolbar,tocNavPositionRight:t.tocNavPositionRight,includeLevel:t.includeLevel},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}):i("Loading")},s=[];const l={name:"VMEditor",mixins:[m],components:{VEditor:()=>n(()=>import("./editor.85bb3838.js"),["js/build/editor.85bb3838.js","js/build/editor.7850ceb2.css","js/build/@kangc.0e27bf4b.js","js/build/@kangc.d8464d83.css","js/build/@babel.49d8906a.js","js/build/vue.c448ed56.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.e9e594e5.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/codemirror.b84e0a0e.js","js/build/codemirror.9ace6687.css","js/build/index.40a8e116.js","js/build/ImgUpload.cc22c426.js"])},data(){return{ready:!1,content:""}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0},watch:{value:{handler(t){t==null&&(t=""),this.content=t},immediate:!0},content(t){this.$emit("input",t)}}},r={};var c=p(l,a,s,!1,_,null,null,null);function _(t){for(let o in r)this[o]=r[o]}var W=function(){return c.exports}();export{W as default}; diff --git a/public/js/build/index.dca7e577.js b/public/js/build/index.897b0294.js similarity index 98% rename from public/js/build/index.dca7e577.js rename to public/js/build/index.897b0294.js index 34d481c55..f39958803 100644 --- a/public/js/build/index.dca7e577.js +++ b/public/js/build/index.897b0294.js @@ -1 +1 @@ -import{n as r,d as h,l as v}from"./app.d8851986.js";import{l as u,A as m}from"./details.2a18916c.js";import{D as c}from"./index.4892e747.js";import{I as f}from"./ImgUpload.52758ba6.js";import{m as _}from"./vuex.cc7cb26e.js";import{l as g}from"./le5le-store.b40f9152.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var y=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)+" ")])])])},L=[];const w={name:"list",props:{data:{type:Object,default(){return{}}}},data(){return{}}},l={};var $=r(w,y,L,!1,T,null,null,null);function T(t){for(let i in l)this[i]=l[i]}var S=function(){return $.exports}(),k=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)},b=[];const x={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 C=r(x,k,b,!1,I,"8a6d83be",null,null);function I(t){for(let i in d)this[i]=d[i]}var D=function(){return C.exports}(),P=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(t.$L(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)},A=[];const N={components:{list:S,listDetails:u,DrawerOverlay:c,ImgUpload:f,ApproveSetting:D,ApproveExport:m},name:"approve",data(){return{showType:1,exportApproveShow:!1,isShowIcon:!1,modalTransferIndex:window.modalTransferIndex,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","formOptions"]),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=$A.daytz().format("YYYY-MM-DD"),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:this.$L(e.name)})),this.approvalList.unshift({value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")}),t()}).catch(({msg:a})=>{$A.modalError(a),i()})})},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){g.Store.set("approveDetails",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 O=r(N,P,A,!1,M,null,null,null);function M(t){for(let i in p)this[i]=p[i]}var wt=function(){return O.exports}();export{wt as default}; +import{n as r,d as h,l as v}from"./app.879f8ead.js";import{l as u,A as m}from"./details.9590a689.js";import{D as c}from"./index.e6513292.js";import{I as f}from"./ImgUpload.cc22c426.js";import{m as _}from"./vuex.cc7cb26e.js";import{l as g}from"./le5le-store.b40f9152.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var y=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)+" ")])])])},L=[];const w={name:"list",props:{data:{type:Object,default(){return{}}}},data(){return{}}},l={};var $=r(w,y,L,!1,T,null,null,null);function T(t){for(let i in l)this[i]=l[i]}var S=function(){return $.exports}(),k=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)},b=[];const x={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 C=r(x,k,b,!1,I,"8a6d83be",null,null);function I(t){for(let i in d)this[i]=d[i]}var D=function(){return C.exports}(),P=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(t.$L(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)},A=[];const N={components:{list:S,listDetails:u,DrawerOverlay:c,ImgUpload:f,ApproveSetting:D,ApproveExport:m},name:"approve",data(){return{showType:1,exportApproveShow:!1,isShowIcon:!1,modalTransferIndex:window.modalTransferIndex,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","formOptions"]),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=$A.daytz().format("YYYY-MM-DD"),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:this.$L(e.name)})),this.approvalList.unshift({value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")}),t()}).catch(({msg:a})=>{$A.modalError(a),i()})})},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){g.Store.set("approveDetails",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 O=r(N,P,A,!1,M,null,null,null);function M(t){for(let i in p)this[i]=p[i]}var wt=function(){return O.exports}();export{wt as default}; diff --git a/public/js/build/index.85658b60.js b/public/js/build/index.b3e6cf03.js similarity index 89% rename from public/js/build/index.85658b60.js rename to public/js/build/index.b3e6cf03.js index ff47872ab..f7c561c94 100644 --- a/public/js/build/index.85658b60.js +++ b/public/js/build/index.b3e6cf03.js @@ -1 +1 @@ -import{n,l as o}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.4892e747.js b/public/js/build/index.e6513292.js similarity index 98% rename from public/js/build/index.4892e747.js rename to public/js/build/index.e6513292.js index a2810ca0e..154945784 100644 --- a/public/js/build/index.4892e747.js +++ b/public/js/build/index.e6513292.js @@ -1 +1 @@ -import{n}from"./app.d8851986.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.879f8ead.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/jquery.a7761dd9.js b/public/js/build/jquery.8b0d6caa.js similarity index 100% rename from public/js/build/jquery.a7761dd9.js rename to public/js/build/jquery.8b0d6caa.js diff --git a/public/js/build/keyboard.03852454.js b/public/js/build/keyboard.780c3ff4.js similarity index 95% rename from public/js/build/keyboard.03852454.js rename to public/js/build/keyboard.780c3ff4.js index 5142a54f3..da547cde3 100644 --- a/public/js/build/keyboard.03852454.js +++ b/public/js/build/keyboard.780c3ff4.js @@ -1 +1 @@ -import{n as i}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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}; +import{n as i}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.8a3413b9.js b/public/js/build/language.7a53dc5c.js similarity index 90% rename from public/js/build/language.8a3413b9.js rename to public/js/build/language.7a53dc5c.js index 233a79044..9c8b373a9 100644 --- a/public/js/build/language.8a3413b9.js +++ b/public/js/build/language.7a53dc5c.js @@ -1 +1 @@ -import{a as m,l as n,e as s,n as l}from"./app.d8851986.js";import{m as p}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var u=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[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(r){t.$set(t.formData,"language",r)},expression:"formData.language"}},t._l(t.languageList,function(r,i){return a("Option",{key:i,attrs:{value:i}},[t._v(t._s(r))])}),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(["formOptions"])},methods:{initData(){this.$set(this.formData,"language",n),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&s(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},e={};var c=l(g,u,f,!1,_,null,null,null);function _(t){for(let o in e)this[o]=e[o]}var Y=function(){return c.exports}();export{Y as default}; +import{a as m,l as n,e as s,n as l}from"./app.879f8ead.js";import{m as p}from"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var u=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[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(r){t.$set(t.formData,"language",r)},expression:"formData.language"}},t._l(t.languageList,function(r,i){return a("Option",{key:i,attrs:{value:i}},[t._v(t._s(r))])}),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(["formOptions"])},methods:{initData(){this.$set(this.formData,"language",n),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&s(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},e={};var c=l(g,u,f,!1,_,null,null,null);function _(t){for(let o in e)this[o]=e[o]}var Y=function(){return c.exports}();export{Y as default}; diff --git a/public/js/build/license.a4049017.js b/public/js/build/license.8aaddb7c.js similarity index 94% rename from public/js/build/license.a4049017.js rename to public/js/build/license.8aaddb7c.js index c317008ec..9438658f3 100644 --- a/public/js/build/license.a4049017.js +++ b/public/js/build/license.8aaddb7c.js @@ -1 +1 @@ -import{m as e}from"./vuex.cc7cb26e.js";import{n}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formData",attrs:{model:t.formData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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","formOptions"])},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,"7f642cfc",null,null);function p(i){for(let t in r)this[t]=r[t]}var V=function(){return c.exports}();export{V as default}; +import{m as e}from"./vuex.cc7cb26e.js";import{n}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formData",attrs:{model:t.formData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[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","formOptions"])},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,"7f642cfc",null,null);function p(i){for(let t in r)this[t]=r[t]}var V=function(){return c.exports}();export{V as default}; diff --git a/public/js/build/localforage.81c5d73d.js b/public/js/build/localforage.ec5c12b8.js similarity index 100% rename from public/js/build/localforage.81c5d73d.js rename to public/js/build/localforage.ec5c12b8.js diff --git a/public/js/build/login.08e928ee.js b/public/js/build/login.08e928ee.js deleted file mode 100644 index 54c3fb563..000000000 --- a/public/js/build/login.08e928ee.js +++ /dev/null @@ -1 +0,0 @@ -import{m as c}from"./vuex.cc7cb26e.js";import{l as d}from"./le5le-store.b40f9152.js";import{a,l as n,e as h,n as p}from"./app.d8851986.js";import{i as g}from"./@chenfengyuan.dfd1ecb7.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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/login.65762120.js b/public/js/build/login.65762120.js new file mode 100644 index 000000000..c4a5e8e34 --- /dev/null +++ b/public/js/build/login.65762120.js @@ -0,0 +1 @@ +import{m as c}from"./vuex.cc7cb26e.js";import{l as d}from"./le5le-store.b40f9152.js";import{a,l as n,e as h,n as p}from"./app.879f8ead.js";import{i as g}from"./@chenfengyuan.dfd1ecb7.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.fc78f152.js b/public/js/build/manage.3363eb6c.js similarity index 98% rename from public/js/build/manage.fc78f152.js rename to public/js/build/manage.3363eb6c.js index 594640551..1c364a615 100644 --- a/public/js/build/manage.fc78f152.js +++ b/public/js/build/manage.3363eb6c.js @@ -1 +1 @@ -import{m as c,a as m}from"./vuex.cc7cb26e.js";import{n,N as A,U as f}from"./app.d8851986.js";import{C as M,R as j,T as P}from"./CheckinExport.1b4423b3.js";import{D as N}from"./index.4892e747.js";import{l}from"./le5le-store.b40f9152.js";import{T as R,a as B,b as E}from"./TaskDetail.75c13dec.js";import{m as _}from"./@micro-zoe.c2e1472d.js";import{M as O}from"./MeetingManager.4530bc3f.js";import{l as U}from"./longpress.5305f240.js";import{D as z}from"./DialogWrapper.86de099a.js";import{l as F,A as G}from"./details.2a18916c.js";import{M as V}from"./MicroApps.bd23f92f.js";import{n as Y}from"./notification-koro1.99b93615.js";import"./markdown-it.f48c10fc.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import{I as K}from"./ImgUpload.52758ba6.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./highlight.js.24fdca15.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./tip.7b94707c.js";import"./ReportEdit.22763e0c.js";import"./ReportDetail.1ea08cae.js";import"./ProjectLog.d652e5c8.js";import"./TEditor.8a7b6b4c.js";import"./tinymce.46b8e261.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";var H=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)])},W=[];const J={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--})}}},$={};var X=n(J,H,W,!1,q,null,null,null);function q(t){for(let a in $)this[a]=$[a]}var Q=function(){return X.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:A},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:{...c(["cacheDialogs","reportUnreadNumber","approveUnreadNumber"]),...m(["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"&&l.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)}}},k={};var lt=n(nt,ot,rt,!1,ct,null,null,null);function ct(t){for(let a in k)this[a]=k[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||t.taskTimeOpen?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)],1),t.advanced?e("Form",t._b({staticClass:"task-add-advanced",nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"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.timeTitle(s.times)}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"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:{onContinue:function(s){return t.onAdd(t.again,!0)}}})],1)},ut=[];const pt={name:"TaskAdd",components:{TEditorTask:R,UserSelect:f,TaskExistTips:B},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],assist:[],project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},addDefault:{},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[],again:!1}},created(){this.addDefault=$A.cloneJSON(this.addData)},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:{...c(["cacheProjects","projectId","cacheColumns","taskPriority","formOptions"]),taskDays(){const{times:t}=this.addData,a=$A.newDateString(t,"YYYY-MM-DD HH:mm");if(a[0]&&a[1]){const e=Math.ceil($A.dayjs(a[1]).diff(a[0],"day",!0));if(e>0)return e}return 0}},watch:{"addData.owner"(t,a){JSON.stringify(t)!==JSON.stringify(a)&&(this.addData.assist=this.addData.assist.filter(e=>t.indexOf(e)===-1),this.addData.assist.length===0&&t.indexOf(this.userId)===-1&&(this.addData.assist=[this.userId]))},"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"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.dayjs(e.top_at)-$A.dayjs(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.newDateString(t.times,"YYYY-MM-DD HH:mm");/\s+(00:00|23:59)$/.test(a[0])&&/\s+(00:00|23:59)$/.test(a[1])&&this.$set(t,"times",await this.$store.dispatch("taskDefaultTime",a))},taskTimeOpenChange(t){this.taskTimeOpen=t},timeTitle(t){return t?$A.newDateString(t):null},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},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=$A.daytz(),e=$A.runNum(t.days);if(e>0){const s=a.clone().add(e,"day");this.$set(this.addData,"times",await this.$store.dispatch("taskDefaultTime",$A.newDateString([a,s])))}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},600).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=$A.cloneJSON(this.addDefault),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}}}},y={};var mt=n(pt,ht,ut,!1,ft,null,null,null);function ft(t){for(let a in y)this[a]=y[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:{...c(["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()})}}},w={};var bt=n($t,vt,_t,!1,kt,null,null,null);function kt(t){for(let a in w)this[a]=w[a]}var yt=function(){return bt.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 St={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())}}},D={};var Lt=n(St,wt,Dt,!1,xt,null,null,null);function xt(t){for(let a in D)this[a]=D[a]}var Ct=function(){return Lt.exports}(),Tt=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:{...c(["dialogId"]),visible(){return this.dialogId>0&&this.windowPortrait}},watch:{visible(t){$A.eeuiAppSetScrollEnabled(!t)}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},S={};var Mt=n(At,Tt,It,!1,jt,null,null,null);function jt(t){for(let a in S)this[a]=S[a]}var Pt=function(){return Mt.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:E},computed:{...c(["taskId"]),...m(["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}}},L={};var Et=n(Bt,Nt,Rt,!1,Ot,null,null,null);function Ot(t){for(let a in L)this[a]=L[a]}var Ut=function(){return Et.exports}(),zt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",t._b({ref:"exportTask",attrs:{model:t.formData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\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)},Ft=[];const Gt={name:"TaskExport",components:{UserSelect:f},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},computed:{...c(["formOptions"])},methods:{dateShortcuts(t){if(t==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(t==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(()=>{this.show=!1,$A.modalSuccess("\u6B63\u5728\u6253\u5305\uFF0C\u8BF7\u7559\u610F\u7CFB\u7EDF\u6D88\u606F\u3002")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},x={};var Vt=n(Gt,zt,Ft,!1,Yt,null,null,null);function Yt(t){for(let a in x)this[a]=x[a]}var Kt=function(){return Vt.exports}(),Ht=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7BA1\u7406"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.typeList,function(s,i){return e("Option",{key:i,attrs:{value:s.id}},[t._v(t._s(t.$L(s.label))+" ")])})],2)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u5F85\u5904\u7406")))]),e("Option",{attrs:{value:1}},[t._v(t._s(t.$L("\u5DF2\u5904\u7406")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("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)])},Wt=[];const Jt={name:"ComplaintManagement",data(){const t=[{id:10,label:"\u8BC8\u9A97\u8BF1\u5BFC\u8F6C\u8D26"},{id:20,label:"\u5F15\u6D41\u4E0B\u8F7D\u5176\u4ED6APP\u4ED8\u8D39"},{id:30,label:"\u6572\u8BC8\u52D2\u7D22"},{id:40,label:"\u7167\u7247\u4E0E\u672C\u4EBA\u4E0D\u4E00\u81F4"},{id:50,label:"\u8272\u60C5\u4F4E\u4FD7"},{id:60,label:"\u9891\u7E41\u5E7F\u544A\u9A9A\u6270"},{id:70,label:"\u5176\u4ED6\u95EE\u9898"}];return{loadIng:0,keys:{},keyIs:!1,typeList:t,columns:[{title:"ID",key:"id",width:80,render:(a,{row:e,column:s})=>a("TableAction",{props:{column:s,align:"left"}},[a("div",e.id)])},{title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),key:"type",minWidth:120,render:(a,{row:e})=>{const s=this.$L(t.find(i=>i.id==e.type).label);return a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),content:s})}}},s)}},{title:this.$L("\u72B6\u6001"),key:"status",minWidth:80,render:(a,{row:e})=>{let s=e.status==0?"\u672A\u5904\u7406":"\u5DF2\u5904\u7406";return a("div",{style:{color:e.status==0?"#f00":"inherit"}},[a("AutoTip",this.$L(s))])}},{title:this.$L("\u4E3E\u62A5\u539F\u56E0"),minWidth:150,render:(a,{row:e})=>a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u539F\u56E0"),content:e.reason})}}},e.reason)},{title:this.$L("\u4E3E\u62A5\u56FE"),minWidth:85,render:(a,{row:e})=>{var i;const s=(i=JSON.parse(e.imgs))==null?void 0:i.map(o=>({src:$A.apiUrl("../"+o)}));return s.length===0?a("div","-"):a("div",{style:{color:"#1890ff"},on:{click:()=>{this.$store.dispatch("previewImage",{index:0,list:s})}}},[a("AutoTip",this.$L("\u70B9\u51FB\u67E5\u770B"))])}},{title:this.$L("\u4E3E\u62A5\u4EBA"),minWidth:100,render:(a,{row:e})=>a("UserAvatar",{props:{showName:!0,size:22,userid:e.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(a,e)=>{const s=[e.row.status==0&&a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5904\u7406\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.handle(e.row)}}},this.$L("\u5904\u7406")),a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:e.row.status==0?"8px":"0",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return a("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.$store.dispatch("call",{url:"complaint/lists",data:{type:this.keys.type,status:this.keys.status,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},handle(t){this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"handle"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"delete"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},C={};var Xt=n(Jt,Ht,Wt,!1,qt,null,null,null);function qt(t){for(let a in C)this[a]=C[a]}var Qt=function(){return Xt.exports}(),Zt=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(p){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:"project"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE"))+" ("+t._s(t.mateName)+"+B)")]),e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"group"}},[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" ("+t._s(t.mateName)+"+U)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],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",t._b({ref:"addProject",attrs:{model:t.addData,rules:t.addRule},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("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("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(s){t.createGroupShow=s},expression:"createGroupShow"}},[e("Form",t._b({attrs:{model:t.createGroupData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut: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.submitCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],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.complaintShow,callback:function(s){t.complaintShow=s},expression:"complaintShow"}},[t.complaintShow?e("ComplaintManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("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(),e("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.approveDetailsShow,callback:function(s){t.approveDetailsShow=s},expression:"approveDetailsShow"}},[t.approveDetailsShow?e("ApproveDetails",{attrs:{data:t.approveDetails},on:{onBack:function(s){t.approveDetailsShow=!1}}}):t._e()],1)],1)},te=[];const ee={components:{ApproveDetails:F,ImgUpload:K,UserSelect:f,TaskExport:Kt,CheckinExport:M,ApproveExport:G,TaskModal:Ut,DialogModal:Pt,MeetingManager:O,MobileNotification:Ct,MobileBack:yt,MobileTabbar:dt,TaskAdd:gt,Report:j,DrawerOverlay:N,ProjectManagement:it,TeamManagement:P,ProjectArchived:Q,MicroApps:V,ComplaintManagement:Qt},directives:{longpress:U},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,createGroupShow:!1,createGroupData:{},createGroupLoad:0,createGroupSubscribe: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,complaintShow:!1,approveDetails:{id:0},approveDetailsShow:!1,approveDetailsSubscribe:null}},mounted(){this.notificationInit(),this.addTaskSubscribe=l.Store.subscribe("addTask",this.onAddTask),this.createGroupSubscribe=l.Store.subscribe("createGroup",this.onCreateGroup),this.dialogMsgSubscribe=l.Store.subscribe("dialogMsgPush",this.addDialogMsg),this.approveDetailsSubscribe=l.Store.subscribe("approveDetails",this.openApproveDetails),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.createGroupSubscribe&&(this.createGroupSubscribe.unsubscribe(),this.createGroupSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),this.approveDetailsSubscribe&&(this.approveDetailsSubscribe.unsubscribe(),this.approveDetailsSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...c(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber","approveUnreadNumber","okrWindow","formOptions"]),...m(["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},{path:"complaint",name:"\u4E3E\u62A5\u7BA1\u7406"}):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.dayjs(i.top_at)-$A.dayjs(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":l.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"complaint":this.complaintShow=!0;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"project":this.onAddShow();break;case"task":this.onAddTask(0);break;case"group":this.onCreateGroup([this.userId]);break;case"createMeeting":l.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":l.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 75:case 78:t.preventDefault(),this.onAddMenu("task");break;case 85:this.onCreateGroup([this.userId]);break;case 74:t.preventDefault(),this.onAddMenu("createMeeting");break;case 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)},onCreateGroup(t){$A.isArray(t)||(t=[]),this.createGroupData={userids:t,uncancelable:[this.userId]},this.createGroupShow=!0},submitCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:a})=>{$A.messageSuccess(a),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id),this.toggleRoute("messenger",{dialogAction:"dialog"})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},addDialogMsg(t){var v;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((v=$A.last(this.dialogIns))==null?void 0:v.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,userid:i}=t;if(i==this.userId)return;const o=$A.getMsgSimpleDesc(t);this.__notificationId=a;const p=r=>{if(s==="group"){let d=this.cacheUserBasic.find(u=>u.userid==i);d?h(`${r} (${d.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[i]},skipAuthError:!0}).then(({data:u})=>{d=u.find(I=>I.userid==i),d&&h(`${r} (${d.nickname})`)}).catch(u=>{h(r)})}else h(r)},h=r=>{this.__notificationId===a&&(this.__notificationId=null,this.$isEEUiApp?this.$refs.mobileNotification.open({userid:i,title:r,desc:o,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:o,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:o,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(r),this.notificationManage.userAgreed()))},g=this.cacheDialogs.find(r=>r.id==e);g?p(g.name):this.$store.dispatch("getDialogOne",e).then(({data:r})=>p(r.name)).catch(()=>{})},openApproveDetails(t){this.approveDetailsShow=!0,this.$nextTick(()=>{this.approveDetails={id:t}})},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"complaint":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)})}}},T={};var ae=n(ee,Zt,te,!1,se,null,null,null);function se(t){for(let a in T)this[a]=T[a]}var ua=function(){return ae.exports}();export{ua as default}; +import{m as c,a as m}from"./vuex.cc7cb26e.js";import{n,N as A,U as f}from"./app.879f8ead.js";import{C as M,R as j,T as P}from"./CheckinExport.9ac164be.js";import{D as N}from"./index.e6513292.js";import{l}from"./le5le-store.b40f9152.js";import{T as R,a as B,b as E}from"./TaskDetail.4cdae640.js";import{m as _}from"./@micro-zoe.c2e1472d.js";import{M as O}from"./MeetingManager.107c56ad.js";import{l as U}from"./longpress.5305f240.js";import{D as z}from"./DialogWrapper.df01caa2.js";import{l as F,A as G}from"./details.9590a689.js";import{M as V}from"./MicroApps.d5179821.js";import{n as Y}from"./notification-koro1.99b93615.js";import"./markdown-it.f48c10fc.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import{I as K}from"./ImgUpload.cc22c426.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./highlight.js.24fdca15.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./tip.434a62e4.js";import"./ReportEdit.8be7d715.js";import"./ReportDetail.b39ad266.js";import"./ProjectLog.12dff91b.js";import"./TEditor.dfcd2131.js";import"./tinymce.46b8e261.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";var H=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)])},W=[];const J={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--})}}},$={};var X=n(J,H,W,!1,q,null,null,null);function q(t){for(let a in $)this[a]=$[a]}var Q=function(){return X.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:A},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:{...c(["cacheDialogs","reportUnreadNumber","approveUnreadNumber"]),...m(["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"&&l.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)}}},k={};var lt=n(nt,ot,rt,!1,ct,null,null,null);function ct(t){for(let a in k)this[a]=k[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||t.taskTimeOpen?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)],1),t.advanced?e("Form",t._b({staticClass:"task-add-advanced",nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"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.timeTitle(s.times)}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"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:{onContinue:function(s){return t.onAdd(t.again,!0)}}})],1)},ut=[];const pt={name:"TaskAdd",components:{TEditorTask:R,UserSelect:f,TaskExistTips:B},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],assist:[],project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},addDefault:{},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[],again:!1}},created(){this.addDefault=$A.cloneJSON(this.addData)},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:{...c(["cacheProjects","projectId","cacheColumns","taskPriority","formOptions"]),taskDays(){const{times:t}=this.addData,a=$A.newDateString(t,"YYYY-MM-DD HH:mm");if(a[0]&&a[1]){const e=Math.ceil($A.dayjs(a[1]).diff(a[0],"day",!0));if(e>0)return e}return 0}},watch:{"addData.owner"(t,a){JSON.stringify(t)!==JSON.stringify(a)&&(this.addData.assist=this.addData.assist.filter(e=>t.indexOf(e)===-1),this.addData.assist.length===0&&t.indexOf(this.userId)===-1&&(this.addData.assist=[this.userId]))},"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"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.dayjs(e.top_at)-$A.dayjs(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.newDateString(t.times,"YYYY-MM-DD HH:mm");/\s+(00:00|23:59)$/.test(a[0])&&/\s+(00:00|23:59)$/.test(a[1])&&this.$set(t,"times",await this.$store.dispatch("taskDefaultTime",a))},taskTimeOpenChange(t){this.taskTimeOpen=t},timeTitle(t){return t?$A.newDateString(t):null},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},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=$A.daytz(),e=$A.runNum(t.days);if(e>0){const s=a.clone().add(e,"day");this.$set(this.addData,"times",await this.$store.dispatch("taskDefaultTime",$A.newDateString([a,s])))}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},600).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=$A.cloneJSON(this.addDefault),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}}}},y={};var mt=n(pt,ht,ut,!1,ft,null,null,null);function ft(t){for(let a in y)this[a]=y[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:{...c(["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()})}}},w={};var bt=n($t,vt,_t,!1,kt,null,null,null);function kt(t){for(let a in w)this[a]=w[a]}var yt=function(){return bt.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 St={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())}}},D={};var Lt=n(St,wt,Dt,!1,xt,null,null,null);function xt(t){for(let a in D)this[a]=D[a]}var Ct=function(){return Lt.exports}(),Tt=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:{...c(["dialogId"]),visible(){return this.dialogId>0&&this.windowPortrait}},watch:{visible(t){$A.eeuiAppSetScrollEnabled(!t)}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},S={};var Mt=n(At,Tt,It,!1,jt,null,null,null);function jt(t){for(let a in S)this[a]=S[a]}var Pt=function(){return Mt.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:E},computed:{...c(["taskId"]),...m(["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}}},L={};var Et=n(Bt,Nt,Rt,!1,Ot,null,null,null);function Ot(t){for(let a in L)this[a]=L[a]}var Ut=function(){return Et.exports}(),zt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",t._b({ref:"exportTask",attrs:{model:t.formData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\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)},Ft=[];const Gt={name:"TaskExport",components:{UserSelect:f},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},computed:{...c(["formOptions"])},methods:{dateShortcuts(t){if(t==="prev")return[$A.daytz().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),$A.daytz().subtract(1,"month").endOf("month").format("YYYY-MM-DD")];if(t==="this")return[$A.daytz().startOf("month").format("YYYY-MM-DD"),$A.daytz().endOf("month").format("YYYY-MM-DD")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(()=>{this.show=!1,$A.modalSuccess("\u6B63\u5728\u6253\u5305\uFF0C\u8BF7\u7559\u610F\u7CFB\u7EDF\u6D88\u606F\u3002")}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},x={};var Vt=n(Gt,zt,Ft,!1,Yt,null,null,null);function Yt(t){for(let a in x)this[a]=x[a]}var Kt=function(){return Vt.exports}(),Ht=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7BA1\u7406"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),t._l(t.typeList,function(s,i){return e("Option",{key:i,attrs:{value:s.id}},[t._v(t._s(t.$L(s.label))+" ")])})],2)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u4E3E\u62A5\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:" "}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u5F85\u5904\u7406")))]),e("Option",{attrs:{value:1}},[t._v(t._s(t.$L("\u5DF2\u5904\u7406")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("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)])},Wt=[];const Jt={name:"ComplaintManagement",data(){const t=[{id:10,label:"\u8BC8\u9A97\u8BF1\u5BFC\u8F6C\u8D26"},{id:20,label:"\u5F15\u6D41\u4E0B\u8F7D\u5176\u4ED6APP\u4ED8\u8D39"},{id:30,label:"\u6572\u8BC8\u52D2\u7D22"},{id:40,label:"\u7167\u7247\u4E0E\u672C\u4EBA\u4E0D\u4E00\u81F4"},{id:50,label:"\u8272\u60C5\u4F4E\u4FD7"},{id:60,label:"\u9891\u7E41\u5E7F\u544A\u9A9A\u6270"},{id:70,label:"\u5176\u4ED6\u95EE\u9898"}];return{loadIng:0,keys:{},keyIs:!1,typeList:t,columns:[{title:"ID",key:"id",width:80,render:(a,{row:e,column:s})=>a("TableAction",{props:{column:s,align:"left"}},[a("div",e.id)])},{title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),key:"type",minWidth:120,render:(a,{row:e})=>{const s=this.$L(t.find(i=>i.id==e.type).label);return a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u7C7B\u578B"),content:s})}}},s)}},{title:this.$L("\u72B6\u6001"),key:"status",minWidth:80,render:(a,{row:e})=>{let s=e.status==0?"\u672A\u5904\u7406":"\u5DF2\u5904\u7406";return a("div",{style:{color:e.status==0?"#f00":"inherit"}},[a("AutoTip",this.$L(s))])}},{title:this.$L("\u4E3E\u62A5\u539F\u56E0"),minWidth:150,render:(a,{row:e})=>a("div",{style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},on:{click:()=>{$A.modalInfo({language:!1,title:this.$L("\u4E3E\u62A5\u539F\u56E0"),content:e.reason})}}},e.reason)},{title:this.$L("\u4E3E\u62A5\u56FE"),minWidth:85,render:(a,{row:e})=>{var i;const s=(i=JSON.parse(e.imgs))==null?void 0:i.map(o=>({src:$A.apiUrl("../"+o)}));return s.length===0?a("div","-"):a("div",{style:{color:"#1890ff"},on:{click:()=>{this.$store.dispatch("previewImage",{index:0,list:s})}}},[a("AutoTip",this.$L("\u70B9\u51FB\u67E5\u770B"))])}},{title:this.$L("\u4E3E\u62A5\u4EBA"),minWidth:100,render:(a,{row:e})=>a("UserAvatar",{props:{showName:!0,size:22,userid:e.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(a,e)=>{const s=[e.row.status==0&&a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5904\u7406\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.handle(e.row)}}},this.$L("\u5904\u7406")),a("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:e.row.status==0?"8px":"0",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(e.row)}}},this.$L("\u5220\u9664"))];return a("TableAction",{props:{column:e.column}},s)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.$store.dispatch("call",{url:"complaint/lists",data:{type:this.keys.type,status:this.keys.status,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},handle(t){this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"handle"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"complaint/action",data:{id:t.id,type:"delete"}}).then(()=>{this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},C={};var Xt=n(Jt,Ht,Wt,!1,qt,null,null,null);function qt(t){for(let a in C)this[a]=C[a]}var Qt=function(){return Xt.exports}(),Zt=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(p){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:"project"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE"))+" ("+t._s(t.mateName)+"+B)")]),e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"group"}},[t._v(t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" ("+t._s(t.mateName)+"+U)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],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",t._b({ref:"addProject",attrs:{model:t.addData,rules:t.addRule},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("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("Modal",{attrs:{title:t.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:t.createGroupShow,callback:function(s){t.createGroupShow=s},expression:"createGroupShow"}},[e("Form",t._b({attrs:{model:t.createGroupData},nativeOn:{submit:function(s){s.preventDefault()}}},"Form",t.formOptions,!1),[e("FormItem",{attrs:{prop:"avatar",label:t.$L("\u7FA4\u5934\u50CF")}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut: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.submitCreateGroup}},[t._v(t._s(t.$L("\u521B\u5EFA")))])],1)],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.complaintShow,callback:function(s){t.complaintShow=s},expression:"complaintShow"}},[t.complaintShow?e("ComplaintManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("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(),e("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.approveDetailsShow,callback:function(s){t.approveDetailsShow=s},expression:"approveDetailsShow"}},[t.approveDetailsShow?e("ApproveDetails",{attrs:{data:t.approveDetails},on:{onBack:function(s){t.approveDetailsShow=!1}}}):t._e()],1)],1)},te=[];const ee={components:{ApproveDetails:F,ImgUpload:K,UserSelect:f,TaskExport:Kt,CheckinExport:M,ApproveExport:G,TaskModal:Ut,DialogModal:Pt,MeetingManager:O,MobileNotification:Ct,MobileBack:yt,MobileTabbar:dt,TaskAdd:gt,Report:j,DrawerOverlay:N,ProjectManagement:it,TeamManagement:P,ProjectArchived:Q,MicroApps:V,ComplaintManagement:Qt},directives:{longpress:U},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,createGroupShow:!1,createGroupData:{},createGroupLoad:0,createGroupSubscribe: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,complaintShow:!1,approveDetails:{id:0},approveDetailsShow:!1,approveDetailsSubscribe:null}},mounted(){this.notificationInit(),this.addTaskSubscribe=l.Store.subscribe("addTask",this.onAddTask),this.createGroupSubscribe=l.Store.subscribe("createGroup",this.onCreateGroup),this.dialogMsgSubscribe=l.Store.subscribe("dialogMsgPush",this.addDialogMsg),this.approveDetailsSubscribe=l.Store.subscribe("approveDetails",this.openApproveDetails),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.createGroupSubscribe&&(this.createGroupSubscribe.unsubscribe(),this.createGroupSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),this.approveDetailsSubscribe&&(this.approveDetailsSubscribe.unsubscribe(),this.approveDetailsSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...c(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber","approveUnreadNumber","okrWindow","formOptions"]),...m(["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},{path:"complaint",name:"\u4E3E\u62A5\u7BA1\u7406"}):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.dayjs(i.top_at)-$A.dayjs(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":l.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"complaint":this.complaintShow=!0;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"project":this.onAddShow();break;case"task":this.onAddTask(0);break;case"group":this.onCreateGroup([this.userId]);break;case"createMeeting":l.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":l.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 75:case 78:t.preventDefault(),this.onAddMenu("task");break;case 85:this.onCreateGroup([this.userId]);break;case 74:t.preventDefault(),this.onAddMenu("createMeeting");break;case 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)},onCreateGroup(t){$A.isArray(t)||(t=[]),this.createGroupData={userids:t,uncancelable:[this.userId]},this.createGroupShow=!0},submitCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:t,msg:a})=>{$A.messageSuccess(a),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",t),this.$store.dispatch("openDialog",t.id),this.toggleRoute("messenger",{dialogAction:"dialog"})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.createGroupLoad--})},addDialogMsg(t){var v;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((v=$A.last(this.dialogIns))==null?void 0:v.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,userid:i}=t;if(i==this.userId)return;const o=$A.getMsgSimpleDesc(t);this.__notificationId=a;const p=r=>{if(s==="group"){let d=this.cacheUserBasic.find(u=>u.userid==i);d?h(`${r} (${d.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[i]},skipAuthError:!0}).then(({data:u})=>{d=u.find(I=>I.userid==i),d&&h(`${r} (${d.nickname})`)}).catch(u=>{h(r)})}else h(r)},h=r=>{this.__notificationId===a&&(this.__notificationId=null,this.$isEEUiApp?this.$refs.mobileNotification.open({userid:i,title:r,desc:o,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:o,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:o,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(r),this.notificationManage.userAgreed()))},g=this.cacheDialogs.find(r=>r.id==e);g?p(g.name):this.$store.dispatch("getDialogOne",e).then(({data:r})=>p(r.name)).catch(()=>{})},openApproveDetails(t){this.approveDetailsShow=!0,this.$nextTick(()=>{this.approveDetails={id:t}})},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"complaint":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)})}}},T={};var ae=n(ee,Zt,te,!1,se,null,null,null);function se(t){for(let a in T)this[a]=T[a]}var ua=function(){return ae.exports}();export{ua as default}; 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.7dcf9ac9.js b/public/js/build/meeting.a6ab8619.js similarity index 81% rename from public/js/build/meeting.7dcf9ac9.js rename to public/js/build/meeting.a6ab8619.js index eb5259a78..a902b0c8a 100644 --- a/public/js/build/meeting.7dcf9ac9.js +++ b/public/js/build/meeting.a6ab8619.js @@ -1 +1 @@ -import{M as e}from"./MeetingManager.4530bc3f.js";import{n as m}from"./app.d8851986.js";import"./le5le-store.b40f9152.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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}; +import{M as e}from"./MeetingManager.107c56ad.js";import{n as m}from"./app.879f8ead.js";import"./le5le-store.b40f9152.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.69561392.js b/public/js/build/messenger.68ae7176.js similarity index 98% rename from public/js/build/messenger.69561392.js rename to public/js/build/messenger.68ae7176.js index 88e74fd62..04ab9fea4 100644 --- a/public/js/build/messenger.69561392.js +++ b/public/js/build/messenger.68ae7176.js @@ -1 +1 @@ -import{m as u}from"./vuex.cc7cb26e.js";import{D as p}from"./DialogWrapper.86de099a.js";import{l as g}from"./longpress.5305f240.js";import{l}from"./le5le-store.b40f9152.js";import{n as m}from"./app.d8851986.js";import"./index.4892e747.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./@babel.49d8906a.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue.c448ed56.js";import"./view-design-hi.563cfadb.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.52758ba6.js";import"./tip.7b94707c.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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:"nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),e("div",{ref:"navList",staticClass:"nav-list"},t._l(t.dialogHistorys,function(s,a){return e("div",{key:a,staticClass:"nav-item",class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),0)],1):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{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.handleDialogLongpress,expression:"handleDialogLongpress"}],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.timeFormat(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",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleUserLongpress,expression:"handleUserLongpress"}],key:o,class:t.userClass(a),attrs:{"data-id":a.userid},on:{click:function(r){return t.openContacts(a)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:t.contactAvatarSize}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},t._l(a.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230"+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"},[t.operateType==="dialog"?[e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("top")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.top_at?"":"")}})])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("read")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.$A.getDialogUnread(t.operateItem,!0)>0?"":"")}})])]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleDialogClick("silence")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.silence?"":"")}})])]),e("DropdownItem",{attrs:{disabled:!!t.operateItem.top_at},nativeOn:{click:function(s){return t.handleDialogClick("hide")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u8BE5\u4F1A\u8BDD"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE881")])])]),t._l(t.taskColorList,function(s,a){return a<6?e("DropdownItem",{key:"c_"+a,attrs:{divided:a==0},nativeOn:{click:function(o){return t.handleDialogClick("color",s.color)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(s.name))+" "),e("i",{staticClass:"taskfont color",style:{color:s.primary||"#ddd"},domProps:{innerHTML:t._s(s.color==(t.operateItem.color||"")?"":"")}})])]):t._e()})]:[e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("msg")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u9001\u6D88\u606F"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE6EB")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("meet")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u8D77\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE794")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("group")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE63F")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("avatar")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u67E5\u770B\u5934\u50CF"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE7BC")])])])]],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 c={menus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"},{type:"mark",name:"\u6807\u6CE8"},{type:"@",name:"@\u6211"}],historys:[]},v={components:{DialogWrapper:p},directives:{longpress:g},data(){return{firstLoad:!0,activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogActive:"",dialogMenus:c.menus,dialogHistorys:c.historys,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,operateType:"dialog",clickAgainSubscribe:null}},async beforeRouteEnter(t,i,e){c.historys=await $A.IDBArray("dialogMenuHistorys"),c.historys.length===0&&(c.historys=c.menus.map(s=>Object.assign(s,{time:0}))),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),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.scrollToNav(),this.firstLoad=!1,this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...u(["systemConfig","cacheDialogs","loadDialogs","dialogId","dialogMsgId","dialogMsgs","messengerSearchKey","appNotificationPermission","taskColorList"]),routeName(){return this.$route.name},contactAvatarSize(){return this.windowPortrait?36:30},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 d=`${o} ${r}`;if(n)switch(n.type){case"text":d+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":d+=` ${n.msg.name}`;break}if(!$A.strExists(d,i))return!1}else if(t)switch(t){case"project":case"task":if(t!=a.group_type)return!1;break;case"user":if(t!=a.type||a.bot)return!1;break;case"group":if(t!=a.type||["project","task"].includes(a.group_type))return!1;break;case"bot":if(!a.bot)return!1;break;case"@":if(!$A.getDialogMention(a))return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const 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.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.dayjs().unix()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):(this.updateDialogs(1e3),this.scrollToNav())},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0},dialogActive(t){this.dialogSearchList=[],t=="mark"&&!this.dialogSearchKey&&this.searchTagDialog(),this.dialogHistorys.forEach(i=>{i.type==""?i.time=$A.dayjs().unix()+1:i.type==t&&(i.time=$A.dayjs().unix())}),$A.IDBSave("dialogMenuHistorys",$A.cloneJSON(this.dialogHistorys).sort((i,e)=>e.time-i.time))}},methods:{listTouch(){var t;(t=this.$refs.navMenu)!=null&&t.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onKeydown(t){var i,e;t.key==="Escape"&&((i=this.$refs.searchInput)==null||i.handleClear(),(e=this.$refs.contactInput)==null||e.handleClear())},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t,this.scrollToNav()},scrollToNav(){this.tabActive=="dialog"&&this.$nextTick(t=>{var i;$A.scrollToView((i=this.$refs.navList)==null?void 0:i.querySelector(".active"),{behavior:"auto",block:"nearest",inline:"nearest"})})},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>e.todo_num>0)),t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.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&&this.operateType==="dialog"&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},dialogSort(t,i){return t.top_at||i.top_at?$A.dayjs(i.top_at)-$A.dayjs(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.dayjs(i.last_at)-$A.dayjs(t.last_at)},userClass(t){return{operate:this.operateVisible&&this.operateType==="contacts"&&t.userid==this.operateItem.userid}},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"){const i=$A.dayjs().unix();if(["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let e=Math.max($A.dayjs(t.last_at).unix(),$A.dayjs(t.group_info.complete_at).unix());if(5*86400+e{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],a=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!a.includes(o.dialog_user.userid)&&a.push(o.dialog_user.userid)}),i.some(o=>{$A.leftExists(o.id,"u:")?a.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(i=>{this.dialogSearchLoad--}))},searchTagDialog(){this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search/tag"}).then(({data:t})=>{const i=[],e=[];this.dialogList.forEach(s=>{e.push(s),i.push(s.search_msg_id)}),t.some(s=>{(!s.last_msg||!i.includes(s.search_msg_id))&&e.push(Object.assign(s,{is_search:!0}))}),this.dialogSearchList=e}).finally(t=>{this.dialogSearchLoad--})},getContactsList(t){this.contactsLoad++;const i=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:i},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{i==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(a=>a.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{i==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.dayjs().unix()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.dayjs().unix()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,"").replace(/ /g," "))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.windowPortrait||this.windowScrollY>0||this.$nextTick(()=>{if(!this.$refs.list)return;const t=this.$refs.list.querySelector(".active");if(t){$A.scrollIntoViewIfNeeded(t);return}this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))})},handleDialogLongpress(t,i){if(this.dialogSearchKey)return;const e=$A.getAttr(i,"data-id"),s=this.dialogList.find(a=>a.id==e);!s||this.handleLongpress(s,i.getBoundingClientRect(),t.clientX)},handleUserLongpress(t,i){if(this.contactsKey)return;const e=$A.getAttr(i,"data-id"),s=this.contactsFilter.find(a=>a.userid==e);!s||this.handleLongpress(s,i.getBoundingClientRect(),t.clientX)},handleLongpress(t,i,e){this.operateType=this.tabActive,this.operateVisible=!1,this.operateItem=$A.isJson(t)?t:{},this.$nextTick(()=>{this.operateStyles={left:`${e}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0})},handleDialogClick(t,i=void 0){switch(t){case"top":this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),this.$nextTick(this.scrollIntoActive)}).catch(({msg:e})=>{$A.modalError(e)});break;case"read":this.$store.dispatch("showSpinner",600),this.$store.dispatch("dialogMsgMark",{type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread",dialog_id:this.operateItem.id}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$store.dispatch("hiddenSpinner")});break;case"silence":if(this.silenceDisabled(this.operateItem))return;this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"hide":this.$store.dispatch("call",{url:"dialog/hide",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.dialogId==this.operateItem.id&&this.$store.dispatch("openDialog",0),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"color":this.$store.dispatch("call",{url:"dialog/msg/color",data:{dialog_id:this.operateItem.id,color:i}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break}},handleUserClick(t){switch(t){case"msg":this.openContacts(this.operateItem);break;case"meet":case"group":const i=[this.userId];this.operateItem.userid&&this.userId!=this.operateItem.userid&&i.push(this.operateItem.userid),t==="meet"?l.Store.set("addMeeting",{type:"create",userids:i}):l.Store.set("createGroup",i);break;case"avatar":this.$store.dispatch("previewImage",this.operateItem.userimg);break}},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.routeName==="manage-messenger"&&this.$store.dispatch("getDialogAuto").catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"}}},h={};var $=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}; +import{m as u}from"./vuex.cc7cb26e.js";import{D as p}from"./DialogWrapper.df01caa2.js";import{l as g}from"./longpress.5305f240.js";import{l}from"./le5le-store.b40f9152.js";import{n as m}from"./app.879f8ead.js";import"./index.e6513292.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./@babel.49d8906a.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue.c448ed56.js";import"./view-design-hi.d2045547.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.cc22c426.js";import"./tip.434a62e4.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.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:"nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),e("div",{ref:"navList",staticClass:"nav-list"},t._l(t.dialogHistorys,function(s,a){return e("div",{key:a,staticClass:"nav-item",class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),0)],1):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{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.handleDialogLongpress,expression:"handleDialogLongpress"}],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.timeFormat(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",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleUserLongpress,expression:"handleUserLongpress"}],key:o,class:t.userClass(a),attrs:{"data-id":a.userid},on:{click:function(r){return t.openContacts(a)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:a.userid,size:t.contactAvatarSize}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(a.nickname))]),a.tags?e("div",{staticClass:"tags"},t._l(a.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),a.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230"+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"},[t.operateType==="dialog"?[e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("top")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.top_at?"":"")}})])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleDialogClick("read")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.$A.getDialogUnread(t.operateItem,!0)>0?"":"")}})])]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleDialogClick("silence")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" "),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.operateItem.silence?"":"")}})])]),e("DropdownItem",{attrs:{disabled:!!t.operateItem.top_at},nativeOn:{click:function(s){return t.handleDialogClick("hide")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u4E0D\u663E\u793A\u8BE5\u4F1A\u8BDD"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE881")])])]),t._l(t.taskColorList,function(s,a){return a<6?e("DropdownItem",{key:"c_"+a,attrs:{divided:a==0},nativeOn:{click:function(o){return t.handleDialogClick("color",s.color)}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L(s.name))+" "),e("i",{staticClass:"taskfont color",style:{color:s.primary||"#ddd"},domProps:{innerHTML:t._s(s.color==(t.operateItem.color||"")?"":"")}})])]):t._e()})]:[e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("msg")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u9001\u6D88\u606F"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE6EB")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("meet")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u53D1\u8D77\u4F1A\u8BAE"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE794")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("group")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u521B\u5EFA\u7FA4\u7EC4"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE63F")])])]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleUserClick("avatar")}}},[e("div",{staticClass:"item"},[t._v(" "+t._s(t.$L("\u67E5\u770B\u5934\u50CF"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE7BC")])])])]],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 c={menus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"},{type:"mark",name:"\u6807\u6CE8"},{type:"@",name:"@\u6211"}],historys:[]},v={components:{DialogWrapper:p},directives:{longpress:g},data(){return{firstLoad:!0,activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogActive:"",dialogMenus:c.menus,dialogHistorys:c.historys,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,operateType:"dialog",clickAgainSubscribe:null}},async beforeRouteEnter(t,i,e){c.historys=await $A.IDBArray("dialogMenuHistorys"),c.historys.length===0&&(c.historys=c.menus.map(s=>Object.assign(s,{time:0}))),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),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.scrollToNav(),this.firstLoad=!1,this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...u(["systemConfig","cacheDialogs","loadDialogs","dialogId","dialogMsgId","dialogMsgs","messengerSearchKey","appNotificationPermission","taskColorList"]),routeName(){return this.$route.name},contactAvatarSize(){return this.windowPortrait?36:30},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 d=`${o} ${r}`;if(n)switch(n.type){case"text":d+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":d+=` ${n.msg.name}`;break}if(!$A.strExists(d,i))return!1}else if(t)switch(t){case"project":case"task":if(t!=a.group_type)return!1;break;case"user":if(t!=a.type||a.bot)return!1;break;case"group":if(t!=a.type||["project","task"].includes(a.group_type))return!1;break;case"bot":if(!a.bot)return!1;break;case"@":if(!$A.getDialogMention(a))return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:i}=this;return t===null?[]:i?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,i)):t},contactsList(){const 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.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.dayjs().unix()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):(this.updateDialogs(1e3),this.scrollToNav())},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0},dialogActive(t){this.dialogSearchList=[],t=="mark"&&!this.dialogSearchKey&&this.searchTagDialog(),this.dialogHistorys.forEach(i=>{i.type==""?i.time=$A.dayjs().unix()+1:i.type==t&&(i.time=$A.dayjs().unix())}),$A.IDBSave("dialogMenuHistorys",$A.cloneJSON(this.dialogHistorys).sort((i,e)=>e.time-i.time))}},methods:{listTouch(){var t;(t=this.$refs.navMenu)!=null&&t.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onKeydown(t){var i,e;t.key==="Escape"&&((i=this.$refs.searchInput)==null||i.handleClear(),(e=this.$refs.contactInput)==null||e.handleClear())},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t,this.scrollToNav()},scrollToNav(){this.tabActive=="dialog"&&this.$nextTick(t=>{var i;$A.scrollToView((i=this.$refs.navList)==null?void 0:i.querySelector(".active"),{behavior:"auto",block:"nearest",inline:"nearest"})})},shakeUnread(){var i;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>e.todo_num>0)),t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(i=this.dialogList[t])==null?void 0:i.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.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&&this.operateType==="dialog"&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},dialogSort(t,i){return t.top_at||i.top_at?$A.dayjs(i.top_at)-$A.dayjs(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.dayjs(i.last_at)-$A.dayjs(t.last_at)},userClass(t){return{operate:this.operateVisible&&this.operateType==="contacts"&&t.userid==this.operateItem.userid}},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"){const i=$A.dayjs().unix();if(["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let e=Math.max($A.dayjs(t.last_at).unix(),$A.dayjs(t.group_info.complete_at).unix());if(5*86400+e{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],a=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!a.includes(o.dialog_user.userid)&&a.push(o.dialog_user.userid)}),i.some(o=>{$A.leftExists(o.id,"u:")?a.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(i=>{this.dialogSearchLoad--}))},searchTagDialog(){this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search/tag"}).then(({data:t})=>{const i=[],e=[];this.dialogList.forEach(s=>{e.push(s),i.push(s.search_msg_id)}),t.some(s=>{(!s.last_msg||!i.includes(s.search_msg_id))&&e.push(Object.assign(s,{is_search:!0}))}),this.dialogSearchList=e}).finally(t=>{this.dialogSearchLoad--})},getContactsList(t){this.contactsLoad++;const i=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:i},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{i==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(a=>a.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{i==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.dayjs().unix()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(i=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const a=this.contactsData.findIndex(o=>o.userid==s.userid);a>-1?this.contactsData.splice(a,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.dayjs().unix()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,"").replace(/ /g," "))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:i,percentage:e}=t;if(i===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.windowPortrait||this.windowScrollY>0||this.$nextTick(()=>{if(!this.$refs.list)return;const t=this.$refs.list.querySelector(".active");if(t){$A.scrollIntoViewIfNeeded(t);return}this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))})},handleDialogLongpress(t,i){if(this.dialogSearchKey)return;const e=$A.getAttr(i,"data-id"),s=this.dialogList.find(a=>a.id==e);!s||this.handleLongpress(s,i.getBoundingClientRect(),t.clientX)},handleUserLongpress(t,i){if(this.contactsKey)return;const e=$A.getAttr(i,"data-id"),s=this.contactsFilter.find(a=>a.userid==e);!s||this.handleLongpress(s,i.getBoundingClientRect(),t.clientX)},handleLongpress(t,i,e){this.operateType=this.tabActive,this.operateVisible=!1,this.operateItem=$A.isJson(t)?t:{},this.$nextTick(()=>{this.operateStyles={left:`${e}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0})},handleDialogClick(t,i=void 0){switch(t){case"top":this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e),this.$nextTick(this.scrollIntoActive)}).catch(({msg:e})=>{$A.modalError(e)});break;case"read":this.$store.dispatch("showSpinner",600),this.$store.dispatch("dialogMsgMark",{type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread",dialog_id:this.operateItem.id}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.$store.dispatch("hiddenSpinner")});break;case"silence":if(this.silenceDisabled(this.operateItem))return;this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"hide":this.$store.dispatch("call",{url:"dialog/hide",data:{dialog_id:this.operateItem.id}}).then(({data:e})=>{this.dialogId==this.operateItem.id&&this.$store.dispatch("openDialog",0),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break;case"color":this.$store.dispatch("call",{url:"dialog/msg/color",data:{dialog_id:this.operateItem.id,color:i}}).then(({data:e})=>{this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)});break}},handleUserClick(t){switch(t){case"msg":this.openContacts(this.operateItem);break;case"meet":case"group":const i=[this.userId];this.operateItem.userid&&this.userId!=this.operateItem.userid&&i.push(this.operateItem.userid),t==="meet"?l.Store.set("addMeeting",{type:"create",userids:i}):l.Store.set("createGroup",i);break;case"avatar":this.$store.dispatch("previewImage",this.operateItem.userimg);break}},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(i=>{this.tabActive==="dialog"&&this.routeName==="manage-messenger"&&this.$store.dispatch("getDialogAuto").catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:i,group_type:e}=t;return i==="group"&&e!=="user"}}},h={};var $=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/password.34ef52c3.js b/public/js/build/password.030411c7.js similarity index 93% rename from public/js/build/password.34ef52c3.js rename to public/js/build/password.030411c7.js index 2a63fa207..aae35e85a 100644 --- a/public/js/build/password.34ef52c3.js +++ b/public/js/build/password.030411c7.js @@ -1 +1 @@ -import{m as a}from"./vuex.cc7cb26e.js";import{n as i}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[t.userInfo.changepass?r("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),r("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{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","formOptions"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:s})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields()}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},o={};var l=i(n,m,p,!1,u,null,null,null);function u(t){for(let s in o)this[s]=o[s]}var T=function(){return l.exports}();export{T as default}; +import{m as a}from"./vuex.cc7cb26e.js";import{n as i}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[t.userInfo.changepass?r("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),r("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),r("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[r("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),r("div",{staticClass:"setting-footer"},[r("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),r("Button",{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","formOptions"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:s})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields()}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},o={};var l=i(n,m,p,!1,u,null,null,null);function u(t){for(let s in o)this[s]=o[s]}var T=function(){return l.exports}();export{T as default}; diff --git a/public/js/build/personal.a06001ae.js b/public/js/build/personal.7fc2a145.js similarity index 91% rename from public/js/build/personal.a06001ae.js rename to public/js/build/personal.7fc2a145.js index b7acf4cdf..c22f91f81 100644 --- a/public/js/build/personal.a06001ae.js +++ b/public/js/build/personal.7fc2a145.js @@ -1 +1 @@ -import{I as o}from"./ImgUpload.52758ba6.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as m}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[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","formOptions"])},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 W=function(){return f.exports}();export{W as default}; +import{I as o}from"./ImgUpload.cc22c426.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as m}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(r){r.preventDefault()}}},"Form",t.formOptions,!1),[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","formOptions"])},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 W=function(){return f.exports}();export{W as default}; diff --git a/public/js/build/preview.da06ba47.js b/public/js/build/preview.7086f0af.js similarity index 88% rename from public/js/build/preview.da06ba47.js rename to public/js/build/preview.7086f0af.js index 1be205778..5b7f03c20 100644 --- a/public/js/build/preview.da06ba47.js +++ b/public/js/build/preview.7086f0af.js @@ -1 +1 @@ -import{V as t,d as s,a,b as n,c as l,_ as u,e as _,v as c}from"./@kangc.0e27bf4b.js";import{P as v}from"./prismjs.e9e594e5.js";import{l as o,n as d}from"./app.d8851986.js";import{p as f}from"./index.40a8e116.js";import"./@babel.49d8906a.js";import"./vue.c448ed56.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var h=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{staticClass:"vmpreview-wrapper",on:{click:e.handleClick}},[i("v-md-preview",{attrs:{text:e.value}})],1)},x=[];o==="zh"||o==="zh-CHT"?t.lang.use("zh-CN",s):t.lang.use("en-US",a);t.use(n());t.use(l());t.use(u());t.use(_());const w={mixins:[f],components:{[t.name]:t},created(){t.use(c,{Prism:v,extend(e){}})},methods:{handleClick({target:e}){if(e.nodeName==="IMG"){const r=[...this.$el.querySelectorAll("img").values()].map(p=>p.src);if(r.length===0)return;const i=Math.max(0,r.indexOf(e.src));this.$store.dispatch("previewImage",{index:i,list:r})}}}},m={};var g=d(w,h,x,!1,$,"6ef45f6c",null,null);function $(e){for(let r in m)this[r]=m[r]}var ne=function(){return g.exports}();export{ne as default}; +import{V as t,d as s,a,b as n,c as l,_ as u,e as _,v as c}from"./@kangc.0e27bf4b.js";import{P as v}from"./prismjs.e9e594e5.js";import{l as o,n as d}from"./app.879f8ead.js";import{p as f}from"./index.40a8e116.js";import"./@babel.49d8906a.js";import"./vue.c448ed56.js";import"./copy-to-clipboard.a53c061d.js";import"./toggle-selection.d2487283.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var h=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{staticClass:"vmpreview-wrapper",on:{click:e.handleClick}},[i("v-md-preview",{attrs:{text:e.value}})],1)},x=[];o==="zh"||o==="zh-CHT"?t.lang.use("zh-CN",s):t.lang.use("en-US",a);t.use(n());t.use(l());t.use(u());t.use(_());const w={mixins:[f],components:{[t.name]:t},created(){t.use(c,{Prism:v,extend(e){}})},methods:{handleClick({target:e}){if(e.nodeName==="IMG"){const r=[...this.$el.querySelectorAll("img").values()].map(p=>p.src);if(r.length===0)return;const i=Math.max(0,r.indexOf(e.src));this.$store.dispatch("previewImage",{index:i,list:r})}}}},m={};var g=d(w,h,x,!1,$,"6ef45f6c",null,null);function $(e){for(let r in m)this[r]=m[r]}var ne=function(){return g.exports}();export{ne as default}; diff --git a/public/js/build/preview.74e7b5c4.js b/public/js/build/preview.8cce7ada.js similarity index 77% rename from public/js/build/preview.74e7b5c4.js rename to public/js/build/preview.8cce7ada.js index 941c3092b..aec4b6b94 100644 --- a/public/js/build/preview.74e7b5c4.js +++ b/public/js/build/preview.8cce7ada.js @@ -1 +1 @@ -import{_ as m}from"./openpgp_hi.15f91b1d.js";import{p as e}from"./index.40a8e116.js";import{n as p}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,i=t._self._c||r;return t.ready?i("VPreview",{attrs:{value:t.value}}):i("Loading")},a=[];const s={name:"VMPreview",mixins:[e],components:{VPreview:()=>m(()=>import("./preview.da06ba47.js"),["js/build/preview.da06ba47.js","js/build/preview.25091552.css","js/build/@kangc.0e27bf4b.js","js/build/@kangc.d8464d83.css","js/build/@babel.49d8906a.js","js/build/vue.c448ed56.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.e9e594e5.js","js/build/app.d8851986.js","js/build/app.3d8c6f80.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.a7761dd9.js","js/build/dayjs.93c58ba1.js","js/build/localforage.81c5d73d.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.563cfadb.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/index.40a8e116.js"])},data(){return{ready:!1}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0}},o={};var _=p(s,n,a,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var U=function(){return _.exports}();export{U as default}; +import{_ as m}from"./openpgp_hi.15f91b1d.js";import{p as e}from"./index.40a8e116.js";import{n as p}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,i=t._self._c||r;return t.ready?i("VPreview",{attrs:{value:t.value}}):i("Loading")},a=[];const s={name:"VMPreview",mixins:[e],components:{VPreview:()=>m(()=>import("./preview.7086f0af.js"),["js/build/preview.7086f0af.js","js/build/preview.25091552.css","js/build/@kangc.0e27bf4b.js","js/build/@kangc.d8464d83.css","js/build/@babel.49d8906a.js","js/build/vue.c448ed56.js","js/build/copy-to-clipboard.a53c061d.js","js/build/toggle-selection.d2487283.js","js/build/prismjs.e9e594e5.js","js/build/app.879f8ead.js","js/build/app.5c885db1.css","js/build/@micro-zoe.c2e1472d.js","js/build/jquery.8b0d6caa.js","js/build/dayjs.b7f7bb8e.js","js/build/localforage.ec5c12b8.js","js/build/markdown-it.f48c10fc.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.c1b51344.js","js/build/highlight.js.24fdca15.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.b5c819e2.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.6ec123f8.js","js/build/le5le-store.b40f9152.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.6e355525.js","js/build/clipboard.7eddb2ef.js","js/build/view-design-hi.d2045547.js","js/build/vuedraggable.dbf1607a.js","js/build/sortablejs.20b8ddfe.js","js/build/vue-resize-observer.452c7636.js","js/build/element-sea.e89b014c.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.9f685ce8.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.5f40db32.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/index.40a8e116.js"])},data(){return{ready:!1}},async mounted(){await $A.loadScriptS(["js/katex/katex.min.js","js/katex/katex.min.css","js/mermaid.min.js"]),this.ready=!0}},o={};var _=p(s,n,a,!1,l,null,null,null);function l(t){for(let r in o)this[r]=o[r]}var U=function(){return _.exports}();export{U as default}; diff --git a/public/js/build/pro.41ac22dd.js b/public/js/build/pro.0b202f1c.js similarity index 80% rename from public/js/build/pro.41ac22dd.js rename to public/js/build/pro.0b202f1c.js index f947b9b81..4f2bb86fe 100644 --- a/public/js/build/pro.41ac22dd.js +++ b/public/js/build/pro.0b202f1c.js @@ -1 +1 @@ -import{n as p,l as o}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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}; +import{n as p,l as o}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.c10747c6.js b/public/js/build/project.e38eadbd.js similarity index 99% rename from public/js/build/project.c10747c6.js rename to public/js/build/project.e38eadbd.js index 495aeeddb..269c73e9b 100644 --- a/public/js/build/project.c10747c6.js +++ b/public/js/build/project.e38eadbd.js @@ -1,4 +1,4 @@ -import{m as j,a as O}from"./vuex.cc7cb26e.js";import{D as Q}from"./vuedraggable.dbf1607a.js";import{T as tt,P as nt}from"./ProjectLog.d652e5c8.js";import{l as z}from"./le5le-store.b40f9152.js";import{n as w,T as et,U as st}from"./app.d8851986.js";import{D as lt}from"./index.4892e747.js";import{U as ct}from"./tip.7b94707c.js";import{D as dt}from"./DialogWrapper.86de099a.js";import{l as ut}from"./longpress.5305f240.js";import"./@babel.49d8906a.js";import"./sortablejs.20b8ddfe.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.52758ba6.js";var ht=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,i){return s("li",{key:i},[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(o){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,i){return s("li",{key:i},[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(o){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},pt=[];const mt={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{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:{...j(["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=$A.daytz(),s=e.clone().add($A.runNum(t.days),"day");this.$set(this.addData,"times",$A.newDateString([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]))}}},R={};var ft=w(mt,ht,pt,!1,_t,null,null,null);function _t(t){for(let e in R)this[e]=R[e]}var at=function(){return ft.exports}(),vt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-rows"},[t._l(t.list,function(a,i){return s("div",{key:i},[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(o){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(o){return t.openTask(a)}}},[a.flow_item_name?s("span",{class:a.flow_item_status,on:{click:function(o){return o.stopPropagation(),t.openMenu(o,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(o){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(o){return o.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(o){return t.dropTask(a,o)}}},[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(o){return s("EDropdownItem",{key:o.id,attrs:{command:"column::"+o.id}},[t._v(" "+t._s(o.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(o){return t.dropTask(a,o)}}},[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(o,r){return s("EDropdownItem",{key:r,attrs:{command:"priority::"+r}},[s("i",{staticClass:"taskfont",style:{color:o.color},domProps:{innerHTML:t._s(o.p_name==o.name?"":"")}}),t._v(" "+t._s(o.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-user",attrs:{span:"3"}},[s("ul",{on:{click:function(o){return t.openTask(a)}}},[t._l(t.ownerUser(a.task_user),function(o,r){return r<3?s("li",{key:r},[s("UserAvatar",{attrs:{userid:o.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(o){return o.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(o){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)},gt=[];const kt={name:"TaskRow",components:{TaskMenu:et,TaskAddSimple:at,TaskPriority:tt},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.dayjs().unix(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...j(["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(()=>{z.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(this.nowTime,t)},completeAtFormat(t){let e=$A.dayjs(t);return $A.daytz().year()===e.year()?e.format("MM-DD HH:mm"):e.format("YYYY-MM-DD")}}},W={};var $t=w(kt,vt,gt,!1,wt,null,null,null);function wt(t){for(let e in W)this[e]=W[e]}var yt=function(){return $t.exports}(),bt=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)])},Ct=[];const xt={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:i})=>{i.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:i})=>{$A.modalError({content:i})}).finally(i=>{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:{...j(["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()})}}},N={};var Lt=w(xt,bt,Ct,!1,jt,null,null,null);function jt(t){for(let e in N)this[e]=N[e]}var Dt=function(){return Lt.exports}(),It=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(i){return s("div",{class:i.status},[t._v(t._s(i.name))])}),0),s("div",{staticClass:"workflow-save",on:{click:function(i){i.stopPropagation()}}},[t.contrast(a.project_flow_item,a.project_flow_bak)?[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){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(i){return t.onReduction(a,i)}}},[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(i){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(i){return s("div",{staticClass:"taskflow-config-table-block-item"},[s("span",{staticClass:"transform-status-name"},[t._v(t._s(i.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(i){}}},[t._l(a.project_flow_item,function(i){return s("div",{staticClass:"taskflow-config-table-status-column column-border",class:i.status},[s("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[s("div",{staticClass:"status-label-with-menu",class:i.status},[s("div",{staticClass:"name"},[t._v(t._s(t.$L(i.name)))]),s("EDropdown",{staticClass:"more",class:{opacity:i.userids.length>0||i.columnid>0},attrs:{trigger:"click"},on:{command:function(o){return t.onMore(o,i)}}},[s("div",{staticClass:"more-icon"},[s("Badge",{attrs:{dot:i.userids.length>0||i.columnid>0}},[s("Icon",{attrs:{type:"ios-more"}})],1)],1),s("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[i.userids.length>0?s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"users"},t._l(i.userids,function(o,r){return s("UserAvatar",{key:r,attrs:{userid:o,size:28,borderWitdh:1,showName:i.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:i.userids.length>0||i.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:i.status,callback:function(o){t.$set(i,"status",o)},expression:"item.status"}},[s("Radio",{attrs:{label:"start"}},[s("span")]),s("Radio",{attrs:{label:"progress"}},[s("span")]),s("Radio",{attrs:{label:"test"}},[s("span")]),s("Radio",{attrs:{label:"end"}},[s("span")])],1)],1),s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("CheckboxGroup",{on:{"on-change":function(o){return t.onTurns(i)}},model:{value:i.turns,callback:function(o){t.$set(i,"turns",o)},expression:"item.turns"}},t._l(a.project_flow_item,function(o){return s("Checkbox",{key:o.id,attrs:{label:o.id,disabled:o.id==i.id}},[s("span")])}),1)],1)])])}),s("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(i){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",t._b({attrs:{model:t.settingData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[s("UserSelect",{attrs:{"project-id":t.projectId,"multiple-max":5,title:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.settingData.userids,callback:function(a){t.$set(t.settingData,"userids",a)},expression:"settingData.userids"}})],1),s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[s("RadioGroup",{model:{value:t.settingData.usertype,callback:function(a){t.$set(t.settingData,"usertype",a)},expression:"settingData.usertype"}},[s("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.settingData.usertype=="replace"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${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,i){return s("Option",{key:i,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)},Tt=[];const St={name:"ProjectWorkflow",components:{UserSelect:st,Draggable:Q},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,settingData:{}}},mounted(){},computed:{...j(["cacheColumns","formOptions"]),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,i=s.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(o=>{o!=e&&o.scrollTo(i,a)})})}))})})},contrast(t,e){return JSON.stringify(t)!=e},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:this.$L("\u5F85\u5904\u7406"),status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-11,name:this.$L("\u8FDB\u884C\u4E2D"),status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-12,name:this.$L("\u5F85\u6D4B\u8BD5"),status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-13,name:this.$L("\u5DF2\u5B8C\u6210"),status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-14,name:this.$L("\u5DF2\u53D6\u6D88"),status:"end",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:i})=>{s(i);let o=this.list.findIndex(({id:r})=>r==t.id);o>-1&&this.list.splice(o,1)}).catch(({msg:i})=>{a(i)}).finally(i=>{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:i})=>i);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(i=>{i.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 i=this.list.findIndex(({id:o})=>o==t.id);i>-1?this.list.splice(i,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)})}}},U={};var At=w(St,It,Tt,!1,Pt,null,null,null);function Pt(t){for(let e in U)this[e]=U[e]}var Et=function(){return At.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",t._b({attrs:{model:t.formData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[s("div",{staticClass:"block-setting-box"},[s("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u5217\u6743\u9650")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_add,callback:function(a){t.$set(t.formData,"task_list_add",a)},expression:"formData.task_list_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_update,callback:function(a){t.$set(t.formData,"task_list_update",a)},expression:"formData.task_list_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_remove,callback:function(a){t.$set(t.formData,"task_list_remove",a)},expression:"formData.task_list_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u6392\u5E8F\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_sort,callback:function(a){t.$set(t.formData,"task_list_sort",a)},expression:"formData.task_list_sort"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)]),s("div",{staticClass:"block-setting-box"},[s("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u6743\u9650")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_add,callback:function(a){t.$set(t.formData,"task_add",a)},expression:"formData.task_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_update,callback:function(a){t.$set(t.formData,"task_update",a)},expression:"formData.task_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u65F6\u95F4")}},[s("CheckboxGroup",{model:{value:t.formData.task_time,callback:function(a){t.$set(t.formData,"task_time",a)},expression:"formData.task_time"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u72B6\u6001")}},[s("CheckboxGroup",{model:{value:t.formData.task_status,callback:function(a){t.$set(t.formData,"task_status",a)},expression:"formData.task_status"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5F52\u6863\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_archived,callback:function(a){t.$set(t.formData,"task_archived",a)},expression:"formData.task_archived"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_remove,callback:function(a){t.$set(t.formData,"task_remove",a)},expression:"formData.task_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u79FB\u52A8\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_move,callback:function(a){t.$set(t.formData,"task_move",a)},expression:"formData.task_move"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)])])],1),s("div",{staticClass:"project-permission-footer",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.updateData}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),s("Button",{attrs:{type:"default"},on:{click:t.onClose}},[t._v(t._s(t.$L("\u53D6\u6D88")))])],1)])},zt=[];const Ot={name:"ProjectPermission",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,formData:{project_task_list:[],task_add:[],task_update:[],task_time:[],task_status:[],task_archived:[],task_remove:[],task_move:[]}}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},computed:{...j(["formOptions"])},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission",data:{project_id:this.projectId}}).then(({data:t})=>{this.formData=t.permissions}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},updateData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission/update",method:"post",data:{project_id:this.projectId,...this.formData}}).then(({data:t})=>{this.formData=t.permissions,this.$Message.success(this.$L("\u4FEE\u6539\u6210\u529F"))}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onClose(){this.$emit("close")}}},B={};var Ft=w(Ot,Mt,zt,!1,Rt,null,null,null);function Rt(t){for(let e in B)this[e]=B[e]}var Wt=function(){return Ft.exports}(),Nt=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)])},Ut=[];const Bt={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:{...j(["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()})}}},Y={};var Yt=w(Bt,Nt,Ut,!1,Ht,null,null,null);function Ht(t){for(let e in Y)this[e]=Y[e]}var Vt=function(){return Yt.exports}(),Gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"common-gantt"},[s("div",{staticClass:"gantt-left",style:t.leftStyle},[s("div",{staticClass:"gantt-title"},[s("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))]),s("div",{staticClass:"gantt-title-right"},[t._t("titleTool")],2)]),s("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(a){t.mouseType="item"}}},t._l(t.lists,function(a,i){return s("li",{key:i,on:{click:function(o){return t.clickItem(a,i)}}},[a.overdue?s("div",{staticClass:"item-overdue"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),s("div",{staticClass:"item-title",class:{complete:a.complete,overdue:a.overdue}},[t._v(t._s(a.label))]),s("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(o){return o.stopPropagation(),t.scrollPosition(i)}}})],1)}),0)]),s("div",{ref:"ganttRight",staticClass:"gantt-right"},[s("div",{staticClass:"gantt-size",on:{click:function(a){t.maximize=!t.maximize}}},[t.maximize?s("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):s("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),s("div",{ref:"ganttChart",staticClass:"gantt-chart",on:{touchstart:t.dateTouchstart,touchmove:t.dateTouchmove,touchend:t.dateTouchend}},[s("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(a,i){return s("li",{key:i,style:t.monthStyle(i)},[s("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(i)))])])}),0),s("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(a,i){return s("li",{key:i,style:t.dateStyle(i)},[s("div",{staticClass:"date-format"},[s("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(i,"day")))]),t.dateWidth>46?s("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(i,"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,i){return s("li",{key:i,attrs:{"data-id":a.id}},[s("div",{staticClass:"timeline-item",style:t.itemStyle(a),on:{mousedown:function(o){return t.itemMouseDown(o,a)}}},[s("div",{staticClass:"timeline-title",attrs:{title:a.label}},[t._v(t._s(a.label))]),s("div",{staticClass:"timeline-resizer"})])])}),0)])])])},Zt=[];const Kt={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,maximize:!1}},mounted(){this.maximize=this.windowPortrait,this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t},maximize(){this.$nextTick(()=>{this.handleResize()})}},computed:{leftStyle({menuWidth:t,maximize:e}){const s={width:t+"px"};return e&&(s.display="none"),s},monthNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=$A.daytz().startOf("day").clone().add(a*86400,"second"),r=o.clone().endOf("month"),n=(r-o)/1e3/60/60/24,l=e*n;return s>0&&(r=o.clone().add(s+1,"month").endOf("month"),l=r.date()*e),{width:l+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=$A.daytz().startOf("day").clone().add(a,"day");return s>0&&(o=o.add(s+1,"month")),o.format("YYYY-MM")}},dateNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e)+2},dateStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){const a={};let i=t==0?0:t/e,o=Math.floor(i)+s;i==Math.floor(i)&&o--;let r=t==0?s-1:o,n=$A.daytz().add(r,"day");[0,6].indexOf(n.day())!==-1&&(a.backgroundColor="#f9fafb");let l=e;return s==0&&(l=Math.abs((t%l-l)%l)),a.width=l+"px",a}},dateFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s,a){let i=t==0?0:t/e,o=Math.floor(i)+s;i==Math.floor(i)&&o--;let r=t==0?s-1:o,n=$A.daytz().add(r,"day");return a=="day"?n.date():a=="week"?this.$L(`\u661F\u671F${"\u65E5\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D".charAt(n.day())}`):n}},itemStyle(){const{mouseWidth:t,dateWidth:e,ganttWidth:s}=this;return function(a){const{start:i,end:o}=a.time,{style:r,moveX:n,moveW:l}=a;let h=$A.daytz().startOf("day").valueOf(),_=(i-h)/1e3/60/60/24,y=(o-h)/1e3/60/60/24,c=e*_+t*-1,b=Math.max(10,e*(y-_));typeof n=="number"&&(c+=n),typeof l=="number"&&(b+=l);const k={left:Math.min(Math.max(c,b*-1.2),s*1.2).toFixed(2)+"px",width:b.toFixed(2)+"px"};return c<0&&Math.abs(c)s&&ce.scrollHeight-e.clientHeight&&(s=e.scrollHeight-e.clientHeight),e.scrollTop!=s&&(this.mouseType="timeline",e.scrollTop=s)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateTouchstart(t){this.windowPortrait&&(this.maximize=!0);let e=t.target.parentNode,s=null;for(;e&&!(!e||e===this.$refs.ganttChart);){if(e.tagName==="LI"){const a=e.getAttribute("data-id");a&&(s=this.lists.find(({id:i})=>a==i))}e=e.parentNode}if(!s){this.onDateMove(t.touches[0].clientX);return}this.onItemMove(s,t.target,t.touches[0].clientX)},dateTouchmove(t){this.onMoving(t.touches[0].clientX)},dateTouchend(){this.onMoveOver(null)},dateMouseDown(t){t.preventDefault(),this.onDateMove(t.clientX)},itemMouseDown(t,e){t.preventDefault(),this.onItemMove(e,t.target,t.clientX)},itemMouseMove(t){(this.mouseItem!=null||this.dateMove!=null)&&(t.preventDefault(),this.onMoving(t.clientX))},itemMouseUp(t){this.onMoveOver(t.target)},onDateMove(t){this.mouseItem=null,this.dateMove={clientX:t}},onItemMove(t,e,s){let a="moveX";e.classList.contains("timeline-resizer")&&(a="moveW"),typeof t[a]!="number"&&this.$set(t,a,0),this.mouseBak={type:a,clientX:s,value:t[a]},this.mouseItem=t,this.dateMove=null},onMoving(t){if(this.mouseItem!=null){const e=this.mouseBak.value+(t-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const s=864e5/this.dateWidth,{start:a,end:i}=this.mouseItem.time;let o=e*s;if(i+o-a<=0)return}this.$set(this.mouseItem,this.mouseBak.type,e);return}if(this.dateMove!=null){let e=(this.dateMove.clientX-t)*5;this.dateMove.clientX=t,this.mouseWidth+=e,this.mouseScaleWidth+=e*(100/this.dateWidth)}},onMoveOver(t){if(this.mouseItem!=null){const{start:e,end:s}=this.mouseItem.time;let a=!1,i=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let o=this.mouseItem.moveX*i;this.$set(this.mouseItem.time,"start",e+o),this.$set(this.mouseItem.time,"end",s+o),this.$set(this.mouseItem,"moveX",0),a=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let o=this.mouseItem.moveW*i;this.$set(this.mouseItem.time,"end",s+o),this.$set(this.mouseItem,"moveW",0),a=!0}a?this.$emit("on-change",this.mouseItem):t&&t.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null;return}this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let e=$A.daytz().startOf("day").valueOf(),s=864e5/this.dateWidth,a=(this.lists[t].time.start-e)/s-this.dateWidth-this.mouseWidth;this.mouseWidth+=a,this.mouseScaleWidth+=a*(100/this.dateWidth)},clickItem(t,e=void 0){if(e!==void 0&&this.windowPortrait){this.scrollPosition(e);return}this.$emit("on-click",t)}}},H={};var Xt=w(Kt,Gt,Zt,!1,qt,null,null,null);function qt(t){for(let e in H)this[e]=H[e]}var Jt=function(){return Xt.exports}(),Qt=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},scopedSlots:t._u([{key:"titleTool",fn:function(){return[s("Dropdown",{staticClass:"project-gstc-dropdown-filtr",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,i){return s("DropdownItem",{key:i,class:{"dropdown-active":t.filtrProjectId==a.id},attrs:{name:a.id}},[t._v(" "+t._s(a.name)+" "),a.tasks?s("span",[t._v("("+t._s(t.filtrLength(a.tasks))+")")]):t._e()])})],2)],1)]},proxy:!0}])}),s("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[s("div",{staticClass:"project-gstc-edit-info"},[s("Table",{attrs:{"max-height":"600",columns:t.editColumns,data:t.editData}}),s("div",{staticClass:"project-gstc-edit-btns"},[s("Button",{attrs:{loading:t.editLoad>0,type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),s("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(a){t.editShowInfo=!1}}})],1)],1),s("div",{staticClass:"project-gstc-edit-small"},[s("div",{staticClass:"project-gstc-edit-text",on:{click:function(a){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?s("span",[t._v(t._s(t.editData.length))]):t._e()]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},te=[];const ee={name:"ProjectGantt",components:{GanttView:Jt},props:{projectColumn:{default:[]},flowInfo:{default:{}}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:100,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>e.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.dayjs(e.baktime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.baktime.end).format("YYYY-MM-DD HH:mm"))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>t("div",{style:{}},[t("div",$A.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...j(["taskPriority"]),...O(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowInfo:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},filtrLength(t){return t.filter(e=>!(e.complete_at&&!this.completedTask||this.flowTask(e))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(e=>{let s=!e.start_at||!e.end_at,a=this.getTimeObj(e),i=a.start,o=a.end;if(e.complete_at&&!this.completedTask||this.flowTask(e))return!1;let r="#058ce4";this.taskPriority.some(_=>{if(_.priority===e.p_level)return r=_.color,!0});let n={start:i,end:o},l=$A.cloneJSON(n),h=this.editData.find(({id:_})=>_==e.id);h&&(n=$A.cloneJSON(h.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:i})=>i==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.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm"),i=$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"),o={task_id:e.id,times:[a,i]};this.$store.dispatch("taskUpdate",o).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=t.start_at?$A.dayjs(t.start_at):$A.dayjs(t.created_at).startOf("day"),s=t.end_at?$A.dayjs(t.end_at):e.clone();return s.unix()==e.unix()&&(s=s.endOf("day")),{start:e.valueOf(),end:Math.max(s.valueOf(),e.valueOf()+6e4)}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},V={};var se=w(ee,Qt,te,!1,ae,null,null,null);function ae(t){for(let e in V)this[e]=V[e]}var ie=function(){return se.exports}(),u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};u._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;u._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;u.def=v(u.def).replace("label",u._label).replace("title",u._title).getRegex();u.bullet=/(?:[*+-]|\d{1,9}\.)/;u.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;u.item=v(u.item,"gm").replace(/bull/g,u.bullet).getRegex();u.list=v(u.list).replace(/bull/g,u.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+u.def.source+")").getRegex();u._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";u._comment=//;u.html=v(u.html,"i").replace("comment",u._comment).replace("tag",u._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();u.paragraph=v(u._paragraph).replace("hr",u.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",u._tag).getRegex();u.blockquote=v(u.blockquote).replace("paragraph",u.paragraph).getRegex();u.normal=x({},u);u.gfm=x({},u.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});u.pedantic=x({},u.normal,{html:v(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",u._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:I,paragraph:v(u.normal._paragraph).replace("hr",u.hr).replace("heading",` *#{1,6} *[^ +import{m as j,a as O}from"./vuex.cc7cb26e.js";import{D as Q}from"./vuedraggable.dbf1607a.js";import{T as tt,P as nt}from"./ProjectLog.12dff91b.js";import{l as z}from"./le5le-store.b40f9152.js";import{n as w,T as et,U as st}from"./app.879f8ead.js";import{D as lt}from"./index.e6513292.js";import{U as ct}from"./tip.434a62e4.js";import{D as dt}from"./DialogWrapper.df01caa2.js";import{l as ut}from"./longpress.5305f240.js";import"./@babel.49d8906a.js";import"./sortablejs.20b8ddfe.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.cc22c426.js";var ht=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,i){return s("li",{key:i},[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(o){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,i){return s("li",{key:i},[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(o){return t.choosePriority(a)}}})]):t._e()],1)}),0),s("Icon",{attrs:{type:"md-settings"},on:{click:t.onPriority}})],1)],1)},pt=[];const mt={name:"TaskAddSimple",props:{parentId:{type:Number,default:0},projectId:{type:Number,default:0},columnId:{type:Number,default:0},addTop:{type:Boolean,default:!1},autoActive:{type:Boolean,default:!1},rowMode:{type:Boolean,default:!1}},data(){return{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:{...j(["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=$A.daytz(),s=e.clone().add($A.runNum(t.days),"day");this.$set(this.addData,"times",$A.newDateString([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]))}}},R={};var ft=w(mt,ht,pt,!1,_t,null,null,null);function _t(t){for(let e in R)this[e]=R[e]}var at=function(){return ft.exports}(),vt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-rows"},[t._l(t.list,function(a,i){return s("div",{key:i},[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(o){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(o){return t.openTask(a)}}},[a.flow_item_name?s("span",{class:a.flow_item_status,on:{click:function(o){return o.stopPropagation(),t.openMenu(o,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(o){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(o){return o.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(o){return t.dropTask(a,o)}}},[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(o){return s("EDropdownItem",{key:o.id,attrs:{command:"column::"+o.id}},[t._v(" "+t._s(o.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(o){return t.dropTask(a,o)}}},[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(o,r){return s("EDropdownItem",{key:r,attrs:{command:"priority::"+r}},[s("i",{staticClass:"taskfont",style:{color:o.color},domProps:{innerHTML:t._s(o.p_name==o.name?"":"")}}),t._v(" "+t._s(o.name)+" ")])}),1)],1)],1),s("Col",{staticClass:"row-user",attrs:{span:"3"}},[s("ul",{on:{click:function(o){return t.openTask(a)}}},[t._l(t.ownerUser(a.task_user),function(o,r){return r<3?s("li",{key:r},[s("UserAvatar",{attrs:{userid:o.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(o){return o.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(o){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)},gt=[];const kt={name:"TaskRow",components:{TaskMenu:et,TaskAddSimple:at,TaskPriority:tt},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.dayjs().unix(),nowInterval:null,taskLoad:{},taskOpen:{}}},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.dayjs().unix()},1e3)},destroyed(){clearInterval(this.nowInterval)},computed:{...j(["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(()=>{z.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(this.nowTime,t)},completeAtFormat(t){let e=$A.dayjs(t);return $A.daytz().year()===e.year()?e.format("MM-DD HH:mm"):e.format("YYYY-MM-DD")}}},W={};var $t=w(kt,vt,gt,!1,wt,null,null,null);function wt(t){for(let e in W)this[e]=W[e]}var yt=function(){return $t.exports}(),bt=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)])},Ct=[];const xt={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:i})=>{i.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:i})=>{$A.modalError({content:i})}).finally(i=>{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:{...j(["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()})}}},N={};var Lt=w(xt,bt,Ct,!1,jt,null,null,null);function jt(t){for(let e in N)this[e]=N[e]}var Dt=function(){return Lt.exports}(),It=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(i){return s("div",{class:i.status},[t._v(t._s(i.name))])}),0),s("div",{staticClass:"workflow-save",on:{click:function(i){i.stopPropagation()}}},[t.contrast(a.project_flow_item,a.project_flow_bak)?[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(i){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(i){return t.onReduction(a,i)}}},[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(i){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(i){return s("div",{staticClass:"taskflow-config-table-block-item"},[s("span",{staticClass:"transform-status-name"},[t._v(t._s(i.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(i){}}},[t._l(a.project_flow_item,function(i){return s("div",{staticClass:"taskflow-config-table-status-column column-border",class:i.status},[s("div",{staticClass:"taskflow-config-table-status-item taskflow-config-table-column-header"},[s("div",{staticClass:"status-label-with-menu",class:i.status},[s("div",{staticClass:"name"},[t._v(t._s(t.$L(i.name)))]),s("EDropdown",{staticClass:"more",class:{opacity:i.userids.length>0||i.columnid>0},attrs:{trigger:"click"},on:{command:function(o){return t.onMore(o,i)}}},[s("div",{staticClass:"more-icon"},[s("Badge",{attrs:{dot:i.userids.length>0||i.columnid>0}},[s("Icon",{attrs:{type:"ios-more"}})],1)],1),s("EDropdownMenu",{staticClass:"taskflow-config-more-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[i.userids.length>0?s("EDropdownItem",{attrs:{command:"user"}},[s("div",{staticClass:"users"},t._l(i.userids,function(o,r){return s("UserAvatar",{key:r,attrs:{userid:o,size:28,borderWitdh:1,showName:i.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:i.userids.length>0||i.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:i.status,callback:function(o){t.$set(i,"status",o)},expression:"item.status"}},[s("Radio",{attrs:{label:"start"}},[s("span")]),s("Radio",{attrs:{label:"progress"}},[s("span")]),s("Radio",{attrs:{label:"test"}},[s("span")]),s("Radio",{attrs:{label:"end"}},[s("span")])],1)],1),s("div",{staticClass:"taskflow-config-table-block"},[s("div",{staticClass:"taskflow-config-table-block-title"}),s("CheckboxGroup",{on:{"on-change":function(o){return t.onTurns(i)}},model:{value:i.turns,callback:function(o){t.$set(i,"turns",o)},expression:"item.turns"}},t._l(a.project_flow_item,function(o){return s("Checkbox",{key:o.id,attrs:{label:o.id,disabled:o.id==i.id}},[s("span")])}),1)],1)])])}),s("div",{staticClass:"taskflow-config-table-status-column addnew",on:{click:function(i){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",t._b({attrs:{model:t.settingData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[s("div",{staticClass:"workflow-setting-box"},[s("h3",[t._v(t._s(t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{prop:"userids",label:t.$L("\u72B6\u6001\u8D1F\u8D23\u4EBA")}},[s("UserSelect",{attrs:{"project-id":t.projectId,"multiple-max":5,title:t.$L("\u9009\u62E9\u72B6\u6001\u8D1F\u8D23\u4EBA")},model:{value:t.settingData.userids,callback:function(a){t.$set(t.settingData,"userids",a)},expression:"settingData.userids"}})],1),s("FormItem",{attrs:{prop:"usertype",label:t.$L("\u6D41\u8F6C\u6A21\u5F0F")}},[s("RadioGroup",{model:{value:t.settingData.usertype,callback:function(a){t.$set(t.settingData,"usertype",a)},expression:"settingData.usertype"}},[s("Radio",{attrs:{label:"add"}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"replace"}},[t._v(t._s(t.$L("\u6D41\u8F6C\u6A21\u5F0F")))]),s("Radio",{attrs:{label:"merge"}},[t._v(t._s(t.$L("\u5254\u9664\u6A21\u5F0F")))])],1),t.settingData.usertype=="replace"?s("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`\u6D41\u8F6C\u5230\u3010${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,i){return s("Option",{key:i,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)},Tt=[];const St={name:"ProjectWorkflow",components:{UserSelect:st,Draggable:Q},props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,list:[],openIndex:"",userShow:!1,settingData:{}}},mounted(){},computed:{...j(["cacheColumns","formOptions"]),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,i=s.scrollLeft;this.$nextTick(()=>{this.$refs[`overlay_${t.id}`].some(o=>{o!=e&&o.scrollTo(i,a)})})}))})})},contrast(t,e){return JSON.stringify(t)!=e},existDiff(){return!!this.list.find(t=>this.contrast(t.project_flow_item,t.project_flow_bak))},onCreate(){let t=-1*$A.randNum(1e3,1e4);this.list.push({id:t,name:"Default",project_flow_item:[{id:-10,name:this.$L("\u5F85\u5904\u7406"),status:"start",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-11,name:this.$L("\u8FDB\u884C\u4E2D"),status:"progress",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-12,name:this.$L("\u5F85\u6D4B\u8BD5"),status:"test",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-13,name:this.$L("\u5DF2\u5B8C\u6210"),status:"end",turns:[-10,-11,-12,-13,-14],userids:[],usertype:"add",userlimit:0,columnid:0},{id:-14,name:this.$L("\u5DF2\u53D6\u6D88"),status:"end",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:i})=>{s(i);let o=this.list.findIndex(({id:r})=>r==t.id);o>-1&&this.list.splice(o,1)}).catch(({msg:i})=>{a(i)}).finally(i=>{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:i})=>i);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(i=>{i.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 i=this.list.findIndex(({id:o})=>o==t.id);i>-1?this.list.splice(i,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)})}}},U={};var At=w(St,It,Tt,!1,Pt,null,null,null);function Pt(t){for(let e in U)this[e]=U[e]}var Et=function(){return At.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",t._b({attrs:{model:t.formData},nativeOn:{submit:function(a){a.preventDefault()}}},"Form",t.formOptions,!1),[s("div",{staticClass:"block-setting-box"},[s("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u5217\u6743\u9650")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_add,callback:function(a){t.$set(t.formData,"task_list_add",a)},expression:"formData.task_list_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_update,callback:function(a){t.$set(t.formData,"task_list_update",a)},expression:"formData.task_list_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_remove,callback:function(a){t.$set(t.formData,"task_list_remove",a)},expression:"formData.task_list_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u6392\u5E8F\u5217")}},[s("CheckboxGroup",{model:{value:t.formData.task_list_sort,callback:function(a){t.$set(t.formData,"task_list_sort",a)},expression:"formData.task_list_sort"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)]),s("div",{staticClass:"block-setting-box"},[s("h3",[t._v(t._s(t.$L("\u4EFB\u52A1\u6743\u9650")))]),s("div",{staticClass:"form-box"},[s("FormItem",{attrs:{label:t.$L("\u6DFB\u52A0\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_add,callback:function(a){t.$set(t.formData,"task_add",a)},expression:"formData.task_add"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_update,callback:function(a){t.$set(t.formData,"task_update",a)},expression:"formData.task_update"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u65F6\u95F4")}},[s("CheckboxGroup",{model:{value:t.formData.task_time,callback:function(a){t.$set(t.formData,"task_time",a)},expression:"formData.task_time"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u72B6\u6001")}},[s("CheckboxGroup",{model:{value:t.formData.task_status,callback:function(a){t.$set(t.formData,"task_status",a)},expression:"formData.task_status"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5F52\u6863\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_archived,callback:function(a){t.$set(t.formData,"task_archived",a)},expression:"formData.task_archived"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u5220\u9664\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_remove,callback:function(a){t.$set(t.formData,"task_remove",a)},expression:"formData.task_remove"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1),s("FormItem",{attrs:{label:t.$L("\u79FB\u52A8\u4EFB\u52A1")}},[s("CheckboxGroup",{model:{value:t.formData.task_move,callback:function(a){t.$set(t.formData,"task_move",a)},expression:"formData.task_move"}},[s("Checkbox",{attrs:{label:1,disabled:""}},[t._v(t._s(t.$L("\u9879\u76EE\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:3}},[t._v(t._s(t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")))]),s("Checkbox",{attrs:{label:4}},[t._v(t._s(t.$L("\u4EFB\u52A1\u534F\u52A9\u4EBA")))]),s("Checkbox",{attrs:{label:2}},[t._v(t._s(t.$L("\u9879\u76EE\u6210\u5458")))])],1)],1)],1)])])],1),s("div",{staticClass:"project-permission-footer",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.updateData}},[t._v(t._s(t.$L("\u4FEE\u6539")))]),s("Button",{attrs:{type:"default"},on:{click:t.onClose}},[t._v(t._s(t.$L("\u53D6\u6D88")))])],1)])},zt=[];const Ot={name:"ProjectPermission",props:{projectId:{type:Number,default:0}},data(){return{loadIng:0,formData:{project_task_list:[],task_add:[],task_update:[],task_time:[],task_status:[],task_archived:[],task_remove:[],task_move:[]}}},watch:{projectId:{handler(t){t&&this.getData()},immediate:!0}},computed:{...j(["formOptions"])},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission",data:{project_id:this.projectId}}).then(({data:t})=>{this.formData=t.permissions}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},updateData(){this.loadIng++,this.$store.dispatch("call",{url:"project/permission/update",method:"post",data:{project_id:this.projectId,...this.formData}}).then(({data:t})=>{this.formData=t.permissions,this.$Message.success(this.$L("\u4FEE\u6539\u6210\u529F"))}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onClose(){this.$emit("close")}}},B={};var Ft=w(Ot,Mt,zt,!1,Rt,null,null,null);function Rt(t){for(let e in B)this[e]=B[e]}var Wt=function(){return Ft.exports}(),Nt=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)])},Ut=[];const Bt={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:{...j(["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()})}}},Y={};var Yt=w(Bt,Nt,Ut,!1,Ht,null,null,null);function Ht(t){for(let e in Y)this[e]=Y[e]}var Vt=function(){return Yt.exports}(),Gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"common-gantt"},[s("div",{staticClass:"gantt-left",style:t.leftStyle},[s("div",{staticClass:"gantt-title"},[s("div",{staticClass:"gantt-title-text"},[t._v(t._s(t.$L("\u4EFB\u52A1\u540D\u79F0")))]),s("div",{staticClass:"gantt-title-right"},[t._t("titleTool")],2)]),s("ul",{ref:"ganttItem",staticClass:"gantt-item",on:{scroll:t.itemScrollListener,mouseenter:function(a){t.mouseType="item"}}},t._l(t.lists,function(a,i){return s("li",{key:i,on:{click:function(o){return t.clickItem(a,i)}}},[a.overdue?s("div",{staticClass:"item-overdue"},[t._v(t._s(t.$L("\u5DF2\u8D85\u671F")))]):t._e(),s("div",{staticClass:"item-title",class:{complete:a.complete,overdue:a.overdue}},[t._v(t._s(a.label))]),s("Icon",{staticClass:"item-icon",attrs:{type:"ios-locate-outline"},on:{click:function(o){return o.stopPropagation(),t.scrollPosition(i)}}})],1)}),0)]),s("div",{ref:"ganttRight",staticClass:"gantt-right"},[s("div",{staticClass:"gantt-size",on:{click:function(a){t.maximize=!t.maximize}}},[t.maximize?s("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):s("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),s("div",{ref:"ganttChart",staticClass:"gantt-chart",on:{touchstart:t.dateTouchstart,touchmove:t.dateTouchmove,touchend:t.dateTouchend}},[s("ul",{staticClass:"gantt-month"},t._l(t.monthNum,function(a,i){return s("li",{key:i,style:t.monthStyle(i)},[s("div",{staticClass:"month-format"},[t._v(t._s(t.monthFormat(i)))])])}),0),s("ul",{staticClass:"gantt-date",on:{mousedown:t.dateMouseDown}},t._l(t.dateNum,function(a,i){return s("li",{key:i,style:t.dateStyle(i)},[s("div",{staticClass:"date-format"},[s("div",{staticClass:"format-day"},[t._v(t._s(t.dateFormat(i,"day")))]),t.dateWidth>46?s("div",{staticClass:"format-week"},[t._v(t._s(t.dateFormat(i,"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,i){return s("li",{key:i,attrs:{"data-id":a.id}},[s("div",{staticClass:"timeline-item",style:t.itemStyle(a),on:{mousedown:function(o){return t.itemMouseDown(o,a)}}},[s("div",{staticClass:"timeline-title",attrs:{title:a.label}},[t._v(t._s(a.label))]),s("div",{staticClass:"timeline-resizer"})])])}),0)])])])},Zt=[];const Kt={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,maximize:!1}},mounted(){this.maximize=this.windowPortrait,this.dateWidth=this.itemWidth,this.$refs.ganttRight.addEventListener("mousewheel",this.handleScroll,!1),document.addEventListener("mousemove",this.itemMouseMove),document.addEventListener("mouseup",this.itemMouseUp),window.addEventListener("resize",this.handleResize,!1),this.handleResize()},beforeDestroy(){this.$refs.ganttRight.removeEventListener("mousewheel",this.handleScroll,!1),document.removeEventListener("mousemove",this.itemMouseMove),document.removeEventListener("mouseup",this.itemMouseUp),window.removeEventListener("resize",this.handleResize,!1)},watch:{itemWidth(t){this.dateWidth=t},maximize(){this.$nextTick(()=>{this.handleResize()})}},computed:{leftStyle({menuWidth:t,maximize:e}){const s={width:t+"px"};return e&&(s.display="none"),s},monthNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e/30)+2},monthStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=$A.daytz().startOf("day").clone().add(a*86400,"second"),r=o.clone().endOf("month"),n=(r-o)/1e3/60/60/24,l=e*n;return s>0&&(r=o.clone().add(s+1,"month").endOf("month"),l=r.date()*e),{width:l+"px"}}},monthFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s){let a=t==0?0:t/e,o=$A.daytz().startOf("day").clone().add(a,"day");return s>0&&(o=o.add(s+1,"month")),o.format("YYYY-MM")}},dateNum(){const{ganttWidth:t,dateWidth:e}=this;return Math.floor(t/e)+2},dateStyle(){const{mouseWidth:t,dateWidth:e}=this;return function(s){const a={};let i=t==0?0:t/e,o=Math.floor(i)+s;i==Math.floor(i)&&o--;let r=t==0?s-1:o,n=$A.daytz().add(r,"day");[0,6].indexOf(n.day())!==-1&&(a.backgroundColor="#f9fafb");let l=e;return s==0&&(l=Math.abs((t%l-l)%l)),a.width=l+"px",a}},dateFormat(){const{mouseWidth:t,dateWidth:e}=this;return function(s,a){let i=t==0?0:t/e,o=Math.floor(i)+s;i==Math.floor(i)&&o--;let r=t==0?s-1:o,n=$A.daytz().add(r,"day");return a=="day"?n.date():a=="week"?this.$L(`\u661F\u671F${"\u65E5\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D".charAt(n.day())}`):n}},itemStyle(){const{mouseWidth:t,dateWidth:e,ganttWidth:s}=this;return function(a){const{start:i,end:o}=a.time,{style:r,moveX:n,moveW:l}=a;let h=$A.daytz().startOf("day").valueOf(),_=(i-h)/1e3/60/60/24,y=(o-h)/1e3/60/60/24,c=e*_+t*-1,b=Math.max(10,e*(y-_));typeof n=="number"&&(c+=n),typeof l=="number"&&(b+=l);const k={left:Math.min(Math.max(c,b*-1.2),s*1.2).toFixed(2)+"px",width:b.toFixed(2)+"px"};return c<0&&Math.abs(c)s&&ce.scrollHeight-e.clientHeight&&(s=e.scrollHeight-e.clientHeight),e.scrollTop!=s&&(this.mouseType="timeline",e.scrollTop=s)}t.deltaX!=0&&(this.mouseWidth+=t.deltaX,this.mouseScaleWidth+=t.deltaX*(100/this.dateWidth))},handleResize(){this.ganttWidth=this.$refs.ganttTimeline.clientWidth},dateTouchstart(t){this.windowPortrait&&(this.maximize=!0);let e=t.target.parentNode,s=null;for(;e&&!(!e||e===this.$refs.ganttChart);){if(e.tagName==="LI"){const a=e.getAttribute("data-id");a&&(s=this.lists.find(({id:i})=>a==i))}e=e.parentNode}if(!s){this.onDateMove(t.touches[0].clientX);return}this.onItemMove(s,t.target,t.touches[0].clientX)},dateTouchmove(t){this.onMoving(t.touches[0].clientX)},dateTouchend(){this.onMoveOver(null)},dateMouseDown(t){t.preventDefault(),this.onDateMove(t.clientX)},itemMouseDown(t,e){t.preventDefault(),this.onItemMove(e,t.target,t.clientX)},itemMouseMove(t){(this.mouseItem!=null||this.dateMove!=null)&&(t.preventDefault(),this.onMoving(t.clientX))},itemMouseUp(t){this.onMoveOver(t.target)},onDateMove(t){this.mouseItem=null,this.dateMove={clientX:t}},onItemMove(t,e,s){let a="moveX";e.classList.contains("timeline-resizer")&&(a="moveW"),typeof t[a]!="number"&&this.$set(t,a,0),this.mouseBak={type:a,clientX:s,value:t[a]},this.mouseItem=t,this.dateMove=null},onMoving(t){if(this.mouseItem!=null){const e=this.mouseBak.value+(t-this.mouseBak.clientX);if(this.mouseBak.type==="moveW"){const s=864e5/this.dateWidth,{start:a,end:i}=this.mouseItem.time;let o=e*s;if(i+o-a<=0)return}this.$set(this.mouseItem,this.mouseBak.type,e);return}if(this.dateMove!=null){let e=(this.dateMove.clientX-t)*5;this.dateMove.clientX=t,this.mouseWidth+=e,this.mouseScaleWidth+=e*(100/this.dateWidth)}},onMoveOver(t){if(this.mouseItem!=null){const{start:e,end:s}=this.mouseItem.time;let a=!1,i=864e5/this.dateWidth;if(typeof this.mouseItem.moveX=="number"&&this.mouseItem.moveX!=0){let o=this.mouseItem.moveX*i;this.$set(this.mouseItem.time,"start",e+o),this.$set(this.mouseItem.time,"end",s+o),this.$set(this.mouseItem,"moveX",0),a=!0}if(typeof this.mouseItem.moveW=="number"&&this.mouseItem.moveW!=0){let o=this.mouseItem.moveW*i;this.$set(this.mouseItem.time,"end",s+o),this.$set(this.mouseItem,"moveW",0),a=!0}a?this.$emit("on-change",this.mouseItem):t&&t.className=="timeline-title"&&this.clickItem(this.mouseItem),this.mouseItem=null;return}this.dateMove!=null&&(this.dateMove=null)},scrollPosition(t){let e=$A.daytz().startOf("day").valueOf(),s=864e5/this.dateWidth,a=(this.lists[t].time.start-e)/s-this.dateWidth-this.mouseWidth;this.mouseWidth+=a,this.mouseScaleWidth+=a*(100/this.dateWidth)},clickItem(t,e=void 0){if(e!==void 0&&this.windowPortrait){this.scrollPosition(e);return}this.$emit("on-click",t)}}},H={};var Xt=w(Kt,Gt,Zt,!1,qt,null,null,null);function qt(t){for(let e in H)this[e]=H[e]}var Jt=function(){return Xt.exports}(),Qt=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},scopedSlots:t._u([{key:"titleTool",fn:function(){return[s("Dropdown",{staticClass:"project-gstc-dropdown-filtr",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,i){return s("DropdownItem",{key:i,class:{"dropdown-active":t.filtrProjectId==a.id},attrs:{name:a.id}},[t._v(" "+t._s(a.name)+" "),a.tasks?s("span",[t._v("("+t._s(t.filtrLength(a.tasks))+")")]):t._e()])})],2)],1)]},proxy:!0}])}),s("div",{staticClass:"project-gstc-edit",class:{info:t.editShowInfo,visible:t.editData&&t.editData.length>0}},[s("div",{staticClass:"project-gstc-edit-info"},[s("Table",{attrs:{"max-height":"600",columns:t.editColumns,data:t.editData}}),s("div",{staticClass:"project-gstc-edit-btns"},[s("Button",{attrs:{loading:t.editLoad>0,type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),s("Icon",{staticClass:"zoom",attrs:{type:"md-arrow-dropright"},on:{click:function(a){t.editShowInfo=!1}}})],1)],1),s("div",{staticClass:"project-gstc-edit-small"},[s("div",{staticClass:"project-gstc-edit-text",on:{click:function(a){t.editShowInfo=!0}}},[t._v(t._s(t.$L("\u672A\u4FDD\u5B58\u8BA1\u5212\u65F6\u95F4"))+": "),t.editData?s("span",[t._v(t._s(t.editData.length))]):t._e()]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"text"},on:{click:function(a){return t.editSubmit(!1)}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),s("Button",{attrs:{loading:t.editLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.editSubmit(!0)}}},[t._v(t._s(t.$L("\u4FDD\u5B58")))])],1)])],1)},te=[];const ee={name:"ProjectGantt",components:{GanttView:Jt},props:{projectColumn:{default:[]},flowInfo:{default:{}}},data(){return{lists:[],filtrProjectId:0,editColumns:[{title:this.$L("\u4EFB\u52A1\u540D\u79F0"),key:"label",minWidth:100,ellipsis:!0},{title:this.$L("\u539F\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>e.notime===!0?t("span","-"):t("div",{style:{}},[t("div",$A.dayjs(e.baktime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.baktime.end).format("YYYY-MM-DD HH:mm"))])},{title:this.$L("\u65B0\u8BA1\u5212\u65F6\u95F4"),width:140,align:"center",render:(t,{row:e})=>t("div",{style:{}},[t("div",$A.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm")),t("div",$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"))])}],editData:[],editLoad:0,editShowInfo:!1}},mounted(){this.initData()},computed:{...j(["taskPriority"]),...O(["projectData"]),menuWidth(){return this.windowWidth<1440?180:260},completedTask(){return this.projectData.cacheParameter.completedTask}},watch:{projectColumn:{handler(){this.initData()},deep:!0},flowInfo:{handler(){this.initData()},deep:!0},completedTask(){this.initData()}},methods:{initData(){this.lists=[],this.projectColumn&&this.projectColumn.some(this.checkAdd)},flowTask(t){return $A.leftExists(this.flowInfo.value,"user:")&&!t.task_user.find(({userid:e,owner:s})=>e===this.flowInfo.userid&&s)?!0:this.flowInfo.value>0&&t.flow_item_id!==this.flowInfo.value},filtrLength(t){return t.filter(e=>!(e.complete_at&&!this.completedTask||this.flowTask(e))).length},checkAdd(t){this.filtrProjectId>0&&t.id!=this.filtrProjectId||t.tasks&&t.tasks.some(e=>{let s=!e.start_at||!e.end_at,a=this.getTimeObj(e),i=a.start,o=a.end;if(e.complete_at&&!this.completedTask||this.flowTask(e))return!1;let r="#058ce4";this.taskPriority.some(_=>{if(_.priority===e.p_level)return r=_.color,!0});let n={start:i,end:o},l=$A.cloneJSON(n),h=this.editData.find(({id:_})=>_==e.id);h&&(n=$A.cloneJSON(h.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:i})=>i==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.dayjs(e.newTime.start).format("YYYY-MM-DD HH:mm"),i=$A.dayjs(e.newTime.end).format("YYYY-MM-DD HH:mm"),o={task_id:e.id,times:[a,i]};this.$store.dispatch("taskUpdate",o).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=t.start_at?$A.dayjs(t.start_at):$A.dayjs(t.created_at).startOf("day"),s=t.end_at?$A.dayjs(t.end_at):e.clone();return s.unix()==e.unix()&&(s=s.endOf("day")),{start:e.valueOf(),end:Math.max(s.valueOf(),e.valueOf()+6e4)}},onSwitchColumn(t){this.filtrProjectId=$A.runNum(t),this.initData()}}},V={};var se=w(ee,Qt,te,!1,ae,null,null,null);function ae(t){for(let e in V)this[e]=V[e]}var ie=function(){return se.exports}(),u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};u._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;u._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;u.def=v(u.def).replace("label",u._label).replace("title",u._title).getRegex();u.bullet=/(?:[*+-]|\d{1,9}\.)/;u.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;u.item=v(u.item,"gm").replace(/bull/g,u.bullet).getRegex();u.list=v(u.list).replace(/bull/g,u.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+u.def.source+")").getRegex();u._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";u._comment=//;u.html=v(u.html,"i").replace("comment",u._comment).replace("tag",u._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();u.paragraph=v(u._paragraph).replace("hr",u.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",u._tag).getRegex();u.blockquote=v(u.blockquote).replace("paragraph",u.paragraph).getRegex();u.normal=x({},u);u.gfm=x({},u.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});u.pedantic=x({},u.normal,{html:v(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",u._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:I,paragraph:v(u.normal._paragraph).replace("hr",u.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",u.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});function D(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||m.defaults,this.rules=u.normal,this.options.pedantic?this.rules=u.pedantic:this.options.gfm&&(this.rules=u.gfm)}D.rules=u;D.lex=function(t,e){var s=new D(e);return s.lex(t)};D.prototype.lex=function(t){return t=t.replace(/\r\n|\r/g,` `).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,` `),this.token(t,!0)};D.prototype.token=function(t,e){t=t.replace(/^ +$/gm,"");for(var s,a,i,o,r,n,l,h,_,y,c,b,k,A,P,E;t;){if((i=this.rules.newline.exec(t))&&(t=t.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(t)){var M=this.tokens[this.tokens.length-1];t=t.substring(i[0].length),M&&M.type==="paragraph"?M.text+=` diff --git a/public/js/build/projectInvite.6b40c864.js b/public/js/build/projectInvite.90612102.js similarity index 92% rename from public/js/build/projectInvite.6b40c864.js rename to public/js/build/projectInvite.90612102.js index d24ca5aa9..2c1e34fdc 100644 --- a/public/js/build/projectInvite.6b40c864.js +++ b/public/js/build/projectInvite.90612102.js @@ -1 +1 @@ -import{m as r}from"./vuex.cc7cb26e.js";import{n as a}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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/reportDetail.312f7535.js b/public/js/build/reportDetail.becb3dea.js similarity index 81% rename from public/js/build/reportDetail.312f7535.js rename to public/js/build/reportDetail.becb3dea.js index c5cabdaca..c43b2bb65 100644 --- a/public/js/build/reportDetail.312f7535.js +++ b/public/js/build/reportDetail.becb3dea.js @@ -1 +1 @@ -import{R as o}from"./ReportDetail.1ea08cae.js";import{n as p}from"./app.d8851986.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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}; +import{R as o}from"./ReportDetail.b39ad266.js";import{n as p}from"./app.879f8ead.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.53145ec5.js b/public/js/build/reportEdit.2220c6f1.js similarity index 85% rename from public/js/build/reportEdit.53145ec5.js rename to public/js/build/reportEdit.2220c6f1.js index 05b8fb520..315424c3a 100644 --- a/public/js/build/reportEdit.53145ec5.js +++ b/public/js/build/reportEdit.2220c6f1.js @@ -1 +1 @@ -import{R as o}from"./ReportEdit.22763e0c.js";import{n as p}from"./app.d8851986.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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.8be7d715.js";import{n as p}from"./app.879f8ead.js";import"./openpgp_hi.15f91b1d.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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/swipe.ee8ae442.js b/public/js/build/swipe.e6b4680e.js similarity index 87% rename from public/js/build/swipe.ee8ae442.js rename to public/js/build/swipe.e6b4680e.js index 70754c5ce..df35be178 100644 --- a/public/js/build/swipe.ee8ae442.js +++ b/public/js/build/swipe.e6b4680e.js @@ -1 +1 @@ -import{_ as m}from"./openpgp_hi.15f91b1d.js";import{P as l}from"./photoswipe.a7142509.js";import{n as h}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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+" no-dark-content",showHideAnimationType:"none",pswpModule:()=>m(()=>import("./photoswipe.a7142509.js").then(function(t){return t.p}),["js/build/photoswipe.a7142509.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.a7142509.js";import{n as h}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.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+" no-dark-content",showHideAnimationType:"none",pswpModule:()=>m(()=>import("./photoswipe.a7142509.js").then(function(t){return t.p}),["js/build/photoswipe.a7142509.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.2285283c.js b/public/js/build/system.7c99cb3f.js similarity index 98% rename from public/js/build/system.2285283c.js rename to public/js/build/system.7c99cb3f.js index 5391f53f0..d9597482c 100644 --- a/public/js/build/system.2285283c.js +++ b/public/js/build/system.7c99cb3f.js @@ -1 +1 @@ -import{m}from"./vuex.cc7cb26e.js";import{n as i}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum},nativeOn:{submit:function(o){o.preventDefault()}}},"Form",t.formOptions,!1),[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(o){t.$set(t.formDatum,"reg",o)},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(o){t.$set(t.formDatum,"reg_invite",o)},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(o){t.$set(t.formDatum,"reg_identity",o)},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(o){t.$set(t.formDatum,"temp_account_alias",o)},expression:"formDatum.temp_account_alias"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(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(o){t.$set(t.formDatum,"login_code",o)},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(o){t.$set(t.formDatum,"password_policy",o)},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(o){t.$set(t.formDatum,"project_invite",o)},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(o){t.$set(t.formDatum,"archived_day",o)},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(o){t.$set(t.formDatum,"task_visible",o)},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(o){t.$set(t.formDatum,"task_default_time",o)},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(o){t.$set(t.formDatum,"unclaimed_task_reminder_time",o)},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("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(o){t.$set(t.formDatum,"all_group_autoin",o)},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("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(o){t.$set(t.formDatum,"all_group_mute",o)},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("\u79C1\u804A\u7981\u8A00"),prop:"userPrivateChatMute"}},[a("RadioGroup",{model:{value:t.formDatum.user_private_chat_mute,callback:function(o){t.$set(t.formDatum,"user_private_chat_mute",o)},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(o){t.$set(t.formDatum,"user_group_chat_mute",o)},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(o){t.$set(t.formDatum,"chat_information",o)},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(o){t.$set(t.formDatum,"anon_message",o)},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("\u8BED\u97F3\u8F6C\u6587\u5B57"),prop:"voice2text"}},[a("RadioGroup",{model:{value:t.formDatum.voice2text,callback:function(o){t.$set(t.formDatum,"voice2text",o)},expression:"formDatum.voice2text"}},[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.voice2text=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u957F\u6309\u8BED\u97F3\u6D88\u606F\u53EF\u8F6C\u6362\u6210\u6587\u5B57\u3002"))+" ("+t._s(t.$L("\u9700\u8981\u5728\u5E94\u7528\u4E2D\u5F00\u542F ChatGPT AI \u673A\u5668\u4EBA"))+")")]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u8BED\u97F3\u8F6C\u6587\u5B57\u529F\u80FD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u7FFB\u8BD1\u6D88\u606F"),prop:"translation"}},[a("RadioGroup",{model:{value:t.formDatum.translation,callback:function(o){t.$set(t.formDatum,"translation",o)},expression:"formDatum.translation"}},[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.translation=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u957F\u6309\u6587\u672C\u6D88\u606F\u53EF\u7FFB\u8BD1\u6210\u5F53\u524D\u8BBE\u7F6E\u7684\u8BED\u8A00\u3002"))+" ("+t._s(t.$L("\u9700\u8981\u5728\u5E94\u7528\u4E2D\u5F00\u542F ChatGPT AI \u673A\u5668\u4EBA"))+")")]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u6587\u672C\u6D88\u606F\u7FFB\u8BD1\u529F\u80FD\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(o){t.$set(t.formDatum,"e2e_message",o)},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(o){t.$set(t.formDatum,"image_compress",o)},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(o){t.$set(t.formDatum,"image_save_local",o)},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(o){t.$set(t.formDatum,"file_upload_limit",o)},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(o){t.$set(t.formDatum,"start_home",o)},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()},computed:{...m(["formOptions"])},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:e})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=e,this.formDatum_bak=$A.cloneJSON(this.formDatum),this.$store.state.systemConfig=Object.assign(this.formDatum_bak,{__state:"success"})}).catch(({msg:e})=>{t&&$A.modalError(e)}).finally(e=>{this.loadIng--})}}},l={};var f=i(d,c,p,!1,v,null,null,null);function v(t){for(let e in l)this[e]=l[e]}var $=function(){return f.exports}(),D=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(o){o.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(o,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:o.name,callback:function(s){t.$set(o,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:o.priority,callback:function(s){t.$set(o,"priority",s)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:o.days,callback:function(s){t.$set(o,"days",s)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:o.color,callback:function(s){t.$set(o,"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:{...m(["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:e})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(e)}).catch(({msg:e})=>{t&&$A.modalError(e)}).finally(e=>{this.loadIng--})}}},n={};var L=i(h,D,b,!1,g,null,null,null);function g(t){for(let e in n)this[e]=n[e]}var y=function(){return L.exports}(),C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(o){o.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(o,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:o.name,callback:function(s){t.$set(o,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:o.columns,callback:function(s){t.$set(o,"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:{...m(["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:e})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(e).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:e})=>{t&&$A.modalError(e)}).finally(e=>{this.loadIng--})}}},u={};var R=i(x,C,k,!1,I,null,null,null);function I(t){for(let e in u)this[e]=u[e]}var S=function(){return R.exports}(),F=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(o){t.tabAction=o},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"}}},_={};var G=i(T,F,A,!1,w,null,null,null);function w(t){for(let e in _)this[e]=_[e]}var $t=function(){return G.exports}();export{$t as default}; +import{m}from"./vuex.cc7cb26e.js";import{n as i}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-component-item"},[a("Form",t._b({ref:"formDatum",attrs:{model:t.formDatum},nativeOn:{submit:function(o){o.preventDefault()}}},"Form",t.formOptions,!1),[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(o){t.$set(t.formDatum,"reg",o)},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(o){t.$set(t.formDatum,"reg_invite",o)},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(o){t.$set(t.formDatum,"reg_identity",o)},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(o){t.$set(t.formDatum,"temp_account_alias",o)},expression:"formDatum.temp_account_alias"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(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(o){t.$set(t.formDatum,"login_code",o)},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(o){t.$set(t.formDatum,"password_policy",o)},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(o){t.$set(t.formDatum,"project_invite",o)},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(o){t.$set(t.formDatum,"archived_day",o)},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(o){t.$set(t.formDatum,"task_visible",o)},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(o){t.$set(t.formDatum,"task_default_time",o)},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(o){t.$set(t.formDatum,"unclaimed_task_reminder_time",o)},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("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(o){t.$set(t.formDatum,"all_group_autoin",o)},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("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(o){t.$set(t.formDatum,"all_group_mute",o)},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("\u79C1\u804A\u7981\u8A00"),prop:"userPrivateChatMute"}},[a("RadioGroup",{model:{value:t.formDatum.user_private_chat_mute,callback:function(o){t.$set(t.formDatum,"user_private_chat_mute",o)},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(o){t.$set(t.formDatum,"user_group_chat_mute",o)},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(o){t.$set(t.formDatum,"chat_information",o)},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(o){t.$set(t.formDatum,"anon_message",o)},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("\u8BED\u97F3\u8F6C\u6587\u5B57"),prop:"voice2text"}},[a("RadioGroup",{model:{value:t.formDatum.voice2text,callback:function(o){t.$set(t.formDatum,"voice2text",o)},expression:"formDatum.voice2text"}},[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.voice2text=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u957F\u6309\u8BED\u97F3\u6D88\u606F\u53EF\u8F6C\u6362\u6210\u6587\u5B57\u3002"))+" ("+t._s(t.$L("\u9700\u8981\u5728\u5E94\u7528\u4E2D\u5F00\u542F ChatGPT AI \u673A\u5668\u4EBA"))+")")]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u8BED\u97F3\u8F6C\u6587\u5B57\u529F\u80FD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u7FFB\u8BD1\u6D88\u606F"),prop:"translation"}},[a("RadioGroup",{model:{value:t.formDatum.translation,callback:function(o){t.$set(t.formDatum,"translation",o)},expression:"formDatum.translation"}},[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.translation=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u957F\u6309\u6587\u672C\u6D88\u606F\u53EF\u7FFB\u8BD1\u6210\u5F53\u524D\u8BBE\u7F6E\u7684\u8BED\u8A00\u3002"))+" ("+t._s(t.$L("\u9700\u8981\u5728\u5E94\u7528\u4E2D\u5F00\u542F ChatGPT AI \u673A\u5668\u4EBA"))+")")]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\u6587\u672C\u6D88\u606F\u7FFB\u8BD1\u529F\u80FD\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(o){t.$set(t.formDatum,"e2e_message",o)},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(o){t.$set(t.formDatum,"image_compress",o)},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(o){t.$set(t.formDatum,"image_save_local",o)},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(o){t.$set(t.formDatum,"file_upload_limit",o)},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(o){t.$set(t.formDatum,"start_home",o)},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()},computed:{...m(["formOptions"])},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:e})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=e,this.formDatum_bak=$A.cloneJSON(this.formDatum),this.$store.state.systemConfig=Object.assign(this.formDatum_bak,{__state:"success"})}).catch(({msg:e})=>{t&&$A.modalError(e)}).finally(e=>{this.loadIng--})}}},l={};var f=i(d,c,p,!1,v,null,null,null);function v(t){for(let e in l)this[e]=l[e]}var $=function(){return f.exports}(),D=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(o){o.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(o,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:o.name,callback:function(s){t.$set(o,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:o.priority,callback:function(s){t.$set(o,"priority",s)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:o.days,callback:function(s){t.$set(o,"days",s)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:o.color,callback:function(s){t.$set(o,"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:{...m(["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:e})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(e)}).catch(({msg:e})=>{t&&$A.modalError(e)}).finally(e=>{this.loadIng--})}}},n={};var L=i(h,D,b,!1,g,null,null,null);function g(t){for(let e in n)this[e]=n[e]}var y=function(){return L.exports}(),C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(o){o.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(o,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:o.name,callback:function(s){t.$set(o,"name",s)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:o.columns,callback:function(s){t.$set(o,"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:{...m(["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:e})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(e).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:e})=>{t&&$A.modalError(e)}).finally(e=>{this.loadIng--})}}},u={};var R=i(x,C,k,!1,I,null,null,null);function I(t){for(let e in u)this[e]=u[e]}var S=function(){return R.exports}(),F=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(o){t.tabAction=o},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"}}},_={};var G=i(T,F,A,!1,w,null,null,null);function w(t){for(let e in _)this[e]=_[e]}var $t=function(){return G.exports}();export{$t as default}; diff --git a/public/js/build/task.1f0c8920.js b/public/js/build/task.933db9c8.js similarity index 85% rename from public/js/build/task.1f0c8920.js rename to public/js/build/task.933db9c8.js index b9d256488..5ed6b70b4 100644 --- a/public/js/build/task.1f0c8920.js +++ b/public/js/build/task.933db9c8.js @@ -1 +1 @@ -import{b as i}from"./TaskDetail.75c13dec.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.d8851986.js";import"./ProjectLog.d652e5c8.js";import"./DialogWrapper.86de099a.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.4892e747.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./@babel.49d8906a.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue.c448ed56.js";import"./view-design-hi.563cfadb.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.52758ba6.js";import"./tip.7b94707c.js";import"./TEditor.8a7b6b4c.js";import"./tinymce.46b8e261.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-task"},[r("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?r("Loading"):r("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},p=[];const m={components:{TaskDetail:i},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$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}; +import{b as i}from"./TaskDetail.4cdae640.js";import{m as s}from"./vuex.cc7cb26e.js";import{n as a}from"./app.879f8ead.js";import"./ProjectLog.12dff91b.js";import"./DialogWrapper.df01caa2.js";import"./le5le-store.b40f9152.js";import"./longpress.5305f240.js";import"./index.e6513292.js";import"./quill-hi.b7c37d93.js";import"./parchment.d5c5924e.js";import"./quill-delta.4f4718f3.js";import"./@babel.49d8906a.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.fa843a7a.js";import"./lodash.isequal.7dda43a9.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.df04b444.js";import"./quill-mention-hi.f348056f.js";import"./vue.c448ed56.js";import"./view-design-hi.d2045547.js";import"./vue-virtual-scroll-list-hi.3a8a6077.js";import"./ImgUpload.cc22c426.js";import"./tip.434a62e4.js";import"./TEditor.dfcd2131.js";import"./tinymce.46b8e261.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-task"},[r("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?r("Loading"):r("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},p=[];const m={components:{TaskDetail:i},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$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.b7f2a3f0.js b/public/js/build/taskContent.4da98bb7.js similarity index 87% rename from public/js/build/taskContent.b7f2a3f0.js rename to public/js/build/taskContent.4da98bb7.js index 929d0d1db..6f8da1efb 100644 --- a/public/js/build/taskContent.b7f2a3f0.js +++ b/public/js/build/taskContent.4da98bb7.js @@ -1 +1 @@ -import o from"./TEditor.8a7b6b4c.js";import{n as s}from"./app.d8851986.js";import"./tinymce.46b8e261.js";import"./@babel.49d8906a.js";import"./ImgUpload.52758ba6.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"file-preview"},[r("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?r("Loading"):t.info?r("div",{staticClass:"file-preview"},[t.showHeader?r("div",{staticClass:"edit-header"},[r("div",{staticClass:"header-title"},[r("div",{staticClass:"title-name"},[t._v(t._s(t.pageName))]),r("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),r("div",{staticClass:"refresh"},[r("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getInfo}})],1)],1)]):t._e(),r("div",{staticClass:"content-body"},[r("TEditor",{attrs:{value:t.info.content,height:"100%",readOnly:""}})],1)]):t._e()],1)},n=[];const m={components:{TEditor:o},data(){return{loadIng:0,info:null,showHeader:!$A.isEEUiApp}},mounted(){},computed:{taskId(){return this.$route.params?$A.runNum(this.$route.params.taskId):0},historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.info?`${this.info.name} [${this.info.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"project/task/content",data:{task_id:this.taskId,history_id:this.historyId}}).then(({data:t})=>{this.info=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},e={};var p=s(m,a,n,!1,l,"5294fc91",null,null);function l(t){for(let i in e)this[i]=e[i]}var W=function(){return p.exports}();export{W as default}; +import o from"./TEditor.dfcd2131.js";import{n as s}from"./app.879f8ead.js";import"./tinymce.46b8e261.js";import"./@babel.49d8906a.js";import"./ImgUpload.cc22c426.js";import"./vuex.cc7cb26e.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var a=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"file-preview"},[r("PageTitle",{attrs:{title:t.pageName}}),t.loadIng>0?r("Loading"):t.info?r("div",{staticClass:"file-preview"},[t.showHeader?r("div",{staticClass:"edit-header"},[r("div",{staticClass:"header-title"},[r("div",{staticClass:"title-name"},[t._v(t._s(t.pageName))]),r("Tag",{attrs:{color:"default"}},[t._v(t._s(t.$L("\u53EA\u8BFB")))]),r("div",{staticClass:"refresh"},[r("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getInfo}})],1)],1)]):t._e(),r("div",{staticClass:"content-body"},[r("TEditor",{attrs:{value:t.info.content,height:"100%",readOnly:""}})],1)]):t._e()],1)},n=[];const m={components:{TEditor:o},data(){return{loadIng:0,info:null,showHeader:!$A.isEEUiApp}},mounted(){},computed:{taskId(){return this.$route.params?$A.runNum(this.$route.params.taskId):0},historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},pageName(){return this.$route.query&&this.$route.query.history_title?this.$route.query.history_title:this.info?`${this.info.name} [${this.info.created_at}]`:""}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"project/task/content",data:{task_id:this.taskId,history_id:this.historyId}}).then(({data:t})=>{this.info=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},e={};var p=s(m,a,n,!1,l,"5294fc91",null,null);function l(t){for(let i in e)this[i]=e[i]}var W=function(){return p.exports}();export{W as default}; diff --git a/public/js/build/theme.0b3233cd.js b/public/js/build/theme.8768a33d.js similarity index 90% rename from public/js/build/theme.0b3233cd.js rename to public/js/build/theme.8768a33d.js index 13e9f0b2e..d86a3d330 100644 --- a/public/js/build/theme.0b3233cd.js +++ b/public/js/build/theme.8768a33d.js @@ -1 +1 @@ -import{m as a}from"./vuex.cc7cb26e.js";import{n as s}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,o=t._self._c||r;return o("div",{staticClass:"setting-item submit"},[o("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[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(e){t.$set(t.formData,"theme",e)},expression:"formData.theme"}},t._l(t.themeList,function(e,i){return o("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(t.$L(e.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)},p=[];const l={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...a(["themeConf","themeList","formOptions"])},methods:{initData(){this.$set(this.formData,"theme",this.themeConf),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(r=>{r&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},m={};var f=s(l,n,p,!1,c,null,null,null);function c(t){for(let r in m)this[r]=m[r]}var V=function(){return f.exports}();export{V as default}; +import{m as a}from"./vuex.cc7cb26e.js";import{n as s}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var t=this,r=t.$createElement,o=t._self._c||r;return o("div",{staticClass:"setting-item submit"},[o("Form",t._b({ref:"formData",attrs:{model:t.formData,rules:t.ruleData},nativeOn:{submit:function(e){e.preventDefault()}}},"Form",t.formOptions,!1),[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(e){t.$set(t.formData,"theme",e)},expression:"formData.theme"}},t._l(t.themeList,function(e,i){return o("Option",{key:i,attrs:{value:e.value}},[t._v(t._s(t.$L(e.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)},p=[];const l={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...a(["themeConf","themeList","formOptions"])},methods:{initData(){this.$set(this.formData,"theme",this.themeConf),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(r=>{r&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},m={};var f=s(l,n,p,!1,c,null,null,null);function c(t){for(let r in m)this[r]=m[r]}var V=function(){return f.exports}();export{V as default}; diff --git a/public/js/build/tip.7b94707c.js b/public/js/build/tip.434a62e4.js similarity index 98% rename from public/js/build/tip.7b94707c.js rename to public/js/build/tip.434a62e4.js index 0441ca9cf..eaeb88ec4 100644 --- a/public/js/build/tip.7b94707c.js +++ b/public/js/build/tip.434a62e4.js @@ -1 +1 @@ -import{n as l,m as u}from"./app.d8851986.js";var d=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ETooltip",{attrs:{"open-delay":e.openDelay,disabled:e.$isEEUiApp||e.windowTouch||e.tooltipDisabled||e.isBot,placement:e.tooltipPlacement}},[e.user?t("div",{staticClass:"common-avatar-transfer",attrs:{slot:"content"},slot:"content"},[e._t("default"),t("p",[e._v(e._s(e.$L("\u6635\u79F0"))+": "+e._s(e.user.nickname)),e.user.delete_at?t("em",{staticClass:"deleted no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u5220\u9664")))]):e.user.disable_at?t("em",{staticClass:"disabled no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u79BB\u804C")))]):e._e()]),t("p",{staticClass:"department-name",attrs:{title:e.user.department_name||""}},[e._v(e._s(e.$L("\u90E8\u95E8"))+": "+e._s(e.user.department_name||"-"))]),t("p",[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0"))+": "+e._s(e.user.profession||"-"))]),e.user.delete_at?t("p",[t("strong",[e._v(e._s(e.$L("\u5220\u9664\u65F6\u95F4"))+": "+e._s(e.user.delete_at))])]):e.user.disable_at?t("p",[t("strong",[e._v(e._s(e.$L("\u79BB\u804C\u65F6\u95F4"))+": "+e._s(e.user.disable_at))])]):e._e(),e._t("end"),e.showMenu?t("div",{staticClass:"avatar-icons"},[t("Icon",{attrs:{type:"ios-chatbubbles"},on:{click:e.onOpenDialog}})],1):e._e()],2):e._e(),t("div",[t("UserAvatar",{ref:"avatar",attrs:{userid:e.userid,size:e.size,showIcon:e.showIcon,showName:e.showName,nameText:e.nameText,borderWitdh:e.borderWitdh,borderColor:e.borderColor,clickOpenDialog:e.clickOpenDialog,userResult:e.onUserResult}})],1)])},c=[];const _={name:"UserAvatarTip",mixins:[u],props:{tooltipDisabled:{type:Boolean,default:!1},showIconMenu:{type:Boolean,default:!1},tooltipPlacement:{type:String,default:"bottom"},openDelay:{type:Number,default:600}},data(){return{user:null}},mounted(){this.$listeners["update:online"]&&(this.$watch("userid",()=>{this.updateOnline()}),this.$watch("user.online",()=>{this.updateOnline()}),this.updateOnline())},computed:{showMenu(){return this.$store.state.userId==this.userid||this.user.delete_at||this.user.disable_at?!1:this.showIconMenu},isBot(){return!!(this.user&&this.user.bot)}},methods:{onOpenDialog(){this.$refs.avatar.openDialog()},onUserResult(e){typeof this.userResult=="function"&&this.userResult(e),this.user=e},updateOnline(){if(!!this.user)if(this.user.online||this.$store.state.userId===this.userid)this.$emit("update:online",!0);else{const e=$A.daytz(),s=$A.dayjs(this.user.line_at),t=e.unix()-s.unix();let n="\u6700\u540E\u5728\u7EBF\u4E8E\u5F88\u4E45\u4EE5\u524D";if(t<60)n="\u6700\u540E\u5728\u7EBF\u4E8E\u521A\u521A";else if(t<3600)n=`\u6700\u540E\u5728\u7EBF\u4E8E ${Math.floor(t/60)} \u5206\u949F\u524D`;else if(t<3600*6)n=`\u6700\u540E\u5728\u7EBF\u4E8E ${Math.floor(t/3600)} \u5C0F\u65F6\u524D`;else{const r=e.format("YYYY-MM-DD"),a=s.format("YYYY-MM-DD"),i=s.format("HH:mm");r===a?n=`\u6700\u540E\u5728\u7EBF\u4E8E\u4ECA\u5929 ${i}`:e.clone().subtract(1,"day").format("YYYY-MM-DD")===a?n=`\u6700\u540E\u5728\u7EBF\u4E8E\u6628\u5929 ${i}`:t<3600*24*365&&(n=`\u6700\u540E\u5728\u7EBF\u4E8E ${a}`)}this.$emit("update:online",this.$L(n))}}}},o={};var p=l(_,d,c,!1,h,null,null,null);function h(e){for(let s in o)this[s]=o[s]}var f=function(){return p.exports}();export{f as U}; +import{n as l,m as u}from"./app.879f8ead.js";var d=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ETooltip",{attrs:{"open-delay":e.openDelay,disabled:e.$isEEUiApp||e.windowTouch||e.tooltipDisabled||e.isBot,placement:e.tooltipPlacement}},[e.user?t("div",{staticClass:"common-avatar-transfer",attrs:{slot:"content"},slot:"content"},[e._t("default"),t("p",[e._v(e._s(e.$L("\u6635\u79F0"))+": "+e._s(e.user.nickname)),e.user.delete_at?t("em",{staticClass:"deleted no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u5220\u9664")))]):e.user.disable_at?t("em",{staticClass:"disabled no-dark-content"},[e._v(e._s(e.$L("\u5DF2\u79BB\u804C")))]):e._e()]),t("p",{staticClass:"department-name",attrs:{title:e.user.department_name||""}},[e._v(e._s(e.$L("\u90E8\u95E8"))+": "+e._s(e.user.department_name||"-"))]),t("p",[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0"))+": "+e._s(e.user.profession||"-"))]),e.user.delete_at?t("p",[t("strong",[e._v(e._s(e.$L("\u5220\u9664\u65F6\u95F4"))+": "+e._s(e.user.delete_at))])]):e.user.disable_at?t("p",[t("strong",[e._v(e._s(e.$L("\u79BB\u804C\u65F6\u95F4"))+": "+e._s(e.user.disable_at))])]):e._e(),e._t("end"),e.showMenu?t("div",{staticClass:"avatar-icons"},[t("Icon",{attrs:{type:"ios-chatbubbles"},on:{click:e.onOpenDialog}})],1):e._e()],2):e._e(),t("div",[t("UserAvatar",{ref:"avatar",attrs:{userid:e.userid,size:e.size,showIcon:e.showIcon,showName:e.showName,nameText:e.nameText,borderWitdh:e.borderWitdh,borderColor:e.borderColor,clickOpenDialog:e.clickOpenDialog,userResult:e.onUserResult}})],1)])},c=[];const _={name:"UserAvatarTip",mixins:[u],props:{tooltipDisabled:{type:Boolean,default:!1},showIconMenu:{type:Boolean,default:!1},tooltipPlacement:{type:String,default:"bottom"},openDelay:{type:Number,default:600}},data(){return{user:null}},mounted(){this.$listeners["update:online"]&&(this.$watch("userid",()=>{this.updateOnline()}),this.$watch("user.online",()=>{this.updateOnline()}),this.updateOnline())},computed:{showMenu(){return this.$store.state.userId==this.userid||this.user.delete_at||this.user.disable_at?!1:this.showIconMenu},isBot(){return!!(this.user&&this.user.bot)}},methods:{onOpenDialog(){this.$refs.avatar.openDialog()},onUserResult(e){typeof this.userResult=="function"&&this.userResult(e),this.user=e},updateOnline(){if(!!this.user)if(this.user.online||this.$store.state.userId===this.userid)this.$emit("update:online",!0);else{const e=$A.daytz(),s=$A.dayjs(this.user.line_at),t=e.unix()-s.unix();let n="\u6700\u540E\u5728\u7EBF\u4E8E\u5F88\u4E45\u4EE5\u524D";if(t<60)n="\u6700\u540E\u5728\u7EBF\u4E8E\u521A\u521A";else if(t<3600)n=`\u6700\u540E\u5728\u7EBF\u4E8E ${Math.floor(t/60)} \u5206\u949F\u524D`;else if(t<3600*6)n=`\u6700\u540E\u5728\u7EBF\u4E8E ${Math.floor(t/3600)} \u5C0F\u65F6\u524D`;else{const r=e.format("YYYY-MM-DD"),a=s.format("YYYY-MM-DD"),i=s.format("HH:mm");r===a?n=`\u6700\u540E\u5728\u7EBF\u4E8E\u4ECA\u5929 ${i}`:e.clone().subtract(1,"day").format("YYYY-MM-DD")===a?n=`\u6700\u540E\u5728\u7EBF\u4E8E\u6628\u5929 ${i}`:t<3600*24*365&&(n=`\u6700\u540E\u5728\u7EBF\u4E8E ${a}`)}this.$emit("update:online",this.$L(n))}}}},o={};var p=l(_,d,c,!1,h,null,null,null);function h(e){for(let s in o)this[s]=o[s]}var f=function(){return p.exports}();export{f as U}; diff --git a/public/js/build/token.e6a56e96.js b/public/js/build/token.53c7275e.js similarity index 86% rename from public/js/build/token.e6a56e96.js rename to public/js/build/token.53c7275e.js index f991d3e64..f2b69dec2 100644 --- a/public/js/build/token.e6a56e96.js +++ b/public/js/build/token.53c7275e.js @@ -1 +1 @@ -import{n as i}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"token-transfer"},[r("Loading")],1)},n=[];const p={mounted(){this.goNext1()},methods:{goNext1(){const t=$A.urlParameterAll();t.token&&this.$store.dispatch("call",{url:"users/info",header:{token:t.token}}).then(o=>{this.$store.dispatch("saveUserInfo",o.data),this.goNext2()}).catch(o=>{this.goForward({name:"login"},!0)})},goNext2(){let t=decodeURIComponent($A.getObject(this.$route.query,"from"));t?window.location.replace(t):this.goForward({name:"manage-dashboard"},!0)}}},e={};var a=i(p,m,n,!1,s,"5df16c44",null,null);function s(t){for(let o in e)this[o]=e[o]}var K=function(){return a.exports}();export{K as default}; +import{n as i}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var m=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"token-transfer"},[r("Loading")],1)},n=[];const p={mounted(){this.goNext1()},methods:{goNext1(){const t=$A.urlParameterAll();t.token&&this.$store.dispatch("call",{url:"users/info",header:{token:t.token}}).then(o=>{this.$store.dispatch("saveUserInfo",o.data),this.goNext2()}).catch(o=>{this.goForward({name:"login"},!0)})},goNext2(){let t=decodeURIComponent($A.getObject(this.$route.query,"from"));t?window.location.replace(t):this.goForward({name:"manage-dashboard"},!0)}}},e={};var a=i(p,m,n,!1,s,"5df16c44",null,null);function s(t){for(let o in e)this[o]=e[o]}var K=function(){return a.exports}();export{K as default}; diff --git a/public/js/build/validEmail.32d69f59.js b/public/js/build/validEmail.6920ea3a.js similarity index 90% rename from public/js/build/validEmail.32d69f59.js rename to public/js/build/validEmail.6920ea3a.js index 087b21112..547cc0002 100644 --- a/public/js/build/validEmail.32d69f59.js +++ b/public/js/build/validEmail.6920ea3a.js @@ -1 +1 @@ -import{n as e}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"valid-wrap"},[r("div",{staticClass:"valid-box"},[r("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?r("Spin",{attrs:{size:"large"}}):t._e(),t.success?r("div",{staticClass:"validation-text"},[r("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),r("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?r("div",{staticClass:"validation-text"},[r("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},a=[];const m={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:i})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(i))})},userLogout(){this.$store.dispatch("logout",!1)}}},o={};var p=e(m,s,a,!1,c,"763444c4",null,null);function c(t){for(let i in o)this[i]=o[i]}var P=function(){return p.exports}();export{P as default}; +import{n as e}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var s=function(){var t=this,i=t.$createElement,r=t._self._c||i;return r("div",{staticClass:"valid-wrap"},[r("div",{staticClass:"valid-box"},[r("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?r("Spin",{attrs:{size:"large"}}):t._e(),t.success?r("div",{staticClass:"validation-text"},[r("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),r("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?r("div",{staticClass:"validation-text"},[r("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},a=[];const m={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:i})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(i))})},userLogout(){this.$store.dispatch("logout",!1)}}},o={};var p=e(m,s,a,!1,c,"763444c4",null,null);function c(t){for(let i in o)this[i]=o[i]}var P=function(){return p.exports}();export{P as default}; diff --git a/public/js/build/version.a1835d12.js b/public/js/build/version.8a875668.js similarity index 81% rename from public/js/build/version.a1835d12.js rename to public/js/build/version.8a875668.js index 3e5610df0..71b8dc92d 100644 --- a/public/js/build/version.a1835d12.js +++ b/public/js/build/version.8a875668.js @@ -1 +1 @@ -import e from"./preview.74e7b5c4.js";import{n as m}from"./app.d8851986.js";import"./openpgp_hi.15f91b1d.js";import"./index.40a8e116.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"setting-item submit"},[r("div",{staticClass:"version-box"},[t.loadIng?r("div",{staticClass:"version-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):r("VMPreview",{attrs:{value:t.updateLog}})],1)])},s=[];const a={components:{VMPreview:e},data(){return{loadIng:0,updateLog:""}},mounted(){this.getLog()},methods:{getLog(){this.loadIng++,this.$store.dispatch("call",{url:"system/get/updatelog",data:{take:50}}).then(({data:t})=>{this.updateLog=t.updateLog}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})}}},i={};var n=m(a,p,s,!1,l,null,null,null);function l(t){for(let o in i)this[o]=i[o]}var U=function(){return n.exports}();export{U as default}; +import e from"./preview.8cce7ada.js";import{n as m}from"./app.879f8ead.js";import"./openpgp_hi.15f91b1d.js";import"./index.40a8e116.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var p=function(){var t=this,o=t.$createElement,r=t._self._c||o;return r("div",{staticClass:"setting-item submit"},[r("div",{staticClass:"version-box"},[t.loadIng?r("div",{staticClass:"version-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):r("VMPreview",{attrs:{value:t.updateLog}})],1)])},s=[];const a={components:{VMPreview:e},data(){return{loadIng:0,updateLog:""}},mounted(){this.getLog()},methods:{getLog(){this.loadIng++,this.$store.dispatch("call",{url:"system/get/updatelog",data:{take:50}}).then(({data:t})=>{this.updateLog=t.updateLog}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})}}},i={};var n=m(a,p,s,!1,l,null,null,null);function l(t){for(let o in i)this[o]=i[o]}var U=function(){return n.exports}();export{U as default}; diff --git a/public/js/build/video.bcb944e6.js b/public/js/build/video.1a7cfeca.js similarity index 87% rename from public/js/build/video.bcb944e6.js rename to public/js/build/video.1a7cfeca.js index 072397cd2..eb0bfe677 100644 --- a/public/js/build/video.bcb944e6.js +++ b/public/js/build/video.1a7cfeca.js @@ -1 +1 @@ -import{n as p}from"./app.d8851986.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./@babel.49d8906a.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div",{ref:"view",staticClass:"common-preview-video"},[i.item.src?r("video",{attrs:{width:i.videoStyle("width"),height:i.videoStyle("height"),controls:"",autoplay:""}},[r("source",{attrs:{src:i.item.src,type:"video/mp4"}})]):i._e()])},s=[];const d={props:{item:{type:Object,default:()=>({src:"",width:0,height:0})}},data(){return{}},mounted(){},methods:{videoStyle(i){let{width:t,height:r}=this.item;const o=this.windowWidth,e=this.windowHeight;return t>o&&(r=r*o/t,t=o),r>e&&(t=t*e/r,r=e),i==="width"?t:i==="height"?r:{width:`${t}px`,height:`${r}px`}}}},m={};var h=p(d,n,s,!1,a,"1115e79e",null,null);function a(i){for(let t in m)this[t]=m[t]}var T=function(){return h.exports}();export{T as default}; +import{n as p}from"./app.879f8ead.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./@babel.49d8906a.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vue.c448ed56.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";import"./element-sea.e89b014c.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var n=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div",{ref:"view",staticClass:"common-preview-video"},[i.item.src?r("video",{attrs:{width:i.videoStyle("width"),height:i.videoStyle("height"),controls:"",autoplay:""}},[r("source",{attrs:{src:i.item.src,type:"video/mp4"}})]):i._e()])},s=[];const d={props:{item:{type:Object,default:()=>({src:"",width:0,height:0})}},data(){return{}},mounted(){},methods:{videoStyle(i){let{width:t,height:r}=this.item;const o=this.windowWidth,e=this.windowHeight;return t>o&&(r=r*o/t,t=o),r>e&&(t=t*e/r,r=e),i==="width"?t:i==="height"?r:{width:`${t}px`,height:`${r}px`}}}},m={};var h=p(d,n,s,!1,a,"1115e79e",null,null);function a(i){for(let t in m)this[t]=m[t]}var T=function(){return h.exports}();export{T as default}; diff --git a/public/js/build/view-design-hi.563cfadb.js b/public/js/build/view-design-hi.d2045547.js similarity index 77% rename from public/js/build/view-design-hi.563cfadb.js rename to public/js/build/view-design-hi.d2045547.js index ed3876641..d70f59829 100644 --- a/public/js/build/view-design-hi.563cfadb.js +++ b/public/js/build/view-design-hi.d2045547.js @@ -1,4 +1,4 @@ -import{c as Lt,g as $t}from"./@babel.49d8906a.js";import{r as Bt}from"./vue.c448ed56.js";var _t={exports:{}};(function(pt,Ft){(function(v,r){pt.exports=r(Bt)})(typeof self!="undefined"?self:Lt,function(at){return function(v){var r={};function t(s){if(r[s])return r[s].exports;var a=r[s]={i:s,l:!1,exports:{}};return v[s].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=v,t.c=r,t.d=function(s,a,d){t.o(s,a)||Object.defineProperty(s,a,{configurable:!1,enumerable:!0,get:d})},t.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return t.d(a,"a",a),a},t.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},t.p="/dist/",t(t.s=260)}([function(v,r,t){r.a=s;function s(a,d,e,l,n,i,o,c){a=a||{};var u=typeof a.default;(u==="object"||u==="function")&&(a=a.default);var f=typeof a=="function"?a.options:a;d&&(f.render=d,f.staticRenderFns=e,f._compiled=!0),l&&(f.functional=!0),i&&(f._scopeId=i);var y;if(o?(y=function(h){h=h||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!h&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(h=__VUE_SSR_CONTEXT__),n&&n.call(this,h),h&&h._registeredComponents&&h._registeredComponents.add(o)},f._ssrRegister=y):n&&(y=c?function(){n.call(this,this.$root.$options.shadowRoot)}:n),y)if(f.functional){f._injectStyles=y;var m=f.render;f.render=function(g,b){return y.call(b),m(g,b)}}else{var _=f.beforeCreate;f.beforeCreate=_?[].concat(_,y):[y]}return{exports:a,options:f}}},function(v,r,t){r.__esModule=!0,r.default=function(s,a){if(s!==a)throw new TypeError("Cannot instantiate an arrow function")}},function(v,r,t){r.__esModule=!0;var s=t(270),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=function(e,l,n){return l in e?(0,a.default)(e,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[l]=n,e}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.sharpMatcherRegx=r.dimensionMap=r.findComponentUpward=r.deepCopy=r.firstUpperCase=r.MutationObserver=void 0;var s=t(45),a=i(s),d=t(1),e=i(d);r.oneOf=c,r.camelcaseToHyphen=u,r.getScrollBarSize=y,r.getStyle=g,r.warnProp=x,r.scrollTop=S,r.findComponentDownward=O,r.findComponentsDownward=R,r.findComponentsUpward=T,r.findBrothersComponents=B,r.hasClass=q,r.addClass=U,r.removeClass=A,r.setMatchMedia=V;var l=t(17),n=i(l);function i(E){return E&&E.__esModule?E:{default:E}}var o=n.default.prototype.$isServer;function c(E,W){for(var G=0;G1&&arguments[1]!==void 0?arguments[1]:0,G=arguments[2],z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:500,Z=arguments[4];window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(Y){return window.setTimeout(Y,1e3/60)});var re=Math.abs(W-G),X=Math.ceil(re/z*50);function N(Y,w,F){var H=this;if(Y===w){Z&&Z();return}var te=Y+F>w?w:Y+F;Y>w&&(te=Y-F2&&arguments[2]!==void 0?arguments[2]:!0,Z=E.$parent.$children.filter(function(X){return(0,e.default)(this,G),X.$options.name===W}.bind(this)),re=Z.findIndex(function(X){return(0,e.default)(this,G),X._uid===E._uid}.bind(this));return z&&Z.splice(re,1),Z}var j=function(W){return(W||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function q(E,W){if(!E||!W)return!1;if(W.indexOf(" ")!==-1)throw new Error("className should not contain space.");return E.classList?E.classList.contains(W):(" "+E.className+" ").indexOf(" "+W+" ")>-1}function U(E,W){if(!!E){for(var G=E.className,z=(W||"").split(" "),Z=0,re=z.length;Z3&&arguments[3]!==void 0?arguments[3]:!1;l&&n&&i&&l.addEventListener(n,i,o)}:function(l,n,i){l&&n&&i&&l.attachEvent("on"+n,i)}}(),r.off=function(){return!e&&document.removeEventListener?function(l,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;l&&n&&l.removeEventListener(n,i,o)}:function(l,n,i){l&&n&&l.detachEvent("on"+n,i)}}()},function(v,r,t){v.exports=!t(31)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(v,r,t){v.exports={default:t(265),__esModule:!0}},function(v,r,t){r.__esModule=!0;var s=t(113),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=function(e){if(Array.isArray(e)){for(var l=0,n=Array(e.length);l=R&&C<=T}.bind(void 0);var f=r.formatDate=function(p,S){return p=u(p),p?o.default.format(p,S||"yyyy-MM-dd"):""},y=r.parseDate=function(p,S){return o.default.parse(p,S||"yyyy-MM-dd")},m=r.getDayCountOfMonth=function(p,S){return new Date(p,S+1,0).getDate()};r.getFirstDayOfMonth=function(p){var S=new Date(p.getTime());return S.setDate(1),S.getDay()};var _=r.siblingMonth=function(p,S){var P=new Date(p),O=P.getMonth()+S,R=m(P.getFullYear(),O);return R=a.length?{value:void 0,done:!0}:(e=s(a,d),this._i+=e.length,{value:e,done:!1})})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(117),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(311);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(124),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(340);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(75),a=n(s);r.changeColor=c,r.clamp=u,r.getIncrement=f,r.getTouches=y,r.toRGBAString=m,r.isValidHex=_,r.simpleCheckForValidColor=b;var d=t(149),e=n(d),l=t(3);function n(x){return x&&x.__esModule?x:{default:x}}function i(x,C){var p=(0,e.default)(x),S=p._a;return S==null&&p.setAlpha(C||1),p}function o(x,C){var p=C&&C.a;if(C){if(C.hsl)return i(C.hsl,p);if(C.hex&&C.hex.length>0)return i(C.hex,p)}return i(C,p)}function c(x,C){var p=x===""?"#2d8cf0":x,S=o(x,p),P=S.toHsl(),O=S.toHsv();return P.s===0&&(P.h=p.h||p.hsl&&p.hsl.h||C||0,O.h=P.h),O.v<.0164&&(O.h=p.h||p.hsv&&p.hsv.h||0,O.s=p.s||p.hsv&&p.hsv.s||0),P.l<.01&&(P.h=p.h||p.hsl&&p.hsl.h||0,P.s=p.s||p.hsl&&p.hsl.s||0),{hsl:P,hex:S.toHexString().toUpperCase(),rgba:S.toRgb(),hsv:O,oldHue:p.h||C||P.h,source:p.source,a:p.a||S.getAlpha()}}function u(x,C,p){return xp?p:x}function f(x,C,p){return(0,l.oneOf)(x,C)?p:0}function y(x,C){return x.touches?x.touches[0][C]:0}function m(x){var C=x.r,p=x.g,S=x.b,P=x.a;return"rgba("+String([C,p,S,P].join(","))+")"}function _(x){return(0,e.default)(x).isValid()}function h(x,C,p){var S=C.checked,P=C.passed,O=x[p];return O&&(S+=1,(0,a.default)(O)&&(P+=1)),{checked:S,passed:P}}var g=["r","g","b","a","h","s","l","v"];function b(x){var C=g.reduce(h.bind(null,x),{checked:0,passed:0});return C.checked===C.passed?x:void 0}},function(v,r,t){var s=t(96),a=t(68);v.exports=Object.keys||function(e){return s(e,a)}},function(v,r){var t={}.toString;v.exports=function(s){return t.call(s).slice(8,-1)}},function(v,r){v.exports=!0},function(v,r){v.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}},function(v,r){v.exports=function(t,s){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:s}}},function(v,r,t){v.exports={default:t(277),__esModule:!0}},function(v,r,t){t(278);for(var s=t(9),a=t(26),d=t(35),e=t(10)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),n=0;n0&&arguments[0]!==void 0?arguments[0]:!1,u=this.$router;c?this.handleOpenTo():u?typeof this.to=="string"&&this.to.includes("//")?window.location.href=this.to:this.replace?this.$router.replace(this.to,function(){(0,a.default)(this,o)}.bind(this)):this.$router.push(this.to,function(){(0,a.default)(this,o)}.bind(this)):window.location.href=this.to},handleCheckClick:function(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.to){if(this.target==="_blank")return this.handleOpenTo(),!1;o.preventDefault(),this.handleClick(c)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(142),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(382);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={data:function(){return{prefixCls:"ivu-color-picker",inputPrefixCls:"ivu-input",iconPrefixCls:"ivu-icon",transferPrefixCls:"ivu-transfer"}}}},function(v,c,t){var s=t(25),a=t(114),d=t(115),e=t(23),l=t(52),n=t(73),i={},o={},c=v.exports=function(u,f,y,m,_){var h=_?function(){return u}:n(u),g=s(y,m,f?2:1),b=0,x,C,p,S;if(typeof h!="function")throw TypeError(u+" is not iterable!");if(d(h)){for(x=l(u.length);x>b;b++)if(S=f?g(e(C=u[b])[0],C[1]):g(u[b]),S===i||S===o)return S}else for(p=h.call(u);!(C=p.next()).done;)if(S=a(p,g,C.value,f),S===i||S===o)return S};c.BREAK=i,c.RETURN=o},function(v,r,t){var s=t(65),a=Math.min;v.exports=function(d){return d>0?a(s(d),9007199254740991):0}},function(v,r){var t=0,s=Math.random();v.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++t+s).toString(36))}},function(v,r){r.f={}.propertyIsEnumerable},function(v,r,t){var s=t(23),a=t(104),d=t(68),e=t(66)("IE_PROTO"),l=function(){},n="prototype",i=function(){var o=t(69)("iframe"),c=d.length,u="<",f=">",y;for(o.style.display="none",t(105).appendChild(o),o.src="javascript:",y=o.contentWindow.document,y.open(),y.write(u+"script"+f+"document.F=Object"+u+"/script"+f),y.close(),i=y.F;c--;)delete i[n][d[c]];return i()};v.exports=Object.create||function(c,u){var f;return c!==null?(l[n]=s(c),f=new l,l[n]=null,f[e]=c):f=i(),u===void 0?f:a(f,u)}},function(v,r,t){var s=t(41),a=t(10)("toStringTag"),d=s(function(){return arguments}())=="Arguments",e=function(l,n){try{return l[n]}catch{}};v.exports=function(l){var n,i,o;return l===void 0?"Undefined":l===null?"Null":typeof(i=e(n=Object(l),a))=="string"?i:d?s(n):(o=s(n))=="Object"&&typeof n.callee=="function"?"Arguments":o}},function(v,r,t){v.exports={default:t(307),__esModule:!0}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={props:{disabledHours:{type:Array,default:function(){return[]}},disabledMinutes:{type:Array,default:function(){return[]}},disabledSeconds:{type:Array,default:function(){return[]}},hideDisabledOptions:{type:Boolean,default:!1}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(170),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(419);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(n){return n&&n.__esModule?n:{default:n}}var e="ivu-picker-panel",l="ivu-date-picker";r.default={props:{confirm:{type:Boolean,default:!1}},methods:{iconBtnCls:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return[e+"-icon-btn",l+"-"+String(i)+"-btn",l+"-"+String(i)+"-btn-arrow"+String(o)]},handleShortcutClick:function(i){i.value&&this.$emit("on-pick",i.value()),i.onClick&&i.onClick(this)},handlePickClear:function(){this.resetView(),this.$emit("on-pick-clear")},handlePickSuccess:function(){this.resetView(),this.$emit("on-pick-success")},handlePickClick:function(){this.$emit("on-pick-click")},resetView:function(){var i=this;setTimeout(function(){return(0,a.default)(this,i),this.currentView=this.selectionMode}.bind(this),500)},handleClear:function(){var i=this;this.dates=this.dates.map(function(){return(0,a.default)(this,i),null}.bind(this)),this.rangeState={},this.$emit("on-pick",this.dates),this.handleConfirm()},handleConfirm:function(i,o){this.$emit("on-pick",this.dates,i,o||this.type)},onToggleVisibility:function(i){var o=this.$refs,c=o.timeSpinner,u=o.timeSpinnerEnd;i&&c&&c.updateScroll(),i&&u&&u.updateScroll()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(179),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(433);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(180),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(434);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r){v.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(v,r,t){var s=t(41);v.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(v,r){var t=Math.ceil,s=Math.floor;v.exports=function(a){return isNaN(a=+a)?0:(a>0?s:t)(a)}},function(v,r,t){var s=t(67)("keys"),a=t(53);v.exports=function(d){return s[d]||(s[d]=a(d))}},function(v,r,t){var s=t(5),a=t(9),d="__core-js_shared__",e=a[d]||(a[d]={});(v.exports=function(l,n){return e[l]||(e[l]=n!==void 0?n:{})})("versions",[]).push({version:s.version,mode:t(42)?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(v,r){v.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(v,r,t){var s=t(19),a=t(9).document,d=s(a)&&s(a.createElement);v.exports=function(e){return d?a.createElement(e):{}}},function(v,r,t){var s=t(19);v.exports=function(a,d){if(!s(a))return a;var e,l;if(d&&typeof(e=a.toString)=="function"&&!s(l=e.call(a))||typeof(e=a.valueOf)=="function"&&!s(l=e.call(a))||!d&&typeof(e=a.toString)=="function"&&!s(l=e.call(a)))return l;throw TypeError("Can't convert object to primitive value")}},function(v,r){r.f=Object.getOwnPropertySymbols},function(v,r,t){var s=t(42),a=t(7),d=t(103),e=t(26),l=t(35),n=t(280),i=t(47),o=t(106),c=t(10)("iterator"),u=!([].keys&&"next"in[].keys()),f="@@iterator",y="keys",m="values",_=function(){return this};v.exports=function(h,g,b,x,C,p,S){n(b,g,x);var P=function(G){if(!u&&G in B)return B[G];switch(G){case y:return function(){return new b(this,G)};case m:return function(){return new b(this,G)}}return function(){return new b(this,G)}},O=g+" Iterator",R=C==m,T=!1,B=h.prototype,j=B[c]||B[f]||C&&B[C],q=j||P(C),U=C?R?P("entries"):q:void 0,A=g=="Array"&&B.entries||j,V,E,W;if(A&&(W=o(A.call(new h)),W!==Object.prototype&&W.next&&(i(W,O,!0),!s&&typeof W[c]!="function"&&e(W,c,_))),R&&j&&j.name!==m&&(T=!0,q=function(){return j.call(this)}),(!s||S)&&(u||T||!B[c])&&e(B,c,q),l[g]=q,l[O]=_,C)if(V={values:R?q:P(m),keys:p?q:P(y),entries:U},S)for(E in V)E in B||d(B,E,V[E]);else a(a.P+a.F*(u||T),g,V);return V}},function(v,r,t){var s=t(56),a=t(10)("iterator"),d=t(35);v.exports=t(5).getIteratorMethod=function(e){if(e!=null)return e[a]||e["@@iterator"]||d[s(e)]}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(110),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(328);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(295),__esModule:!0}},function(v,r,t){r.f=t(10)},function(v,r,t){var s=t(53)("meta"),a=t(19),d=t(30),e=t(16).f,l=0,n=Object.isExtensible||function(){return!0},i=!t(31)(function(){return n(Object.preventExtensions({}))}),o=function(m){e(m,s,{value:{i:"O"+ ++l,w:{}}})},c=function(m,_){if(!a(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!d(m,s)){if(!n(m))return"F";if(!_)return"E";o(m)}return m[s].i},u=function(m,_){if(!d(m,s)){if(!n(m))return!0;if(!_)return!1;o(m)}return m[s].w},f=function(m){return i&&y.NEED&&n(m)&&!d(m,s)&&o(m),m},y=v.exports={KEY:s,NEED:!1,fastKey:c,getWeak:u,onFreeze:f}},function(v,r,t){var s=t(9),a=t(5),d=t(42),e=t(76),l=t(16).f;v.exports=function(n){var i=a.Symbol||(a.Symbol=d?{}:s.Symbol||{});n.charAt(0)!="_"&&!(n in i)&&l(i,n,{value:e.f(n)})}},function(v,r){},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.directive=void 0;var s=t(18),a=f(s),d=t(32),e=f(d),l=t(312),n=f(l),i=t(22),o=f(i),c=t(315),u=f(c);r.install=S;function f(P){return P&&P.__esModule?P:{default:P}}var y="click",m=(0,u.default)(null),_=(0,u.default)(null),h=[m,_],g=function(O,R,T){var B=T.target,j=function(A){var V=A.el;if(V!==B&&!V.contains(B)){var E=A.binding;E.modifiers.stop&&T.stopPropagation(),E.modifiers.prevent&&T.preventDefault(),E.value.call(O,T)}},q=function(A){return R[A].forEach(j)};(0,o.default)(R).forEach(q)},b=function(O){g(this,m,O)},x=function(O){g(this,_,O)},C=function(O){return O?b:x},p=r.directive=(0,n.default)({},{$_captureInstances:{value:m},$_nonCaptureInstances:{value:_},$_onCaptureEvent:{value:b},$_onNonCaptureEvent:{value:x},bind:{value:function(O,R){if(typeof R.value!="function")throw new TypeError("Binding value must be a function.");var T=void 0,B=R.modifiers;B.click?T="click":B.mousedown?T="mousedown":B.touchstart?T="touchstart":T=y;var j=R.arg,q=(0,e.default)({},R,{modifiers:(0,e.default)({capture:!1,prevent:!1,stop:!1},R.modifiers)}),U=j?m:_;Array.isArray(U[T])||(U[T]=[]),U[T].push({el:O,binding:q})===1&&(typeof document=="undefined"?"undefined":(0,a.default)(document))==="object"&&document&&document.addEventListener(T,C(j),j)}},unbind:{value:function(O){var R=function(j){return j.el!==O},T=function(j){var q=(0,o.default)(j);if(q.length){var U=j===m,A=function(E){var W=j[E].filter(R);W.length?j[E]=W:((typeof document=="undefined"?"undefined":(0,a.default)(document))==="object"&&document&&document.removeEventListener(E,C(U),U),delete j[E])};q.forEach(A)}};h.forEach(T)}},version:{enumerable:!0,value:"3.7.1"}});function S(P){P.directive("click-outside",p)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(123),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(329);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={bind:function(a,d,e){function l(n){if(a.contains(n.target))return!1;d.expression&&d.value(n)}a.__vueClickOutside__=l,document.addEventListener("click",l)},update:function(){},unbind:function(a,d){document.removeEventListener("click",a.__vueClickOutside__),delete a.__vueClickOutside__}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(3),a={beforeEnter:function(e){(0,s.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter:function(e){e.dataset.oldOverflow=e.style.overflow,e.scrollHeight!==0?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){(0,s.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave:function(e){e.scrollHeight!==0&&((0,s.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave:function(e){(0,s.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};r.default={name:"CollapseTransition",functional:!0,props:{appear:Boolean},render:function(e,l){var n=l.children,i=l.props,o={on:a,props:{appear:i.appear}};return e("transition",o,n)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=c(s),d=t(4),e=c(d),l=t(151),n=c(l),i=t(39),o=t(12);function c(u){return u&&u.__esModule?u:{default:u}}r.default={mixins:[e.default,n.default],props:{focused:{type:Boolean,default:!1},value:{type:Object,default:void 0}},beforeDestroy:function(){this.unbindEventListeners()},created:function(){var f=this;this.focused&&setTimeout(function(){return(0,a.default)(this,f),this.$el.focus()}.bind(this),1)},methods:{handleLeft:function(f){this.handleSlide(f,this.left,"left")},handleRight:function(f){this.handleSlide(f,this.right,"right")},handleUp:function(f){this.handleSlide(f,this.up,"up")},handleDown:function(f){this.handleSlide(f,this.down,"down")},handleMouseDown:function(f){this.dispatch("ColorPicker","on-dragging",!0),this.handleChange(f,!0),(0,o.on)(window,"mousemove",this.handleChange),(0,o.on)(window,"mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){var f=this;(0,o.off)(window,"mousemove",this.handleChange),(0,o.off)(window,"mouseup",this.handleMouseUp),setTimeout(function(){return(0,a.default)(this,f),this.dispatch("ColorPicker","on-dragging",!1)}.bind(this),1)},getLeft:function(f){var y=this.$refs.container,m=y.getBoundingClientRect().left+window.pageXOffset,_=f.pageX||(0,i.getTouches)(f,"PageX");return _-m},getTop:function(f){var y=this.$refs.container,m=y.getBoundingClientRect().top+window.pageYOffset,_=f.pageY||(0,i.getTouches)(f,"PageY");return _-m}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=e(s),d=t(21);function e(l){return l&&l.__esModule?l:{default:l}}r.default={name:"PanelTable",props:{tableDate:{type:Date,required:!0},disabledDate:{type:Function},selectionMode:{type:String,required:!0},value:{type:Array,required:!0},rangeState:{type:Object,default:function(){return(0,a.default)(void 0,void 0),{from:null,to:null,selecting:!1}}.bind(void 0)},focusedDate:{type:Date,required:!0}},computed:{dates:function(){var n=this.selectionMode,i=this.value,o=this.rangeState,c=n==="range"&&o.selecting;return c?[o.from]:i}},methods:{handleClick:function(n,i){if(i.stopPropagation(),!(n.disabled||n.type==="weekLabel")){var o=new Date((0,d.clearHours)(n.date));this.$emit("on-pick",o),this.$emit("on-pick-click")}},handleMouseMove:function(n){if(!!this.rangeState.selecting&&!n.disabled){var i=n.date;this.$emit("on-change-range",i)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default="ivu-date-picker-cells"},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(113),e=n(d),l=t(3);function n(i){return i&&i.__esModule?i:{default:i}}r.default={props:{lockScroll:{type:Boolean,default:!0}},methods:{checkScrollBar:function(){var o=window.innerWidth;if(!o){var c=document.documentElement.getBoundingClientRect();o=c.right-Math.abs(c.left)}this.bodyIsOverflowing=document.body.clientWidth1&&arguments[1]!==void 0?arguments[1]:{},o="";return i.cellClassName&&l.key&&i.cellClassName[l.key]&&(o=i.cellClassName[l.key]),[String(this.prefixCls)+"-column-"+String(l.__id),(n={},(0,a.default)(n,""+String(o),o),(0,a.default)(n,""+String(l.className),l.className),(0,a.default)(n,String(this.prefixCls)+"-column-"+String(l.align),l.align),(0,a.default)(n,String(this.prefixCls)+"-hidden",this.fixed==="left"&&l.fixed!=="left"||this.fixed==="right"&&l.fixed!=="right"||!this.fixed&&l.fixed&&(l.fixed==="left"||l.fixed==="right")),n)]},isPopperShow:function(l){return l.filters&&(!this.fixed&&!l.fixed||this.fixed==="left"&&l.fixed==="left"||this.fixed==="right"&&l.fixed==="right")},setCellWidth:function(l){var n="";return l.width?n=l.width:this.columnsWidth[l._index]&&(n=this.columnsWidth[l._index].width),n==="0"&&(n=""),n}}}},function(v,r,t){var s=t(30),a=t(34),d=t(263)(!1),e=t(66)("IE_PROTO");v.exports=function(l,n){var i=a(l),o=0,c=[],u;for(u in i)u!=e&&s(i,u)&&c.push(u);for(;n.length>o;)s(i,u=n[o++])&&(~d(c,u)||c.push(u));return c}},function(v,r,t){var s=t(7),a=t(5),d=t(31);v.exports=function(e,l){var n=(a.Object||{})[e]||Object[e],i={};i[e]=l(n),s(s.S+s.F*d(function(){n(1)}),"Object",i)}},function(v,r,t){v.exports=!t(13)&&!t(31)(function(){return Object.defineProperty(t(69)("div"),"a",{get:function(){return 7}}).a!=7})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(2),e=n(d),l=t(12);function n(u){return u&&u.__esModule?u:{default:u}}var i="ivu-affix";function o(u,f){var y=f?"pageYOffset":"pageXOffset",m=f?"scrollTop":"scrollLeft",_=u[y];return typeof _!="number"&&(_=window.document.documentElement[m]),_}function c(u){var f=u.getBoundingClientRect(),y=o(window,!0),m=o(window),_=window.document.body,h=_.clientTop||0,g=_.clientLeft||0;return{top:f.top+y-h,left:f.left+m-g}}r.default={name:"Affix",props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},useCapture:{type:Boolean,default:!1}},data:function(){return{affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType:function(){var f="top";return this.offsetBottom>=0&&(f="bottom"),f},classes:function(){return[(0,e.default)({},""+i,this.affix)]}},mounted:function(){var f=this;(0,l.on)(window,"scroll",this.handleScroll,this.useCapture),(0,l.on)(window,"resize",this.handleScroll,this.useCapture),this.$nextTick(function(){(0,a.default)(this,f),this.handleScroll()}.bind(this))},beforeDestroy:function(){(0,l.off)(window,"scroll",this.handleScroll,this.useCapture),(0,l.off)(window,"resize",this.handleScroll,this.useCapture)},methods:{handleScroll:function(){var f=this.affix,y=o(window,!0),m=c(this.$el),_=window.innerHeight,h=this.$el.getElementsByTagName("div")[0].offsetHeight;m.top-this.offsetTopy&&this.offsetType=="top"&&f&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),m.top+this.offsetBottom+h>y+_&&this.offsetType=="bottom"&&!f?(this.affix=!0,this.styles={bottom:String(this.offsetBottom)+"px",left:String(m.left)+"px",width:String(this.$el.offsetWidth)+"px"},this.$emit("on-change",!0)):m.top+this.offsetBottom+hc;)s.f(l,u=i[c++],n[u]);return l}},function(v,r,t){var s=t(9).document;v.exports=s&&s.documentElement},function(v,r,t){var s=t(30),a=t(29),d=t(66)("IE_PROTO"),e=Object.prototype;v.exports=Object.getPrototypeOf||function(l){return l=a(l),s(l,d)?l[d]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?e:null}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(3),e=t(12);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"Anchor",provide:function(){return{anchorCom:this}},data:function(){return{prefix:"ivu-anchor",isAffixed:!1,inkTop:0,animating:!1,currentLink:"",currentId:"",scrollContainer:null,scrollElement:null,titlesOffsetArr:[],wrapperTop:0,upperFirstTitle:!0}},props:{affix:{type:Boolean,default:!0},offsetTop:{type:Number,default:0},offsetBottom:Number,bounds:{type:Number,default:5},container:null,showInk:{type:Boolean,default:!1},scrollOffset:{type:Number,default:0}},computed:{wrapperComponent:function(){return this.affix?"Affix":"div"},wrapperStyle:function(){return{maxHeight:this.offsetTop?"calc(100vh - "+String(this.offsetTop)+"px)":"100vh"}},containerIsWindow:function(){return this.scrollContainer===window}},methods:{handleAffixStateChange:function(i){this.isAffixed=this.affix&&i},handleScroll:function(i){if(this.upperFirstTitle=i.target.scrollTop=f.offset&&i<(y&&y.offset||1/0)){u=this.titlesOffsetArr[o];break}}this.currentLink=u.link,this.handleSetInkTop()},getContainer:function(){this.scrollContainer=this.container?typeof this.container=="string"?document.querySelector(this.container):this.container:window,this.scrollElement=this.container?this.scrollContainer:document.documentElement||document.body},removeListener:function(){(0,e.off)(this.scrollContainer,"scroll",this.handleScroll),(0,e.off)(window,"hashchange",this.handleHashChange)},init:function(){var i=this;this.handleHashChange(),this.$nextTick(function(){(0,a.default)(this,i),this.removeListener(),this.getContainer(),this.wrapperTop=this.containerIsWindow?0:this.scrollElement.offsetTop,this.handleScrollTo(),this.handleSetInkTop(),this.updateTitleOffset(),this.titlesOffsetArr[0]&&(this.upperFirstTitle=this.scrollElement.scrollTop0?$:[]}.bind(void 0),H=function(ae){return(0,x.default)(void 0,void 0),ae.reduce(function(M,k){return(0,x.default)(void 0,void 0),M.concat(F(k))}.bind(void 0),[])}.bind(void 0),te=function(ae,M,k){return(0,x.default)(void 0,void 0),(0,_.default)({},ae,{componentOptions:(0,_.default)({},ae.componentOptions,{propsData:(0,_.default)({},ae.componentOptions.propsData,(0,y.default)({},M,k))})})}.bind(void 0),ie=function(ae,M){(0,x.default)(void 0,void 0);var k=M.split(".");return k.reduce(function($,D){return(0,x.default)(void 0,void 0),$&&$[D]||null}.bind(void 0),ae)}.bind(void 0),ue=function(ae){if((0,x.default)(void 0,void 0),ae.componentOptions.propsData.label)return ae.componentOptions.propsData.label;var M=(ae.componentOptions.children||[]).reduce(function($,D){return(0,x.default)(void 0,void 0),$+(D.text||"")}.bind(void 0),""),k=ie(ae,"data.domProps.innerHTML");return M||(typeof k=="string"?k:"")}.bind(void 0),ee=function(ae,M,k){(0,x.default)(void 0,void 0);var $=(0,u.default)(ae),D=(0,u.default)(M),I=(0,u.default)(k.map(function(K){return(0,x.default)(void 0,void 0),K.value}.bind(void 0)));return $!==D||$!==I||I!==D}.bind(void 0),he=300;r.default={name:"iSelect",mixins:[q.default,E.default,A.default],components:{FunctionalOptions:Z.default,Drop:p.default,SelectHead:G.default,Icon:P.default},directives:{clickOutside:O.directive,TransferDom:T.default},props:{value:{type:[String,Number,Array],default:""},label:{type:[String,Number,Array],default:""},defaultLabel:{type:[String,Number,Array],default:""},multiple:{type:Boolean,default:!1},multipleMax:{type:Number},multipleUncancelable:{type:Array,default:function(){return(0,x.default)(void 0,void 0),[]}.bind(void 0)},searchInOption:{type:Boolean,default:!1},searchPlaceholder:{type:String},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},placeholder:{type:String},filterable:{type:Boolean,default:!1},filterMethod:{type:Function},remoteMethod:{type:Function},loading:{type:Boolean,default:!1},loadingText:{type:String},size:{validator:function(M){return(0,B.oneOf)(M,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},labelInValue:{type:Boolean,default:!1},notFoundText:{type:String},placement:{validator:function(M){return(0,B.oneOf)(M,["top","bottom","top-start","bottom-start","top-end","bottom-end"])},default:"bottom-start"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},autoComplete:{type:Boolean,default:!1},clickOutStopPropagation:{type:Boolean,default:!0},name:{type:String},elementId:{type:String},transferClassName:{type:String},prefix:{type:String},maxTagCount:{type:Number},maxTagPlaceholder:{type:Function},allowCreate:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},filterByLabel:{type:Boolean,default:!1},defaultEventObject:{type:Boolean,default:!1},eventsEnabled:{type:Boolean,default:!1}},mounted:function(){var M=this;if(this.$on("on-select-selected",this.onOptionClick),!this.remote&&this.selectOptions.length>0&&(this.values=this.getInitialValue().map(function($){return(0,x.default)(this,M),typeof $!="number"&&!$?null:this.getOptionData($)}.bind(this)).filter(Boolean)),this.checkUpdateStatus(),this.remote&&this.value&&this.defaultLabel){if(!this.multiple)this.query=this.defaultLabel;else if(this.multiple&&this.defaultLabel instanceof Array&&this.value.length===this.defaultLabel.length){var k=this.value.map(function($,D){return(0,x.default)(this,M),{value:$,label:this.defaultLabel[D]}}.bind(this));this.defaultEventObject===!0?this.$emit("on-set-default-options",k):this.$emit("on-set-default-options",JSON.parse((0,u.default)(k))),setTimeout(function(){(0,x.default)(this,M),this.values=k}.bind(this))}}},beforeDestroy:function(){this.$off("on-select-selected")},data:function(){return{prefixCls:X,values:[],dropDownWidth:0,visible:!1,focusIndex:-1,isFocused:!1,query:"",initialLabel:this.label,hasMouseHoverHead:!1,slotOptions:this.$slots.default,caretPosition:-1,lastRemoteQuery:"",unchangedQuery:!0,hasExpectedValue:!1,isTyping:!1,preventRemoteCall:!1,filterQueryChange:!1,supportTouch:"ontouchend"in document}},computed:{classes:function(){var M;return[""+X,(M={},(0,y.default)(M,X+"-visible",this.visible),(0,y.default)(M,X+"-disabled",this.itemDisabled),(0,y.default)(M,X+"-multiple",this.multiple),(0,y.default)(M,X+"-single",!this.multiple),(0,y.default)(M,X+"-show-clear",this.showCloseIcon),(0,y.default)(M,X+"-"+String(this.size),!!this.size),M)]},dropdownCls:function(){var M;return M={},(0,y.default)(M,X+"-dropdown-transfer",this.transfer),(0,y.default)(M,X+"-multiple",this.multiple&&this.transfer),(0,y.default)(M,"ivu-auto-complete",this.autoComplete),(0,y.default)(M,this.transferClassName,this.transferClassName),M},selectionCls:function(){var M;return M={},(0,y.default)(M,X+"-selection",!this.autoComplete),(0,y.default)(M,X+"-selection-focused",this.isFocused),M},localeNotFoundText:function(){return typeof this.notFoundText=="undefined"?this.t("i.select.noMatch"):this.notFoundText},localeLoadingText:function(){return typeof this.loadingText=="undefined"?this.t("i.select.loading"):this.loadingText},showCreateItem:function(){var M=this,k=!1;if(this.allowCreate&&this.query!==""){k=!0;var $=(0,B.findComponentsDownward)(this,"iOption");$&&$.length&&$.find(function(D){return(0,x.default)(this,M),D.optionLabel===this.query}.bind(this))&&(k=!1)}return k},transitionName:function(){return this.placement==="bottom"?"slide-up":"slide-down"},dropVisible:function(){var M=!0,k=!this.selectOptions||this.selectOptions.length===0;return!this.loading&&this.remote&&this.query===""&&k&&(M=!1),this.autoComplete&&k&&(M=!1),this.visible&&M},showNotFoundLabel:function(){var M=this.loading,k=this.remote,$=this.selectOptions;return $&&$.length===0&&(!k||k&&!M)},publicValue:function(){var M=this;return this.multiple?this.values.map(function(k){return(0,x.default)(this,M),k.value}.bind(this)):(this.values[0]||{}).value},canBeCleared:function(){var M=this.hasMouseHoverHead||this.active,k=!this.multiple&&!this.itemDisabled&&this.clearable;return M&&k&&this.reset},selectOptions:function(){var M=this,k=[],$=this.slotOptions||[],D=-1,I=this.focusIndex,K=this.values.filter(Boolean).map(function(Ce){var Ae=Ce.value;return(0,x.default)(this,M),Ae}.bind(this));if(this.autoComplete){var J=function(Ce,Ae){return(0,x.default)(this,M),(0,_.default)({},Ce,{children:(Ce.children||[]).map(Ae).map(function(Se){return(0,x.default)(this,M),J(Se,Ae)}.bind(this))})}.bind(this),se=H($),le=se[I];return $.map(function(Ce){return(0,x.default)(this,M),Ce===le||ie(Ce,"componentOptions.propsData.value")===this.value?te(Ce,"isFocused",!0):J(Ce,function(Ae){return(0,x.default)(this,M),Ae!==le?Ae:te(Ae,"isFocused",!0)}.bind(this))}.bind(this))}var fe=!0,me=!1,pe=void 0;try{for(var ge=(0,o.default)($),Me;!(fe=(Me=ge.next()).done);fe=!0){var we=Me.value,Le=we.componentOptions;if(!!Le)if(Y.test(Le.tag)){var Ee=Le.children;this.filterable&&this.isTyping&&(Ee=Ee.filter(function(Ce){var Ae=Ce.componentOptions;return(0,x.default)(this,M),this.validateOption(Ae)}.bind(this))),Ee=Ee.map(function(Ce){return(0,x.default)(this,M),D=D+1,this.processOption(Ce,K,D===I)}.bind(this)),Ee.length>0&&k.push((0,_.default)({},we,{componentOptions:(0,_.default)({},Le,{children:Ee})}))}else{if(this.filterQueryChange){var $e=this.filterable?this.validateOption(Le):we;if(!$e)continue}D=D+1,k.push(this.processOption(we,K,D===I))}}}catch(Ce){me=!0,pe=Ce}finally{try{!fe&&ge.return&&ge.return()}finally{if(me)throw pe}}return k},flatOptions:function(){return H(this.selectOptions)},selectTabindex:function(){return this.itemDisabled||this.filterable?-1:0},remote:function(){return typeof this.remoteMethod=="function"},localePlaceholder:function(){return this.searchPlaceholder===void 0?this.t("i.transfer.filterPlaceholder"):this.searchPlaceholder}},methods:{isJson:function(M){return(typeof M=="undefined"?"undefined":(0,n.default)(M))=="object"&&Object.prototype.toString.call(M).toLowerCase()==="[object object]"&&typeof M.length=="undefined"},inUncancelable:function(M){return this.multipleUncancelable.length===0?!1:this.multipleUncancelable.includes(M)},setQuery:function(M){if(M){this.onQueryChange(M);return}M===null&&(this.onQueryChange(""),this.values=[],this.lastRemoteQuery="")},clearSingleSelect:function(){this.multiple||this.$emit("input",""),this.$emit("on-clear"),this.hideMenu(),this.clearable&&this.reset()},getOptionData:function(M){var k=this;if(this.isJson(M)&&(M.__create===!0||this.remote))return M;var $=this.flatOptions.find(function(se){var le=se.componentOptions;return(0,x.default)(this,k),le.propsData.value===M}.bind(this));if(!$)return null;var D=ue($),I=$.componentOptions.propsData.tag,K=$.componentOptions.propsData.avatar,J=$.componentOptions.propsData.disabled;return{value:M,label:D,tag:I,avatar:K,disabled:J}},getInitialValue:function(){var M=this,k=this.multiple,$=this.remote,D=this.value,I=Array.isArray(D)?D:[D];if(!k&&(typeof I[0]=="undefined"||String(I[0]).trim()===""&&!(0,e.default)(I[0]))&&(I=[]),$&&!k&&D){var K=this.getOptionData(D);this.query=K?K.label:String(D)}return I.filter(function(J){return(0,x.default)(this,M),Boolean(J)||J===0}.bind(this))},processOption:function(M,k,$){if(!M.componentOptions)return M;var D=M.componentOptions.propsData.value,I=M.componentOptions.propsData.disabled,K=k.includes(D),J=(0,_.default)({},M.componentOptions.propsData,{selected:K,isFocused:$,disabled:typeof I=="undefined"?!1:I!==!1});return(0,_.default)({},M,{componentOptions:(0,_.default)({},M.componentOptions,{propsData:J})})},validateOption:function(M){var k=this,$=M.children,D=M.elm,I=M.propsData,K=I.value,J=I.label||"",se=I.keyValue||"",le=D&&D.textContent||($||[]).reduce(function(pe,ge){(0,x.default)(this,k);var Me=ge.elm?ge.elm.textContent:ge.text;return String(pe)+" "+String(Me)}.bind(this),"")||"",fe=this.filterByLabel?[J].toString():[K,J,se,le].toString(),me=this.query.toLowerCase().trim();return fe.toLowerCase().includes(me)},toggleMenu:function(M,k){if(this.itemDisabled)return!1;this.visible=typeof k!="undefined"?k:!this.visible,this.visible&&(this.dropDownWidth=this.$el.getBoundingClientRect().width,this.broadcast("Drop","on-update-popper"))},hideMenu:function(){var M=this;this.toggleMenu(null,!1),this.isTyping=!1,setTimeout(function(){return(0,x.default)(this,M),this.unchangedQuery=!0}.bind(this),he)},onClickOutside:function(M){var k=this;if(this.visible){if(M.type==="mousedown"){if(this.clickOutStopPropagation){if(this.searchInOption){var $=this.$refs.searchInOption;if($===M.target||$.contains(M.target))return}M.preventDefault()}return}if(this.transfer){var D=this.$refs.dropdown.$el;if(D===M.target||D.contains(M.target))return}if(this.filterable){var I=this.$el.querySelector('input[type="text"]');this.caretPosition=I.selectionStart,this.$nextTick(function(){(0,x.default)(this,k);var K=this.caretPosition===-1?I.value.length:this.caretPosition;I.setSelectionRange(K,K)}.bind(this))}this.clickOutStopPropagation&&(!this.autoComplete&&M.stopPropagation(),M.preventDefault()),this.hideMenu(),this.isFocused=!0,this.$emit("on-clickoutside",M)}else this.caretPosition=-1,this.isFocused=!1},reset:function(){this.query="",this.focusIndex=-1,this.unchangedQuery=!0,this.values=[],this.filterQueryChange=!1},getValue:function(){return this.values},setValue:function(M){this.values=M},handleKeydown:function(M){var k=M.key||M.code,$=M.keyCode||M.which;if(!(k==="Backspace"||$===8))if(this.visible){if(M.preventDefault(),k==="Tab"&&M.stopPropagation(),k==="Escape"&&(M.stopPropagation(),this.hideMenu()),k==="ArrowUp"&&this.navigateOptions(-1),k==="ArrowDown"&&this.navigateOptions(1),k==="Enter"){if(this.focusIndex===-1)return this.hideMenu();var D=this.flatOptions[this.focusIndex];if(D){var I=this.getOptionData(D.componentOptions.propsData.value);this.onOptionClick(I)}else this.hideMenu()}}else{var K=["ArrowUp","ArrowDown"];K.includes(M.key)&&this.toggleMenu(null,!0)}},navigateOptions:function(M){var k=this.flatOptions.length-1;if(!(k<0)){var $=this.focusIndex+M;if($<0&&($=k),$>k&&($=0),M>0){for(var D=-1,I=0;I=$)break}$=D}else{for(var J=this.flatOptions.length,se=k;se>=0;se--){var le=!this.flatOptions[se].componentOptions.propsData.disabled;if(le&&(J=se),J<=$)break}$=J}this.focusIndex=$}},onOptionClick:function(M){var k=this;if(this.multiple){this.remote?this.lastRemoteQuery=this.lastRemoteQuery||this.query:this.lastRemoteQuery="";var $=this.values.find(function(I){var K=I.value;return(0,x.default)(this,k),K===M.value}.bind(this));if($){if(this.inUncancelable(M.value))return;this.values=this.values.filter(function(I){var K=I.value;return(0,x.default)(this,k),K!==M.value}.bind(this))}else this.values=this.values.concat(M);this.supportTouch||(this.isFocused=!0)}else this.query=String(M.label).trim(),this.values=[M],this.lastRemoteQuery="",this.hideMenu();if(this.focusIndex=this.flatOptions.findIndex(function(I){return(0,x.default)(this,k),!I||!I.componentOptions?!1:I.componentOptions.propsData.value===M.value}.bind(this)),this.filterable){var D=this.$el.querySelector('input[type="text"]');!this.autoComplete&&!this.supportTouch&&this.$nextTick(function(){return(0,x.default)(this,k),D.focus()}.bind(this))}this.$emit("on-select",M),this.broadcast("Drop","on-update-popper"),setTimeout(function(){(0,x.default)(this,k),this.filterQueryChange=!1}.bind(this),he)},onQueryChange:function(M){if(this.isTyping=!0,M.length>0&&M!==this.query)if(this.autoComplete){var k=document.hasFocus&&document.hasFocus()&&document.activeElement===this.$el.querySelector("input");this.visible=k}else this.visible=!0;this.query=M,this.unchangedQuery=this.visible,this.filterQueryChange=!0},toggleHeaderFocus:function(M){var k=M.type;this.itemDisabled||(this.isFocused=k==="focus")},updateSlotOptions:function(){this.slotOptions=this.$slots.default},checkUpdateStatus:function(){this.getInitialValue().length>0&&this.selectOptions.length===0&&(this.hasExpectedValue=!0)},handleCreateItem:function(){var M=this;if(this.allowCreate&&this.query!=="")if(this.showCreateItem){var k=this.query;this.$emit("on-create",k),this.query="";var $={value:k,label:k,tag:void 0,__create:!0};this.$nextTick(function(){return(0,x.default)(this,M),this.onOptionClick($)}.bind(this))}else{var D=(0,B.findComponentsDownward)(this,"iOption");if(D&&D.length>0){var I=D.find(function(K){var J=K.optionLabel;return(0,x.default)(this,M),J===this.query}.bind(this));I&&I.value!=this.value&&I.$el.click()}}}},watch:{value:function(M){var k=this,$=this.getInitialValue,D=this.getOptionData,I=this.publicValue,K=this.values;this.checkUpdateStatus(),M===""?this.values=[]:ee(M,I,K)&&(this.$nextTick(function(){return(0,x.default)(this,k),this.values=$().map(D).filter(Boolean)}.bind(this)),this.multiple||this.dispatch("FormItem","on-form-change",this.publicValue))},values:function(M,k){if(this.multiple&&this.multipleMax!==void 0&&M.length>this.multipleMax){this.values=M.slice(this.multipleMax*-1);return}var $=(0,u.default)(M),D=(0,u.default)(k),I=this.publicValue,K=$!==D&&I!==this.value;if(K){var J=this.publicValue;this.labelInValue&&(this.multiple?J=this.values:J=this.values[0]),(Array.isArray(I)&&!I.length&&this.value===null||I===void 0&&this.value===null)&&(I=null),this.$emit("input",I),this.$emit("on-change",J),this.dispatch("FormItem","on-form-change",J)}},query:function(M){var k=this;this.$emit("on-query-change",M);var $=this.remoteMethod,D=this.lastRemoteQuery,I=M!==""&&(M!==D||!D),K=$&&I&&!this.preventRemoteCall;if(this.preventRemoteCall=!1,K){this.focusIndex=-1;var J=this.remoteMethod(M);this.initialLabel="",J&&J.then&&J.then(function(se){(0,x.default)(this,k),se&&(this.options=se)}.bind(this))}M!==""&&this.remote&&(this.lastRemoteQuery=M)},loading:function(M){M===!1&&this.updateSlotOptions()},isFocused:function(M){var k=this.filterable?this.$el.querySelector('input[type="text"]'):this.$el;k[this.isFocused?"focus":"blur"]();var $=(0,a.default)(this.values,1),D=$[0];if(D&&this.filterable&&!this.multiple&&!M){var I=String(D.label||D.value).trim();I&&this.query!==I&&(this.preventRemoteCall=!0,this.query=I)}},focusIndex:function(M){var k=this;if(!(M<0||this.autoComplete)){var $=this.flatOptions[M].componentOptions.propsData.value,D=w(this,function(J){var se=J.$options;return(0,x.default)(this,k),se.componentName==="select-item"&&se.propsData.value===$}.bind(this)),I=D.$el.getBoundingClientRect().bottom-this.$refs.dropdown.$el.getBoundingClientRect().bottom,K=D.$el.getBoundingClientRect().top-this.$refs.dropdown.$el.getBoundingClientRect().top;I>0&&(this.$refs.dropdown.$el.scrollTop+=I),K<0&&(this.$refs.dropdown.$el.scrollTop+=K)}},dropVisible:function(M){this.broadcast("Drop",M?"on-update-popper":"on-destroy-popper")},selectOptions:function(){this.hasExpectedValue&&this.selectOptions.length>0&&(this.values.length===0&&(this.values=this.getInitialValue()),this.values=this.values.map(this.getOptionData).filter(Boolean),this.hasExpectedValue=!1),this.slotOptions&&this.slotOptions.length===0&&(this.query=""),this.broadcast("Drop","on-update-popper")},visible:function(M){this.$emit("on-open-change",M)},slotOptions:function(M,k){if(!this.remote){var $=this.getInitialValue();this.flatOptions&&this.flatOptions.length&&$.length&&!this.multiple&&(this.values=$.map(this.getOptionData).filter(Boolean))}M&&k&&M.length!==k.length&&this.broadcast("Drop","on-update-popper")}}}},function(v,r,t){var s=t(41);v.exports=Array.isArray||function(d){return s(d)=="Array"}},function(v,r,t){var s=t(96),a=t(68).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return s(e,a)}},function(v,r,t){v.exports={default:t(308),__esModule:!0}},function(v,r,t){var s=t(23);v.exports=function(a,d,e,l){try{return l?d(s(e)[0],e[1]):d(e)}catch(i){var n=a.return;throw n!==void 0&&s(n.call(a)),i}}},function(v,r,t){var s=t(35),a=t(10)("iterator"),d=Array.prototype;v.exports=function(e){return e!==void 0&&(s.Array===e||d[a]===e)}},function(v,r,t){var s=t(10)("iterator"),a=!1;try{var d=[7][s]();d.return=function(){a=!0},Array.from(d,function(){throw 2})}catch{}v.exports=function(e,l){if(!l&&!a)return!1;var n=!1;try{var i=[7],o=i[s]();o.next=function(){return{done:n=!0}},i[s]=function(){return o},e(i)}catch{}return n}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(17),e=i(d),l=t(3),n=t(33);function i(u){return u&&u.__esModule?u:{default:u}}var o=e.default.prototype.$isServer,c=o?function(){}:t(118);r.default={name:"Drop",props:{placement:{type:String,default:"bottom-start"},className:{type:String},transfer:{type:Boolean},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{popper:null,width:"",popperStatus:!1,tIndex:this.handleGetIndex()}},computed:{styles:function(){var f={};return this.width&&(f.minWidth=String(this.width)+"px"),this.transfer&&(f["z-index"]=(0,n.hasTransferIndex)(this.tIndex,1060+this.tIndex)),f}},methods:{update:function(){var f=this;o||this.$nextTick(function(){(0,a.default)(this,f),this.popper?(this.popper.update(),this.popperStatus=!0):this.popper=new c(this.$parent.$refs.reference,this.$el,{eventsEnabled:this.eventsEnabled,placement:this.placement,modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:"window"}},onCreate:function(){(0,a.default)(this,f),this.resetTransformOrigin(),this.$nextTick(this.popper.update())}.bind(this),onUpdate:function(){(0,a.default)(this,f),this.resetTransformOrigin()}.bind(this)}),this.$parent.$options.name==="iSelect"&&(this.width=parseInt((0,l.getStyle)(this.$parent.$el,"width"))),this.tIndex=this.handleGetIndex()}.bind(this))},destroy:function(){var f=this;this.popper&&setTimeout(function(){(0,a.default)(this,f),this.popper&&!this.popperStatus&&(this.popper.popper.style.display="none",this.popper.destroy(),this.popper=null),this.popperStatus=!1}.bind(this),300)},resetTransformOrigin:function(){if(!!this.popper){var f=this.popper.popper.getAttribute("x-placement"),y=f.split("-")[0],m=f.split("-")[1],_=f==="left"||f==="right";_||(this.popper.popper.style.transformOrigin=y==="bottom"||y!=="top"&&m==="start"?"center top":"center bottom")}},handleGetIndex:function(){return(0,n.transferIncrease)(),(0,n.getTransferIndex)()}},created:function(){this.$on("on-update-popper",this.update),this.$on("on-destroy-popper",this.destroy)},beforeDestroy:function(){this.$off("on-update-popper",this.update),this.$off("on-destroy-popper",this.destroy),this.popper&&(this.popper.destroy(),this.popper=null)}}},function(v,r,t){(function(s){/**! +import{c as Lt,g as $t}from"./@babel.49d8906a.js";import{r as Bt}from"./vue.c448ed56.js";var _t={exports:{}};(function(pt,Ft){(function(v,r){pt.exports=r(Bt)})(typeof self!="undefined"?self:Lt,function(at){return function(v){var r={};function t(s){if(r[s])return r[s].exports;var a=r[s]={i:s,l:!1,exports:{}};return v[s].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=v,t.c=r,t.d=function(s,a,d){t.o(s,a)||Object.defineProperty(s,a,{configurable:!1,enumerable:!0,get:d})},t.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return t.d(a,"a",a),a},t.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},t.p="/dist/",t(t.s=260)}([function(v,r,t){r.a=s;function s(a,d,e,l,n,i,o,c){a=a||{};var u=typeof a.default;(u==="object"||u==="function")&&(a=a.default);var f=typeof a=="function"?a.options:a;d&&(f.render=d,f.staticRenderFns=e,f._compiled=!0),l&&(f.functional=!0),i&&(f._scopeId=i);var y;if(o?(y=function(h){h=h||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!h&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(h=__VUE_SSR_CONTEXT__),n&&n.call(this,h),h&&h._registeredComponents&&h._registeredComponents.add(o)},f._ssrRegister=y):n&&(y=c?function(){n.call(this,this.$root.$options.shadowRoot)}:n),y)if(f.functional){f._injectStyles=y;var m=f.render;f.render=function(g,b){return y.call(b),m(g,b)}}else{var _=f.beforeCreate;f.beforeCreate=_?[].concat(_,y):[y]}return{exports:a,options:f}}},function(v,r,t){r.__esModule=!0,r.default=function(s,a){if(s!==a)throw new TypeError("Cannot instantiate an arrow function")}},function(v,r,t){r.__esModule=!0;var s=t(270),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=function(e,l,n){return l in e?(0,a.default)(e,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[l]=n,e}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.sharpMatcherRegx=r.dimensionMap=r.findComponentUpward=r.deepCopy=r.firstUpperCase=r.MutationObserver=void 0;var s=t(45),a=i(s),d=t(1),e=i(d);r.oneOf=c,r.camelcaseToHyphen=u,r.getScrollBarSize=y,r.getStyle=g,r.warnProp=x,r.scrollTop=S,r.findComponentDownward=O,r.findComponentsDownward=A,r.findComponentsUpward=T,r.findBrothersComponents=B,r.hasClass=q,r.addClass=U,r.removeClass=R,r.setMatchMedia=V;var l=t(17),n=i(l);function i(E){return E&&E.__esModule?E:{default:E}}var o=n.default.prototype.$isServer;function c(E,k){for(var G=0;G1&&arguments[1]!==void 0?arguments[1]:0,G=arguments[2],z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:500,Z=arguments[4];window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(Y){return window.setTimeout(Y,1e3/60)});var re=Math.abs(k-G),J=Math.ceil(re/z*50);function N(Y,w,F){var H=this;if(Y===w){Z&&Z();return}var te=Y+F>w?w:Y+F;Y>w&&(te=Y-F2&&arguments[2]!==void 0?arguments[2]:!0,Z=E.$parent.$children.filter(function(J){return(0,e.default)(this,G),J.$options.name===k}.bind(this)),re=Z.findIndex(function(J){return(0,e.default)(this,G),J._uid===E._uid}.bind(this));return z&&Z.splice(re,1),Z}var j=function(k){return(k||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function q(E,k){if(!E||!k)return!1;if(k.indexOf(" ")!==-1)throw new Error("className should not contain space.");return E.classList?E.classList.contains(k):(" "+E.className+" ").indexOf(" "+k+" ")>-1}function U(E,k){if(!!E){for(var G=E.className,z=(k||"").split(" "),Z=0,re=z.length;Z3&&arguments[3]!==void 0?arguments[3]:!1;l&&n&&i&&l.addEventListener(n,i,o)}:function(l,n,i){l&&n&&i&&l.attachEvent("on"+n,i)}}(),r.off=function(){return!e&&document.removeEventListener?function(l,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;l&&n&&l.removeEventListener(n,i,o)}:function(l,n,i){l&&n&&l.detachEvent("on"+n,i)}}()},function(v,r,t){v.exports=!t(31)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(v,r,t){v.exports={default:t(265),__esModule:!0}},function(v,r,t){r.__esModule=!0;var s=t(113),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=function(e){if(Array.isArray(e)){for(var l=0,n=Array(e.length);l=A&&C<=T}.bind(void 0);var f=r.formatDate=function(p,S){return p=u(p),p?o.default.format(p,S||"yyyy-MM-dd"):""},y=r.parseDate=function(p,S){return o.default.parse(p,S||"yyyy-MM-dd")},m=r.getDayCountOfMonth=function(p,S){return new Date(p,S+1,0).getDate()};r.getFirstDayOfMonth=function(p){var S=new Date(p.getTime());return S.setDate(1),S.getDay()};var _=r.siblingMonth=function(p,S){var P=new Date(p),O=P.getMonth()+S,A=m(P.getFullYear(),O);return A=a.length?{value:void 0,done:!0}:(e=s(a,d),this._i+=e.length,{value:e,done:!1})})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(117),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(311);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(124),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(340);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(75),a=n(s);r.changeColor=c,r.clamp=u,r.getIncrement=f,r.getTouches=y,r.toRGBAString=m,r.isValidHex=_,r.simpleCheckForValidColor=b;var d=t(149),e=n(d),l=t(3);function n(x){return x&&x.__esModule?x:{default:x}}function i(x,C){var p=(0,e.default)(x),S=p._a;return S==null&&p.setAlpha(C||1),p}function o(x,C){var p=C&&C.a;if(C){if(C.hsl)return i(C.hsl,p);if(C.hex&&C.hex.length>0)return i(C.hex,p)}return i(C,p)}function c(x,C){var p=x===""?"#2d8cf0":x,S=o(x,p),P=S.toHsl(),O=S.toHsv();return P.s===0&&(P.h=p.h||p.hsl&&p.hsl.h||C||0,O.h=P.h),O.v<.0164&&(O.h=p.h||p.hsv&&p.hsv.h||0,O.s=p.s||p.hsv&&p.hsv.s||0),P.l<.01&&(P.h=p.h||p.hsl&&p.hsl.h||0,P.s=p.s||p.hsl&&p.hsl.s||0),{hsl:P,hex:S.toHexString().toUpperCase(),rgba:S.toRgb(),hsv:O,oldHue:p.h||C||P.h,source:p.source,a:p.a||S.getAlpha()}}function u(x,C,p){return xp?p:x}function f(x,C,p){return(0,l.oneOf)(x,C)?p:0}function y(x,C){return x.touches?x.touches[0][C]:0}function m(x){var C=x.r,p=x.g,S=x.b,P=x.a;return"rgba("+String([C,p,S,P].join(","))+")"}function _(x){return(0,e.default)(x).isValid()}function h(x,C,p){var S=C.checked,P=C.passed,O=x[p];return O&&(S+=1,(0,a.default)(O)&&(P+=1)),{checked:S,passed:P}}var g=["r","g","b","a","h","s","l","v"];function b(x){var C=g.reduce(h.bind(null,x),{checked:0,passed:0});return C.checked===C.passed?x:void 0}},function(v,r,t){var s=t(96),a=t(68);v.exports=Object.keys||function(e){return s(e,a)}},function(v,r){var t={}.toString;v.exports=function(s){return t.call(s).slice(8,-1)}},function(v,r){v.exports=!0},function(v,r){v.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}},function(v,r){v.exports=function(t,s){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:s}}},function(v,r,t){v.exports={default:t(277),__esModule:!0}},function(v,r,t){t(278);for(var s=t(9),a=t(26),d=t(35),e=t(10)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),n=0;n0&&arguments[0]!==void 0?arguments[0]:!1,u=this.$router;c?this.handleOpenTo():u?typeof this.to=="string"&&this.to.includes("//")?window.location.href=this.to:this.replace?this.$router.replace(this.to,function(){(0,a.default)(this,o)}.bind(this)):this.$router.push(this.to,function(){(0,a.default)(this,o)}.bind(this)):window.location.href=this.to},handleCheckClick:function(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.to){if(this.target==="_blank")return this.handleOpenTo(),!1;o.preventDefault(),this.handleClick(c)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(142),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(382);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={data:function(){return{prefixCls:"ivu-color-picker",inputPrefixCls:"ivu-input",iconPrefixCls:"ivu-icon",transferPrefixCls:"ivu-transfer"}}}},function(v,c,t){var s=t(25),a=t(114),d=t(115),e=t(23),l=t(52),n=t(73),i={},o={},c=v.exports=function(u,f,y,m,_){var h=_?function(){return u}:n(u),g=s(y,m,f?2:1),b=0,x,C,p,S;if(typeof h!="function")throw TypeError(u+" is not iterable!");if(d(h)){for(x=l(u.length);x>b;b++)if(S=f?g(e(C=u[b])[0],C[1]):g(u[b]),S===i||S===o)return S}else for(p=h.call(u);!(C=p.next()).done;)if(S=a(p,g,C.value,f),S===i||S===o)return S};c.BREAK=i,c.RETURN=o},function(v,r,t){var s=t(65),a=Math.min;v.exports=function(d){return d>0?a(s(d),9007199254740991):0}},function(v,r){var t=0,s=Math.random();v.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++t+s).toString(36))}},function(v,r){r.f={}.propertyIsEnumerable},function(v,r,t){var s=t(23),a=t(104),d=t(68),e=t(66)("IE_PROTO"),l=function(){},n="prototype",i=function(){var o=t(69)("iframe"),c=d.length,u="<",f=">",y;for(o.style.display="none",t(105).appendChild(o),o.src="javascript:",y=o.contentWindow.document,y.open(),y.write(u+"script"+f+"document.F=Object"+u+"/script"+f),y.close(),i=y.F;c--;)delete i[n][d[c]];return i()};v.exports=Object.create||function(c,u){var f;return c!==null?(l[n]=s(c),f=new l,l[n]=null,f[e]=c):f=i(),u===void 0?f:a(f,u)}},function(v,r,t){var s=t(41),a=t(10)("toStringTag"),d=s(function(){return arguments}())=="Arguments",e=function(l,n){try{return l[n]}catch{}};v.exports=function(l){var n,i,o;return l===void 0?"Undefined":l===null?"Null":typeof(i=e(n=Object(l),a))=="string"?i:d?s(n):(o=s(n))=="Object"&&typeof n.callee=="function"?"Arguments":o}},function(v,r,t){v.exports={default:t(307),__esModule:!0}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={props:{disabledHours:{type:Array,default:function(){return[]}},disabledMinutes:{type:Array,default:function(){return[]}},disabledSeconds:{type:Array,default:function(){return[]}},hideDisabledOptions:{type:Boolean,default:!1}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(170),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(419);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(n){return n&&n.__esModule?n:{default:n}}var e="ivu-picker-panel",l="ivu-date-picker";r.default={props:{confirm:{type:Boolean,default:!1}},methods:{iconBtnCls:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return[e+"-icon-btn",l+"-"+String(i)+"-btn",l+"-"+String(i)+"-btn-arrow"+String(o)]},handleShortcutClick:function(i){i.value&&this.$emit("on-pick",i.value()),i.onClick&&i.onClick(this)},handlePickClear:function(){this.resetView(),this.$emit("on-pick-clear")},handlePickSuccess:function(){this.resetView(),this.$emit("on-pick-success")},handlePickClick:function(){this.$emit("on-pick-click")},resetView:function(){var i=this;setTimeout(function(){return(0,a.default)(this,i),this.currentView=this.selectionMode}.bind(this),500)},handleClear:function(){var i=this;this.dates=this.dates.map(function(){return(0,a.default)(this,i),null}.bind(this)),this.rangeState={},this.$emit("on-pick",this.dates),this.handleConfirm()},handleConfirm:function(i,o){this.$emit("on-pick",this.dates,i,o||this.type)},onToggleVisibility:function(i){var o=this.$refs,c=o.timeSpinner,u=o.timeSpinnerEnd;i&&c&&c.updateScroll(),i&&u&&u.updateScroll()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(179),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(433);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(180),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(434);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r){v.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(v,r,t){var s=t(41);v.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(v,r){var t=Math.ceil,s=Math.floor;v.exports=function(a){return isNaN(a=+a)?0:(a>0?s:t)(a)}},function(v,r,t){var s=t(67)("keys"),a=t(53);v.exports=function(d){return s[d]||(s[d]=a(d))}},function(v,r,t){var s=t(5),a=t(9),d="__core-js_shared__",e=a[d]||(a[d]={});(v.exports=function(l,n){return e[l]||(e[l]=n!==void 0?n:{})})("versions",[]).push({version:s.version,mode:t(42)?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(v,r){v.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(v,r,t){var s=t(19),a=t(9).document,d=s(a)&&s(a.createElement);v.exports=function(e){return d?a.createElement(e):{}}},function(v,r,t){var s=t(19);v.exports=function(a,d){if(!s(a))return a;var e,l;if(d&&typeof(e=a.toString)=="function"&&!s(l=e.call(a))||typeof(e=a.valueOf)=="function"&&!s(l=e.call(a))||!d&&typeof(e=a.toString)=="function"&&!s(l=e.call(a)))return l;throw TypeError("Can't convert object to primitive value")}},function(v,r){r.f=Object.getOwnPropertySymbols},function(v,r,t){var s=t(42),a=t(7),d=t(103),e=t(26),l=t(35),n=t(280),i=t(47),o=t(106),c=t(10)("iterator"),u=!([].keys&&"next"in[].keys()),f="@@iterator",y="keys",m="values",_=function(){return this};v.exports=function(h,g,b,x,C,p,S){n(b,g,x);var P=function(G){if(!u&&G in B)return B[G];switch(G){case y:return function(){return new b(this,G)};case m:return function(){return new b(this,G)}}return function(){return new b(this,G)}},O=g+" Iterator",A=C==m,T=!1,B=h.prototype,j=B[c]||B[f]||C&&B[C],q=j||P(C),U=C?A?P("entries"):q:void 0,R=g=="Array"&&B.entries||j,V,E,k;if(R&&(k=o(R.call(new h)),k!==Object.prototype&&k.next&&(i(k,O,!0),!s&&typeof k[c]!="function"&&e(k,c,_))),A&&j&&j.name!==m&&(T=!0,q=function(){return j.call(this)}),(!s||S)&&(u||T||!B[c])&&e(B,c,q),l[g]=q,l[O]=_,C)if(V={values:A?q:P(m),keys:p?q:P(y),entries:U},S)for(E in V)E in B||d(B,E,V[E]);else a(a.P+a.F*(u||T),g,V);return V}},function(v,r,t){var s=t(56),a=t(10)("iterator"),d=t(35);v.exports=t(5).getIteratorMethod=function(e){if(e!=null)return e[a]||e["@@iterator"]||d[s(e)]}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(110),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(328);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(295),__esModule:!0}},function(v,r,t){r.f=t(10)},function(v,r,t){var s=t(53)("meta"),a=t(19),d=t(30),e=t(16).f,l=0,n=Object.isExtensible||function(){return!0},i=!t(31)(function(){return n(Object.preventExtensions({}))}),o=function(m){e(m,s,{value:{i:"O"+ ++l,w:{}}})},c=function(m,_){if(!a(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!d(m,s)){if(!n(m))return"F";if(!_)return"E";o(m)}return m[s].i},u=function(m,_){if(!d(m,s)){if(!n(m))return!0;if(!_)return!1;o(m)}return m[s].w},f=function(m){return i&&y.NEED&&n(m)&&!d(m,s)&&o(m),m},y=v.exports={KEY:s,NEED:!1,fastKey:c,getWeak:u,onFreeze:f}},function(v,r,t){var s=t(9),a=t(5),d=t(42),e=t(76),l=t(16).f;v.exports=function(n){var i=a.Symbol||(a.Symbol=d?{}:s.Symbol||{});n.charAt(0)!="_"&&!(n in i)&&l(i,n,{value:e.f(n)})}},function(v,r){},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.directive=void 0;var s=t(18),a=f(s),d=t(32),e=f(d),l=t(312),n=f(l),i=t(22),o=f(i),c=t(315),u=f(c);r.install=S;function f(P){return P&&P.__esModule?P:{default:P}}var y="click",m=(0,u.default)(null),_=(0,u.default)(null),h=[m,_],g=function(O,A,T){var B=T.target,j=function(R){var V=R.el;if(V!==B&&!V.contains(B)){var E=R.binding;E.modifiers.stop&&T.stopPropagation(),E.modifiers.prevent&&T.preventDefault(),E.value.call(O,T)}},q=function(R){return A[R].forEach(j)};(0,o.default)(A).forEach(q)},b=function(O){g(this,m,O)},x=function(O){g(this,_,O)},C=function(O){return O?b:x},p=r.directive=(0,n.default)({},{$_captureInstances:{value:m},$_nonCaptureInstances:{value:_},$_onCaptureEvent:{value:b},$_onNonCaptureEvent:{value:x},bind:{value:function(O,A){if(typeof A.value!="function")throw new TypeError("Binding value must be a function.");var T=void 0,B=A.modifiers;B.click?T="click":B.mousedown?T="mousedown":B.touchstart?T="touchstart":T=y;var j=A.arg,q=(0,e.default)({},A,{modifiers:(0,e.default)({capture:!1,prevent:!1,stop:!1},A.modifiers)}),U=j?m:_;Array.isArray(U[T])||(U[T]=[]),U[T].push({el:O,binding:q})===1&&(typeof document=="undefined"?"undefined":(0,a.default)(document))==="object"&&document&&document.addEventListener(T,C(j),j)}},unbind:{value:function(O){var A=function(j){return j.el!==O},T=function(j){var q=(0,o.default)(j);if(q.length){var U=j===m,R=function(E){var k=j[E].filter(A);k.length?j[E]=k:((typeof document=="undefined"?"undefined":(0,a.default)(document))==="object"&&document&&document.removeEventListener(E,C(U),U),delete j[E])};q.forEach(R)}};h.forEach(T)}},version:{enumerable:!0,value:"3.7.1"}});function S(P){P.directive("click-outside",p)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(123),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(329);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={bind:function(a,d,e){function l(n){if(a.contains(n.target))return!1;d.expression&&d.value(n)}a.__vueClickOutside__=l,document.addEventListener("click",l)},update:function(){},unbind:function(a,d){document.removeEventListener("click",a.__vueClickOutside__),delete a.__vueClickOutside__}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(3),a={beforeEnter:function(e){(0,s.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter:function(e){e.dataset.oldOverflow=e.style.overflow,e.scrollHeight!==0?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){(0,s.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave:function(e){e.scrollHeight!==0&&((0,s.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave:function(e){(0,s.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};r.default={name:"CollapseTransition",functional:!0,props:{appear:Boolean},render:function(e,l){var n=l.children,i=l.props,o={on:a,props:{appear:i.appear}};return e("transition",o,n)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=c(s),d=t(4),e=c(d),l=t(151),n=c(l),i=t(39),o=t(12);function c(u){return u&&u.__esModule?u:{default:u}}r.default={mixins:[e.default,n.default],props:{focused:{type:Boolean,default:!1},value:{type:Object,default:void 0}},beforeDestroy:function(){this.unbindEventListeners()},created:function(){var f=this;this.focused&&setTimeout(function(){return(0,a.default)(this,f),this.$el.focus()}.bind(this),1)},methods:{handleLeft:function(f){this.handleSlide(f,this.left,"left")},handleRight:function(f){this.handleSlide(f,this.right,"right")},handleUp:function(f){this.handleSlide(f,this.up,"up")},handleDown:function(f){this.handleSlide(f,this.down,"down")},handleMouseDown:function(f){this.dispatch("ColorPicker","on-dragging",!0),this.handleChange(f,!0),(0,o.on)(window,"mousemove",this.handleChange),(0,o.on)(window,"mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){var f=this;(0,o.off)(window,"mousemove",this.handleChange),(0,o.off)(window,"mouseup",this.handleMouseUp),setTimeout(function(){return(0,a.default)(this,f),this.dispatch("ColorPicker","on-dragging",!1)}.bind(this),1)},getLeft:function(f){var y=this.$refs.container,m=y.getBoundingClientRect().left+window.pageXOffset,_=f.pageX||(0,i.getTouches)(f,"PageX");return _-m},getTop:function(f){var y=this.$refs.container,m=y.getBoundingClientRect().top+window.pageYOffset,_=f.pageY||(0,i.getTouches)(f,"PageY");return _-m}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=e(s),d=t(21);function e(l){return l&&l.__esModule?l:{default:l}}r.default={name:"PanelTable",props:{tableDate:{type:Date,required:!0},disabledDate:{type:Function},selectionMode:{type:String,required:!0},value:{type:Array,required:!0},rangeState:{type:Object,default:function(){return(0,a.default)(void 0,void 0),{from:null,to:null,selecting:!1}}.bind(void 0)},focusedDate:{type:Date,required:!0}},computed:{dates:function(){var n=this.selectionMode,i=this.value,o=this.rangeState,c=n==="range"&&o.selecting;return c?[o.from]:i}},methods:{handleClick:function(n,i){if(i.stopPropagation(),!(n.disabled||n.type==="weekLabel")){var o=new Date((0,d.clearHours)(n.date));this.$emit("on-pick",o),this.$emit("on-pick-click")}},handleMouseMove:function(n){if(!!this.rangeState.selecting&&!n.disabled){var i=n.date;this.$emit("on-change-range",i)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default="ivu-date-picker-cells"},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(113),e=n(d),l=t(3);function n(i){return i&&i.__esModule?i:{default:i}}r.default={props:{lockScroll:{type:Boolean,default:!0}},methods:{checkScrollBar:function(){var o=window.innerWidth;if(!o){var c=document.documentElement.getBoundingClientRect();o=c.right-Math.abs(c.left)}this.bodyIsOverflowing=document.body.clientWidth1&&arguments[1]!==void 0?arguments[1]:{},o="";return i.cellClassName&&l.key&&i.cellClassName[l.key]&&(o=i.cellClassName[l.key]),[String(this.prefixCls)+"-column-"+String(l.__id),(n={},(0,a.default)(n,""+String(o),o),(0,a.default)(n,""+String(l.className),l.className),(0,a.default)(n,String(this.prefixCls)+"-column-"+String(l.align),l.align),(0,a.default)(n,String(this.prefixCls)+"-hidden",this.fixed==="left"&&l.fixed!=="left"||this.fixed==="right"&&l.fixed!=="right"||!this.fixed&&l.fixed&&(l.fixed==="left"||l.fixed==="right")),n)]},isPopperShow:function(l){return l.filters&&(!this.fixed&&!l.fixed||this.fixed==="left"&&l.fixed==="left"||this.fixed==="right"&&l.fixed==="right")},setCellWidth:function(l){var n="";return l.width?n=l.width:this.columnsWidth[l._index]&&(n=this.columnsWidth[l._index].width),n==="0"&&(n=""),n}}}},function(v,r,t){var s=t(30),a=t(34),d=t(263)(!1),e=t(66)("IE_PROTO");v.exports=function(l,n){var i=a(l),o=0,c=[],u;for(u in i)u!=e&&s(i,u)&&c.push(u);for(;n.length>o;)s(i,u=n[o++])&&(~d(c,u)||c.push(u));return c}},function(v,r,t){var s=t(7),a=t(5),d=t(31);v.exports=function(e,l){var n=(a.Object||{})[e]||Object[e],i={};i[e]=l(n),s(s.S+s.F*d(function(){n(1)}),"Object",i)}},function(v,r,t){v.exports=!t(13)&&!t(31)(function(){return Object.defineProperty(t(69)("div"),"a",{get:function(){return 7}}).a!=7})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(2),e=n(d),l=t(12);function n(u){return u&&u.__esModule?u:{default:u}}var i="ivu-affix";function o(u,f){var y=f?"pageYOffset":"pageXOffset",m=f?"scrollTop":"scrollLeft",_=u[y];return typeof _!="number"&&(_=window.document.documentElement[m]),_}function c(u){var f=u.getBoundingClientRect(),y=o(window,!0),m=o(window),_=window.document.body,h=_.clientTop||0,g=_.clientLeft||0;return{top:f.top+y-h,left:f.left+m-g}}r.default={name:"Affix",props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},useCapture:{type:Boolean,default:!1}},data:function(){return{affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType:function(){var f="top";return this.offsetBottom>=0&&(f="bottom"),f},classes:function(){return[(0,e.default)({},""+i,this.affix)]}},mounted:function(){var f=this;(0,l.on)(window,"scroll",this.handleScroll,this.useCapture),(0,l.on)(window,"resize",this.handleScroll,this.useCapture),this.$nextTick(function(){(0,a.default)(this,f),this.handleScroll()}.bind(this))},beforeDestroy:function(){(0,l.off)(window,"scroll",this.handleScroll,this.useCapture),(0,l.off)(window,"resize",this.handleScroll,this.useCapture)},methods:{handleScroll:function(){var f=this.affix,y=o(window,!0),m=c(this.$el),_=window.innerHeight,h=this.$el.getElementsByTagName("div")[0].offsetHeight;m.top-this.offsetTopy&&this.offsetType=="top"&&f&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),m.top+this.offsetBottom+h>y+_&&this.offsetType=="bottom"&&!f?(this.affix=!0,this.styles={bottom:String(this.offsetBottom)+"px",left:String(m.left)+"px",width:String(this.$el.offsetWidth)+"px"},this.$emit("on-change",!0)):m.top+this.offsetBottom+hc;)s.f(l,u=i[c++],n[u]);return l}},function(v,r,t){var s=t(9).document;v.exports=s&&s.documentElement},function(v,r,t){var s=t(30),a=t(29),d=t(66)("IE_PROTO"),e=Object.prototype;v.exports=Object.getPrototypeOf||function(l){return l=a(l),s(l,d)?l[d]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?e:null}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(3),e=t(12);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"Anchor",provide:function(){return{anchorCom:this}},data:function(){return{prefix:"ivu-anchor",isAffixed:!1,inkTop:0,animating:!1,currentLink:"",currentId:"",scrollContainer:null,scrollElement:null,titlesOffsetArr:[],wrapperTop:0,upperFirstTitle:!0}},props:{affix:{type:Boolean,default:!0},offsetTop:{type:Number,default:0},offsetBottom:Number,bounds:{type:Number,default:5},container:null,showInk:{type:Boolean,default:!1},scrollOffset:{type:Number,default:0}},computed:{wrapperComponent:function(){return this.affix?"Affix":"div"},wrapperStyle:function(){return{maxHeight:this.offsetTop?"calc(100vh - "+String(this.offsetTop)+"px)":"100vh"}},containerIsWindow:function(){return this.scrollContainer===window}},methods:{handleAffixStateChange:function(i){this.isAffixed=this.affix&&i},handleScroll:function(i){if(this.upperFirstTitle=i.target.scrollTop=f.offset&&i<(y&&y.offset||1/0)){u=this.titlesOffsetArr[o];break}}this.currentLink=u.link,this.handleSetInkTop()},getContainer:function(){this.scrollContainer=this.container?typeof this.container=="string"?document.querySelector(this.container):this.container:window,this.scrollElement=this.container?this.scrollContainer:document.documentElement||document.body},removeListener:function(){(0,e.off)(this.scrollContainer,"scroll",this.handleScroll),(0,e.off)(window,"hashchange",this.handleHashChange)},init:function(){var i=this;this.handleHashChange(),this.$nextTick(function(){(0,a.default)(this,i),this.removeListener(),this.getContainer(),this.wrapperTop=this.containerIsWindow?0:this.scrollElement.offsetTop,this.handleScrollTo(),this.handleSetInkTop(),this.updateTitleOffset(),this.titlesOffsetArr[0]&&(this.upperFirstTitle=this.scrollElement.scrollTop0?$:[]}.bind(void 0),H=function(ae){return(0,x.default)(void 0,void 0),ae.reduce(function(M,W){return(0,x.default)(void 0,void 0),M.concat(F(W))}.bind(void 0),[])}.bind(void 0),te=function(ae,M,W){return(0,x.default)(void 0,void 0),(0,_.default)({},ae,{componentOptions:(0,_.default)({},ae.componentOptions,{propsData:(0,_.default)({},ae.componentOptions.propsData,(0,y.default)({},M,W))})})}.bind(void 0),ie=function(ae,M){(0,x.default)(void 0,void 0);var W=M.split(".");return W.reduce(function($,D){return(0,x.default)(void 0,void 0),$&&$[D]||null}.bind(void 0),ae)}.bind(void 0),ue=function(ae){if((0,x.default)(void 0,void 0),ae.componentOptions.propsData.label)return ae.componentOptions.propsData.label;var M=(ae.componentOptions.children||[]).reduce(function($,D){return(0,x.default)(void 0,void 0),$+(D.text||"")}.bind(void 0),""),W=ie(ae,"data.domProps.innerHTML");return M||(typeof W=="string"?W:"")}.bind(void 0),ee=function(ae,M,W){(0,x.default)(void 0,void 0);var $=(0,u.default)(ae),D=(0,u.default)(M),I=(0,u.default)(W.map(function(K){return(0,x.default)(void 0,void 0),K.value}.bind(void 0)));return $!==D||$!==I||I!==D}.bind(void 0),he=300;r.default={name:"iSelect",mixins:[q.default,E.default,R.default],components:{FunctionalOptions:Z.default,Drop:p.default,SelectHead:G.default,Icon:P.default},directives:{clickOutside:O.directive,TransferDom:T.default},props:{value:{type:[String,Number,Array],default:""},label:{type:[String,Number,Array],default:""},defaultLabel:{type:[String,Number,Array],default:""},multiple:{type:Boolean,default:!1},multipleMax:{type:Number},multipleUncancelable:{type:Array,default:function(){return(0,x.default)(void 0,void 0),[]}.bind(void 0)},searchInOption:{type:Boolean,default:!1},searchPlaceholder:{type:String},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},placeholder:{type:String},filterable:{type:Boolean,default:!1},filterMethod:{type:Function},remoteMethod:{type:Function},loading:{type:Boolean,default:!1},loadingText:{type:String},size:{validator:function(M){return(0,B.oneOf)(M,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},labelInValue:{type:Boolean,default:!1},notFoundText:{type:String},placement:{validator:function(M){return(0,B.oneOf)(M,["top","bottom","top-start","bottom-start","top-end","bottom-end"])},default:"bottom-start"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},autoComplete:{type:Boolean,default:!1},clickOutStopPropagation:{type:Boolean,default:!0},name:{type:String},elementId:{type:String},transferClassName:{type:String},prefix:{type:String},maxTagCount:{type:Number},maxTagPlaceholder:{type:Function},allowCreate:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},filterByLabel:{type:Boolean,default:!1},defaultEventObject:{type:Boolean,default:!1},eventsEnabled:{type:Boolean,default:!1}},mounted:function(){var M=this;if(this.$on("on-select-selected",this.onOptionClick),!this.remote&&this.selectOptions.length>0&&(this.values=this.getInitialValue().map(function($){return(0,x.default)(this,M),typeof $!="number"&&!$?null:this.getOptionData($)}.bind(this)).filter(Boolean)),this.checkUpdateStatus(),this.remote&&this.value&&this.defaultLabel){if(!this.multiple)this.query=this.defaultLabel;else if(this.multiple&&this.defaultLabel instanceof Array&&this.value.length===this.defaultLabel.length){var W=this.value.map(function($,D){return(0,x.default)(this,M),{value:$,label:this.defaultLabel[D]}}.bind(this));this.defaultEventObject===!0?this.$emit("on-set-default-options",W):this.$emit("on-set-default-options",JSON.parse((0,u.default)(W))),setTimeout(function(){(0,x.default)(this,M),this.values=W}.bind(this))}}},beforeDestroy:function(){this.$off("on-select-selected")},data:function(){return{prefixCls:J,values:[],dropDownWidth:0,visible:!1,focusIndex:-1,isFocused:!1,query:"",initialLabel:this.label,hasMouseHoverHead:!1,slotOptions:this.$slots.default,caretPosition:-1,lastRemoteQuery:"",unchangedQuery:!0,hasExpectedValue:!1,isTyping:!1,preventRemoteCall:!1,filterQueryChange:!1,supportTouch:"ontouchend"in document}},computed:{classes:function(){var M;return[""+J,(M={},(0,y.default)(M,J+"-visible",this.visible),(0,y.default)(M,J+"-disabled",this.itemDisabled),(0,y.default)(M,J+"-multiple",this.multiple),(0,y.default)(M,J+"-single",!this.multiple),(0,y.default)(M,J+"-show-clear",this.showCloseIcon),(0,y.default)(M,J+"-"+String(this.size),!!this.size),M)]},dropdownCls:function(){var M;return M={},(0,y.default)(M,J+"-dropdown-transfer",this.transfer),(0,y.default)(M,J+"-multiple",this.multiple&&this.transfer),(0,y.default)(M,"ivu-auto-complete",this.autoComplete),(0,y.default)(M,this.transferClassName,this.transferClassName),M},selectionCls:function(){var M;return M={},(0,y.default)(M,J+"-selection",!this.autoComplete),(0,y.default)(M,J+"-selection-focused",this.isFocused),M},localeNotFoundText:function(){return typeof this.notFoundText=="undefined"?this.t("i.select.noMatch"):this.notFoundText},localeLoadingText:function(){return typeof this.loadingText=="undefined"?this.t("i.select.loading"):this.loadingText},showCreateItem:function(){var M=this,W=!1;if(this.allowCreate&&this.query!==""){W=!0;var $=(0,B.findComponentsDownward)(this,"iOption");$&&$.length&&$.find(function(D){return(0,x.default)(this,M),D.optionLabel===this.query}.bind(this))&&(W=!1)}return W},transitionName:function(){return this.placement==="bottom"?"slide-up":"slide-down"},dropVisible:function(){var M=!0,W=!this.selectOptions||this.selectOptions.length===0;return!this.loading&&this.remote&&this.query===""&&W&&(M=!1),this.autoComplete&&W&&(M=!1),this.visible&&M},showNotFoundLabel:function(){var M=this.loading,W=this.remote,$=this.selectOptions;return $&&$.length===0&&(!W||W&&!M)},publicValue:function(){var M=this;return this.multiple?this.values.map(function(W){return(0,x.default)(this,M),W.value}.bind(this)):(this.values[0]||{}).value},canBeCleared:function(){var M=this.hasMouseHoverHead||this.active,W=!this.multiple&&!this.itemDisabled&&this.clearable;return M&&W&&this.reset},selectOptions:function(){var M=this,W=[],$=this.slotOptions||[],D=-1,I=this.focusIndex,K=this.values.filter(Boolean).map(function(Ce){var Ae=Ce.value;return(0,x.default)(this,M),Ae}.bind(this));if(this.autoComplete){var X=function(Ce,Ae){return(0,x.default)(this,M),(0,_.default)({},Ce,{children:(Ce.children||[]).map(Ae).map(function(Se){return(0,x.default)(this,M),X(Se,Ae)}.bind(this))})}.bind(this),se=H($),le=se[I];return $.map(function(Ce){return(0,x.default)(this,M),Ce===le||ie(Ce,"componentOptions.propsData.value")===this.value?te(Ce,"isFocused",!0):X(Ce,function(Ae){return(0,x.default)(this,M),Ae!==le?Ae:te(Ae,"isFocused",!0)}.bind(this))}.bind(this))}var fe=!0,me=!1,pe=void 0;try{for(var ge=(0,o.default)($),Me;!(fe=(Me=ge.next()).done);fe=!0){var we=Me.value,Le=we.componentOptions;if(!!Le)if(Y.test(Le.tag)){var Ee=Le.children;this.filterable&&this.isTyping&&(Ee=Ee.filter(function(Ce){var Ae=Ce.componentOptions;return(0,x.default)(this,M),this.validateOption(Ae)}.bind(this))),Ee=Ee.map(function(Ce){return(0,x.default)(this,M),D=D+1,this.processOption(Ce,K,D===I)}.bind(this)),Ee.length>0&&W.push((0,_.default)({},we,{componentOptions:(0,_.default)({},Le,{children:Ee})}))}else{if(this.filterQueryChange){var $e=this.filterable?this.validateOption(Le):we;if(!$e)continue}D=D+1,W.push(this.processOption(we,K,D===I))}}}catch(Ce){me=!0,pe=Ce}finally{try{!fe&&ge.return&&ge.return()}finally{if(me)throw pe}}return W},flatOptions:function(){return H(this.selectOptions)},selectTabindex:function(){return this.itemDisabled||this.filterable?-1:0},remote:function(){return typeof this.remoteMethod=="function"},localePlaceholder:function(){return this.searchPlaceholder===void 0?this.t("i.transfer.filterPlaceholder"):this.searchPlaceholder}},methods:{isJson:function(M){return(typeof M=="undefined"?"undefined":(0,n.default)(M))=="object"&&Object.prototype.toString.call(M).toLowerCase()==="[object object]"&&typeof M.length=="undefined"},inUncancelable:function(M){return this.multipleUncancelable.length===0?!1:this.multipleUncancelable.includes(M)},setQuery:function(M){if(M){this.onQueryChange(M);return}M===null&&(this.onQueryChange(""),this.values=[],this.lastRemoteQuery="")},clearSingleSelect:function(){this.multiple||this.$emit("input",""),this.$emit("on-clear"),this.hideMenu(),this.clearable&&this.reset()},getOptionData:function(M){var W=this;if(this.isJson(M)&&(M.__create===!0||this.remote))return M;var $=this.flatOptions.find(function(se){var le=se.componentOptions;return(0,x.default)(this,W),le.propsData.value===M}.bind(this));if(!$)return null;var D=ue($),I=$.componentOptions.propsData.tag,K=$.componentOptions.propsData.avatar,X=$.componentOptions.propsData.disabled;return{value:M,label:D,tag:I,avatar:K,disabled:X}},getInitialValue:function(){var M=this,W=this.multiple,$=this.remote,D=this.value,I=Array.isArray(D)?D:[D];if(!W&&(typeof I[0]=="undefined"||String(I[0]).trim()===""&&!(0,e.default)(I[0]))&&(I=[]),$&&!W&&D){var K=this.getOptionData(D);this.query=K?K.label:String(D)}return I.filter(function(X){return(0,x.default)(this,M),Boolean(X)||X===0}.bind(this))},processOption:function(M,W,$){if(!M.componentOptions)return M;var D=M.componentOptions.propsData.value,I=M.componentOptions.propsData.disabled,K=W.includes(D),X=(0,_.default)({},M.componentOptions.propsData,{selected:K,isFocused:$,disabled:typeof I=="undefined"?!1:I!==!1});return(0,_.default)({},M,{componentOptions:(0,_.default)({},M.componentOptions,{propsData:X})})},validateOption:function(M){var W=this,$=M.children,D=M.elm,I=M.propsData,K=I.value,X=I.label||"",se=I.keyValue||"",le=D&&D.textContent||($||[]).reduce(function(pe,ge){(0,x.default)(this,W);var Me=ge.elm?ge.elm.textContent:ge.text;return String(pe)+" "+String(Me)}.bind(this),"")||"",fe=this.filterByLabel?[X].toString():[K,X,se,le].toString(),me=this.query.toLowerCase().trim();return fe.toLowerCase().includes(me)},toggleMenu:function(M,W){if(this.itemDisabled)return!1;this.visible=typeof W!="undefined"?W:!this.visible,this.visible&&(this.dropDownWidth=this.$el.getBoundingClientRect().width,this.broadcast("Drop","on-update-popper"))},hideMenu:function(){var M=this;this.toggleMenu(null,!1),this.isTyping=!1,setTimeout(function(){return(0,x.default)(this,M),this.unchangedQuery=!0}.bind(this),he)},onClickOutside:function(M){var W=this;if(this.visible){if(M.type==="mousedown"){if(this.clickOutStopPropagation){if(this.searchInOption){var $=this.$refs.searchInOption;if($===M.target||$.contains(M.target))return}M.preventDefault()}return}if(this.transfer){var D=this.$refs.dropdown.$el;if(D===M.target||D.contains(M.target))return}if(this.filterable){var I=this.$el.querySelector('input[type="text"]');this.caretPosition=I.selectionStart,this.$nextTick(function(){(0,x.default)(this,W);var K=this.caretPosition===-1?I.value.length:this.caretPosition;I.setSelectionRange(K,K)}.bind(this))}this.clickOutStopPropagation&&(!this.autoComplete&&M.stopPropagation(),M.preventDefault()),this.hideMenu(),this.isFocused=!0,this.$emit("on-clickoutside",M)}else this.caretPosition=-1,this.isFocused=!1},reset:function(){this.query="",this.focusIndex=-1,this.unchangedQuery=!0,this.values=[],this.filterQueryChange=!1},getValue:function(){return this.values},setValue:function(M){this.values=M},handleKeydown:function(M){var W=M.key||M.code,$=M.keyCode||M.which;if(!(W==="Backspace"||$===8))if(this.visible){if(M.preventDefault(),W==="Tab"&&M.stopPropagation(),W==="Escape"&&(M.stopPropagation(),this.hideMenu()),W==="ArrowUp"&&this.navigateOptions(-1),W==="ArrowDown"&&this.navigateOptions(1),W==="Enter"){if(this.focusIndex===-1)return this.hideMenu();var D=this.flatOptions[this.focusIndex];if(D){var I=this.getOptionData(D.componentOptions.propsData.value);this.onOptionClick(I)}else this.hideMenu()}}else{var K=["ArrowUp","ArrowDown"];K.includes(M.key)&&this.toggleMenu(null,!0)}},navigateOptions:function(M){var W=this.flatOptions.length-1;if(!(W<0)){var $=this.focusIndex+M;if($<0&&($=W),$>W&&($=0),M>0){for(var D=-1,I=0;I=$)break}$=D}else{for(var X=this.flatOptions.length,se=W;se>=0;se--){var le=!this.flatOptions[se].componentOptions.propsData.disabled;if(le&&(X=se),X<=$)break}$=X}this.focusIndex=$}},onOptionClick:function(M){var W=this;if(this.multiple){this.remote?this.lastRemoteQuery=this.lastRemoteQuery||this.query:this.lastRemoteQuery="";var $=this.values.find(function(I){var K=I.value;return(0,x.default)(this,W),K===M.value}.bind(this));if($){if(this.inUncancelable(M.value))return;this.values=this.values.filter(function(I){var K=I.value;return(0,x.default)(this,W),K!==M.value}.bind(this))}else this.values=this.values.concat(M);this.supportTouch||(this.isFocused=!0)}else this.query=String(M.label).trim(),this.values=[M],this.lastRemoteQuery="",this.hideMenu();if(this.focusIndex=this.flatOptions.findIndex(function(I){return(0,x.default)(this,W),!I||!I.componentOptions?!1:I.componentOptions.propsData.value===M.value}.bind(this)),this.filterable){var D=this.$el.querySelector('input[type="text"]');!this.autoComplete&&!this.supportTouch&&this.$nextTick(function(){return(0,x.default)(this,W),D.focus()}.bind(this))}this.$emit("on-select",M),this.broadcast("Drop","on-update-popper"),setTimeout(function(){(0,x.default)(this,W),this.filterQueryChange=!1}.bind(this),he)},onQueryChange:function(M){if(this.isTyping=!0,M.length>0&&M!==this.query)if(this.autoComplete){var W=document.hasFocus&&document.hasFocus()&&document.activeElement===this.$el.querySelector("input");this.visible=W}else this.visible=!0;this.query=M,this.unchangedQuery=this.visible,this.filterQueryChange=!0},toggleHeaderFocus:function(M){var W=M.type;this.itemDisabled||(this.isFocused=W==="focus")},updateSlotOptions:function(){this.slotOptions=this.$slots.default},checkUpdateStatus:function(){this.getInitialValue().length>0&&this.selectOptions.length===0&&(this.hasExpectedValue=!0)},handleCreateItem:function(){var M=this;if(this.allowCreate&&this.query!=="")if(this.showCreateItem){var W=this.query;this.$emit("on-create",W),this.query="";var $={value:W,label:W,tag:void 0,__create:!0};this.$nextTick(function(){return(0,x.default)(this,M),this.onOptionClick($)}.bind(this))}else{var D=(0,B.findComponentsDownward)(this,"iOption");if(D&&D.length>0){var I=D.find(function(K){var X=K.optionLabel;return(0,x.default)(this,M),X===this.query}.bind(this));I&&I.value!=this.value&&I.$el.click()}}}},watch:{value:function(M){var W=this,$=this.getInitialValue,D=this.getOptionData,I=this.publicValue,K=this.values;this.checkUpdateStatus(),M===""?this.values=[]:ee(M,I,K)&&(this.$nextTick(function(){return(0,x.default)(this,W),this.values=$().map(D).filter(Boolean)}.bind(this)),this.multiple||this.dispatch("FormItem","on-form-change",this.publicValue))},values:function(M,W){if(this.multiple&&this.multipleMax!==void 0&&M.length>this.multipleMax){this.values=M.slice(this.multipleMax*-1);return}var $=(0,u.default)(M),D=(0,u.default)(W),I=this.publicValue,K=$!==D&&I!==this.value;if(K){var X=this.publicValue;this.labelInValue&&(this.multiple?X=this.values:X=this.values[0]),(Array.isArray(I)&&!I.length&&this.value===null||I===void 0&&this.value===null)&&(I=null),this.$emit("input",I),this.$emit("on-change",X),this.dispatch("FormItem","on-form-change",X)}},query:function(M){var W=this;this.$emit("on-query-change",M);var $=this.remoteMethod,D=this.lastRemoteQuery,I=M!==""&&(M!==D||!D),K=$&&I&&!this.preventRemoteCall;if(this.preventRemoteCall=!1,K){this.focusIndex=-1;var X=this.remoteMethod(M);this.initialLabel="",X&&X.then&&X.then(function(se){(0,x.default)(this,W),se&&(this.options=se)}.bind(this))}M!==""&&this.remote&&(this.lastRemoteQuery=M)},loading:function(M){M===!1&&this.updateSlotOptions()},isFocused:function(M){var W=this.filterable?this.$el.querySelector('input[type="text"]'):this.$el;W[this.isFocused?"focus":"blur"]();var $=(0,a.default)(this.values,1),D=$[0];if(D&&this.filterable&&!this.multiple&&!M){var I=String(D.label||D.value).trim();I&&this.query!==I&&(this.preventRemoteCall=!0,this.query=I)}},focusIndex:function(M){var W=this;if(!(M<0||this.autoComplete)){var $=this.flatOptions[M].componentOptions.propsData.value,D=w(this,function(X){var se=X.$options;return(0,x.default)(this,W),se.componentName==="select-item"&&se.propsData.value===$}.bind(this)),I=D.$el.getBoundingClientRect().bottom-this.$refs.dropdown.$el.getBoundingClientRect().bottom,K=D.$el.getBoundingClientRect().top-this.$refs.dropdown.$el.getBoundingClientRect().top;I>0&&(this.$refs.dropdown.$el.scrollTop+=I),K<0&&(this.$refs.dropdown.$el.scrollTop+=K)}},dropVisible:function(M){this.broadcast("Drop",M?"on-update-popper":"on-destroy-popper")},selectOptions:function(){this.hasExpectedValue&&this.selectOptions.length>0&&(this.values.length===0&&(this.values=this.getInitialValue()),this.values=this.values.map(this.getOptionData).filter(Boolean),this.hasExpectedValue=!1),this.slotOptions&&this.slotOptions.length===0&&(this.query=""),this.broadcast("Drop","on-update-popper")},visible:function(M){this.$emit("on-open-change",M)},slotOptions:function(M,W){if(!this.remote){var $=this.getInitialValue();this.flatOptions&&this.flatOptions.length&&$.length&&!this.multiple&&(this.values=$.map(this.getOptionData).filter(Boolean))}M&&W&&M.length!==W.length&&this.broadcast("Drop","on-update-popper")}}}},function(v,r,t){var s=t(41);v.exports=Array.isArray||function(d){return s(d)=="Array"}},function(v,r,t){var s=t(96),a=t(68).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return s(e,a)}},function(v,r,t){v.exports={default:t(308),__esModule:!0}},function(v,r,t){var s=t(23);v.exports=function(a,d,e,l){try{return l?d(s(e)[0],e[1]):d(e)}catch(i){var n=a.return;throw n!==void 0&&s(n.call(a)),i}}},function(v,r,t){var s=t(35),a=t(10)("iterator"),d=Array.prototype;v.exports=function(e){return e!==void 0&&(s.Array===e||d[a]===e)}},function(v,r,t){var s=t(10)("iterator"),a=!1;try{var d=[7][s]();d.return=function(){a=!0},Array.from(d,function(){throw 2})}catch{}v.exports=function(e,l){if(!l&&!a)return!1;var n=!1;try{var i=[7],o=i[s]();o.next=function(){return{done:n=!0}},i[s]=function(){return o},e(i)}catch{}return n}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(17),e=i(d),l=t(3),n=t(33);function i(u){return u&&u.__esModule?u:{default:u}}var o=e.default.prototype.$isServer,c=o?function(){}:t(118);r.default={name:"Drop",props:{placement:{type:String,default:"bottom-start"},className:{type:String},transfer:{type:Boolean},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{popper:null,width:"",popperStatus:!1,tIndex:this.handleGetIndex()}},computed:{styles:function(){var f={};return this.width&&(f.minWidth=String(this.width)+"px"),this.transfer&&(f["z-index"]=(0,n.hasTransferIndex)(this.tIndex,1060+this.tIndex)),f}},methods:{update:function(){var f=this;o||this.$nextTick(function(){(0,a.default)(this,f),this.popper?(this.popper.update(),this.popperStatus=!0):this.popper=new c(this.$parent.$refs.reference,this.$el,{eventsEnabled:this.eventsEnabled,placement:this.placement,modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:"window"}},onCreate:function(){(0,a.default)(this,f),this.resetTransformOrigin(),this.$nextTick(this.popper.update())}.bind(this),onUpdate:function(){(0,a.default)(this,f),this.resetTransformOrigin()}.bind(this)}),this.$parent.$options.name==="iSelect"&&(this.width=parseInt((0,l.getStyle)(this.$parent.$el,"width"))),this.tIndex=this.handleGetIndex()}.bind(this))},destroy:function(){var f=this;this.popper&&setTimeout(function(){(0,a.default)(this,f),this.popper&&!this.popperStatus&&(this.popper.popper.style.display="none",this.popper.destroy(),this.popper=null),this.popperStatus=!1}.bind(this),300)},resetTransformOrigin:function(){if(!!this.popper){var f=this.popper.popper.getAttribute("x-placement"),y=f.split("-")[0],m=f.split("-")[1],_=f==="left"||f==="right";_||(this.popper.popper.style.transformOrigin=y==="bottom"||y!=="top"&&m==="start"?"center top":"center bottom")}},handleGetIndex:function(){return(0,n.transferIncrease)(),(0,n.getTransferIndex)()}},created:function(){this.$on("on-update-popper",this.update),this.$on("on-destroy-popper",this.destroy)},beforeDestroy:function(){this.$off("on-update-popper",this.update),this.$off("on-destroy-popper",this.destroy),this.popper&&(this.popper.destroy(),this.popper=null)}}},function(v,r,t){(function(s){/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license @@ -21,11 +21,11 @@ import{c as Lt,g as $t}from"./@babel.49d8906a.js";import{r as Bt}from"./vue.c448 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. -*/(function(a,d){v.exports=d()})(this,function(){var a=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",d=function(){for(var L=["Edge","Trident","Firefox"],Q=0;Q=0)return 1;return 0}();function e(L){var Q=!1;return function(){Q||(Q=!0,window.Promise.resolve().then(function(){Q=!1,L()}))}}function l(L){var Q=!1;return function(){Q||(Q=!0,setTimeout(function(){Q=!1,L()},d))}}var n=a&&window.Promise,i=n?e:l;function o(L){var Q={};return L&&Q.toString.call(L)==="[object Function]"}function c(L,Q){if(L.nodeType!==1)return[];var ne=L.ownerDocument.defaultView,oe=ne.getComputedStyle(L,null);return Q?oe[Q]:oe}function u(L){return L.nodeName==="HTML"?L:L.parentNode||L.host}function f(L){if(!L)return document.body;switch(L.nodeName){case"HTML":case"BODY":return L.ownerDocument.body;case"#document":return L.body}var Q=c(L),ne=Q.overflow,oe=Q.overflowX,ce=Q.overflowY;return/(auto|scroll|overlay)/.test(ne+ce+oe)?L:f(u(L))}function y(L){return L&&L.referenceNode?L.referenceNode:L}var m=a&&!!(window.MSInputMethodContext&&document.documentMode),_=a&&/MSIE 10/.test(navigator.userAgent);function h(L){return L===11?m:L===10?_:m||_}function g(L){if(!L)return document.documentElement;for(var Q=h(10)?document.body:null,ne=L.offsetParent||null;ne===Q&&L.nextElementSibling;)ne=(L=L.nextElementSibling).offsetParent;var oe=ne&&ne.nodeName;return!oe||oe==="BODY"||oe==="HTML"?L?L.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(ne.nodeName)!==-1&&c(ne,"position")==="static"?g(ne):ne}function b(L){var Q=L.nodeName;return Q==="BODY"?!1:Q==="HTML"||g(L.firstElementChild)===L}function x(L){return L.parentNode!==null?x(L.parentNode):L}function C(L,Q){if(!L||!L.nodeType||!Q||!Q.nodeType)return document.documentElement;var ne=L.compareDocumentPosition(Q)&Node.DOCUMENT_POSITION_FOLLOWING,oe=ne?L:Q,ce=ne?Q:L,de=document.createRange();de.setStart(oe,0),de.setEnd(ce,0);var _e=de.commonAncestorContainer;if(L!==_e&&Q!==_e||oe.contains(ce))return b(_e)?_e:g(_e);var ye=x(L);return ye.host?C(ye.host,Q):C(L,x(Q).host)}function p(L){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",ne=Q==="top"?"scrollTop":"scrollLeft",oe=L.nodeName;if(oe==="BODY"||oe==="HTML"){var ce=L.ownerDocument.documentElement,de=L.ownerDocument.scrollingElement||ce;return de[ne]}return L[ne]}function S(L,Q){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=p(Q,"top"),ce=p(Q,"left"),de=ne?-1:1;return L.top+=oe*de,L.bottom+=oe*de,L.left+=ce*de,L.right+=ce*de,L}function P(L,Q){var ne=Q==="x"?"Left":"Top",oe=ne==="Left"?"Right":"Bottom";return parseFloat(L["border"+ne+"Width"])+parseFloat(L["border"+oe+"Width"])}function O(L,Q,ne,oe){return Math.max(Q["offset"+L],Q["scroll"+L],ne["client"+L],ne["offset"+L],ne["scroll"+L],h(10)?parseInt(ne["offset"+L])+parseInt(oe["margin"+(L==="Height"?"Top":"Left")])+parseInt(oe["margin"+(L==="Height"?"Bottom":"Right")]):0)}function R(L){var Q=L.body,ne=L.documentElement,oe=h(10)&&getComputedStyle(ne);return{height:O("Height",Q,ne,oe),width:O("Width",Q,ne,oe)}}var T=function(L,Q){if(!(L instanceof Q))throw new TypeError("Cannot call a class as a function")},B=function(){function L(Q,ne){for(var oe=0;oe2&&arguments[2]!==void 0?arguments[2]:!1,oe=h(10),ce=Q.nodeName==="HTML",de=A(L),_e=A(Q),ye=f(L),be=c(Q),De=parseFloat(be.borderTopWidth),Pe=parseFloat(be.borderLeftWidth);ne&&ce&&(_e.top=Math.max(_e.top,0),_e.left=Math.max(_e.left,0));var Oe=U({top:de.top-_e.top-De,left:de.left-_e.left-Pe,width:de.width,height:de.height});if(Oe.marginTop=0,Oe.marginLeft=0,!oe&&ce){var Te=parseFloat(be.marginTop),Ie=parseFloat(be.marginLeft);Oe.top-=De-Te,Oe.bottom-=De-Te,Oe.left-=Pe-Ie,Oe.right-=Pe-Ie,Oe.marginTop=Te,Oe.marginLeft=Ie}return(oe&&!ne?Q.contains(ye):Q===ye&&ye.nodeName!=="BODY")&&(Oe=S(Oe,Q)),Oe}function E(L){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=L.ownerDocument.documentElement,oe=V(L,ne),ce=Math.max(ne.clientWidth,window.innerWidth||0),de=Math.max(ne.clientHeight,window.innerHeight||0),_e=Q?0:p(ne),ye=Q?0:p(ne,"left"),be={top:_e-oe.top+oe.marginTop,left:ye-oe.left+oe.marginLeft,width:ce,height:de};return U(be)}function W(L){var Q=L.nodeName;if(Q==="BODY"||Q==="HTML")return!1;if(c(L,"position")==="fixed")return!0;var ne=u(L);return ne?W(ne):!1}function G(L){if(!L||!L.parentElement||h())return document.documentElement;for(var Q=L.parentElement;Q&&c(Q,"transform")==="none";)Q=Q.parentElement;return Q||document.documentElement}function z(L,Q,ne,oe){var ce=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,de={top:0,left:0},_e=ce?G(L):C(L,y(Q));if(oe==="viewport")de=E(_e,ce);else{var ye=void 0;oe==="scrollParent"?(ye=f(u(Q)),ye.nodeName==="BODY"&&(ye=L.ownerDocument.documentElement)):oe==="window"?ye=L.ownerDocument.documentElement:ye=oe;var be=V(ye,_e,ce);if(ye.nodeName==="HTML"&&!W(_e)){var De=R(L.ownerDocument),Pe=De.height,Oe=De.width;de.top+=be.top-be.marginTop,de.bottom=Pe+be.top,de.left+=be.left-be.marginLeft,de.right=Oe+be.left}else de=be}ne=ne||0;var Te=typeof ne=="number";return de.left+=Te?ne:ne.left||0,de.top+=Te?ne:ne.top||0,de.right-=Te?ne:ne.right||0,de.bottom-=Te?ne:ne.bottom||0,de}function Z(L){var Q=L.width,ne=L.height;return Q*ne}function re(L,Q,ne,oe,ce){var de=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(L.indexOf("auto")===-1)return L;var _e=z(ne,oe,de,ce),ye={top:{width:_e.width,height:Q.top-_e.top},right:{width:_e.right-Q.right,height:_e.height},bottom:{width:_e.width,height:_e.bottom-Q.bottom},left:{width:Q.left-_e.left,height:_e.height}},be=Object.keys(ye).map(function(Te){return q({key:Te},ye[Te],{area:Z(ye[Te])})}).sort(function(Te,Ie){return Ie.area-Te.area}),De=be.filter(function(Te){var Ie=Te.width,Re=Te.height;return Ie>=ne.clientWidth&&Re>=ne.clientHeight}),Pe=De.length>0?De[0].key:be[0].key,Oe=L.split("-")[1];return Pe+(Oe?"-"+Oe:"")}function X(L,Q,ne){var oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,ce=oe?G(Q):C(Q,y(ne));return V(ne,ce,oe)}function N(L){var Q=L.ownerDocument.defaultView,ne=Q.getComputedStyle(L),oe=parseFloat(ne.marginTop||0)+parseFloat(ne.marginBottom||0),ce=parseFloat(ne.marginLeft||0)+parseFloat(ne.marginRight||0),de={width:L.offsetWidth+ce,height:L.offsetHeight+oe};return de}function Y(L){var Q={left:"right",right:"left",bottom:"top",top:"bottom"};return L.replace(/left|right|bottom|top/g,function(ne){return Q[ne]})}function w(L,Q,ne){ne=ne.split("-")[0];var oe=N(L),ce={width:oe.width,height:oe.height},de=["right","left"].indexOf(ne)!==-1,_e=de?"top":"left",ye=de?"left":"top",be=de?"height":"width",De=de?"width":"height";return ce[_e]=Q[_e]+Q[be]/2-oe[be]/2,ne===ye?ce[ye]=Q[ye]-oe[De]:ce[ye]=Q[Y(ye)],ce}function F(L,Q){return Array.prototype.find?L.find(Q):L.filter(Q)[0]}function H(L,Q,ne){if(Array.prototype.findIndex)return L.findIndex(function(ce){return ce[Q]===ne});var oe=F(L,function(ce){return ce[Q]===ne});return L.indexOf(oe)}function te(L,Q,ne){var oe=ne===void 0?L:L.slice(0,H(L,"name",ne));return oe.forEach(function(ce){ce.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var de=ce.function||ce.fn;ce.enabled&&o(de)&&(Q.offsets.popper=U(Q.offsets.popper),Q.offsets.reference=U(Q.offsets.reference),Q=de(Q,ce))}),Q}function ie(){if(!this.state.isDestroyed){var L={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};L.offsets.reference=X(this.state,this.popper,this.reference,this.options.positionFixed),L.placement=re(this.options.placement,L.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),L.originalPlacement=L.placement,L.positionFixed=this.options.positionFixed,L.offsets.popper=w(this.popper,L.offsets.reference,L.placement),L.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",L=te(this.modifiers,L),this.state.isCreated?this.options.onUpdate(L):(this.state.isCreated=!0,this.options.onCreate(L))}}function ue(L,Q){return L.some(function(ne){var oe=ne.name,ce=ne.enabled;return ce&&oe===Q})}function ee(L){for(var Q=[!1,"ms","Webkit","Moz","O"],ne=L.charAt(0).toUpperCase()+L.slice(1),oe=0;oe_e[Ie]&&(L.offsets.popper[Oe]+=ye[Oe]+Re-_e[Ie]),L.offsets.popper=U(L.offsets.popper);var Fe=ye[Oe]+ye[De]/2-Re/2,ze=c(L.instance.popper),Ge=parseFloat(ze["margin"+Pe]),Ne=parseFloat(ze["border"+Pe+"Width"]),Qe=Fe-L.offsets.popper[Oe]-Ge-Ne;return Qe=Math.max(Math.min(_e[De]-Re,Qe),0),L.arrowElement=oe,L.offsets.arrow=(ne={},j(ne,Oe,Math.round(Qe)),j(ne,Te,""),ne),L}function Le(L){return L==="end"?"start":L==="start"?"end":L}var Ee=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],$e=Ee.slice(3);function Ce(L){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=$e.indexOf(L),oe=$e.slice(ne+1).concat($e.slice(0,ne));return Q?oe.reverse():oe}var Ae={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Se(L,Q){if(ue(L.instance.modifiers,"inner")||L.flipped&&L.placement===L.originalPlacement)return L;var ne=z(L.instance.popper,L.instance.reference,Q.padding,Q.boundariesElement,L.positionFixed),oe=L.placement.split("-")[0],ce=Y(oe),de=L.placement.split("-")[1]||"",_e=[];switch(Q.behavior){case Ae.FLIP:_e=[oe,ce];break;case Ae.CLOCKWISE:_e=Ce(oe);break;case Ae.COUNTERCLOCKWISE:_e=Ce(oe,!0);break;default:_e=Q.behavior}return _e.forEach(function(ye,be){if(oe!==ye||_e.length===be+1)return L;oe=L.placement.split("-")[0],ce=Y(oe);var De=L.offsets.popper,Pe=L.offsets.reference,Oe=Math.floor,Te=oe==="left"&&Oe(De.right)>Oe(Pe.left)||oe==="right"&&Oe(De.left)Oe(Pe.top)||oe==="bottom"&&Oe(De.top)Oe(ne.right),Fe=Oe(De.top)Oe(ne.bottom),Ge=oe==="left"&&Ie||oe==="right"&&Re||oe==="top"&&Fe||oe==="bottom"&&ze,Ne=["top","bottom"].indexOf(oe)!==-1,Qe=!!Q.flipVariations&&(Ne&&de==="start"&&Ie||Ne&&de==="end"&&Re||!Ne&&de==="start"&&Fe||!Ne&&de==="end"&&ze),nt=!!Q.flipVariationsByContent&&(Ne&&de==="start"&&Re||Ne&&de==="end"&&Ie||!Ne&&de==="start"&&ze||!Ne&&de==="end"&&Fe),rt=Qe||nt;(Te||Ge||rt)&&(L.flipped=!0,(Te||Ge)&&(oe=_e[be+1]),rt&&(de=Le(de)),L.placement=oe+(de?"-"+de:""),L.offsets.popper=q({},L.offsets.popper,w(L.instance.popper,L.offsets.reference,L.placement)),L=te(L.instance.modifiers,L,"flip"))}),L}function Ve(L){var Q=L.offsets,ne=Q.popper,oe=Q.reference,ce=L.placement.split("-")[0],de=Math.floor,_e=["top","bottom"].indexOf(ce)!==-1,ye=_e?"right":"bottom",be=_e?"left":"top",De=_e?"width":"height";return ne[ye]de(oe[ye])&&(L.offsets.popper[be]=de(oe[ye])),L}function Ke(L,Q,ne,oe){var ce=L.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),de=+ce[1],_e=ce[2];if(!de)return L;if(_e.indexOf("%")===0){var ye=void 0;switch(_e){case"%p":ye=ne;break;case"%":case"%r":default:ye=oe}var be=U(ye);return be[Q]/100*de}else if(_e==="vh"||_e==="vw"){var De=void 0;return _e==="vh"?De=Math.max(document.documentElement.clientHeight,window.innerHeight||0):De=Math.max(document.documentElement.clientWidth,window.innerWidth||0),De/100*de}else return de}function We(L,Q,ne,oe){var ce=[0,0],de=["right","left"].indexOf(oe)!==-1,_e=L.split(/(\+|\-)/).map(function(Pe){return Pe.trim()}),ye=_e.indexOf(F(_e,function(Pe){return Pe.search(/,|\s/)!==-1}));_e[ye]&&_e[ye].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var be=/\s*,\s*|\s+/,De=ye!==-1?[_e.slice(0,ye).concat([_e[ye].split(be)[0]]),[_e[ye].split(be)[1]].concat(_e.slice(ye+1))]:[_e];return De=De.map(function(Pe,Oe){var Te=(Oe===1?!de:de)?"height":"width",Ie=!1;return Pe.reduce(function(Re,Fe){return Re[Re.length-1]===""&&["+","-"].indexOf(Fe)!==-1?(Re[Re.length-1]=Fe,Ie=!0,Re):Ie?(Re[Re.length-1]+=Fe,Ie=!1,Re):Re.concat(Fe)},[]).map(function(Re){return Ke(Re,Te,Q,ne)})}),De.forEach(function(Pe,Oe){Pe.forEach(function(Te,Ie){K(Te)&&(ce[Oe]+=Te*(Pe[Ie-1]==="-"?-1:1))})}),ce}function ke(L,Q){var ne=Q.offset,oe=L.placement,ce=L.offsets,de=ce.popper,_e=ce.reference,ye=oe.split("-")[0],be=void 0;return K(+ne)?be=[+ne,0]:be=We(ne,de,_e,ye),ye==="left"?(de.top+=be[0],de.left-=be[1]):ye==="right"?(de.top+=be[0],de.left+=be[1]):ye==="top"?(de.left+=be[0],de.top-=be[1]):ye==="bottom"&&(de.left+=be[0],de.top+=be[1]),L.popper=de,L}function He(L,Q){var ne=Q.boundariesElement||g(L.instance.popper);L.instance.reference===ne&&(ne=g(ne));var oe=ee("transform"),ce=L.instance.popper.style,de=ce.top,_e=ce.left,ye=ce[oe];ce.top="",ce.left="",ce[oe]="";var be=z(L.instance.popper,L.instance.reference,Q.padding,ne,L.positionFixed);ce.top=de,ce.left=_e,ce[oe]=ye,Q.boundaries=be;var De=Q.priority,Pe=L.offsets.popper,Oe={primary:function(Ie){var Re=Pe[Ie];return Pe[Ie]be[Ie]&&!Q.escapeWithReference&&(Fe=Math.min(Pe[Re],be[Ie]-(Ie==="right"?Pe.width:Pe.height))),j({},Re,Fe)}};return De.forEach(function(Te){var Ie=["left","top"].indexOf(Te)!==-1?"primary":"secondary";Pe=q({},Pe,Oe[Ie](Te))}),L.offsets.popper=Pe,L}function Be(L){var Q=L.placement,ne=Q.split("-")[0],oe=Q.split("-")[1];if(oe){var ce=L.offsets,de=ce.reference,_e=ce.popper,ye=["bottom","top"].indexOf(ne)!==-1,be=ye?"left":"top",De=ye?"width":"height",Pe={start:j({},be,de[be]),end:j({},be,de[be]+de[De]-_e[De])};L.offsets.popper=q({},_e,Pe[oe])}return L}function Ue(L){if(!Me(L.instance.modifiers,"hide","preventOverflow"))return L;var Q=L.offsets.reference,ne=F(L.instance.modifiers,function(oe){return oe.name==="preventOverflow"}).boundaries;if(Q.bottomne.right||Q.top>ne.bottom||Q.right2&&arguments[2]!==void 0?arguments[2]:{};T(this,L),this.scheduleUpdate=function(){return requestAnimationFrame(oe.update)},this.update=i(this.update.bind(this)),this.options=q({},L.Defaults,ce),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=Q&&Q.jquery?Q[0]:Q,this.popper=ne&&ne.jquery?ne[0]:ne,this.options.modifiers={},Object.keys(q({},L.Defaults.modifiers,ce.modifiers)).forEach(function(_e){oe.options.modifiers[_e]=q({},L.Defaults.modifiers[_e]||{},ce.modifiers?ce.modifiers[_e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(_e){return q({name:_e},oe.options.modifiers[_e])}).sort(function(_e,ye){return _e.order-ye.order}),this.modifiers.forEach(function(_e){_e.enabled&&o(_e.onLoad)&&_e.onLoad(oe.reference,oe.popper,oe.options,_e,oe.state)}),this.update();var de=this.options.eventsEnabled;de&&this.enableEventListeners(),this.state.eventsEnabled=de}return B(L,[{key:"update",value:function(){return ie.call(this)}},{key:"destroy",value:function(){return he.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return I.call(this)}}]),L}();return Xe.Utils=(typeof window!="undefined"?window:s).PopperUtils,Xe.placements=Ee,Xe.Defaults=qe,Xe})}).call(r,t(119))},function(v,r){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(t=window)}v.exports=t},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.i18n=r.use=r.t=void 0;var s=t(318),a=f(s),d=t(321),e=f(d),l=t(17),n=f(l),i=t(323),o=f(i),c=t(324),u=f(c);function f(C){return C&&C.__esModule?C:{default:C}}var y=(0,u.default)(n.default),m=e.default,_=!1,h=function(){var p=(0,a.default)(this||n.default).$t;if(typeof p=="function"&&!!n.default.locale)return _||(_=!0,n.default.locale(n.default.config.lang,(0,o.default)(m,n.default.locale(n.default.config.lang)||{},{clone:!0}))),p.apply(this,arguments)},g=r.t=function(p,S){var P=h.apply(this,arguments);if(P!=null)return P;for(var O=p.split("."),R=m,T=0,B=O.length;T0||this.filterable?"":""+String(this.selectedSingle)||this.localePlaceholder},showPlaceholder:function(){var g=!1;if(this.multiple)!this.values.length>0&&(g=!0);else{var b=this.values[0];(typeof b=="undefined"||String(b).trim()==="")&&(g=!this.remoteInitialLabel)}return g},resetSelect:function(){return!this.showPlaceholder&&this.clearable},inputStyle:function(){var g={};return this.multiple&&(this.showPlaceholder?g.width="100%":g.width=String(this.inputLength)+"px"),g},localePlaceholder:function(){return this.placeholder===void 0?this.t("i.select.placeholder"):this.placeholder},selectedSingle:function(){var g=this.values[0];return g?g.label:this.remoteInitialLabel||""},selectedMultiple:function(){return this.multiple?this.values:[]},headCls:function(){return(0,e.default)({},_+"-head-flex",this.filterable&&(this.$slots.prefix||this.prefix))},arrowType:function(){var g="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.select.customArrow?g="":this.$IVIEW.select.arrow&&(g=this.$IVIEW.select.arrow)),g},customArrowType:function(){var g="";return this.$IVIEW&&this.$IVIEW.select.customArrow&&(g=this.$IVIEW.select.customArrow),g},arrowSize:function(){var g="";return this.$IVIEW&&this.$IVIEW.select.arrowSize&&(g=this.$IVIEW.select.arrowSize),g},showInput:function(){return this.searchInOption?this.showPlaceholder&&this.query==="":!0}},methods:{inUncancelable:function(g){return this.multipleUncancelable.length===0?!1:this.multipleUncancelable.includes(g)},onInputFocus:function(){this.$emit("on-input-focus")},onInputBlur:function(){if(this.resetInputLength(),this.allowCreate&&this.query!==""&&this.$parent.flatOptions.length==0){this.handleInputEnter();return}this.showCreateItem||(this.values.length||(this.query=""),this.$emit("on-input-blur"))},removeTag:function(g){if(this.disabled||this.inUncancelable(g.value))return!1;this.dispatch("iSelect","on-select-selected",g)},resetInputState:function(){this.resetInputLength(),this.$emit("on-keydown")},resetInputLength:function(){this.filterable&&(this.inputLength=this.$refs.input.value.length*12+20)},handleInputDelete:function(g){var b=g.target.value;this.multiple&&this.selectedMultiple.length&&this.query===""&&b===""&&this.removeTag(this.selectedMultiple[this.selectedMultiple.length-1])},handleInputEnter:function(g){if(this.$emit("on-enter"),this.showCreateItem)try{g.stopPropagation()}catch{}},onHeaderClick:function(g){this.filterable&&g.target===this.$el&&this.$refs.input.focus()},onClear:function(){this.$emit("on-clear")}},watch:{values:function(g){var b=this,x=(0,a.default)(g,1),C=x[0];if(!!this.filterable){if(this.preventRemoteCall=!0,this.multiple){this.query="",this.preventRemoteCall=!1;return}typeof C=="undefined"||C===""||C===null?this.query="":this.query=C.label,this.$nextTick(function(){return(0,n.default)(this,b),this.preventRemoteCall=!1}.bind(this))}},query:function(g){if(this.resetInputLength(),this.preventRemoteCall){this.preventRemoteCall=!1;return}this.$emit("on-query-change",g)},queryProp:function(g){g!==this.query&&(this.query=g)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e=function(){return(0,a.default)(void 0,void 0),[]}.bind(void 0);r.default={props:{options:{type:Array,default:e},slotOptions:{type:Array,default:e},slotUpdateHook:{type:Function,default:function(){(0,a.default)(void 0,void 0)}.bind(void 0)}},render:function(n){return this.slotOptions!==this.$parent.$slots.default&&this.slotUpdateHook(),n("ul",[this.$slots.default,this.options])}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=o(s),d=t(4),e=o(d),l=t(11),n=o(l),i=t(3);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-select-item";r.default={name:"iOption",componentName:"select-item",mixins:[e.default,n.default],props:{value:{type:[String,Number],required:!0},label:{type:[String,Number]},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isFocused:{type:Boolean,default:!1},tag:{type:[String,Number]},avatar:{type:String},keyValue:{type:[String,Number]}},data:function(){return{searchLabel:"",autoComplete:!1}},computed:{classes:function(){var f;return[""+c,(f={},(0,a.default)(f,c+"-disabled",this.itemDisabled),(0,a.default)(f,c+"-selected",this.selected&&!this.autoComplete),(0,a.default)(f,c+"-focus",this.isFocused),f)]},showLabel:function(){return this.label?this.label:this.value},optionLabel:function(){return this.label||this.$el&&this.$el.textContent}},methods:{select:function(){if(this.itemDisabled)return!1;this.dispatch("iSelect","on-select-selected",{value:this.value,label:this.optionLabel,tag:this.tag,avatar:this.avatar}),this.$emit("on-select-selected",{value:this.value,label:this.optionLabel,tag:this.tag,avatar:this.avatar})}},mounted:function(){var f=(0,i.findComponentUpward)(this,"iSelect");f&&(this.autoComplete=f.autoComplete)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=_(s),d=t(330),e=_(d),l=t(2),n=_(l),i=t(3),o=t(333),c=_(o),u=t(4),f=_(u),y=t(11),m=_(y);function _(g){return g&&g.__esModule?g:{default:g}}var h="ivu-input";r.default={name:"Input",mixins:[f.default,m.default],props:{type:{validator:function(b){return(0,i.oneOf)(b,["text","textarea","password","url","email","date","number","tel"])},default:"text"},value:{type:[String,Number],default:""},size:{validator:function(b){return(0,i.oneOf)(b,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},placeholder:{type:String,default:""},maxlength:{type:[String,Number]},disabled:{type:Boolean,default:!1},icon:String,autosize:{type:[Boolean,Object],default:!1},rows:{type:Number,default:2},readonly:{type:Boolean,default:!1},name:{type:String},number:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},clearable:{type:Boolean,default:!1},clearableFocus:{type:Boolean,default:!0},elementId:{type:String},wrap:{validator:function(b){return(0,i.oneOf)(b,["hard","soft"])},default:"soft"},prefix:{type:String,default:""},suffix:{type:String,default:""},search:{type:Boolean,default:!1},enterButton:{type:[Boolean,String],default:!1},showWordLimit:{type:Boolean,default:!1},password:{type:Boolean,default:!1},border:{type:Boolean,default:!0},enterkeyhint:{type:String,default:""},parser:{type:Function}},data:function(){return{currentValue:this.value,prefixCls:h,slotReady:!1,textareaStyles:{},isOnComposition:!1,showPassword:!1,clearableIconOffset:0}},computed:{currentType:function(){var b=this.type;return b==="password"&&this.password&&this.showPassword&&(b="text"),b},prepend:function(){var b=!1;return this.type!=="textarea"&&(b=this.$slots.prepend!==void 0),b},append:function(){var b=!1;return this.type!=="textarea"&&(b=this.$slots.append!==void 0),b},showPrefix:function(){var b=!1;return this.type!=="textarea"&&(b=this.prefix!==""||this.$slots.prefix!==void 0),b},showSuffix:function(){var b=!1;return this.type!=="textarea"&&(b=this.suffix!==""||this.$slots.suffix!==void 0),b},wrapClasses:function(){var b;return[h+"-wrapper",(b={},(0,n.default)(b,h+"-wrapper-"+String(this.size),!!this.size),(0,n.default)(b,h+"-type-"+String(this.type),this.type),(0,n.default)(b,h+"-group",this.prepend||this.append||this.search&&this.enterButton),(0,n.default)(b,h+"-group-"+String(this.size),(this.prepend||this.append||this.search&&this.enterButton)&&!!this.size),(0,n.default)(b,h+"-group-with-prepend",this.prepend),(0,n.default)(b,h+"-group-with-append",this.append||this.search&&this.enterButton),(0,n.default)(b,h+"-hide-icon",this.append),(0,n.default)(b,h+"-with-search",this.search&&this.enterButton),(0,n.default)(b,h+"-wrapper-disabled",this.itemDisabled),b)]},inputClasses:function(){var b;return[""+h,(b={},(0,n.default)(b,h+"-"+String(this.size),!!this.size),(0,n.default)(b,h+"-disabled",this.itemDisabled),(0,n.default)(b,h+"-no-border",!this.border),(0,n.default)(b,h+"-with-prefix",this.showPrefix),(0,n.default)(b,h+"-with-suffix",this.showSuffix||this.search&&this.enterButton===!1),b)]},textareaClasses:function(){var b;return[""+h,(b={},(0,n.default)(b,h+"-disabled",this.itemDisabled),(0,n.default)(b,h+"-no-border",!this.border),b)]},upperLimit:function(){return this.maxlength},textLength:function(){return typeof this.value=="number"?String(this.value).length:(this.value||"").length},clearableStyles:function(){var b={},x=this.clearableIconOffset;return x&&(b.transform="translateX(-"+String(x)+"px)"),b}},methods:{handleEnter:function(b){this.$emit("on-enter",b),this.search&&this.$emit("on-search",this.currentValue)},handleKeydown:function(b){this.$emit("on-keydown",b)},handleKeypress:function(b){this.$emit("on-keypress",b)},handleKeyup:function(b){this.$emit("on-keyup",b)},handleIconClick:function(b){this.$emit("on-click",b)},handleFocus:function(b){this.$emit("on-focus",b)},handleBlur:function(b){this.$emit("on-blur",b),(0,i.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.currentValue)},handleComposition:function(b){b.type==="compositionstart"&&(this.isOnComposition=!0),b.type==="compositionend"&&(this.isOnComposition=!1,this.handleInput(b))},handleInput:function(b){if(!this.isOnComposition){var x=b.target.value;if(this.parser){var C=this.parser(x);C!==x&&(b.target.value=x=C)}this.number&&x!==""&&(x=(0,e.default)(Number(x))?x:Number(x)),this.$emit("input",x),this.setCurrentValue(x),this.$emit("on-change",b)}},handleChange:function(b){this.$emit("on-input-change",b)},setCurrentValue:function(b){var x=this;b!==this.currentValue&&(this.$nextTick(function(){(0,a.default)(this,x),this.resizeTextarea()}.bind(this)),this.currentValue=b,(0,i.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-change",b))},resizeTextarea:function(){var b=this.autosize;if(!b||this.type!=="textarea")return!1;var x=b.minRows,C=b.maxRows;this.textareaStyles=(0,c.default)(this.$refs.textarea,x,C)},focus:function(b){var x=this.type==="textarea"?this.$refs.textarea:this.$refs.input;x.focus(b);var C=b||{},p=C.cursor;if(p){var S=x.value.length;switch(p){case"start":x.setSelectionRange(0,0);break;case"end":x.setSelectionRange(S,S);break;default:x.setSelectionRange(0,S)}}},blur:function(){this.type==="textarea"?this.$refs.textarea.blur():this.$refs.input.blur()},handleClear:function(){var b={target:{value:""}};this.$emit("input",""),this.setCurrentValue(""),this.$emit("on-change",b),this.$emit("on-clear"),this.clearableFocus&&this.$refs.input.focus()},handleSearch:function(){if(this.itemDisabled)return!1;this.$refs.input.focus(),this.$emit("on-search",this.currentValue)},handleToggleShowPassword:function(){var b=this;if(this.itemDisabled)return!1;this.showPassword=!this.showPassword,this.focus();var x=this.currentValue.length;setTimeout(function(){(0,a.default)(this,b),this.$refs.input.setSelectionRange(x,x)}.bind(this),0)},handleCalcIconOffset:function(){var b=this.$el.querySelectorAll(".ivu-input-group-append")[0];b?this.clearableIconOffset=b.offsetWidth:this.clearableIconOffset=0}},watch:{value:function(b){this.setCurrentValue(b)},type:function(){this.$nextTick(this.handleCalcIconOffset)}},mounted:function(){this.slotReady=!0,this.resizeTextarea(),this.handleCalcIconOffset()},updated:function(){this.$nextTick(this.handleCalcIconOffset)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(126),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(343);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(20),e=n(d),l=t(3);function n(c){return c&&c.__esModule?c:{default:c}}var i="ivu-avatar",o=["small","large","default"];r.default={name:"Avatar",components:{Icon:e.default},props:{shape:{validator:function(u){return(0,l.oneOf)(u,["circle","square"])},default:"circle"},size:{type:[String,Number],default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},src:{type:String},icon:{type:String},customIcon:{type:String,default:""}},data:function(){return{prefixCls:i,scale:1,childrenWidth:0,isSlotShow:!1,slotTemp:null}},computed:{classes:function(){var u;return[""+i,i+"-"+String(this.shape),(u={},(0,a.default)(u,i+"-image",!!this.src),(0,a.default)(u,i+"-icon",!!this.icon||!!this.customIcon),(0,a.default)(u,i+"-"+String(this.size),(0,l.oneOf)(this.size,o)),u)]},styles:function(){var u={};return this.size&&!(0,l.oneOf)(this.size,o)&&(u.width=String(this.size)+"px",u.height=String(this.size)+"px",u.lineHeight=String(this.size)+"px",u.fontSize=this.size/2+"px"),u},childrenStyle:function(){var u={};return this.isSlotShow&&(u={msTransform:"scale("+String(this.scale)+")",WebkitTransform:"scale("+String(this.scale)+")",transform:"scale("+String(this.scale)+")",position:"absolute",display:"inline-block",left:"calc(50% - "+String(Math.round(this.childrenWidth/2))+"px)"}),u}},watch:{size:function(u,f){u!==f&&this.setScale()}},methods:{setScale:function(){if(this.isSlotShow=!this.src&&!this.icon,this.$refs.children){this.childrenWidth=this.$refs.children.offsetWidth;var u=this.$el.getBoundingClientRect().width;u-8=this.height},back:function(){var o=document.documentElement.scrollTop||document.body.scrollTop;(0,d.scrollTop)(window,o,0,this.duration),this.$emit("on-click")}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(i){return i&&i.__esModule?i:{default:i}}var l=["blue","green","red","yellow","pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"],n="ivu-badge";r.default={name:"Badge",props:{count:Number,dot:{type:Boolean,default:!1},overflowCount:{type:[Number,String],default:99},className:String,showZero:{type:Boolean,default:!1},text:{type:String,default:""},status:{validator:function(o){return(0,d.oneOf)(o,["success","processing","default","error","warning"])}},type:{validator:function(o){return(0,d.oneOf)(o,["success","primary","normal","error","warning","info"])}},offset:{type:Array},color:{type:String}},computed:{classes:function(){return""+n},dotClasses:function(){return n+"-dot"},countClasses:function(){var o;return[n+"-count",(o={},(0,a.default)(o,""+String(this.className),!!this.className),(0,a.default)(o,n+"-count-alone",this.alone),(0,a.default)(o,n+"-count-"+String(this.type),!!this.type),o)]},customCountClasses:function(){return[n+"-count",n+"-count-custom",(0,a.default)({},""+String(this.className),!!this.className)]},statusClasses:function(){var o;return[n+"-status-dot",(o={},(0,a.default)(o,n+"-status-"+String(this.status),!!this.status),(0,a.default)(o,n+"-status-"+String(this.color),!!this.color&&(0,d.oneOf)(this.color,l)),o)]},statusStyles:function(){return(0,d.oneOf)(this.color,l)?{}:{backgroundColor:this.color}},styles:function(){var o={};return this.offset&&this.offset.length===2&&(o["margin-top"]=String(this.offset[0])+"px",o["margin-right"]=String(this.offset[1])+"px"),o},finalCount:function(){return this.text!==""?this.text:parseInt(this.count)>=parseInt(this.overflowCount)?String(this.overflowCount)+"+":this.count},badge:function(){var o=!1;return this.count&&(o=parseInt(this.count)!==0),this.dot&&(o=!0,this.count!==null&&parseInt(this.count)===0&&(o=!1)),this.text!==""&&(o=!0),o||this.showZero},hasCount:function(){return!!(this.count||this.text!==""||this.showZero&&parseInt(this.count)===0)},alone:function(){return this.$slots.default===void 0}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-breadcrumb";r.default={name:"Breadcrumb",props:{separator:{type:String,default:"/"}},computed:{classes:function(){return""+e}},mounted:function(){this.updateChildren()},updated:function(){var n=this;this.$nextTick(function(){(0,a.default)(this,n),this.updateChildren()}.bind(this))},methods:{updateChildren:function(){var n=this;this.$children.forEach(function(i){(0,a.default)(this,n),i.separator=this.separator}.bind(this))}},watch:{separator:function(){this.updateChildren()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(48),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-breadcrumb-item";r.default={name:"BreadcrumbItem",mixins:[a.default],props:{},data:function(){return{separator:"",showSeparator:!1}},computed:{linkClasses:function(){return e+"-link"},separatorClasses:function(){return e+"-separator"}},mounted:function(){this.showSeparator=this.$slots.separator!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=u(s),d=t(20),e=u(d),l=t(3),n=t(48),i=u(n),o=t(11),c=u(o);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-btn";r.default={name:"Button",mixins:[i.default,c.default],components:{Icon:e.default},props:{type:{validator:function(m){return(0,l.oneOf)(m,["default","primary","dashed","text","info","success","warning","error"])},default:"default"},shape:{validator:function(m){return(0,l.oneOf)(m,["circle","circle-outline"])}},size:{validator:function(m){return(0,l.oneOf)(m,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},loading:Boolean,disabled:Boolean,htmlType:{default:"button",validator:function(m){return(0,l.oneOf)(m,["button","submit","reset"])}},icon:{type:String,default:""},customIcon:{type:String,default:""},long:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},computed:{showSlot:function(){return!!this.$slots.default},classes:function(){var m;return[""+f,f+"-"+String(this.type),(m={},(0,a.default)(m,f+"-long",this.long),(0,a.default)(m,f+"-"+String(this.shape),!!this.shape),(0,a.default)(m,f+"-"+String(this.size),this.size!=="default"),(0,a.default)(m,f+"-loading",this.loading!=null&&this.loading),(0,a.default)(m,f+"-icon-only",!this.showSlot&&(!!this.icon||!!this.customIcon||this.loading)),(0,a.default)(m,f+"-ghost",this.ghost),m)]},isHrefPattern:function(){var m=this.to;return!!m},tagName:function(){var m=this.isHrefPattern;return m?"a":"button"},tagProps:function(){var m=this.isHrefPattern;if(m){var _=this.linkUrl,h=this.target;return{href:_,target:h}}else{var g=this.htmlType;return{type:g}}}},methods:{handleClickLink:function(m){this.$emit("click",m);var _=m.ctrlKey||m.metaKey;this.handleCheckClick(m,_)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-btn-group";r.default={name:"ButtonGroup",props:{size:{validator:function(i){return(0,d.oneOf)(i,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},shape:{validator:function(i){return(0,d.oneOf)(i,["circle","circle-outline"])}},vertical:{type:Boolean,default:!1}},computed:{classes:function(){var i;return[""+l,(i={},(0,a.default)(i,l+"-"+String(this.size),!!this.size),(0,a.default)(i,l+"-"+String(this.shape),!!this.shape),(0,a.default)(i,l+"-vertical",this.vertical),i)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(8),e=i(d),l=t(48),n=i(l);function i(u){return u&&u.__esModule?u:{default:u}}var o="ivu-card",c=16;r.default={name:"Card",mixins:[n.default],components:{Icon:e.default},props:{bordered:{type:Boolean,default:!0},disHover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},padding:{type:Number,default:c},title:{type:String},icon:{type:String}},data:function(){return{showHead:!0,showExtra:!0}},computed:{classes:function(){var f;return[""+o,(f={},(0,a.default)(f,o+"-bordered",this.bordered&&!this.shadow),(0,a.default)(f,o+"-dis-hover",this.disHover||this.shadow),(0,a.default)(f,o+"-shadow",this.shadow),f)]},headClasses:function(){return o+"-head"},extraClasses:function(){return o+"-extra"},bodyClasses:function(){return o+"-body"},bodyStyles:function(){return this.padding!==c?{padding:String(this.padding)+"px"}:""},isHrefPattern:function(){var f=this.to;return!!f},tagName:function(){var f=this.isHrefPattern;return f?"a":"div"},tagProps:function(){var f=this.isHrefPattern;if(f){var y=this.linkUrl,m=this.target;return{href:y,target:m}}else return{}}},methods:{handleClickLink:function(f){if(!!this.isHrefPattern){var y=f.ctrlKey||f.metaKey;this.handleCheckClick(f,y)}}},mounted:function(){this.showHead=this.title||this.$slots.title!==void 0,this.showExtra=this.$slots.extra!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(8),e=i(d),l=t(3),n=t(12);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-carousel";r.default={name:"Carousel",components:{Icon:e.default},props:{arrow:{type:String,default:"hover",validator:function(u){return(0,l.oneOf)(u,["hover","always","never"])}},autoplay:{type:Boolean,default:!1},autoplaySpeed:{type:Number,default:2e3},loop:{type:Boolean,default:!1},easing:{type:String,default:"ease"},dots:{type:String,default:"inside",validator:function(u){return(0,l.oneOf)(u,["inside","outside","none"])}},radiusDot:{type:Boolean,default:!1},trigger:{type:String,default:"click",validator:function(u){return(0,l.oneOf)(u,["click","hover"])}},value:{type:Number,default:0},height:{type:[String,Number],default:"auto",validator:function(u){return u==="auto"||Object.prototype.toString.call(u)==="[object Number]"}}},data:function(){return{prefixCls:o,listWidth:0,trackWidth:0,trackOffset:0,trackCopyOffset:0,showCopyTrack:!1,slides:[],slideInstances:[],timer:null,ready:!1,currentIndex:this.value,trackIndex:this.value,copyTrackIndex:this.value,hideTrackPos:-1}},computed:{classes:function(){return[""+o]},trackStyles:function(){var u=this.trackIndex===-1?"hidden":"visible";return{width:String(this.trackWidth)+"px",transform:"translate3d("+-this.trackOffset+"px, 0px, 0px)",transition:"transform 500ms "+String(this.easing),visibility:u}},copyTrackStyles:function(){return{width:String(this.trackWidth)+"px",transform:"translate3d("+-this.trackCopyOffset+"px, 0px, 0px)",transition:"transform 500ms "+String(this.easing),position:"absolute"}},arrowClasses:function(){return[o+"-arrow",o+"-arrow-"+String(this.arrow)]},dotsClasses:function(){return[o+"-dots",o+"-dots-"+String(this.dots)]}},methods:{findChild:function(u){var f=this,y=function m(_){var h=this,g=_.$options.componentName;g?u(_):_.$children.length&&_.$children.forEach(function(b){(0,a.default)(this,h),m(b)}.bind(this))};this.slideInstances.length||!this.$children?this.slideInstances.forEach(function(m){(0,a.default)(this,f),y(m)}.bind(this)):this.$children.forEach(function(m){(0,a.default)(this,f),y(m)}.bind(this))},initCopyTrackDom:function(){var u=this;this.$nextTick(function(){(0,a.default)(this,u),this.$refs.copyTrack.innerHTML=this.$refs.originTrack.innerHTML}.bind(this))},updateSlides:function(u){var f=this,y=[],m=1;this.findChild(function(_){(0,a.default)(this,f),y.push({$el:_.$el}),_.index=m++,u&&this.slideInstances.push(_)}.bind(this)),this.slides=y,this.updatePos()},updatePos:function(){var u=this;this.findChild(function(f){(0,a.default)(this,u),f.width=this.listWidth,f.height=typeof this.height=="number"?String(this.height)+"px":this.height}.bind(this)),this.trackWidth=(this.slides.length||0)*this.listWidth},slotChange:function(){var u=this;this.$nextTick(function(){(0,a.default)(this,u),this.slides=[],this.slideInstances=[],this.updateSlides(!0,!0),this.updatePos(),this.updateOffset()}.bind(this))},handleResize:function(){this.listWidth=parseInt((0,l.getStyle)(this.$el,"width")),this.updatePos(),this.updateOffset()},updateTrackPos:function(u){this.showCopyTrack?this.trackIndex=u:this.copyTrackIndex=u},updateTrackIndex:function(u){this.showCopyTrack?this.copyTrackIndex=u:this.trackIndex=u,this.currentIndex=u},add:function(u){var f=this.slides.length;this.loop&&(u>0?this.hideTrackPos=-1:this.hideTrackPos=f,this.updateTrackPos(this.hideTrackPos));for(var y=this.showCopyTrack?this.copyTrackIndex:this.trackIndex,m=y+u;m<0;)m+=f;(u>0&&m===f||u<0&&m===f-1)&&this.loop?(this.showCopyTrack=!this.showCopyTrack,this.trackIndex+=u,this.copyTrackIndex+=u):(this.loop||(m=m%this.slides.length),this.updateTrackIndex(m)),this.currentIndex=m===this.slides.length?0:m,this.$emit("on-change",y,this.currentIndex),this.$emit("input",this.currentIndex)},arrowEvent:function(u){this.setAutoplay(),this.add(u)},dotsEvent:function(u,f){var y=this.showCopyTrack?this.copyTrackIndex:this.trackIndex,m=this.currentIndex;u===this.trigger&&y!==f&&(this.updateTrackIndex(f),this.$emit("on-change",m,this.currentIndex),this.$emit("input",f),this.setAutoplay())},setAutoplay:function(){var u=this;window.clearInterval(this.timer),this.autoplay&&(this.timer=window.setInterval(function(){(0,a.default)(this,u),this.add(1)}.bind(this),this.autoplaySpeed))},updateOffset:function(){var u=this;this.$nextTick(function(){(0,a.default)(this,u);var f=this.copyTrackIndex>0?-1:1;this.trackOffset=this.trackIndex*this.listWidth,this.trackCopyOffset=this.copyTrackIndex*this.listWidth+f}.bind(this))},handleClick:function(u){this.$emit("on-click",this[u])}},watch:{autoplay:function(){this.setAutoplay()},autoplaySpeed:function(){this.setAutoplay()},trackIndex:function(){this.updateOffset()},copyTrackIndex:function(){this.updateOffset()},height:function(){this.updatePos()},value:function(u){this.updateTrackIndex(u),this.setAutoplay()}},mounted:function(){this.updateSlides(!0),this.handleResize(),this.setAutoplay(),(0,n.on)(window,"resize",this.handleResize)},beforeDestroy:function(){(0,n.off)(window,"resize",this.handleResize)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-carousel-item";r.default={componentName:"carousel-item",name:"CarouselItem",data:function(){return{prefixCls:e,width:0,height:"auto",left:0}},computed:{styles:function(){return{width:String(this.width)+"px",height:""+String(this.height),left:String(this.left)+"px"}}},mounted:function(){this.$parent.slotChange()},watch:{width:function(n){var i=this;n&&this.$parent.loop&&this.$nextTick(function(){(0,a.default)(this,i),this.$parent.initCopyTrackDom()}.bind(this))},height:function(n){var i=this;n&&this.$parent.loop&&this.$nextTick(function(){(0,a.default)(this,i),this.$parent.initCopyTrackDom()}.bind(this))}},beforeDestroy:function(){this.$parent.slotChange()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=q(s),d=t(57),e=q(d),l=t(1),n=q(l),i=t(2),o=q(i),c=t(38),u=q(c),f=t(37),y=q(f),m=t(8),_=q(m),h=t(369),g=q(h),b=t(82),x=q(b),C=t(24),p=q(C),S=t(3),P=t(4),O=q(P),R=t(6),T=q(R),B=t(11),j=q(B);function q(V){return V&&V.__esModule?V:{default:V}}var U="ivu-cascader",A="ivu-select";r.default={name:"Cascader",mixins:[O.default,T.default,j.default],components:{iInput:u.default,Drop:y.default,Icon:_.default,Caspanel:g.default},directives:{clickOutside:x.default,TransferDom:p.default},props:{data:{type:Array,default:function(){return[]}},value:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},placeholder:{type:String},size:{validator:function(E){return(0,S.oneOf)(E,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},trigger:{validator:function(E){return(0,S.oneOf)(E,["click","hover"])},default:"click"},changeOnSelect:{type:Boolean,default:!1},renderFormat:{type:Function,default:function(E){return E.join(" / ")}},loadData:{type:Function},filterable:{type:Boolean,default:!1},notFoundText:{type:String},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String},elementId:{type:String},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:U,selectPrefixCls:A,visible:!1,selected:[],tmpSelected:[],updatingValue:!1,currentValue:this.value||[],query:"",validDataStr:"",isLoadedChildren:!1,isValueNull:!1}},computed:{classes:function(){var E;return[""+U,(E={},(0,o.default)(E,U+"-show-clear",this.showCloseIcon),(0,o.default)(E,U+"-size-"+String(this.size),!!this.size),(0,o.default)(E,U+"-visible",this.visible),(0,o.default)(E,U+"-disabled",this.itemDisabled),(0,o.default)(E,U+"-not-found",this.filterable&&this.query!==""&&!this.querySelections.length),E)]},showCloseIcon:function(){return this.currentValue&&this.currentValue.length&&this.clearable&&!this.itemDisabled},displayRender:function(){for(var E=[],W=0;W-1:!1}.bind(this)).map(function(z){return(0,n.default)(this,E),z.display=z.display.replace(new RegExp(this.query,"g"),""+String(this.query)+""),z}.bind(this)),W},arrowType:function(){var E="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.cascader.customArrow?E="":this.$IVIEW.cascader.arrow&&(E=this.$IVIEW.cascader.arrow)),E},customArrowType:function(){var E="";return this.$IVIEW&&this.$IVIEW.cascader.customArrow&&(E=this.$IVIEW.cascader.customArrow),E},arrowSize:function(){var E="";return this.$IVIEW&&this.$IVIEW.cascader.arrowSize&&(E=this.$IVIEW.cascader.arrowSize),E},dropdownCls:function(){var E;return E={},(0,o.default)(E,U+"-transfer",this.transfer),(0,o.default)(E,this.transferClassName,this.transferClassName),E}},methods:{clearSelect:function(){if(this.itemDisabled)return!1;var E=(0,e.default)(this.currentValue);this.currentValue=this.selected=this.tmpSelected=[],this.handleClose(),this.emitValue(this.currentValue,E),this.broadcast("Caspanel","on-clear")},handleClose:function(){this.visible=!1},toggleOpen:function(){if(this.itemDisabled)return!1;this.visible?this.filterable||this.handleClose():this.onFocus()},onFocus:function(){this.visible=!0,this.currentValue.length||this.broadcast("Caspanel","on-clear")},updateResult:function(E){this.tmpSelected=E},updateSelected:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(!this.changeOnSelect||E||W)&&this.broadcast("Caspanel","on-find-selected",{value:this.currentValue})},emitValue:function(E,W){var G=this;(0,e.default)(E)!==W&&(this.$emit("on-change",this.currentValue,JSON.parse((0,e.default)(this.selected))),this.$nextTick(function(){(0,n.default)(this,G),this.dispatch("FormItem","on-form-change",{value:this.currentValue,selected:JSON.parse((0,e.default)(this.selected))})}.bind(this)))},handleInput:function(E){this.query=E.target.value},handleSelectItem:function(E){var W=this,G=this.querySelections[E];if(G.item.disabled)return!1;this.query="",this.$refs.input.currentValue="";var z=(0,e.default)(this.currentValue);this.currentValue=G.value,setTimeout(function(){(0,n.default)(this,W),this.emitValue(this.currentValue,z),this.handleClose()}.bind(this),0)},handleFocus:function(){this.$refs.input.focus()},getValidData:function(E){var W=this;function G(z){var Z=this,re=(0,a.default)({},z);return"loading"in re&&delete re.loading,"__value"in re&&delete re.__value,"__label"in re&&delete re.__label,"children"in re&&re.children.length&&(re.children=re.children.map(function(X){return(0,n.default)(this,Z),G(X)}.bind(this))),re}return E.map(function(z){return(0,n.default)(this,W),G(z)}.bind(this))}},created:function(){var E=this;this.validDataStr=(0,e.default)(this.getValidData(this.data)),this.$on("on-result-change",function(W){(0,n.default)(this,E);var G=W.lastValue,z=W.changeOnSelect,Z=W.fromInit;if(G||z){var re=(0,e.default)(this.currentValue);this.selected=this.tmpSelected;var X=[];this.selected.forEach(function(N){(0,n.default)(this,E),X.push(N.value)}.bind(this)),Z||(this.updatingValue=!0,this.currentValue=X,this.emitValue(this.currentValue,re))}G&&!Z&&this.handleClose()}.bind(this))},mounted:function(){this.updateSelected(!0)},watch:{visible:function(E){E?(this.currentValue.length&&this.updateSelected(),this.transfer&&this.$refs.drop.update(),this.broadcast("Drop","on-update-popper")):(this.filterable&&(this.query="",this.$refs.input.currentValue=""),this.transfer&&this.$refs.drop.destroy(),this.broadcast("Drop","on-destroy-popper")),this.$emit("on-visible-change",E)},value:function(E){E===null&&(this.isValueNull=!0),this.currentValue=E||[],(E===null||!E.length)&&(this.selected=[])},query:function(E){this.$emit("on-input-change",E)},currentValue:function(){if(this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",this.currentValue),this.updatingValue){this.updatingValue=!1;return}this.updateSelected(!0)},data:{deep:!0,handler:function(){var E=this,W=(0,e.default)(this.getValidData(this.data));W!==this.validDataStr&&(this.validDataStr=W,this.isLoadedChildren||this.$nextTick(function(){return(0,n.default)(this,E),this.updateSelected(!1,this.changeOnSelect)}.bind(this)),this.isLoadedChildren=!1)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=y(s),d=t(14),e=y(d),l=t(1),n=y(l),i=t(370),o=y(i),c=t(4),u=y(c),f=t(3);function y(_){return _&&_.__esModule?_:{default:_}}var m=1;r.default={name:"Caspanel",mixins:[u.default],components:{Casitem:o.default},props:{data:{type:Array,default:function(){return[]}},disabled:Boolean,changeOnSelect:Boolean,trigger:String,prefixCls:String},data:function(){return{tmpItem:{},result:[],sublist:[]}},watch:{data:function(){this.sublist=[]}},methods:{handleClickItem:function(h){this.trigger!=="click"&&h.children&&h.children.length||this.handleTriggerItem(h,!1,!0)},handleHoverItem:function(h){this.trigger!=="hover"||!h.children||!h.children.length||this.handleTriggerItem(h,!1,!0)},handleTriggerItem:function(h){var g=this,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!h.disabled){this.dispatch("Cascader","on-result-item",h);var C=(0,f.findComponentUpward)(this,"Cascader");if(h.loading!==void 0&&!h.children.length&&C&&C.loadData){C.loadData(h,function(){(0,n.default)(this,g),x&&(C.isLoadedChildren=!0),h.children.length&&this.handleTriggerItem(h)}.bind(this));return}var p=this.getBaseItem(h);if((this.changeOnSelect||p.label!==this.tmpItem.label||p.value!==this.tmpItem.value||p.label===this.tmpItem.label&&p.value===this.tmpItem.value)&&(this.tmpItem=p,this.emitUpdate([p])),h.children&&h.children.length){if(this.sublist=h.children,this.dispatch("Cascader","on-result-change",{lastValue:!1,changeOnSelect:this.changeOnSelect,fromInit:b}),this.changeOnSelect){var S=(0,f.findComponentDownward)(this,"Caspanel");S&&S.$emit("on-clear",!0)}}else this.sublist=[],this.dispatch("Cascader","on-result-change",{lastValue:!0,changeOnSelect:this.changeOnSelect,fromInit:b});C&&C.$refs.drop.update()}},updateResult:function(h){this.result=[this.tmpItem].concat(h),this.emitUpdate(this.result)},getBaseItem:function(h){var g=(0,e.default)({},h);return g.children&&delete g.children,g},emitUpdate:function(h){this.$parent.$options.name==="Caspanel"?this.$parent.updateResult(h):this.$parent.$parent.updateResult(h)},getKey:function(){return m++}},mounted:function(){var h=this;this.$on("on-find-selected",function(g){(0,n.default)(this,h);for(var b=g.value,x=[].concat((0,a.default)(b)),C=0;C0&&arguments[0]!==void 0?arguments[0]:!1;if((0,n.default)(this,h),this.sublist=[],this.tmpItem={},g){var b=(0,f.findComponentDownward)(this,"Caspanel");b&&b.$emit("on-clear",!0)}}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=l(s),d=t(8),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"Casitem",components:{Icon:e.default},props:{data:Object,prefixCls:String,tmpItem:Object},computed:{classes:function(){var i;return[String(this.prefixCls)+"-menu-item",(i={},(0,a.default)(i,String(this.prefixCls)+"-menu-item-active",this.tmpItem.value===this.data.value),(0,a.default)(i,String(this.prefixCls)+"-menu-item-disabled",this.data.disabled),i)]},showArrow:function(){return this.data.children&&this.data.children.length||"loading"in this.data&&!this.data.loading},showLoading:function(){return"loading"in this.data&&this.data.loading},arrowType:function(){var i="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.cascader.customItemArrow?i="":this.$IVIEW.cascader.itemArrow&&(i=this.$IVIEW.cascader.itemArrow)),i},customArrowType:function(){var i="";return this.$IVIEW&&this.$IVIEW.cascader.customItemArrow&&(i=this.$IVIEW.cascader.customItemArrow),i},arrowSize:function(){var i="";return this.$IVIEW&&this.$IVIEW.cascader.itemArrowSize&&(i=this.$IVIEW.cascader.itemArrowSize),i}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=c(s),d=t(376),e=c(d),l=t(8),n=c(l),i=t(48),o=c(i);function c(f){return f&&f.__esModule?f:{default:f}}var u="ivu-cell";r.default={name:"Cell",inject:["cellGroup"],mixins:[o.default],components:{CellItem:e.default,Icon:n.default},props:{name:{type:[String,Number]},title:{type:String,default:""},label:{type:String,default:""},extra:{type:String,default:""},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1}},data:function(){return{prefixCls:u}},computed:{classes:function(){var y;return[""+u,(y={},(0,a.default)(y,u+"-disabled",this.disabled),(0,a.default)(y,u+"-selected",this.selected),(0,a.default)(y,u+"-with-link",this.to),y)]},arrowType:function(){var y="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.cell.customArrow?y="":this.$IVIEW.cell.arrow&&(y=this.$IVIEW.cell.arrow)),y},customArrowType:function(){var y="";return this.$IVIEW&&this.$IVIEW.cell.customArrow&&(y=this.$IVIEW.cell.customArrow),y},arrowSize:function(){var y="";return this.$IVIEW&&this.$IVIEW.cell.arrowSize&&(y=this.$IVIEW.cell.arrowSize),y}},methods:{handleClickItem:function(y,m){this.cellGroup.handleClick(this.name),this.handleCheckClick(y,m)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={props:{title:{type:String,default:""},label:{type:String,default:""},extra:{type:String,default:""}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"CellGroup",provide:function(){return{cellGroup:this}},methods:{handleClick:function(a){this.$emit("on-click",a)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=o(s),d=t(3),e=t(4),l=o(e),n=t(11),i=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-checkbox";r.default={name:"Checkbox",mixins:[l.default,i.default],props:{disabled:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!1},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},label:{type:[String,Number,Boolean]},indeterminate:{type:Boolean,default:!1},size:{validator:function(f){return(0,d.oneOf)(f,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},name:{type:String},border:{type:Boolean,default:!1}},data:function(){return{model:[],currentValue:this.value,group:!1,showSlot:!0,parent:(0,d.findComponentUpward)(this,"CheckboxGroup"),focusInner:!1}},computed:{wrapClasses:function(){var f;return[c+"-wrapper",(f={},(0,a.default)(f,c+"-group-item",this.group),(0,a.default)(f,c+"-wrapper-checked",this.currentValue),(0,a.default)(f,c+"-wrapper-disabled",this.itemDisabled),(0,a.default)(f,c+"-"+String(this.size),!!this.size),(0,a.default)(f,c+"-border",this.border),f)]},checkboxClasses:function(){var f;return[""+c,(f={},(0,a.default)(f,c+"-checked",this.currentValue),(0,a.default)(f,c+"-disabled",this.itemDisabled),(0,a.default)(f,c+"-indeterminate",this.indeterminate),f)]},innerClasses:function(){return[c+"-inner",(0,a.default)({},c+"-focus",this.focusInner)]},inputClasses:function(){return c+"-input"}},mounted:function(){this.parent=(0,d.findComponentUpward)(this,"CheckboxGroup"),this.parent&&(this.group=!0),this.group?this.parent.updateModel(!0):(this.updateModel(),this.showSlot=this.$slots.default!==void 0)},methods:{change:function(f){if(this.itemDisabled)return!1;var y=f.target.checked;this.currentValue=y;var m=y?this.trueValue:this.falseValue;this.$emit("input",m),this.group?this.parent.change(this.model):(this.$emit("on-change",m),this.dispatch("FormItem","on-form-change",m))},updateModel:function(){this.currentValue=this.value===this.trueValue},onBlur:function(){this.focusInner=!1},onFocus:function(){this.focusInner=!0}},watch:{value:function(f){if(f===this.trueValue||f===this.falseValue)this.updateModel();else throw"Value should be trueValue or falseValue."}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(144),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(383);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=o(s),d=t(2),e=o(d),l=t(3),n=t(4),i=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-checkbox-group";r.default={name:"CheckboxGroup",mixins:[i.default],props:{value:{type:Array,default:function(){return[]}},size:{validator:function(f){return(0,l.oneOf)(f,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}}},data:function(){return{currentValue:this.value||[],children:[]}},computed:{classes:function(){return[""+c,(0,e.default)({},"ivu-checkbox-"+String(this.size),!!this.size)]}},mounted:function(){this.updateModel(!0)},methods:{updateModel:function(f){var y=this;if(this.children=(0,l.findComponentsDownward)(this,"Checkbox"),this.children){var m=this.value||[];this.children.forEach(function(_){(0,a.default)(this,y),_.model=m,f&&(_.currentValue=m.indexOf(_.label)>=0,_.group=!0)}.bind(this))}},change:function(f){this.currentValue=f,this.$emit("input",f),this.$emit("on-change",f),this.dispatch("FormItem","on-form-change",f)}},watch:{value:function(){this.updateModel(!0)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(3),a=t(386),d=e(a);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-chart-circle";r.default={name:"iCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120},strokeWidth:{type:Number,default:6},strokeColor:{type:[String,Array],default:"#2d8cf0"},strokeLinecap:{validator:function(i){return(0,s.oneOf)(i,["square","round"])},default:"round"},trailWidth:{type:Number,default:5},trailColor:{type:String,default:"#eaeef2"},dashboard:{type:Boolean,default:!1}},data:function(){return{id:"ivu-chart-circle-"+String((0,d.default)(3))}},computed:{circleSize:function(){return{width:String(this.size)+"px",height:String(this.size)+"px"}},computedStrokeWidth:function(){return this.percent===0&&this.dashboard?0:this.strokeWidth},radius:function(){return 50-this.strokeWidth/2},pathString:function(){return this.dashboard?"M 50,50 m 0,"+String(this.radius)+` +*/(function(a,d){v.exports=d()})(this,function(){var a=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",d=function(){for(var L=["Edge","Trident","Firefox"],Q=0;Q=0)return 1;return 0}();function e(L){var Q=!1;return function(){Q||(Q=!0,window.Promise.resolve().then(function(){Q=!1,L()}))}}function l(L){var Q=!1;return function(){Q||(Q=!0,setTimeout(function(){Q=!1,L()},d))}}var n=a&&window.Promise,i=n?e:l;function o(L){var Q={};return L&&Q.toString.call(L)==="[object Function]"}function c(L,Q){if(L.nodeType!==1)return[];var ne=L.ownerDocument.defaultView,oe=ne.getComputedStyle(L,null);return Q?oe[Q]:oe}function u(L){return L.nodeName==="HTML"?L:L.parentNode||L.host}function f(L){if(!L)return document.body;switch(L.nodeName){case"HTML":case"BODY":return L.ownerDocument.body;case"#document":return L.body}var Q=c(L),ne=Q.overflow,oe=Q.overflowX,ce=Q.overflowY;return/(auto|scroll|overlay)/.test(ne+ce+oe)?L:f(u(L))}function y(L){return L&&L.referenceNode?L.referenceNode:L}var m=a&&!!(window.MSInputMethodContext&&document.documentMode),_=a&&/MSIE 10/.test(navigator.userAgent);function h(L){return L===11?m:L===10?_:m||_}function g(L){if(!L)return document.documentElement;for(var Q=h(10)?document.body:null,ne=L.offsetParent||null;ne===Q&&L.nextElementSibling;)ne=(L=L.nextElementSibling).offsetParent;var oe=ne&&ne.nodeName;return!oe||oe==="BODY"||oe==="HTML"?L?L.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(ne.nodeName)!==-1&&c(ne,"position")==="static"?g(ne):ne}function b(L){var Q=L.nodeName;return Q==="BODY"?!1:Q==="HTML"||g(L.firstElementChild)===L}function x(L){return L.parentNode!==null?x(L.parentNode):L}function C(L,Q){if(!L||!L.nodeType||!Q||!Q.nodeType)return document.documentElement;var ne=L.compareDocumentPosition(Q)&Node.DOCUMENT_POSITION_FOLLOWING,oe=ne?L:Q,ce=ne?Q:L,de=document.createRange();de.setStart(oe,0),de.setEnd(ce,0);var _e=de.commonAncestorContainer;if(L!==_e&&Q!==_e||oe.contains(ce))return b(_e)?_e:g(_e);var ye=x(L);return ye.host?C(ye.host,Q):C(L,x(Q).host)}function p(L){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",ne=Q==="top"?"scrollTop":"scrollLeft",oe=L.nodeName;if(oe==="BODY"||oe==="HTML"){var ce=L.ownerDocument.documentElement,de=L.ownerDocument.scrollingElement||ce;return de[ne]}return L[ne]}function S(L,Q){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=p(Q,"top"),ce=p(Q,"left"),de=ne?-1:1;return L.top+=oe*de,L.bottom+=oe*de,L.left+=ce*de,L.right+=ce*de,L}function P(L,Q){var ne=Q==="x"?"Left":"Top",oe=ne==="Left"?"Right":"Bottom";return parseFloat(L["border"+ne+"Width"])+parseFloat(L["border"+oe+"Width"])}function O(L,Q,ne,oe){return Math.max(Q["offset"+L],Q["scroll"+L],ne["client"+L],ne["offset"+L],ne["scroll"+L],h(10)?parseInt(ne["offset"+L])+parseInt(oe["margin"+(L==="Height"?"Top":"Left")])+parseInt(oe["margin"+(L==="Height"?"Bottom":"Right")]):0)}function A(L){var Q=L.body,ne=L.documentElement,oe=h(10)&&getComputedStyle(ne);return{height:O("Height",Q,ne,oe),width:O("Width",Q,ne,oe)}}var T=function(L,Q){if(!(L instanceof Q))throw new TypeError("Cannot call a class as a function")},B=function(){function L(Q,ne){for(var oe=0;oe2&&arguments[2]!==void 0?arguments[2]:!1,oe=h(10),ce=Q.nodeName==="HTML",de=R(L),_e=R(Q),ye=f(L),be=c(Q),De=parseFloat(be.borderTopWidth),Pe=parseFloat(be.borderLeftWidth);ne&&ce&&(_e.top=Math.max(_e.top,0),_e.left=Math.max(_e.left,0));var Oe=U({top:de.top-_e.top-De,left:de.left-_e.left-Pe,width:de.width,height:de.height});if(Oe.marginTop=0,Oe.marginLeft=0,!oe&&ce){var Te=parseFloat(be.marginTop),Ie=parseFloat(be.marginLeft);Oe.top-=De-Te,Oe.bottom-=De-Te,Oe.left-=Pe-Ie,Oe.right-=Pe-Ie,Oe.marginTop=Te,Oe.marginLeft=Ie}return(oe&&!ne?Q.contains(ye):Q===ye&&ye.nodeName!=="BODY")&&(Oe=S(Oe,Q)),Oe}function E(L){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=L.ownerDocument.documentElement,oe=V(L,ne),ce=Math.max(ne.clientWidth,window.innerWidth||0),de=Math.max(ne.clientHeight,window.innerHeight||0),_e=Q?0:p(ne),ye=Q?0:p(ne,"left"),be={top:_e-oe.top+oe.marginTop,left:ye-oe.left+oe.marginLeft,width:ce,height:de};return U(be)}function k(L){var Q=L.nodeName;if(Q==="BODY"||Q==="HTML")return!1;if(c(L,"position")==="fixed")return!0;var ne=u(L);return ne?k(ne):!1}function G(L){if(!L||!L.parentElement||h())return document.documentElement;for(var Q=L.parentElement;Q&&c(Q,"transform")==="none";)Q=Q.parentElement;return Q||document.documentElement}function z(L,Q,ne,oe){var ce=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,de={top:0,left:0},_e=ce?G(L):C(L,y(Q));if(oe==="viewport")de=E(_e,ce);else{var ye=void 0;oe==="scrollParent"?(ye=f(u(Q)),ye.nodeName==="BODY"&&(ye=L.ownerDocument.documentElement)):oe==="window"?ye=L.ownerDocument.documentElement:ye=oe;var be=V(ye,_e,ce);if(ye.nodeName==="HTML"&&!k(_e)){var De=A(L.ownerDocument),Pe=De.height,Oe=De.width;de.top+=be.top-be.marginTop,de.bottom=Pe+be.top,de.left+=be.left-be.marginLeft,de.right=Oe+be.left}else de=be}ne=ne||0;var Te=typeof ne=="number";return de.left+=Te?ne:ne.left||0,de.top+=Te?ne:ne.top||0,de.right-=Te?ne:ne.right||0,de.bottom-=Te?ne:ne.bottom||0,de}function Z(L){var Q=L.width,ne=L.height;return Q*ne}function re(L,Q,ne,oe,ce){var de=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(L.indexOf("auto")===-1)return L;var _e=z(ne,oe,de,ce),ye={top:{width:_e.width,height:Q.top-_e.top},right:{width:_e.right-Q.right,height:_e.height},bottom:{width:_e.width,height:_e.bottom-Q.bottom},left:{width:Q.left-_e.left,height:_e.height}},be=Object.keys(ye).map(function(Te){return q({key:Te},ye[Te],{area:Z(ye[Te])})}).sort(function(Te,Ie){return Ie.area-Te.area}),De=be.filter(function(Te){var Ie=Te.width,Re=Te.height;return Ie>=ne.clientWidth&&Re>=ne.clientHeight}),Pe=De.length>0?De[0].key:be[0].key,Oe=L.split("-")[1];return Pe+(Oe?"-"+Oe:"")}function J(L,Q,ne){var oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,ce=oe?G(Q):C(Q,y(ne));return V(ne,ce,oe)}function N(L){var Q=L.ownerDocument.defaultView,ne=Q.getComputedStyle(L),oe=parseFloat(ne.marginTop||0)+parseFloat(ne.marginBottom||0),ce=parseFloat(ne.marginLeft||0)+parseFloat(ne.marginRight||0),de={width:L.offsetWidth+ce,height:L.offsetHeight+oe};return de}function Y(L){var Q={left:"right",right:"left",bottom:"top",top:"bottom"};return L.replace(/left|right|bottom|top/g,function(ne){return Q[ne]})}function w(L,Q,ne){ne=ne.split("-")[0];var oe=N(L),ce={width:oe.width,height:oe.height},de=["right","left"].indexOf(ne)!==-1,_e=de?"top":"left",ye=de?"left":"top",be=de?"height":"width",De=de?"width":"height";return ce[_e]=Q[_e]+Q[be]/2-oe[be]/2,ne===ye?ce[ye]=Q[ye]-oe[De]:ce[ye]=Q[Y(ye)],ce}function F(L,Q){return Array.prototype.find?L.find(Q):L.filter(Q)[0]}function H(L,Q,ne){if(Array.prototype.findIndex)return L.findIndex(function(ce){return ce[Q]===ne});var oe=F(L,function(ce){return ce[Q]===ne});return L.indexOf(oe)}function te(L,Q,ne){var oe=ne===void 0?L:L.slice(0,H(L,"name",ne));return oe.forEach(function(ce){ce.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var de=ce.function||ce.fn;ce.enabled&&o(de)&&(Q.offsets.popper=U(Q.offsets.popper),Q.offsets.reference=U(Q.offsets.reference),Q=de(Q,ce))}),Q}function ie(){if(!this.state.isDestroyed){var L={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};L.offsets.reference=J(this.state,this.popper,this.reference,this.options.positionFixed),L.placement=re(this.options.placement,L.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),L.originalPlacement=L.placement,L.positionFixed=this.options.positionFixed,L.offsets.popper=w(this.popper,L.offsets.reference,L.placement),L.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",L=te(this.modifiers,L),this.state.isCreated?this.options.onUpdate(L):(this.state.isCreated=!0,this.options.onCreate(L))}}function ue(L,Q){return L.some(function(ne){var oe=ne.name,ce=ne.enabled;return ce&&oe===Q})}function ee(L){for(var Q=[!1,"ms","Webkit","Moz","O"],ne=L.charAt(0).toUpperCase()+L.slice(1),oe=0;oe_e[Ie]&&(L.offsets.popper[Oe]+=ye[Oe]+Re-_e[Ie]),L.offsets.popper=U(L.offsets.popper);var Fe=ye[Oe]+ye[De]/2-Re/2,ze=c(L.instance.popper),Ge=parseFloat(ze["margin"+Pe]),Ne=parseFloat(ze["border"+Pe+"Width"]),Qe=Fe-L.offsets.popper[Oe]-Ge-Ne;return Qe=Math.max(Math.min(_e[De]-Re,Qe),0),L.arrowElement=oe,L.offsets.arrow=(ne={},j(ne,Oe,Math.round(Qe)),j(ne,Te,""),ne),L}function Le(L){return L==="end"?"start":L==="start"?"end":L}var Ee=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],$e=Ee.slice(3);function Ce(L){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ne=$e.indexOf(L),oe=$e.slice(ne+1).concat($e.slice(0,ne));return Q?oe.reverse():oe}var Ae={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Se(L,Q){if(ue(L.instance.modifiers,"inner")||L.flipped&&L.placement===L.originalPlacement)return L;var ne=z(L.instance.popper,L.instance.reference,Q.padding,Q.boundariesElement,L.positionFixed),oe=L.placement.split("-")[0],ce=Y(oe),de=L.placement.split("-")[1]||"",_e=[];switch(Q.behavior){case Ae.FLIP:_e=[oe,ce];break;case Ae.CLOCKWISE:_e=Ce(oe);break;case Ae.COUNTERCLOCKWISE:_e=Ce(oe,!0);break;default:_e=Q.behavior}return _e.forEach(function(ye,be){if(oe!==ye||_e.length===be+1)return L;oe=L.placement.split("-")[0],ce=Y(oe);var De=L.offsets.popper,Pe=L.offsets.reference,Oe=Math.floor,Te=oe==="left"&&Oe(De.right)>Oe(Pe.left)||oe==="right"&&Oe(De.left)Oe(Pe.top)||oe==="bottom"&&Oe(De.top)Oe(ne.right),Fe=Oe(De.top)Oe(ne.bottom),Ge=oe==="left"&&Ie||oe==="right"&&Re||oe==="top"&&Fe||oe==="bottom"&&ze,Ne=["top","bottom"].indexOf(oe)!==-1,Qe=!!Q.flipVariations&&(Ne&&de==="start"&&Ie||Ne&&de==="end"&&Re||!Ne&&de==="start"&&Fe||!Ne&&de==="end"&&ze),nt=!!Q.flipVariationsByContent&&(Ne&&de==="start"&&Re||Ne&&de==="end"&&Ie||!Ne&&de==="start"&&ze||!Ne&&de==="end"&&Fe),rt=Qe||nt;(Te||Ge||rt)&&(L.flipped=!0,(Te||Ge)&&(oe=_e[be+1]),rt&&(de=Le(de)),L.placement=oe+(de?"-"+de:""),L.offsets.popper=q({},L.offsets.popper,w(L.instance.popper,L.offsets.reference,L.placement)),L=te(L.instance.modifiers,L,"flip"))}),L}function Ve(L){var Q=L.offsets,ne=Q.popper,oe=Q.reference,ce=L.placement.split("-")[0],de=Math.floor,_e=["top","bottom"].indexOf(ce)!==-1,ye=_e?"right":"bottom",be=_e?"left":"top",De=_e?"width":"height";return ne[ye]de(oe[ye])&&(L.offsets.popper[be]=de(oe[ye])),L}function Ke(L,Q,ne,oe){var ce=L.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),de=+ce[1],_e=ce[2];if(!de)return L;if(_e.indexOf("%")===0){var ye=void 0;switch(_e){case"%p":ye=ne;break;case"%":case"%r":default:ye=oe}var be=U(ye);return be[Q]/100*de}else if(_e==="vh"||_e==="vw"){var De=void 0;return _e==="vh"?De=Math.max(document.documentElement.clientHeight,window.innerHeight||0):De=Math.max(document.documentElement.clientWidth,window.innerWidth||0),De/100*de}else return de}function ke(L,Q,ne,oe){var ce=[0,0],de=["right","left"].indexOf(oe)!==-1,_e=L.split(/(\+|\-)/).map(function(Pe){return Pe.trim()}),ye=_e.indexOf(F(_e,function(Pe){return Pe.search(/,|\s/)!==-1}));_e[ye]&&_e[ye].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var be=/\s*,\s*|\s+/,De=ye!==-1?[_e.slice(0,ye).concat([_e[ye].split(be)[0]]),[_e[ye].split(be)[1]].concat(_e.slice(ye+1))]:[_e];return De=De.map(function(Pe,Oe){var Te=(Oe===1?!de:de)?"height":"width",Ie=!1;return Pe.reduce(function(Re,Fe){return Re[Re.length-1]===""&&["+","-"].indexOf(Fe)!==-1?(Re[Re.length-1]=Fe,Ie=!0,Re):Ie?(Re[Re.length-1]+=Fe,Ie=!1,Re):Re.concat(Fe)},[]).map(function(Re){return Ke(Re,Te,Q,ne)})}),De.forEach(function(Pe,Oe){Pe.forEach(function(Te,Ie){K(Te)&&(ce[Oe]+=Te*(Pe[Ie-1]==="-"?-1:1))})}),ce}function We(L,Q){var ne=Q.offset,oe=L.placement,ce=L.offsets,de=ce.popper,_e=ce.reference,ye=oe.split("-")[0],be=void 0;return K(+ne)?be=[+ne,0]:be=ke(ne,de,_e,ye),ye==="left"?(de.top+=be[0],de.left-=be[1]):ye==="right"?(de.top+=be[0],de.left+=be[1]):ye==="top"?(de.left+=be[0],de.top-=be[1]):ye==="bottom"&&(de.left+=be[0],de.top+=be[1]),L.popper=de,L}function He(L,Q){var ne=Q.boundariesElement||g(L.instance.popper);L.instance.reference===ne&&(ne=g(ne));var oe=ee("transform"),ce=L.instance.popper.style,de=ce.top,_e=ce.left,ye=ce[oe];ce.top="",ce.left="",ce[oe]="";var be=z(L.instance.popper,L.instance.reference,Q.padding,ne,L.positionFixed);ce.top=de,ce.left=_e,ce[oe]=ye,Q.boundaries=be;var De=Q.priority,Pe=L.offsets.popper,Oe={primary:function(Ie){var Re=Pe[Ie];return Pe[Ie]be[Ie]&&!Q.escapeWithReference&&(Fe=Math.min(Pe[Re],be[Ie]-(Ie==="right"?Pe.width:Pe.height))),j({},Re,Fe)}};return De.forEach(function(Te){var Ie=["left","top"].indexOf(Te)!==-1?"primary":"secondary";Pe=q({},Pe,Oe[Ie](Te))}),L.offsets.popper=Pe,L}function Be(L){var Q=L.placement,ne=Q.split("-")[0],oe=Q.split("-")[1];if(oe){var ce=L.offsets,de=ce.reference,_e=ce.popper,ye=["bottom","top"].indexOf(ne)!==-1,be=ye?"left":"top",De=ye?"width":"height",Pe={start:j({},be,de[be]),end:j({},be,de[be]+de[De]-_e[De])};L.offsets.popper=q({},_e,Pe[oe])}return L}function Ue(L){if(!Me(L.instance.modifiers,"hide","preventOverflow"))return L;var Q=L.offsets.reference,ne=F(L.instance.modifiers,function(oe){return oe.name==="preventOverflow"}).boundaries;if(Q.bottomne.right||Q.top>ne.bottom||Q.right2&&arguments[2]!==void 0?arguments[2]:{};T(this,L),this.scheduleUpdate=function(){return requestAnimationFrame(oe.update)},this.update=i(this.update.bind(this)),this.options=q({},L.Defaults,ce),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=Q&&Q.jquery?Q[0]:Q,this.popper=ne&&ne.jquery?ne[0]:ne,this.options.modifiers={},Object.keys(q({},L.Defaults.modifiers,ce.modifiers)).forEach(function(_e){oe.options.modifiers[_e]=q({},L.Defaults.modifiers[_e]||{},ce.modifiers?ce.modifiers[_e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(_e){return q({name:_e},oe.options.modifiers[_e])}).sort(function(_e,ye){return _e.order-ye.order}),this.modifiers.forEach(function(_e){_e.enabled&&o(_e.onLoad)&&_e.onLoad(oe.reference,oe.popper,oe.options,_e,oe.state)}),this.update();var de=this.options.eventsEnabled;de&&this.enableEventListeners(),this.state.eventsEnabled=de}return B(L,[{key:"update",value:function(){return ie.call(this)}},{key:"destroy",value:function(){return he.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return I.call(this)}}]),L}();return Je.Utils=(typeof window!="undefined"?window:s).PopperUtils,Je.placements=Ee,Je.Defaults=qe,Je})}).call(r,t(119))},function(v,r){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(t=window)}v.exports=t},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.i18n=r.use=r.t=void 0;var s=t(318),a=f(s),d=t(321),e=f(d),l=t(17),n=f(l),i=t(323),o=f(i),c=t(324),u=f(c);function f(C){return C&&C.__esModule?C:{default:C}}var y=(0,u.default)(n.default),m=e.default,_=!1,h=function(){var p=(0,a.default)(this||n.default).$t;if(typeof p=="function"&&!!n.default.locale)return _||(_=!0,n.default.locale(n.default.config.lang,(0,o.default)(m,n.default.locale(n.default.config.lang)||{},{clone:!0}))),p.apply(this,arguments)},g=r.t=function(p,S){var P=h.apply(this,arguments);if(P!=null)return P;for(var O=p.split("."),A=m,T=0,B=O.length;T0||this.filterable?"":""+String(this.selectedSingle)||this.localePlaceholder},showPlaceholder:function(){var g=!1;if(this.multiple)!this.values.length>0&&(g=!0);else{var b=this.values[0];(typeof b=="undefined"||String(b).trim()==="")&&(g=!this.remoteInitialLabel)}return g},resetSelect:function(){return!this.showPlaceholder&&this.clearable},inputStyle:function(){var g={};return this.multiple&&(this.showPlaceholder?g.width="100%":g.width=String(this.inputLength)+"px"),g},localePlaceholder:function(){return this.placeholder===void 0?this.t("i.select.placeholder"):this.placeholder},selectedSingle:function(){var g=this.values[0];return g?g.label:this.remoteInitialLabel||""},selectedMultiple:function(){return this.multiple?this.values:[]},headCls:function(){return(0,e.default)({},_+"-head-flex",this.filterable&&(this.$slots.prefix||this.prefix))},arrowType:function(){var g="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.select.customArrow?g="":this.$IVIEW.select.arrow&&(g=this.$IVIEW.select.arrow)),g},customArrowType:function(){var g="";return this.$IVIEW&&this.$IVIEW.select.customArrow&&(g=this.$IVIEW.select.customArrow),g},arrowSize:function(){var g="";return this.$IVIEW&&this.$IVIEW.select.arrowSize&&(g=this.$IVIEW.select.arrowSize),g},showInput:function(){return this.searchInOption?this.showPlaceholder&&this.query==="":!0}},methods:{inUncancelable:function(g){return this.multipleUncancelable.length===0?!1:this.multipleUncancelable.includes(g)},onInputFocus:function(){this.$emit("on-input-focus")},onInputBlur:function(){if(this.resetInputLength(),this.allowCreate&&this.query!==""&&this.$parent.flatOptions.length==0){this.handleInputEnter();return}this.showCreateItem||(this.values.length||(this.query=""),this.$emit("on-input-blur"))},removeTag:function(g){if(this.disabled||this.inUncancelable(g.value))return!1;this.dispatch("iSelect","on-select-selected",g)},resetInputState:function(){this.resetInputLength(),this.$emit("on-keydown")},resetInputLength:function(){this.filterable&&(this.inputLength=this.$refs.input.value.length*12+20)},handleInputDelete:function(g){var b=g.target.value;this.multiple&&this.selectedMultiple.length&&this.query===""&&b===""&&this.removeTag(this.selectedMultiple[this.selectedMultiple.length-1])},handleInputEnter:function(g){if(this.$emit("on-enter"),this.showCreateItem)try{g.stopPropagation()}catch{}},onHeaderClick:function(g){this.filterable&&g.target===this.$el&&this.$refs.input.focus()},onClear:function(){this.$emit("on-clear")}},watch:{values:function(g){var b=this,x=(0,a.default)(g,1),C=x[0];if(!!this.filterable){if(this.preventRemoteCall=!0,this.multiple){this.query="",this.preventRemoteCall=!1;return}typeof C=="undefined"||C===""||C===null?this.query="":this.query=C.label,this.$nextTick(function(){return(0,n.default)(this,b),this.preventRemoteCall=!1}.bind(this))}},query:function(g){if(this.resetInputLength(),this.preventRemoteCall){this.preventRemoteCall=!1;return}this.$emit("on-query-change",g)},queryProp:function(g){g!==this.query&&(this.query=g)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e=function(){return(0,a.default)(void 0,void 0),[]}.bind(void 0);r.default={props:{options:{type:Array,default:e},slotOptions:{type:Array,default:e},slotUpdateHook:{type:Function,default:function(){(0,a.default)(void 0,void 0)}.bind(void 0)}},render:function(n){return this.slotOptions!==this.$parent.$slots.default&&this.slotUpdateHook(),n("ul",[this.$slots.default,this.options])}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=o(s),d=t(4),e=o(d),l=t(11),n=o(l),i=t(3);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-select-item";r.default={name:"iOption",componentName:"select-item",mixins:[e.default,n.default],props:{value:{type:[String,Number],required:!0},label:{type:[String,Number]},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isFocused:{type:Boolean,default:!1},tag:{type:[String,Number]},avatar:{type:String},keyValue:{type:[String,Number]}},data:function(){return{searchLabel:"",autoComplete:!1}},computed:{classes:function(){var f;return[""+c,(f={},(0,a.default)(f,c+"-disabled",this.itemDisabled),(0,a.default)(f,c+"-selected",this.selected&&!this.autoComplete),(0,a.default)(f,c+"-focus",this.isFocused),f)]},showLabel:function(){return this.label?this.label:this.value},optionLabel:function(){return this.label||this.$el&&this.$el.textContent}},methods:{select:function(){if(this.itemDisabled)return!1;this.dispatch("iSelect","on-select-selected",{value:this.value,label:this.optionLabel,tag:this.tag,avatar:this.avatar}),this.$emit("on-select-selected",{value:this.value,label:this.optionLabel,tag:this.tag,avatar:this.avatar})}},mounted:function(){var f=(0,i.findComponentUpward)(this,"iSelect");f&&(this.autoComplete=f.autoComplete)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=_(s),d=t(330),e=_(d),l=t(2),n=_(l),i=t(3),o=t(333),c=_(o),u=t(4),f=_(u),y=t(11),m=_(y);function _(g){return g&&g.__esModule?g:{default:g}}var h="ivu-input";r.default={name:"Input",mixins:[f.default,m.default],props:{type:{validator:function(b){return(0,i.oneOf)(b,["text","textarea","password","url","email","date","number","tel"])},default:"text"},value:{type:[String,Number],default:""},size:{validator:function(b){return(0,i.oneOf)(b,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},placeholder:{type:String,default:""},maxlength:{type:[String,Number]},disabled:{type:Boolean,default:!1},icon:String,autosize:{type:[Boolean,Object],default:!1},rows:{type:Number,default:2},readonly:{type:Boolean,default:!1},name:{type:String},number:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},clearable:{type:Boolean,default:!1},clearableFocus:{type:Boolean,default:!0},elementId:{type:String},wrap:{validator:function(b){return(0,i.oneOf)(b,["hard","soft"])},default:"soft"},prefix:{type:String,default:""},suffix:{type:String,default:""},search:{type:Boolean,default:!1},enterButton:{type:[Boolean,String],default:!1},showWordLimit:{type:Boolean,default:!1},password:{type:Boolean,default:!1},border:{type:Boolean,default:!0},enterkeyhint:{type:String,default:""},parser:{type:Function}},data:function(){return{currentValue:this.value,prefixCls:h,slotReady:!1,textareaStyles:{},isOnComposition:!1,showPassword:!1,clearableIconOffset:0}},computed:{currentType:function(){var b=this.type;return b==="password"&&this.password&&this.showPassword&&(b="text"),b},prepend:function(){var b=!1;return this.type!=="textarea"&&(b=this.$slots.prepend!==void 0),b},append:function(){var b=!1;return this.type!=="textarea"&&(b=this.$slots.append!==void 0),b},showPrefix:function(){var b=!1;return this.type!=="textarea"&&(b=this.prefix!==""||this.$slots.prefix!==void 0),b},showSuffix:function(){var b=!1;return this.type!=="textarea"&&(b=this.suffix!==""||this.$slots.suffix!==void 0),b},wrapClasses:function(){var b;return[h+"-wrapper",(b={},(0,n.default)(b,h+"-wrapper-"+String(this.size),!!this.size),(0,n.default)(b,h+"-type-"+String(this.type),this.type),(0,n.default)(b,h+"-group",this.prepend||this.append||this.search&&this.enterButton),(0,n.default)(b,h+"-group-"+String(this.size),(this.prepend||this.append||this.search&&this.enterButton)&&!!this.size),(0,n.default)(b,h+"-group-with-prepend",this.prepend),(0,n.default)(b,h+"-group-with-append",this.append||this.search&&this.enterButton),(0,n.default)(b,h+"-hide-icon",this.append),(0,n.default)(b,h+"-with-search",this.search&&this.enterButton),(0,n.default)(b,h+"-wrapper-disabled",this.itemDisabled),b)]},inputClasses:function(){var b;return[""+h,(b={},(0,n.default)(b,h+"-"+String(this.size),!!this.size),(0,n.default)(b,h+"-disabled",this.itemDisabled),(0,n.default)(b,h+"-no-border",!this.border),(0,n.default)(b,h+"-with-prefix",this.showPrefix),(0,n.default)(b,h+"-with-suffix",this.showSuffix||this.search&&this.enterButton===!1),b)]},textareaClasses:function(){var b;return[""+h,(b={},(0,n.default)(b,h+"-disabled",this.itemDisabled),(0,n.default)(b,h+"-no-border",!this.border),b)]},upperLimit:function(){return this.maxlength},textLength:function(){return typeof this.value=="number"?String(this.value).length:(this.value||"").length},clearableStyles:function(){var b={},x=this.clearableIconOffset;return x&&(b.transform="translateX(-"+String(x)+"px)"),b}},methods:{handleEnter:function(b){this.$emit("on-enter",b),this.search&&this.$emit("on-search",this.currentValue)},handleKeydown:function(b){this.$emit("on-keydown",b)},handleKeypress:function(b){this.$emit("on-keypress",b)},handleKeyup:function(b){this.$emit("on-keyup",b)},handleIconClick:function(b){this.$emit("on-click",b)},handleFocus:function(b){this.$emit("on-focus",b)},handleBlur:function(b){this.$emit("on-blur",b),(0,i.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.currentValue)},handleComposition:function(b){b.type==="compositionstart"&&(this.isOnComposition=!0),b.type==="compositionend"&&(this.isOnComposition=!1,this.handleInput(b))},handleInput:function(b){if(!this.isOnComposition){var x=b.target.value;if(this.parser){var C=this.parser(x);C!==x&&(b.target.value=x=C)}this.number&&x!==""&&(x=(0,e.default)(Number(x))?x:Number(x)),this.$emit("input",x),this.setCurrentValue(x),this.$emit("on-change",b)}},handleChange:function(b){this.$emit("on-input-change",b)},setCurrentValue:function(b){var x=this;b!==this.currentValue&&(this.$nextTick(function(){(0,a.default)(this,x),this.resizeTextarea()}.bind(this)),this.currentValue=b,(0,i.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-change",b))},resizeTextarea:function(){var b=this.autosize;if(!b||this.type!=="textarea")return!1;var x=b.minRows,C=b.maxRows;this.textareaStyles=(0,c.default)(this.$refs.textarea,x,C)},focus:function(b){var x=this.type==="textarea"?this.$refs.textarea:this.$refs.input;x.focus(b);var C=b||{},p=C.cursor;if(p){var S=x.value.length;switch(p){case"start":x.setSelectionRange(0,0);break;case"end":x.setSelectionRange(S,S);break;default:x.setSelectionRange(0,S)}}},blur:function(){this.type==="textarea"?this.$refs.textarea.blur():this.$refs.input.blur()},handleClear:function(){var b={target:{value:""}};this.$emit("input",""),this.setCurrentValue(""),this.$emit("on-change",b),this.$emit("on-clear"),this.clearableFocus&&this.$refs.input.focus()},handleSearch:function(){if(this.itemDisabled)return!1;this.$refs.input.focus(),this.$emit("on-search",this.currentValue)},handleToggleShowPassword:function(){var b=this;if(this.itemDisabled)return!1;this.showPassword=!this.showPassword,this.focus();var x=this.currentValue.length;setTimeout(function(){(0,a.default)(this,b),this.$refs.input.setSelectionRange(x,x)}.bind(this),0)},handleCalcIconOffset:function(){var b=this.$el.querySelectorAll(".ivu-input-group-append")[0];b?this.clearableIconOffset=b.offsetWidth:this.clearableIconOffset=0}},watch:{value:function(b){this.setCurrentValue(b)},type:function(){this.$nextTick(this.handleCalcIconOffset)}},mounted:function(){this.slotReady=!0,this.resizeTextarea(),this.handleCalcIconOffset()},updated:function(){this.$nextTick(this.handleCalcIconOffset)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(126),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(343);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(20),e=n(d),l=t(3);function n(c){return c&&c.__esModule?c:{default:c}}var i="ivu-avatar",o=["small","large","default"];r.default={name:"Avatar",components:{Icon:e.default},props:{shape:{validator:function(u){return(0,l.oneOf)(u,["circle","square"])},default:"circle"},size:{type:[String,Number],default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},src:{type:String},icon:{type:String},customIcon:{type:String,default:""}},data:function(){return{prefixCls:i,scale:1,childrenWidth:0,isSlotShow:!1,slotTemp:null}},computed:{classes:function(){var u;return[""+i,i+"-"+String(this.shape),(u={},(0,a.default)(u,i+"-image",!!this.src),(0,a.default)(u,i+"-icon",!!this.icon||!!this.customIcon),(0,a.default)(u,i+"-"+String(this.size),(0,l.oneOf)(this.size,o)),u)]},styles:function(){var u={};return this.size&&!(0,l.oneOf)(this.size,o)&&(u.width=String(this.size)+"px",u.height=String(this.size)+"px",u.lineHeight=String(this.size)+"px",u.fontSize=this.size/2+"px"),u},childrenStyle:function(){var u={};return this.isSlotShow&&(u={msTransform:"scale("+String(this.scale)+")",WebkitTransform:"scale("+String(this.scale)+")",transform:"scale("+String(this.scale)+")",position:"absolute",display:"inline-block",left:"calc(50% - "+String(Math.round(this.childrenWidth/2))+"px)"}),u}},watch:{size:function(u,f){u!==f&&this.setScale()}},methods:{setScale:function(){if(this.isSlotShow=!this.src&&!this.icon,this.$refs.children){this.childrenWidth=this.$refs.children.offsetWidth;var u=this.$el.getBoundingClientRect().width;u-8=this.height},back:function(){var o=document.documentElement.scrollTop||document.body.scrollTop;(0,d.scrollTop)(window,o,0,this.duration),this.$emit("on-click")}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(i){return i&&i.__esModule?i:{default:i}}var l=["blue","green","red","yellow","pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"],n="ivu-badge";r.default={name:"Badge",props:{count:Number,dot:{type:Boolean,default:!1},overflowCount:{type:[Number,String],default:99},className:String,showZero:{type:Boolean,default:!1},text:{type:String,default:""},status:{validator:function(o){return(0,d.oneOf)(o,["success","processing","default","error","warning"])}},type:{validator:function(o){return(0,d.oneOf)(o,["success","primary","normal","error","warning","info"])}},offset:{type:Array},color:{type:String}},computed:{classes:function(){return""+n},dotClasses:function(){return n+"-dot"},countClasses:function(){var o;return[n+"-count",(o={},(0,a.default)(o,""+String(this.className),!!this.className),(0,a.default)(o,n+"-count-alone",this.alone),(0,a.default)(o,n+"-count-"+String(this.type),!!this.type),o)]},customCountClasses:function(){return[n+"-count",n+"-count-custom",(0,a.default)({},""+String(this.className),!!this.className)]},statusClasses:function(){var o;return[n+"-status-dot",(o={},(0,a.default)(o,n+"-status-"+String(this.status),!!this.status),(0,a.default)(o,n+"-status-"+String(this.color),!!this.color&&(0,d.oneOf)(this.color,l)),o)]},statusStyles:function(){return(0,d.oneOf)(this.color,l)?{}:{backgroundColor:this.color}},styles:function(){var o={};return this.offset&&this.offset.length===2&&(o["margin-top"]=String(this.offset[0])+"px",o["margin-right"]=String(this.offset[1])+"px"),o},finalCount:function(){return this.text!==""?this.text:parseInt(this.count)>=parseInt(this.overflowCount)?String(this.overflowCount)+"+":this.count},badge:function(){var o=!1;return this.count&&(o=parseInt(this.count)!==0),this.dot&&(o=!0,this.count!==null&&parseInt(this.count)===0&&(o=!1)),this.text!==""&&(o=!0),o||this.showZero},hasCount:function(){return!!(this.count||this.text!==""||this.showZero&&parseInt(this.count)===0)},alone:function(){return this.$slots.default===void 0}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-breadcrumb";r.default={name:"Breadcrumb",props:{separator:{type:String,default:"/"}},computed:{classes:function(){return""+e}},mounted:function(){this.updateChildren()},updated:function(){var n=this;this.$nextTick(function(){(0,a.default)(this,n),this.updateChildren()}.bind(this))},methods:{updateChildren:function(){var n=this;this.$children.forEach(function(i){(0,a.default)(this,n),i.separator=this.separator}.bind(this))}},watch:{separator:function(){this.updateChildren()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(48),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-breadcrumb-item";r.default={name:"BreadcrumbItem",mixins:[a.default],props:{},data:function(){return{separator:"",showSeparator:!1}},computed:{linkClasses:function(){return e+"-link"},separatorClasses:function(){return e+"-separator"}},mounted:function(){this.showSeparator=this.$slots.separator!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=u(s),d=t(20),e=u(d),l=t(3),n=t(48),i=u(n),o=t(11),c=u(o);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-btn";r.default={name:"Button",mixins:[i.default,c.default],components:{Icon:e.default},props:{type:{validator:function(m){return(0,l.oneOf)(m,["default","primary","dashed","text","info","success","warning","error"])},default:"default"},shape:{validator:function(m){return(0,l.oneOf)(m,["circle","circle-outline"])}},size:{validator:function(m){return(0,l.oneOf)(m,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},loading:Boolean,disabled:Boolean,htmlType:{default:"button",validator:function(m){return(0,l.oneOf)(m,["button","submit","reset"])}},icon:{type:String,default:""},customIcon:{type:String,default:""},long:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},computed:{showSlot:function(){return!!this.$slots.default},classes:function(){var m;return[""+f,f+"-"+String(this.type),(m={},(0,a.default)(m,f+"-long",this.long),(0,a.default)(m,f+"-"+String(this.shape),!!this.shape),(0,a.default)(m,f+"-"+String(this.size),this.size!=="default"),(0,a.default)(m,f+"-loading",this.loading!=null&&this.loading),(0,a.default)(m,f+"-icon-only",!this.showSlot&&(!!this.icon||!!this.customIcon||this.loading)),(0,a.default)(m,f+"-ghost",this.ghost),m)]},isHrefPattern:function(){var m=this.to;return!!m},tagName:function(){var m=this.isHrefPattern;return m?"a":"button"},tagProps:function(){var m=this.isHrefPattern;if(m){var _=this.linkUrl,h=this.target;return{href:_,target:h}}else{var g=this.htmlType;return{type:g}}}},methods:{handleClickLink:function(m){this.$emit("click",m);var _=m.ctrlKey||m.metaKey;this.handleCheckClick(m,_)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-btn-group";r.default={name:"ButtonGroup",props:{size:{validator:function(i){return(0,d.oneOf)(i,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},shape:{validator:function(i){return(0,d.oneOf)(i,["circle","circle-outline"])}},vertical:{type:Boolean,default:!1}},computed:{classes:function(){var i;return[""+l,(i={},(0,a.default)(i,l+"-"+String(this.size),!!this.size),(0,a.default)(i,l+"-"+String(this.shape),!!this.shape),(0,a.default)(i,l+"-vertical",this.vertical),i)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(8),e=i(d),l=t(48),n=i(l);function i(u){return u&&u.__esModule?u:{default:u}}var o="ivu-card",c=16;r.default={name:"Card",mixins:[n.default],components:{Icon:e.default},props:{bordered:{type:Boolean,default:!0},disHover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},padding:{type:Number,default:c},title:{type:String},icon:{type:String}},data:function(){return{showHead:!0,showExtra:!0}},computed:{classes:function(){var f;return[""+o,(f={},(0,a.default)(f,o+"-bordered",this.bordered&&!this.shadow),(0,a.default)(f,o+"-dis-hover",this.disHover||this.shadow),(0,a.default)(f,o+"-shadow",this.shadow),f)]},headClasses:function(){return o+"-head"},extraClasses:function(){return o+"-extra"},bodyClasses:function(){return o+"-body"},bodyStyles:function(){return this.padding!==c?{padding:String(this.padding)+"px"}:""},isHrefPattern:function(){var f=this.to;return!!f},tagName:function(){var f=this.isHrefPattern;return f?"a":"div"},tagProps:function(){var f=this.isHrefPattern;if(f){var y=this.linkUrl,m=this.target;return{href:y,target:m}}else return{}}},methods:{handleClickLink:function(f){if(!!this.isHrefPattern){var y=f.ctrlKey||f.metaKey;this.handleCheckClick(f,y)}}},mounted:function(){this.showHead=this.title||this.$slots.title!==void 0,this.showExtra=this.$slots.extra!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(8),e=i(d),l=t(3),n=t(12);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-carousel";r.default={name:"Carousel",components:{Icon:e.default},props:{arrow:{type:String,default:"hover",validator:function(u){return(0,l.oneOf)(u,["hover","always","never"])}},autoplay:{type:Boolean,default:!1},autoplaySpeed:{type:Number,default:2e3},loop:{type:Boolean,default:!1},easing:{type:String,default:"ease"},dots:{type:String,default:"inside",validator:function(u){return(0,l.oneOf)(u,["inside","outside","none"])}},radiusDot:{type:Boolean,default:!1},trigger:{type:String,default:"click",validator:function(u){return(0,l.oneOf)(u,["click","hover"])}},value:{type:Number,default:0},height:{type:[String,Number],default:"auto",validator:function(u){return u==="auto"||Object.prototype.toString.call(u)==="[object Number]"}}},data:function(){return{prefixCls:o,listWidth:0,trackWidth:0,trackOffset:0,trackCopyOffset:0,showCopyTrack:!1,slides:[],slideInstances:[],timer:null,ready:!1,currentIndex:this.value,trackIndex:this.value,copyTrackIndex:this.value,hideTrackPos:-1}},computed:{classes:function(){return[""+o]},trackStyles:function(){var u=this.trackIndex===-1?"hidden":"visible";return{width:String(this.trackWidth)+"px",transform:"translate3d("+-this.trackOffset+"px, 0px, 0px)",transition:"transform 500ms "+String(this.easing),visibility:u}},copyTrackStyles:function(){return{width:String(this.trackWidth)+"px",transform:"translate3d("+-this.trackCopyOffset+"px, 0px, 0px)",transition:"transform 500ms "+String(this.easing),position:"absolute"}},arrowClasses:function(){return[o+"-arrow",o+"-arrow-"+String(this.arrow)]},dotsClasses:function(){return[o+"-dots",o+"-dots-"+String(this.dots)]}},methods:{findChild:function(u){var f=this,y=function m(_){var h=this,g=_.$options.componentName;g?u(_):_.$children.length&&_.$children.forEach(function(b){(0,a.default)(this,h),m(b)}.bind(this))};this.slideInstances.length||!this.$children?this.slideInstances.forEach(function(m){(0,a.default)(this,f),y(m)}.bind(this)):this.$children.forEach(function(m){(0,a.default)(this,f),y(m)}.bind(this))},initCopyTrackDom:function(){var u=this;this.$nextTick(function(){(0,a.default)(this,u),this.$refs.copyTrack.innerHTML=this.$refs.originTrack.innerHTML}.bind(this))},updateSlides:function(u){var f=this,y=[],m=1;this.findChild(function(_){(0,a.default)(this,f),y.push({$el:_.$el}),_.index=m++,u&&this.slideInstances.push(_)}.bind(this)),this.slides=y,this.updatePos()},updatePos:function(){var u=this;this.findChild(function(f){(0,a.default)(this,u),f.width=this.listWidth,f.height=typeof this.height=="number"?String(this.height)+"px":this.height}.bind(this)),this.trackWidth=(this.slides.length||0)*this.listWidth},slotChange:function(){var u=this;this.$nextTick(function(){(0,a.default)(this,u),this.slides=[],this.slideInstances=[],this.updateSlides(!0,!0),this.updatePos(),this.updateOffset()}.bind(this))},handleResize:function(){this.listWidth=parseInt((0,l.getStyle)(this.$el,"width")),this.updatePos(),this.updateOffset()},updateTrackPos:function(u){this.showCopyTrack?this.trackIndex=u:this.copyTrackIndex=u},updateTrackIndex:function(u){this.showCopyTrack?this.copyTrackIndex=u:this.trackIndex=u,this.currentIndex=u},add:function(u){var f=this.slides.length;this.loop&&(u>0?this.hideTrackPos=-1:this.hideTrackPos=f,this.updateTrackPos(this.hideTrackPos));for(var y=this.showCopyTrack?this.copyTrackIndex:this.trackIndex,m=y+u;m<0;)m+=f;(u>0&&m===f||u<0&&m===f-1)&&this.loop?(this.showCopyTrack=!this.showCopyTrack,this.trackIndex+=u,this.copyTrackIndex+=u):(this.loop||(m=m%this.slides.length),this.updateTrackIndex(m)),this.currentIndex=m===this.slides.length?0:m,this.$emit("on-change",y,this.currentIndex),this.$emit("input",this.currentIndex)},arrowEvent:function(u){this.setAutoplay(),this.add(u)},dotsEvent:function(u,f){var y=this.showCopyTrack?this.copyTrackIndex:this.trackIndex,m=this.currentIndex;u===this.trigger&&y!==f&&(this.updateTrackIndex(f),this.$emit("on-change",m,this.currentIndex),this.$emit("input",f),this.setAutoplay())},setAutoplay:function(){var u=this;window.clearInterval(this.timer),this.autoplay&&(this.timer=window.setInterval(function(){(0,a.default)(this,u),this.add(1)}.bind(this),this.autoplaySpeed))},updateOffset:function(){var u=this;this.$nextTick(function(){(0,a.default)(this,u);var f=this.copyTrackIndex>0?-1:1;this.trackOffset=this.trackIndex*this.listWidth,this.trackCopyOffset=this.copyTrackIndex*this.listWidth+f}.bind(this))},handleClick:function(u){this.$emit("on-click",this[u])}},watch:{autoplay:function(){this.setAutoplay()},autoplaySpeed:function(){this.setAutoplay()},trackIndex:function(){this.updateOffset()},copyTrackIndex:function(){this.updateOffset()},height:function(){this.updatePos()},value:function(u){this.updateTrackIndex(u),this.setAutoplay()}},mounted:function(){this.updateSlides(!0),this.handleResize(),this.setAutoplay(),(0,n.on)(window,"resize",this.handleResize)},beforeDestroy:function(){(0,n.off)(window,"resize",this.handleResize)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-carousel-item";r.default={componentName:"carousel-item",name:"CarouselItem",data:function(){return{prefixCls:e,width:0,height:"auto",left:0}},computed:{styles:function(){return{width:String(this.width)+"px",height:""+String(this.height),left:String(this.left)+"px"}}},mounted:function(){this.$parent.slotChange()},watch:{width:function(n){var i=this;n&&this.$parent.loop&&this.$nextTick(function(){(0,a.default)(this,i),this.$parent.initCopyTrackDom()}.bind(this))},height:function(n){var i=this;n&&this.$parent.loop&&this.$nextTick(function(){(0,a.default)(this,i),this.$parent.initCopyTrackDom()}.bind(this))}},beforeDestroy:function(){this.$parent.slotChange()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=q(s),d=t(57),e=q(d),l=t(1),n=q(l),i=t(2),o=q(i),c=t(38),u=q(c),f=t(37),y=q(f),m=t(8),_=q(m),h=t(369),g=q(h),b=t(82),x=q(b),C=t(24),p=q(C),S=t(3),P=t(4),O=q(P),A=t(6),T=q(A),B=t(11),j=q(B);function q(V){return V&&V.__esModule?V:{default:V}}var U="ivu-cascader",R="ivu-select";r.default={name:"Cascader",mixins:[O.default,T.default,j.default],components:{iInput:u.default,Drop:y.default,Icon:_.default,Caspanel:g.default},directives:{clickOutside:x.default,TransferDom:p.default},props:{data:{type:Array,default:function(){return[]}},value:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},placeholder:{type:String},size:{validator:function(E){return(0,S.oneOf)(E,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},trigger:{validator:function(E){return(0,S.oneOf)(E,["click","hover"])},default:"click"},changeOnSelect:{type:Boolean,default:!1},renderFormat:{type:Function,default:function(E){return E.join(" / ")}},loadData:{type:Function},filterable:{type:Boolean,default:!1},notFoundText:{type:String},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String},elementId:{type:String},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:U,selectPrefixCls:R,visible:!1,selected:[],tmpSelected:[],updatingValue:!1,currentValue:this.value||[],query:"",validDataStr:"",isLoadedChildren:!1,isValueNull:!1}},computed:{classes:function(){var E;return[""+U,(E={},(0,o.default)(E,U+"-show-clear",this.showCloseIcon),(0,o.default)(E,U+"-size-"+String(this.size),!!this.size),(0,o.default)(E,U+"-visible",this.visible),(0,o.default)(E,U+"-disabled",this.itemDisabled),(0,o.default)(E,U+"-not-found",this.filterable&&this.query!==""&&!this.querySelections.length),E)]},showCloseIcon:function(){return this.currentValue&&this.currentValue.length&&this.clearable&&!this.itemDisabled},displayRender:function(){for(var E=[],k=0;k-1:!1}.bind(this)).map(function(z){return(0,n.default)(this,E),z.display=z.display.replace(new RegExp(this.query,"g"),""+String(this.query)+""),z}.bind(this)),k},arrowType:function(){var E="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.cascader.customArrow?E="":this.$IVIEW.cascader.arrow&&(E=this.$IVIEW.cascader.arrow)),E},customArrowType:function(){var E="";return this.$IVIEW&&this.$IVIEW.cascader.customArrow&&(E=this.$IVIEW.cascader.customArrow),E},arrowSize:function(){var E="";return this.$IVIEW&&this.$IVIEW.cascader.arrowSize&&(E=this.$IVIEW.cascader.arrowSize),E},dropdownCls:function(){var E;return E={},(0,o.default)(E,U+"-transfer",this.transfer),(0,o.default)(E,this.transferClassName,this.transferClassName),E}},methods:{clearSelect:function(){if(this.itemDisabled)return!1;var E=(0,e.default)(this.currentValue);this.currentValue=this.selected=this.tmpSelected=[],this.handleClose(),this.emitValue(this.currentValue,E),this.broadcast("Caspanel","on-clear")},handleClose:function(){this.visible=!1},toggleOpen:function(){if(this.itemDisabled)return!1;this.visible?this.filterable||this.handleClose():this.onFocus()},onFocus:function(){this.visible=!0,this.currentValue.length||this.broadcast("Caspanel","on-clear")},updateResult:function(E){this.tmpSelected=E},updateSelected:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(!this.changeOnSelect||E||k)&&this.broadcast("Caspanel","on-find-selected",{value:this.currentValue})},emitValue:function(E,k){var G=this;(0,e.default)(E)!==k&&(this.$emit("on-change",this.currentValue,JSON.parse((0,e.default)(this.selected))),this.$nextTick(function(){(0,n.default)(this,G),this.dispatch("FormItem","on-form-change",{value:this.currentValue,selected:JSON.parse((0,e.default)(this.selected))})}.bind(this)))},handleInput:function(E){this.query=E.target.value},handleSelectItem:function(E){var k=this,G=this.querySelections[E];if(G.item.disabled)return!1;this.query="",this.$refs.input.currentValue="";var z=(0,e.default)(this.currentValue);this.currentValue=G.value,setTimeout(function(){(0,n.default)(this,k),this.emitValue(this.currentValue,z),this.handleClose()}.bind(this),0)},handleFocus:function(){this.$refs.input.focus()},getValidData:function(E){var k=this;function G(z){var Z=this,re=(0,a.default)({},z);return"loading"in re&&delete re.loading,"__value"in re&&delete re.__value,"__label"in re&&delete re.__label,"children"in re&&re.children.length&&(re.children=re.children.map(function(J){return(0,n.default)(this,Z),G(J)}.bind(this))),re}return E.map(function(z){return(0,n.default)(this,k),G(z)}.bind(this))}},created:function(){var E=this;this.validDataStr=(0,e.default)(this.getValidData(this.data)),this.$on("on-result-change",function(k){(0,n.default)(this,E);var G=k.lastValue,z=k.changeOnSelect,Z=k.fromInit;if(G||z){var re=(0,e.default)(this.currentValue);this.selected=this.tmpSelected;var J=[];this.selected.forEach(function(N){(0,n.default)(this,E),J.push(N.value)}.bind(this)),Z||(this.updatingValue=!0,this.currentValue=J,this.emitValue(this.currentValue,re))}G&&!Z&&this.handleClose()}.bind(this))},mounted:function(){this.updateSelected(!0)},watch:{visible:function(E){E?(this.currentValue.length&&this.updateSelected(),this.transfer&&this.$refs.drop.update(),this.broadcast("Drop","on-update-popper")):(this.filterable&&(this.query="",this.$refs.input.currentValue=""),this.transfer&&this.$refs.drop.destroy(),this.broadcast("Drop","on-destroy-popper")),this.$emit("on-visible-change",E)},value:function(E){E===null&&(this.isValueNull=!0),this.currentValue=E||[],(E===null||!E.length)&&(this.selected=[])},query:function(E){this.$emit("on-input-change",E)},currentValue:function(){if(this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",this.currentValue),this.updatingValue){this.updatingValue=!1;return}this.updateSelected(!0)},data:{deep:!0,handler:function(){var E=this,k=(0,e.default)(this.getValidData(this.data));k!==this.validDataStr&&(this.validDataStr=k,this.isLoadedChildren||this.$nextTick(function(){return(0,n.default)(this,E),this.updateSelected(!1,this.changeOnSelect)}.bind(this)),this.isLoadedChildren=!1)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=y(s),d=t(14),e=y(d),l=t(1),n=y(l),i=t(370),o=y(i),c=t(4),u=y(c),f=t(3);function y(_){return _&&_.__esModule?_:{default:_}}var m=1;r.default={name:"Caspanel",mixins:[u.default],components:{Casitem:o.default},props:{data:{type:Array,default:function(){return[]}},disabled:Boolean,changeOnSelect:Boolean,trigger:String,prefixCls:String},data:function(){return{tmpItem:{},result:[],sublist:[]}},watch:{data:function(){this.sublist=[]}},methods:{handleClickItem:function(h){this.trigger!=="click"&&h.children&&h.children.length||this.handleTriggerItem(h,!1,!0)},handleHoverItem:function(h){this.trigger!=="hover"||!h.children||!h.children.length||this.handleTriggerItem(h,!1,!0)},handleTriggerItem:function(h){var g=this,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!h.disabled){this.dispatch("Cascader","on-result-item",h);var C=(0,f.findComponentUpward)(this,"Cascader");if(h.loading!==void 0&&!h.children.length&&C&&C.loadData){C.loadData(h,function(){(0,n.default)(this,g),x&&(C.isLoadedChildren=!0),h.children.length&&this.handleTriggerItem(h)}.bind(this));return}var p=this.getBaseItem(h);if((this.changeOnSelect||p.label!==this.tmpItem.label||p.value!==this.tmpItem.value||p.label===this.tmpItem.label&&p.value===this.tmpItem.value)&&(this.tmpItem=p,this.emitUpdate([p])),h.children&&h.children.length){if(this.sublist=h.children,this.dispatch("Cascader","on-result-change",{lastValue:!1,changeOnSelect:this.changeOnSelect,fromInit:b}),this.changeOnSelect){var S=(0,f.findComponentDownward)(this,"Caspanel");S&&S.$emit("on-clear",!0)}}else this.sublist=[],this.dispatch("Cascader","on-result-change",{lastValue:!0,changeOnSelect:this.changeOnSelect,fromInit:b});C&&C.$refs.drop.update()}},updateResult:function(h){this.result=[this.tmpItem].concat(h),this.emitUpdate(this.result)},getBaseItem:function(h){var g=(0,e.default)({},h);return g.children&&delete g.children,g},emitUpdate:function(h){this.$parent.$options.name==="Caspanel"?this.$parent.updateResult(h):this.$parent.$parent.updateResult(h)},getKey:function(){return m++}},mounted:function(){var h=this;this.$on("on-find-selected",function(g){(0,n.default)(this,h);for(var b=g.value,x=[].concat((0,a.default)(b)),C=0;C0&&arguments[0]!==void 0?arguments[0]:!1;if((0,n.default)(this,h),this.sublist=[],this.tmpItem={},g){var b=(0,f.findComponentDownward)(this,"Caspanel");b&&b.$emit("on-clear",!0)}}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=l(s),d=t(8),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"Casitem",components:{Icon:e.default},props:{data:Object,prefixCls:String,tmpItem:Object},computed:{classes:function(){var i;return[String(this.prefixCls)+"-menu-item",(i={},(0,a.default)(i,String(this.prefixCls)+"-menu-item-active",this.tmpItem.value===this.data.value),(0,a.default)(i,String(this.prefixCls)+"-menu-item-disabled",this.data.disabled),i)]},showArrow:function(){return this.data.children&&this.data.children.length||"loading"in this.data&&!this.data.loading},showLoading:function(){return"loading"in this.data&&this.data.loading},arrowType:function(){var i="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.cascader.customItemArrow?i="":this.$IVIEW.cascader.itemArrow&&(i=this.$IVIEW.cascader.itemArrow)),i},customArrowType:function(){var i="";return this.$IVIEW&&this.$IVIEW.cascader.customItemArrow&&(i=this.$IVIEW.cascader.customItemArrow),i},arrowSize:function(){var i="";return this.$IVIEW&&this.$IVIEW.cascader.itemArrowSize&&(i=this.$IVIEW.cascader.itemArrowSize),i}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=c(s),d=t(376),e=c(d),l=t(8),n=c(l),i=t(48),o=c(i);function c(f){return f&&f.__esModule?f:{default:f}}var u="ivu-cell";r.default={name:"Cell",inject:["cellGroup"],mixins:[o.default],components:{CellItem:e.default,Icon:n.default},props:{name:{type:[String,Number]},title:{type:String,default:""},label:{type:String,default:""},extra:{type:String,default:""},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1}},data:function(){return{prefixCls:u}},computed:{classes:function(){var y;return[""+u,(y={},(0,a.default)(y,u+"-disabled",this.disabled),(0,a.default)(y,u+"-selected",this.selected),(0,a.default)(y,u+"-with-link",this.to),y)]},arrowType:function(){var y="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.cell.customArrow?y="":this.$IVIEW.cell.arrow&&(y=this.$IVIEW.cell.arrow)),y},customArrowType:function(){var y="";return this.$IVIEW&&this.$IVIEW.cell.customArrow&&(y=this.$IVIEW.cell.customArrow),y},arrowSize:function(){var y="";return this.$IVIEW&&this.$IVIEW.cell.arrowSize&&(y=this.$IVIEW.cell.arrowSize),y}},methods:{handleClickItem:function(y,m){this.cellGroup.handleClick(this.name),this.handleCheckClick(y,m)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={props:{title:{type:String,default:""},label:{type:String,default:""},extra:{type:String,default:""}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"CellGroup",provide:function(){return{cellGroup:this}},methods:{handleClick:function(a){this.$emit("on-click",a)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=o(s),d=t(3),e=t(4),l=o(e),n=t(11),i=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-checkbox";r.default={name:"Checkbox",mixins:[l.default,i.default],props:{disabled:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!1},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},label:{type:[String,Number,Boolean]},indeterminate:{type:Boolean,default:!1},size:{validator:function(f){return(0,d.oneOf)(f,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},name:{type:String},border:{type:Boolean,default:!1}},data:function(){return{model:[],currentValue:this.value,group:!1,showSlot:!0,parent:(0,d.findComponentUpward)(this,"CheckboxGroup"),focusInner:!1}},computed:{wrapClasses:function(){var f;return[c+"-wrapper",(f={},(0,a.default)(f,c+"-group-item",this.group),(0,a.default)(f,c+"-wrapper-checked",this.currentValue),(0,a.default)(f,c+"-wrapper-disabled",this.itemDisabled),(0,a.default)(f,c+"-"+String(this.size),!!this.size),(0,a.default)(f,c+"-border",this.border),f)]},checkboxClasses:function(){var f;return[""+c,(f={},(0,a.default)(f,c+"-checked",this.currentValue),(0,a.default)(f,c+"-disabled",this.itemDisabled),(0,a.default)(f,c+"-indeterminate",this.indeterminate),f)]},innerClasses:function(){return[c+"-inner",(0,a.default)({},c+"-focus",this.focusInner)]},inputClasses:function(){return c+"-input"}},mounted:function(){this.parent=(0,d.findComponentUpward)(this,"CheckboxGroup"),this.parent&&(this.group=!0),this.group?this.parent.updateModel(!0):(this.updateModel(),this.showSlot=this.$slots.default!==void 0)},methods:{change:function(f){if(this.itemDisabled)return!1;var y=f.target.checked;this.currentValue=y;var m=y?this.trueValue:this.falseValue;this.$emit("input",m),this.group?this.parent.change(this.model):(this.$emit("on-change",m),this.dispatch("FormItem","on-form-change",m))},updateModel:function(){this.currentValue=this.value===this.trueValue},onBlur:function(){this.focusInner=!1},onFocus:function(){this.focusInner=!0}},watch:{value:function(f){if(f===this.trueValue||f===this.falseValue)this.updateModel();else throw"Value should be trueValue or falseValue."}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(144),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(383);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=o(s),d=t(2),e=o(d),l=t(3),n=t(4),i=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-checkbox-group";r.default={name:"CheckboxGroup",mixins:[i.default],props:{value:{type:Array,default:function(){return[]}},size:{validator:function(f){return(0,l.oneOf)(f,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}}},data:function(){return{currentValue:this.value||[],children:[]}},computed:{classes:function(){return[""+c,(0,e.default)({},"ivu-checkbox-"+String(this.size),!!this.size)]}},mounted:function(){this.updateModel(!0)},methods:{updateModel:function(f){var y=this;if(this.children=(0,l.findComponentsDownward)(this,"Checkbox"),this.children){var m=this.value||[];this.children.forEach(function(_){(0,a.default)(this,y),_.model=m,f&&(_.currentValue=m.indexOf(_.label)>=0,_.group=!0)}.bind(this))}},change:function(f){this.currentValue=f,this.$emit("input",f),this.$emit("on-change",f),this.dispatch("FormItem","on-form-change",f)}},watch:{value:function(){this.updateModel(!0)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(3),a=t(386),d=e(a);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-chart-circle";r.default={name:"iCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120},strokeWidth:{type:Number,default:6},strokeColor:{type:[String,Array],default:"#2d8cf0"},strokeLinecap:{validator:function(i){return(0,s.oneOf)(i,["square","round"])},default:"round"},trailWidth:{type:Number,default:5},trailColor:{type:String,default:"#eaeef2"},dashboard:{type:Boolean,default:!1}},data:function(){return{id:"ivu-chart-circle-"+String((0,d.default)(3))}},computed:{circleSize:function(){return{width:String(this.size)+"px",height:String(this.size)+"px"}},computedStrokeWidth:function(){return this.percent===0&&this.dashboard?0:this.strokeWidth},radius:function(){return 50-this.strokeWidth/2},pathString:function(){return this.dashboard?"M 50,50 m 0,"+String(this.radius)+` a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,-"+2*this.radius+` a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,"+2*this.radius:"M 50,50 m 0,-"+String(this.radius)+` a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,"+2*this.radius+` - a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,-"+2*this.radius},len:function(){return Math.PI*2*this.radius},trailStyle:function(){var i={};return this.dashboard&&(i={"stroke-dasharray":this.len-75+"px "+String(this.len)+"px","stroke-dashoffset":"-"+75/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"}),i},pathStyle:function(){var i={};return this.dashboard?i={"stroke-dasharray":this.percent/100*(this.len-75)+"px "+String(this.len)+"px","stroke-dashoffset":"-"+75/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .6s ease 0s, stroke .6s, stroke-width .06s ease .6s"}:i={"stroke-dasharray":String(this.len)+"px "+String(this.len)+"px","stroke-dashoffset":(100-this.percent)/100*this.len+"px",transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"},i},wrapClasses:function(){return""+l},innerClasses:function(){return l+"-inner"},strokeValue:function(){var i=this.strokeColor;return typeof this.strokeColor!="string"&&(i="url(#"+String(this.id)+")"),i},showDefs:function(){return typeof this.strokeColor!="string"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(2),e=l(d);function l(i){return i&&i.__esModule?i:{default:i}}var n="ivu-collapse";r.default={name:"Collapse",props:{accordion:{type:Boolean,default:!1},value:{type:[Array,String]},simple:{type:Boolean,default:!1}},data:function(){return{currentValue:this.value}},computed:{classes:function(){return[""+n,(0,e.default)({},n+"-simple",this.simple)]}},mounted:function(){this.setActive()},methods:{setActive:function(){var o=this,c=this.getActiveKey();this.$children.forEach(function(u,f){(0,a.default)(this,o);var y=u.name||f.toString();u.isActive=c.indexOf(y)>-1,u.index=f}.bind(this))},getActiveKey:function(){var o=this.currentValue||[],c=this.accordion;Array.isArray(o)||(o=[o]),c&&o.length>1&&(o=[o[0]]);for(var u=0;u-1&&f.splice(y,1):y<0&&f.push(c),u=f}this.currentValue=u,this.$emit("input",u),this.$emit("on-change",u)}},watch:{value:function(o){this.currentValue=o},currentValue:function(){this.setActive()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(8),e=i(d),l=t(83),n=i(l);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-collapse";r.default={name:"Panel",components:{Icon:e.default,CollapseTransition:n.default},props:{name:{type:String},hideArrow:{type:Boolean,default:!1}},data:function(){return{index:0,isActive:!1,mounted:!1}},computed:{itemClasses:function(){return[o+"-item",(0,a.default)({},o+"-item-active",this.isActive)]},headerClasses:function(){return o+"-header"},contentClasses:function(){return o+"-content"},boxClasses:function(){return o+"-content-box"}},methods:{toggle:function(){this.$parent.toggle({name:this.name||this.index,isActive:this.isActive})}},mounted:function(){this.mounted=!0,this.$parent.setActive()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=G(s),d=t(149),e=G(d),l=t(80),n=t(24),i=G(n),o=t(37),c=G(o),u=t(395),f=G(u),y=t(397),m=G(y),_=t(399),h=G(_),g=t(401),b=G(g),x=t(38),C=G(x),p=t(28),S=G(p),P=t(8),O=G(P),R=t(6),T=G(R),B=t(3),j=t(4),q=G(j),U=t(11),A=G(U),V=t(50),E=G(V),W=t(39);function G(z){return z&&z.__esModule?z:{default:z}}r.default={name:"ColorPicker",components:{Drop:c.default,RecommendColors:f.default,Saturation:m.default,Hue:h.default,Alpha:b.default,iInput:C.default,iButton:S.default,Icon:O.default},directives:{clickOutside:l.directive,TransferDom:i.default},mixins:[q.default,T.default,E.default,A.default],props:{value:{type:String,default:void 0},hue:{type:Boolean,default:!0},alpha:{type:Boolean,default:!1},recommend:{type:Boolean,default:!1},format:{type:String,validator:function(Z){return(0,B.oneOf)(Z,["hsl","hsv","hex","rgb"])},default:void 0},colors:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},size:{validator:function(Z){return(0,B.oneOf)(Z,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},hideDropDown:{type:Boolean,default:!1},placement:{type:String,validator:function(Z){return(0,B.oneOf)(Z,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String,default:void 0},editable:{type:Boolean,default:!0},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{val:(0,W.changeColor)(this.value||""),currentValue:this.value||"",dragging:!1,visible:!1,recommendedColor:["#2d8cf0","#19be6b","#ff9900","#ed4014","#00b5ff","#19c919","#f9e31c","#ea1a1a","#9b1dea","#00c2b1","#ac7a33","#1d35ea","#8bc34a","#f16b62","#ea4ca3","#0d94aa","#febd79","#5d4037","#00bcd4","#f06292","#cddc39","#607d8b","#000000","#ffffff"]}},computed:{arrowClasses:function(){return[String(this.inputPrefixCls)+"-icon",String(this.inputPrefixCls)+"-icon-normal"]},transition:function(){return(0,B.oneOf)(this.placement,["bottom-start","bottom","bottom-end"])?"slide-up":"fade"},saturationColors:{get:function(){return this.val},set:function(Z){this.val=Z,this.$emit("on-active-change",this.formatColor)}},classes:function(){return[""+String(this.prefixCls),(0,a.default)({},String(this.prefixCls)+"-transfer",this.transfer)]},wrapClasses:function(){return[String(this.prefixCls)+"-rel",String(this.prefixCls)+"-"+String(this.size),String(this.inputPrefixCls)+"-wrapper",String(this.inputPrefixCls)+"-wrapper-"+String(this.size),(0,a.default)({},String(this.prefixCls)+"-disabled",this.itemDisabled)]},inputClasses:function(){var Z;return[String(this.prefixCls)+"-input",""+String(this.inputPrefixCls),String(this.inputPrefixCls)+"-"+String(this.size),(Z={},(0,a.default)(Z,String(this.prefixCls)+"-focused",this.visible),(0,a.default)(Z,String(this.prefixCls)+"-disabled",this.itemDisabled),Z)]},dropClasses:function(){var Z;return[String(this.transferPrefixCls)+"-no-max-height",(Z={},(0,a.default)(Z,String(this.prefixCls)+"-transfer",this.transfer),(0,a.default)(Z,String(this.prefixCls)+"-hide-drop",this.hideDropDown),(0,a.default)(Z,this.transferClassName,this.transferClassName),Z)]},displayedColorStyle:function(){return{backgroundColor:(0,W.toRGBAString)(this.visible?this.saturationColors.rgba:(0,e.default)(this.value).toRgb())}},formatColor:function(){var Z=this.format,re=this.saturationColors;if(Z){if(Z==="hsl")return(0,e.default)(re.hsl).toHslString();if(Z==="hsv")return(0,e.default)(re.hsv).toHsvString();if(Z==="hex")return re.hex;if(Z==="rgb")return(0,W.toRGBAString)(re.rgba)}else if(this.alpha)return(0,W.toRGBAString)(re.rgba);return re.hex},confirmColorClasses:function(){return[String(this.prefixCls)+"-confirm-color",(0,a.default)({},String(this.prefixCls)+"-confirm-color-editable",this.editable)]},arrowType:function(){var Z="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.colorPicker.customArrow?Z="":this.$IVIEW.colorPicker.arrow&&(Z=this.$IVIEW.colorPicker.arrow)),Z},customArrowType:function(){var Z="";return this.$IVIEW&&this.$IVIEW.colorPicker.customArrow&&(Z=this.$IVIEW.colorPicker.customArrow),Z},arrowSize:function(){var Z="";return this.$IVIEW&&this.$IVIEW.colorPicker.arrowSize&&(Z=this.$IVIEW.colorPicker.arrowSize),Z}},watch:{value:function(Z){this.val=(0,W.changeColor)(Z||"")},visible:function(Z){this.val=(0,W.changeColor)(this.value||""),this.$refs.drop[Z?"update":"destroy"](),this.$emit("on-open-change",Boolean(Z))}},mounted:function(){this.$on("on-escape-keydown",this.closer),this.$on("on-dragging",this.setDragging)},methods:{setDragging:function(Z){this.dragging=Z},handleClose:function(Z){if(this.visible){if(this.dragging||Z.type==="mousedown"){this.$refs.editColorInput&&Z.target!==this.$refs.editColorInput.$el.querySelector("input")&&Z.preventDefault();return}if(this.transfer){var re=this.$refs.drop.$el;if(re===Z.target||re.contains(Z.target))return}this.closer(Z);return}this.visible=!1},toggleVisible:function(){this.itemDisabled||(this.visible=!this.visible,this.$refs.input.focus())},childChange:function(Z){this.colorChange(Z)},colorChange:function(Z,re){this.oldHue=this.saturationColors.hsl.h,this.saturationColors=(0,W.changeColor)(Z,re||this.oldHue)},closer:function(Z){Z&&(Z.preventDefault(),Z.stopPropagation()),this.visible=!1,this.$refs.input.focus()},handleButtons:function(Z,re){this.currentValue=re,this.$emit("input",re),this.$emit("on-change",re),this.dispatch("FormItem","on-form-change",re),this.closer(Z)},handleSuccess:function(Z){this.handleButtons(Z,this.formatColor),this.$emit("on-pick-success")},handleClear:function(Z){this.handleButtons(Z,""),this.$emit("on-pick-clear")},handleSelectColor:function(Z){this.val=(0,W.changeColor)(Z),this.$emit("on-active-change",this.formatColor)},handleEditColor:function(Z){var re=Z.target.value;this.handleSelectColor(re)},handleFirstTab:function(Z){Z.shiftKey&&(Z.preventDefault(),Z.stopPropagation(),this.$refs.ok.$el.focus())},handleLastTab:function(Z){Z.shiftKey||(Z.preventDefault(),Z.stopPropagation(),this.$refs.saturation.$el.focus())},onTab:function(Z){this.visible&&Z.preventDefault()},onEscape:function(Z){this.visible&&this.closer(Z)},onArrow:function(Z){this.visible||(Z.preventDefault(),Z.stopPropagation(),this.visible=!0)}}}},function(v,r,t){var s;(function(a){var d=/^\s+/,e=/\s+$/,l=0,n=a.round,i=a.min,o=a.max,c=a.random;function u(M,k){if(M=M||"",k=k||{},M instanceof u)return M;if(!(this instanceof u))return new u(M,k);var $=f(M);this._originalInput=M,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=n(100*this._a)/100,this._format=k.format||$.format,this._gradientType=k.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=$.ok,this._tc_id=l++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var M=this.toRgb();return(M.r*299+M.g*587+M.b*114)/1e3},getLuminance:function(){var M=this.toRgb(),k,$,D,I,K,J;return k=M.r/255,$=M.g/255,D=M.b/255,k<=.03928?I=k/12.92:I=a.pow((k+.055)/1.055,2.4),$<=.03928?K=$/12.92:K=a.pow(($+.055)/1.055,2.4),D<=.03928?J=D/12.92:J=a.pow((D+.055)/1.055,2.4),.2126*I+.7152*K+.0722*J},setAlpha:function(M){return this._a=Z(M),this._roundA=n(100*this._a)/100,this},toHsv:function(){var M=h(this._r,this._g,this._b);return{h:M.h*360,s:M.s,v:M.v,a:this._a}},toHsvString:function(){var M=h(this._r,this._g,this._b),k=n(M.h*360),$=n(M.s*100),D=n(M.v*100);return this._a==1?"hsv("+k+", "+$+"%, "+D+"%)":"hsva("+k+", "+$+"%, "+D+"%, "+this._roundA+")"},toHsl:function(){var M=m(this._r,this._g,this._b);return{h:M.h*360,s:M.s,l:M.l,a:this._a}},toHslString:function(){var M=m(this._r,this._g,this._b),k=n(M.h*360),$=n(M.s*100),D=n(M.l*100);return this._a==1?"hsl("+k+", "+$+"%, "+D+"%)":"hsla("+k+", "+$+"%, "+D+"%, "+this._roundA+")"},toHex:function(M){return b(this._r,this._g,this._b,M)},toHexString:function(M){return"#"+this.toHex(M)},toHex8:function(M){return x(this._r,this._g,this._b,this._a,M)},toHex8String:function(M){return"#"+this.toHex8(M)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(re(this._r,255)*100)+"%",g:n(re(this._g,255)*100)+"%",b:n(re(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(re(this._r,255)*100)+"%, "+n(re(this._g,255)*100)+"%, "+n(re(this._b,255)*100)+"%)":"rgba("+n(re(this._r,255)*100)+"%, "+n(re(this._g,255)*100)+"%, "+n(re(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(M){var k="#"+C(this._r,this._g,this._b,this._a),$=k,D=this._gradientType?"GradientType = 1, ":"";if(M){var I=u(M);$="#"+C(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+D+"startColorstr="+k+",endColorstr="+$+")"},toString:function(M){var k=!!M;M=M||this._format;var $=!1,D=this._a<1&&this._a>=0,I=!k&&D&&(M==="hex"||M==="hex6"||M==="hex3"||M==="hex4"||M==="hex8"||M==="name");return I?M==="name"&&this._a===0?this.toName():this.toRgbString():(M==="rgb"&&($=this.toRgbString()),M==="prgb"&&($=this.toPercentageRgbString()),(M==="hex"||M==="hex6")&&($=this.toHexString()),M==="hex3"&&($=this.toHexString(!0)),M==="hex4"&&($=this.toHex8String(!0)),M==="hex8"&&($=this.toHex8String()),M==="name"&&($=this.toName()),M==="hsl"&&($=this.toHslString()),M==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(M,k){var $=M.apply(null,[this].concat([].slice.call(k)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(B,arguments)},_applyCombination:function(M,k){return M.apply(null,[this].concat([].slice.call(k)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(q,arguments)},tetrad:function(){return this._applyCombination(U,arguments)}},u.fromRatio=function(M,k){if(typeof M=="object"){var $={};for(var D in M)M.hasOwnProperty(D)&&(D==="a"?$[D]=M[D]:$[D]=H(M[D]));M=$}return u(M,k)};function f(M){var k={r:0,g:0,b:0},$=1,D=null,I=null,K=null,J=!1,se=!1;return typeof M=="string"&&(M=he(M)),typeof M=="object"&&(ee(M.r)&&ee(M.g)&&ee(M.b)?(k=y(M.r,M.g,M.b),J=!0,se=String(M.r).substr(-1)==="%"?"prgb":"rgb"):ee(M.h)&&ee(M.s)&&ee(M.v)?(D=H(M.s),I=H(M.v),k=g(M.h,D,I),J=!0,se="hsv"):ee(M.h)&&ee(M.s)&&ee(M.l)&&(D=H(M.s),K=H(M.l),k=_(M.h,D,K),J=!0,se="hsl"),M.hasOwnProperty("a")&&($=M.a)),$=Z($),{ok:J,format:M.format||se,r:i(255,o(k.r,0)),g:i(255,o(k.g,0)),b:i(255,o(k.b,0)),a:$}}function y(M,k,$){return{r:re(M,255)*255,g:re(k,255)*255,b:re($,255)*255}}function m(M,k,$){M=re(M,255),k=re(k,255),$=re($,255);var D=o(M,k,$),I=i(M,k,$),K,J,se=(D+I)/2;if(D==I)K=J=0;else{var le=D-I;switch(J=se>.5?le/(2-D-I):le/(D+I),D){case M:K=(k-$)/le+(k<$?6:0);break;case k:K=($-M)/le+2;break;case $:K=(M-k)/le+4;break}K/=6}return{h:K,s:J,l:se}}function _(M,k,$){var D,I,K;M=re(M,360),k=re(k,100),$=re($,100);function J(fe,me,pe){return pe<0&&(pe+=1),pe>1&&(pe-=1),pe<1/6?fe+(me-fe)*6*pe:pe<1/2?me:pe<2/3?fe+(me-fe)*(2/3-pe)*6:fe}if(k===0)D=I=K=$;else{var se=$<.5?$*(1+k):$+k-$*k,le=2*$-se;D=J(le,se,M+1/3),I=J(le,se,M),K=J(le,se,M-1/3)}return{r:D*255,g:I*255,b:K*255}}function h(M,k,$){M=re(M,255),k=re(k,255),$=re($,255);var D=o(M,k,$),I=i(M,k,$),K,J,se=D,le=D-I;if(J=D===0?0:le/D,D==I)K=0;else{switch(D){case M:K=(k-$)/le+(k<$?6:0);break;case k:K=($-M)/le+2;break;case $:K=(M-k)/le+4;break}K/=6}return{h:K,s:J,v:se}}function g(M,k,$){M=re(M,360)*6,k=re(k,100),$=re($,100);var D=a.floor(M),I=M-D,K=$*(1-k),J=$*(1-I*k),se=$*(1-(1-I)*k),le=D%6,fe=[$,J,K,K,se,$][le],me=[se,$,$,J,K,K][le],pe=[K,K,se,$,$,J][le];return{r:fe*255,g:me*255,b:pe*255}}function b(M,k,$,D){var I=[F(n(M).toString(16)),F(n(k).toString(16)),F(n($).toString(16))];return D&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0):I.join("")}function x(M,k,$,D,I){var K=[F(n(M).toString(16)),F(n(k).toString(16)),F(n($).toString(16)),F(te(D))];return I&&K[0].charAt(0)==K[0].charAt(1)&&K[1].charAt(0)==K[1].charAt(1)&&K[2].charAt(0)==K[2].charAt(1)&&K[3].charAt(0)==K[3].charAt(1)?K[0].charAt(0)+K[1].charAt(0)+K[2].charAt(0)+K[3].charAt(0):K.join("")}function C(M,k,$,D){var I=[F(te(D)),F(n(M).toString(16)),F(n(k).toString(16)),F(n($).toString(16))];return I.join("")}u.equals=function(M,k){return!M||!k?!1:u(M).toRgbString()==u(k).toRgbString()},u.random=function(){return u.fromRatio({r:c(),g:c(),b:c()})};function p(M,k){k=k===0?0:k||10;var $=u(M).toHsl();return $.s-=k/100,$.s=X($.s),u($)}function S(M,k){k=k===0?0:k||10;var $=u(M).toHsl();return $.s+=k/100,$.s=X($.s),u($)}function P(M){return u(M).desaturate(100)}function O(M,k){k=k===0?0:k||10;var $=u(M).toHsl();return $.l+=k/100,$.l=X($.l),u($)}function R(M,k){k=k===0?0:k||10;var $=u(M).toRgb();return $.r=o(0,i(255,$.r-n(255*-(k/100)))),$.g=o(0,i(255,$.g-n(255*-(k/100)))),$.b=o(0,i(255,$.b-n(255*-(k/100)))),u($)}function T(M,k){k=k===0?0:k||10;var $=u(M).toHsl();return $.l-=k/100,$.l=X($.l),u($)}function B(M,k){var $=u(M).toHsl(),D=($.h+k)%360;return $.h=D<0?360+D:D,u($)}function j(M){var k=u(M).toHsl();return k.h=(k.h+180)%360,u(k)}function q(M){var k=u(M).toHsl(),$=k.h;return[u(M),u({h:($+120)%360,s:k.s,l:k.l}),u({h:($+240)%360,s:k.s,l:k.l})]}function U(M){var k=u(M).toHsl(),$=k.h;return[u(M),u({h:($+90)%360,s:k.s,l:k.l}),u({h:($+180)%360,s:k.s,l:k.l}),u({h:($+270)%360,s:k.s,l:k.l})]}function A(M){var k=u(M).toHsl(),$=k.h;return[u(M),u({h:($+72)%360,s:k.s,l:k.l}),u({h:($+216)%360,s:k.s,l:k.l})]}function V(M,k,$){k=k||6,$=$||30;var D=u(M).toHsl(),I=360/$,K=[u(M)];for(D.h=(D.h-(I*k>>1)+720)%360;--k;)D.h=(D.h+I)%360,K.push(u(D));return K}function E(M,k){k=k||6;for(var $=u(M).toHsv(),D=$.h,I=$.s,K=$.v,J=[],se=1/k;k--;)J.push(u({h:D,s:I,v:K})),K=(K+se)%1;return J}u.mix=function(M,k,$){$=$===0?0:$||50;var D=u(M).toRgb(),I=u(k).toRgb(),K=$/100,J={r:(I.r-D.r)*K+D.r,g:(I.g-D.g)*K+D.g,b:(I.b-D.b)*K+D.b,a:(I.a-D.a)*K+D.a};return u(J)},u.readability=function(M,k){var $=u(M),D=u(k);return(a.max($.getLuminance(),D.getLuminance())+.05)/(a.min($.getLuminance(),D.getLuminance())+.05)},u.isReadable=function(M,k,$){var D=u.readability(M,k),I,K;switch(K=!1,I=ae($),I.level+I.size){case"AAsmall":case"AAAlarge":K=D>=4.5;break;case"AAlarge":K=D>=3;break;case"AAAsmall":K=D>=7;break}return K},u.mostReadable=function(M,k,$){var D=null,I=0,K,J,se,le;$=$||{},J=$.includeFallbackColors,se=$.level,le=$.size;for(var fe=0;feI&&(I=K,D=u(k[fe]));return u.isReadable(M,D,{level:se,size:le})||!J?D:($.includeFallbackColors=!1,u.mostReadable(M,["#fff","#000"],$))};var W=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=u.hexNames=z(W);function z(M){var k={};for(var $ in M)M.hasOwnProperty($)&&(k[M[$]]=$);return k}function Z(M){return M=parseFloat(M),(isNaN(M)||M<0||M>1)&&(M=1),M}function re(M,k){Y(M)&&(M="100%");var $=w(M);return M=i(k,o(0,parseFloat(M))),$&&(M=parseInt(M*k,10)/100),a.abs(M-k)<1e-6?1:M%k/parseFloat(k)}function X(M){return i(1,o(0,M))}function N(M){return parseInt(M,16)}function Y(M){return typeof M=="string"&&M.indexOf(".")!=-1&&parseFloat(M)===1}function w(M){return typeof M=="string"&&M.indexOf("%")!=-1}function F(M){return M.length==1?"0"+M:""+M}function H(M){return M<=1&&(M=M*100+"%"),M}function te(M){return a.round(parseFloat(M)*255).toString(16)}function ie(M){return N(M)/255}var ue=function(){var M="[-\\+]?\\d+%?",k="[-\\+]?\\d*\\.\\d+%?",$="(?:"+k+")|(?:"+M+")",D="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",I="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ee(M){return!!ue.CSS_UNIT.exec(M)}function he(M){M=M.replace(d,"").replace(e,"").toLowerCase();var k=!1;if(W[M])M=W[M],k=!0;else if(M=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=ue.rgb.exec(M))?{r:$[1],g:$[2],b:$[3]}:($=ue.rgba.exec(M))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=ue.hsl.exec(M))?{h:$[1],s:$[2],l:$[3]}:($=ue.hsla.exec(M))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=ue.hsv.exec(M))?{h:$[1],s:$[2],v:$[3]}:($=ue.hsva.exec(M))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=ue.hex8.exec(M))?{r:N($[1]),g:N($[2]),b:N($[3]),a:ie($[4]),format:k?"name":"hex8"}:($=ue.hex6.exec(M))?{r:N($[1]),g:N($[2]),b:N($[3]),format:k?"name":"hex"}:($=ue.hex4.exec(M))?{r:N($[1]+""+$[1]),g:N($[2]+""+$[2]),b:N($[3]+""+$[3]),a:ie($[4]+""+$[4]),format:k?"name":"hex8"}:($=ue.hex3.exec(M))?{r:N($[1]+""+$[1]),g:N($[2]+""+$[2]),b:N($[3]+""+$[3]),format:k?"name":"hex"}:!1}function ae(M){var k,$;return M=M||{level:"AA",size:"small"},k=(M.level||"AA").toUpperCase(),$=(M.size||"small").toLowerCase(),k!=="AA"&&k!=="AAA"&&(k="AA"),$!=="small"&&$!=="large"&&($="small"),{level:k,size:$}}typeof v!="undefined"&&v.exports?v.exports=u:(s=function(){return u}.call(r,t,r,v),s!==void 0&&(v.exports=s))})(Math)},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(32),a=u(s),d=t(4),e=u(d),l=t(151),n=u(l),i=t(50),o=u(i),c=t(39);function u(f){return f&&f.__esModule?f:{default:f}}r.default={name:"RecommendedColors",mixins:[e.default,n.default,o.default],props:{list:{type:Array,default:void 0}},data:function(){var y=12,m=Math.ceil(this.list.length/y),_=1;return{left:-_,right:_,up:-_,down:_,powerKey:"shiftKey",grid:{x:1,y:1},rows:m,columns:y}},computed:{hideClass:function(){return String(this.prefixCls)+"-hide"},linearIndex:function(){return this.getLinearIndex(this.grid)},currentCircle:function(){return this.$refs["color-circle-"+String(this.linearIndex)][0]}},methods:{getLinearIndex:function(y){return this.columns*(y.y-1)+y.x-1},getMaxLimit:function(y){return y==="x"?this.columns:this.rows},handleArrow:function(y,m,_){y.preventDefault(),y.stopPropagation(),this.blurColor();var h=(0,a.default)({},this.grid);y[this.powerKey]?_<0?h[m]=1:h[m]=this.getMaxLimit(m):h[m]+=_;var g=this.getLinearIndex(h);g>=0&&gu){this.change(100);return}this.change(c*100/u)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(84),a=n(s),d=t(50),e=n(d),l=t(39);function n(i){return i&&i.__esModule?i:{default:i}}r.default={name:"Alpha",mixins:[a.default,e.default],data:function(){var o=1,c=10;return{left:-o,right:o,up:c,down:-c,powerKey:"shiftKey"}},computed:{gradientStyle:function(){var o=this.value.rgba,c=o.r,u=o.g,f=o.b,y=(0,l.toRGBAString)({r:c,g:u,b:f,a:0}),m=(0,l.toRGBAString)({r:c,g:u,b:f,a:1});return{background:"linear-gradient(to right, "+String(y)+" 0%, "+String(m)+" 100%)"}}},methods:{change:function(o){var c=this.value.hsl,u=c.h,f=c.s,y=c.l,m=this.value.a;m!==o&&this.$emit("change",{h:u,s:f,l:y,a:o,source:"rgba"})},handleSlide:function(o,c){o.preventDefault(),o.stopPropagation(),this.change((0,l.clamp)(o[this.powerKey]?c:Math.round(this.value.hsl.a*100+c)/100,0,1))},handleChange:function(o){o.preventDefault(),o.stopPropagation();var c=this.getLeft(o);if(c<0){this.change(0);return}var u=this.$refs.container.clientWidth;if(c>u){this.change(1);return}this.change(Math.round(c*100/u)/100)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(156),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(405);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-layout";r.default={name:"Content",computed:{wrapClasses:function(){return s+"-content"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(158),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(409);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(18),a=A(s),d=t(57),e=A(d),l=t(27),n=A(l),i=t(32),o=A(i),c=t(15),u=A(c),f=t(2),y=A(f),m=t(1),_=A(m),h=t(38),g=A(h),b=t(37),x=A(b),C=t(8),p=A(C),S=t(80),P=t(24),O=A(P),R=t(3),T=t(21),B=t(4),j=A(B),q=t(11),U=A(q);function A(X){return X&&X.__esModule?X:{default:X}}var V="ivu-date-picker",E="ivu-picker",W=function(X){return(0,_.default)(void 0,void 0),X.reduce(function(N,Y){return(0,_.default)(void 0,void 0),N&&!Y||typeof Y=="string"&&Y.trim()===""}.bind(void 0),!0)}.bind(void 0),G={40:"up",39:"right",38:"down",37:"left"},z=function(X,N,Y){if((0,_.default)(void 0,void 0),X==="left")return N*-1;if(X==="right")return N*1;if(X==="up")return Y*1;if(X==="down")return Y*-1}.bind(void 0),Z=function(X){(0,_.default)(void 0,void 0);var N="ivu-date-picker-btn-pulse";X.classList.add(N),setTimeout(function(){return(0,_.default)(void 0,void 0),X.classList.remove(N)}.bind(void 0),200)}.bind(void 0),re=function(X){return(0,_.default)(void 0,void 0),X?[X.getHours(),X.getMinutes(),X.getSeconds()]:[0,0,0]}.bind(void 0);r.default={mixins:[j.default,U.default],components:{iInput:g.default,Drop:x.default,Icon:p.default},directives:{clickOutside:S.directive,TransferDom:O.default},props:{format:{type:String},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},confirm:{type:Boolean,default:!1},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{default:function(){return(0,_.default)(void 0,void 0),{}}.bind(void 0),type:Object},splitPanels:{type:Boolean,default:!1},showWeekNumbers:{type:Boolean,default:!1},startDate:{type:Date},size:{validator:function(N){return(0,R.oneOf)(N,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},placeholder:{type:String,default:""},placement:{validator:function(N){return(0,R.oneOf)(N,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom-start"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String},elementId:{type:String},steps:{type:Array,default:function(){return(0,_.default)(void 0,void 0),[]}.bind(void 0)},value:{type:[Date,String,Array]},options:{type:Object,default:function(){return(0,_.default)(void 0,void 0),{}}.bind(void 0)},separator:{type:String,default:" - "},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){var N=this.type.includes("range"),Y=N?[null,null]:[null],w=W((N?this.value:[this.value])||[])?Y:this.parseDate(this.value),F=w.map(re);return{prefixCls:V,showClose:!1,visible:!1,internalValue:w,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:this.onSelectionModeChange(this.type),forceInputRerender:1,isFocused:!1,focusedDate:w[0]||this.startDate||new Date,focusedTime:{column:0,picker:0,time:F,active:!1},internalFocus:!1,isValueNull:!1,innerWidth:window.innerWidth}},computed:{wrapperClasses:function(){return[V,(0,y.default)({},V+"-focused",this.isFocused)]},publicVModelValue:function(){var N=this;if(this.multiple)return this.internalValue.slice();var Y=this.type.includes("range"),w=this.internalValue.map(function(F){return(0,_.default)(this,N),F instanceof Date?new Date(F):F||""}.bind(this));return this.type.match(/^time/)&&(w=w.map(this.formatDate)),Y||this.multiple?w:w[0]},publicStringValue:function(){var N=this.formatDate,Y=this.publicVModelValue,w=this.type;return w.match(/^time/)?Y:this.multiple?N(Y):Array.isArray(Y)?Y.map(N):N(Y)},opened:function(){return this.open===null?this.visible:this.open},transition:function(){var N=this.placement.match(/^bottom/);return N?"slide-up":"slide-down"},visualValue:function(){return this.formatDate(this.internalValue)},isConfirm:function(){return this.confirm||this.type==="datetime"||this.type==="datetimerange"||this.multiple},arrowType:function(){var N="";return this.type==="time"||this.type==="timerange"?(N="ios-time-outline",this.$IVIEW&&(this.$IVIEW.timePicker.customIcon?N="":this.$IVIEW.timePicker.icon&&(N=this.$IVIEW.timePicker.icon))):(N="ios-calendar-outline",this.$IVIEW&&(this.$IVIEW.datePicker.customIcon?N="":this.$IVIEW.datePicker.icon&&(N=this.$IVIEW.datePicker.icon))),this.showClose&&(N="ios-close-circle"),N},customArrowType:function(){var N="";return this.showClose||(this.type==="time"||this.type==="timerange"?this.$IVIEW&&this.$IVIEW.timePicker.customIcon&&(N=this.$IVIEW.timePicker.customIcon):this.$IVIEW&&this.$IVIEW.datePicker.customIcon&&(N=this.$IVIEW.datePicker.customIcon)),N},arrowSize:function(){var N="";return this.showClose||(this.type==="time"||this.type==="timerange"?this.$IVIEW&&this.$IVIEW.timePicker.iconSize&&(N=this.$IVIEW.timePicker.iconSize):this.$IVIEW&&this.$IVIEW.datePicker.iconSize&&(N=this.$IVIEW.datePicker.iconSize)),N},dropdownCls:function(){var N;return N={},(0,y.default)(N,V+"-transfer",this.transfer),(0,y.default)(N,this.transferClassName,this.transferClassName),N},dropdownStyle:function(){return this.innerWidth<=768?{maxWidth:this.innerWidth*.98+"px",overflow:"auto"}:null}},methods:{onSelectionModeChange:function(N){return N.match(/^date/)&&(N="date"),this.selectionMode=(0,R.oneOf)(N,["year","month","date","time"])&&N,this.selectionMode},handleTransferClick:function(){this.transfer&&(this.disableCloseUnderTransfer=!0)},handleClose:function(N){if(this.disableCloseUnderTransfer)return this.disableCloseUnderTransfer=!1,!1;if(N&&N.type==="mousedown"&&this.visible){N.preventDefault(),N.stopPropagation();return}if(this.visible){var Y=this.$refs.pickerPanel&&this.$refs.pickerPanel.$el;if(N&&Y&&Y.contains(N.target))return;this.visible=!1,N&&N.preventDefault(),N&&N.stopPropagation(),this.$emit("on-clickoutside",N);return}this.isFocused=!1,this.disableClickOutSide=!1},handleFocus:function(N){this.readonly||(this.isFocused=!0,!(N&&N.type==="focus")&&(this.itemDisabled||(this.visible=!0)))},handleBlur:function(N){if(this.internalFocus){this.internalFocus=!1;return}if(this.visible){N.preventDefault();return}this.isFocused=!1,this.onSelectionModeChange(this.type),this.internalValue=this.internalValue.slice(),this.reset(),this.$refs.pickerPanel.onToggleVisibility(!1)},handleKeydown:function(N){var Y=this,w=N.keyCode;if(w===9)if(this.visible)if(N.stopPropagation(),N.preventDefault(),this.isConfirm){var F="."+E+"-confirm > *",H=this.$refs.drop.$el.querySelectorAll(F);this.internalFocus=!0;var te=[].concat((0,u.default)(H))[N.shiftKey?"pop":"shift"]();te.focus()}else this.handleClose();else this.focused=!1;var ie=[37,38,39,40];if(!this.visible&&ie.includes(w)){this.visible=!0;return}if(w===27&&this.visible&&(N.stopPropagation(),this.handleClose()),w===13){var ue=(0,R.findComponentsDownward)(this,"TimeSpinner");if(ue.length>0){var ee=ue[0].showSeconds?3:2,he=Math.floor(this.focusedTime.column/ee),ae=this.focusedTime.time[he];ue[he].chooseValue(ae);return}if(this.type.match(/range/))this.$refs.pickerPanel.handleRangePick(this.focusedDate,"date");else{var M=(0,R.findComponentsDownward)(this,"PanelTable"),k=function(D){(0,_.default)(this,Y);var I=["year","month","date"].indexOf(this.type)+1;return[D.getFullYear(),D.getMonth(),D.getDate()].slice(0,I).join("-")}.bind(this),$=M.find(function(D){var I=D.cells;return(0,_.default)(this,Y),I.find(function(K){var J=K.date,se=K.disabled;return(0,_.default)(this,Y),k(J)===k(this.focusedDate)&&!se}.bind(this))}.bind(this));$&&this.onPick(this.focusedDate,!1,"date")}}!ie.includes(w)||(this.focusedTime.active&&N.preventDefault(),this.navigateDatePanel(G[w],N.shiftKey))},reset:function(){this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()},navigateTimePanel:function(N){var Y=this;this.focusedTime.active=!0;var w=N.match(/left|right/),F=N.match(/up|down/),H=(0,R.findComponentsDownward)(this,"TimeSpinner"),te=(H[0].showSeconds?3:2)*H.length,ie=function(se){(0,_.default)(this,Y);var le=se+(w?N==="left"?-1:1:0);return(le+te)%te}.bind(this)(this.focusedTime.column),ue=te/H.length,ee=Math.floor(ie/ue),he=ie%ue;if(w){var ae=this.internalValue.map(re);this.focusedTime=(0,o.default)({},this.focusedTime,{column:ie,time:ae}),H.forEach(function(se,le){(0,_.default)(this,Y),le===ee?se.updateFocusedTime(he,ae[ee]):se.updateFocusedTime(-1,se.focusedTime)}.bind(this))}if(F){var M=N==="up"?1:-1,k=["hours","minutes","seconds"],$=H[ee][String(k[he])+"List"],D=$.findIndex(function(se){var le=se.text;return(0,_.default)(this,Y),this.focusedTime.time[ee][he]===le}.bind(this)),I=(D+M+$.length)%$.length,K=$[I].text,J=this.focusedTime.time.map(function(se,le){return(0,_.default)(this,Y),le!==ee||(se[he]=K),se}.bind(this));this.focusedTime=(0,o.default)({},this.focusedTime,{time:J}),H.forEach(function(se,le){(0,_.default)(this,Y),le===ee?se.updateFocusedTime(he,J[le]):se.updateFocusedTime(-1,se.focusedTime)}.bind(this))}},navigateDatePanel:function(N,Y){var w=(0,R.findComponentsDownward)(this,"TimeSpinner");if(w.length>0){this.navigateTimePanel(N,Y,w);return}if(Y){this.type==="year"?this.focusedDate=new Date(this.focusedDate.getFullYear()+z(N,0,10),this.focusedDate.getMonth(),this.focusedDate.getDate()):this.focusedDate=new Date(this.focusedDate.getFullYear()+z(N,0,1),this.focusedDate.getMonth()+z(N,1,0),this.focusedDate.getDate());var F=N.match(/left|down/)?"prev":"next",H=N.match(/up|down/)?"-double":"",te=this.$refs.drop.$el.querySelector(".ivu-date-picker-"+F+"-btn-arrow"+H);te&&Z(te);return}var ie=this.focusedDate||this.internalValue&&this.internalValue[0]||new Date,ue=new Date(ie);if(this.type.match(/^date/)){var ee=(0,T.getDayCountOfMonth)(ie.getFullYear(),ie.getMonth()),he=ie.getDate(),ae=ue.getDate()+z(N,1,7);ae<1?N.match(/left|right/)?(ue.setMonth(ue.getMonth()+1),ue.setDate(ae)):ue.setDate(he+Math.floor((ee-he)/7)*7):ae>ee?N.match(/left|right/)?(ue.setMonth(ue.getMonth()-1),ue.setDate(ae)):ue.setDate(he%7):ue.setDate(ae)}this.type.match(/^month/)&&ue.setMonth(ue.getMonth()+z(N,1,3)),this.type.match(/^year/)&&ue.setFullYear(ue.getFullYear()+z(N,1,3)),this.focusedDate=ue},handleInputChange:function(N){var Y=this,w=this.type.includes("range")||this.multiple,F=this.visualValue,H=N.target.value,te=this.parseDate(H),ie=this.options&&typeof this.options.disabledDate=="function"&&this.options.disabledDate,ue=w?te:te[0],ee=ie&&ie(ue),he=te.reduce(function(ae,M){return(0,_.default)(this,Y),ae&&M instanceof Date}.bind(this),!0);H!==F&&!ee&&he?(this.emitChange(this.type),this.internalValue=te):this.forceInputRerender++},handleInputMouseenter:function(){this.readonly||this.itemDisabled||this.visualValue&&this.clearable&&(this.showClose=!0)},handleInputMouseleave:function(){this.showClose=!1},handleIconClick:function(N){this.showClose?(N&&N.stopPropagation(),this.handleClear()):this.itemDisabled||this.handleFocus()},handleClear:function(){var N=this;this.visible=!1,this.internalValue=this.internalValue.map(function(){return(0,_.default)(this,N),null}.bind(this)),this.$emit("on-clear"),this.dispatch("FormItem","on-form-change",""),this.emitChange(this.type),this.reset(),setTimeout(function(){return(0,_.default)(this,N),this.onSelectionModeChange(this.type)}.bind(this),500)},emitChange:function(N){var Y=this;this.$nextTick(function(){(0,_.default)(this,Y),this.$emit("on-change",this.publicStringValue,N),this.dispatch("FormItem","on-form-change",this.publicStringValue)}.bind(this))},parseDate:function(N){var Y=this,w=this.type.includes("range"),F=this.type,H=(T.TYPE_VALUE_RESOLVER_MAP[F]||T.TYPE_VALUE_RESOLVER_MAP.default).parser,te=this.format||T.DEFAULT_FORMATS[F],ie=T.TYPE_VALUE_RESOLVER_MAP.multiple.parser;if(N&&F==="time"&&!(N instanceof Date))N=H(N,te,this.separator);else if(this.multiple&&N)N=ie(N,te,this.separator);else if(w)if(!N)N=[null,null];else if(typeof N=="string")N=H(N,te,this.separator);else if(F==="timerange")N=H(N,te,this.separator).map(function(M){return(0,_.default)(this,Y),M||""}.bind(this));else{var ue=N,ee=(0,n.default)(ue,2),he=ee[0],ae=ee[1];he instanceof Date&&ae instanceof Date?N=N.map(function(M){return(0,_.default)(this,Y),new Date(M)}.bind(this)):typeof he=="string"&&typeof ae=="string"?N=H(N.join(this.separator),te,this.separator):(!he||!ae)&&(N=[null,null])}else typeof N=="string"&&F.indexOf("time")!==0&&(N=H(N,te)||null);return w||this.multiple?N||[]:[N]},formatDate:function(N){var Y=T.DEFAULT_FORMATS[this.type];if(this.multiple){var w=T.TYPE_VALUE_RESOLVER_MAP.multiple.formatter;return w(N,this.format||Y,this.separator)}else{var F=T.TYPE_VALUE_RESOLVER_MAP[this.type]||T.TYPE_VALUE_RESOLVER_MAP.default,H=F.formatter;return H(N,this.format||Y,this.separator)}},onPick:function(N){var Y=this,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F=arguments[2];if(this.multiple){var H=N.getTime(),te=this.internalValue.findIndex(function(ee){return(0,_.default)(this,Y),ee&&ee.getTime()===H}.bind(this)),ie=[].concat((0,u.default)(this.internalValue),[N]).filter(Boolean),ue=ie.map(function(ee){return(0,_.default)(this,Y),ee.getTime()}.bind(this)).filter(function(ee,he,ae){return(0,_.default)(this,Y),ae.indexOf(ee)===he&&he!==te}.bind(this));this.internalValue=ue.map(function(ee){return(0,_.default)(this,Y),new Date(ee)}.bind(this))}else N=this.parseDate(N),this.internalValue=Array.isArray(N)?N:[N];this.internalValue[0]&&(this.focusedDate=this.internalValue[0]),this.focusedTime=(0,o.default)({},this.focusedTime,{time:this.internalValue.map(re)}),this.isConfirm||this.onSelectionModeChange(this.type),this.isConfirm||(this.visible=w),this.emitChange(F)},onPickSuccess:function(){this.visible=!1,this.$emit("on-ok"),this.focus(),this.reset()},focus:function(){this.$refs.input&&this.$refs.input.focus()},updatePopper:function(){this.$refs.drop.update()}},watch:{visible:function(N){N===!1&&this.$refs.drop.destroy(),N&&this.$refs.drop.update(),this.$emit("on-open-change",N)},value:function(N){N===null&&(this.isValueNull=!0),this.internalValue=this.parseDate(N)},open:function(N){this.visible=N===!0},type:function(N){this.onSelectionModeChange(N)},publicVModelValue:function(N,Y){var w=(0,e.default)(N),F=(0,e.default)(Y),H=w!==F||(typeof N=="undefined"?"undefined":(0,a.default)(N))!==(typeof Y=="undefined"?"undefined":(0,a.default)(Y));H&&(this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",N))}},mounted:function(){var N=this;this.open!==null&&(this.visible=this.open),this.$on("focus-input",function(){return(0,_.default)(this,N),this.focus()}.bind(this)),this.$on("update-popper",function(){return(0,_.default)(this,N),this.updatePopper()}.bind(this))},beforeDestroy:function(){this.$off("focus-input"),this.$off("update-popper")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=B(s),d=t(2),e=B(d),l=t(8),n=B(l),i=t(160),o=B(i),c=t(162),u=B(c),f=t(164),y=B(f),m=t(166),_=B(m),h=t(59),g=B(h),b=t(171),x=B(b),C=t(60),p=B(C),S=t(173),P=B(S),O=t(6),R=B(O),T=t(21);function B(U){return U&&U.__esModule?U:{default:U}}var j="ivu-picker-panel",q="ivu-date-picker";r.default={name:"DatePickerPanel",mixins:[p.default,R.default,P.default],components:{Icon:n.default,DateTable:o.default,YearTable:u.default,MonthTable:y.default,TimePicker:_.default,Confirm:g.default,datePanelLabel:x.default},props:{multiple:{type:Boolean,default:!1}},data:function(){var A=this.selectionMode,V=this.value,E=V.slice().sort();return{prefixCls:j,datePrefixCls:q,currentView:A||"date",pickerTable:this.getTableType(A),dates:E,panelDate:this.startDate||E[0]||new Date}},computed:{classes:function(){return[j+"-body-wrapper",(0,e.default)({},j+"-with-sidebar",this.shortcuts.length)]},panelPickerHandlers:function(){return this.pickerTable===String(this.currentView)+"-table"?this.handlePick:this.handlePreSelection},datePanelLabel:function(){var A=this,V=this.t("i.locale"),E=this.t("i.datepicker.datePanelLabel"),W=this.panelDate,G=(0,T.formatDateLabels)(V,E,W),z=G.labels,Z=G.separator,re=function(X){return(0,a.default)(this,A),function(){return(0,a.default)(this,A),this.pickerTable=this.getTableType(X)}.bind(this)}.bind(this);return{separator:Z,labels:z.map(function(X){return(0,a.default)(this,A),X.handler=re(X.type),X}.bind(this))}},timeDisabled:function(){return!this.dates[0]}},watch:{value:function(A){this.dates=A;var V=this.multiple?this.dates[this.dates.length-1]:this.startDate||this.dates[0];this.panelDate=V||new Date},currentView:function(A){var V=this;this.$emit("on-selection-mode-change",A),this.currentView==="time"&&this.$nextTick(function(){(0,a.default)(this,V);var E=this.$refs.timePicker.$refs.timeSpinner;E.updateScroll()}.bind(this))},selectionMode:function(A){this.currentView=A,this.pickerTable=this.getTableType(A)},focusedDate:function(A){var V=A.getFullYear()!==this.panelDate.getFullYear(),E=V||A.getMonth()!==this.panelDate.getMonth();(V||E)&&(this.multiple||(this.panelDate=A))}},methods:{reset:function(){this.currentView=this.selectionMode,this.pickerTable=this.getTableType(this.currentView)},changeYear:function(A){this.selectionMode==="year"||this.pickerTable==="year-table"?this.panelDate=new Date(this.panelDate.getFullYear()+A*10,0,1):this.panelDate=(0,T.siblingMonth)(this.panelDate,A*12)},getTableType:function(A){return A.match(/^time/)?"time-picker":String(A)+"-table"},changeMonth:function(A){this.panelDate=(0,T.siblingMonth)(this.panelDate,A)},handlePreSelection:function(A){this.panelDate=A,this.pickerTable==="year-table"?this.pickerTable="month-table":this.pickerTable=this.getTableType(this.currentView)},handlePick:function(A,V){var E=this.selectionMode,W=this.panelDate;E==="year"?A=new Date(A.getFullYear(),0,1):E==="month"?A=new Date(W.getFullYear(),A.getMonth(),1):A=new Date(A),this.dates=[A],this.$emit("on-pick",A,!1,V||E)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(161),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(415);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(32),a=x(s),d=t(27),e=x(d),l=t(1),n=x(l),i=t(2),o=x(i),c=t(21),u=t(6),f=x(u),y=t(411),m=x(y),_=t(85),h=x(_),g=t(86),b=x(g);function x(C){return C&&C.__esModule?C:{default:C}}r.default={mixins:[f.default,h.default],props:{showWeekNumbers:{type:Boolean,default:!1}},data:function(){return{prefixCls:b.default}},computed:{classes:function(){return[""+String(b.default),(0,o.default)({},String(b.default)+"-show-week-numbers",this.showWeekNumbers)]},calendar:function(){var p=Number(this.t("i.datepicker.weekStartDay"));return new m.default.Generator({onlyDays:!this.showWeekNumbers,weekStart:p})},headerDays:function(){var p=this,S=Number(this.t("i.datepicker.weekStartDay")),P=["sun","mon","tue","wed","thu","fri","sat"].map(function(R){return(0,n.default)(this,p),this.t("i.datepicker.weeks."+R)}.bind(this)),O=P.splice(S,7-S).concat(P.splice(0,S));return this.showWeekNumbers?[""].concat(O):O},cells:function(){var p=this,S=this.tableDate.getFullYear(),P=this.tableDate.getMonth(),O=(0,c.clearHours)(new Date),R=this.dates.filter(Boolean).map(c.clearHours),T=this.dates.map(c.clearHours),B=(0,e.default)(T,2),j=B[0],q=B[1],U=this.rangeState.from&&(0,c.clearHours)(this.rangeState.from),A=this.rangeState.to&&(0,c.clearHours)(this.rangeState.to),V=this.selectionMode==="range",E=typeof this.disabledDate=="function"&&this.disabledDate;return this.calendar(S,P,function(W){(0,n.default)(this,p),W.date instanceof Date&&W.date.setTime(W.date.getTime()+W.date.getTimezoneOffset()*6e4+480*60*1e3);var G=W.date&&(0,c.clearHours)(W.date),z=W.date&&P===W.date.getMonth();return(0,a.default)({},W,{type:G===O?"today":W.type,selected:z&&R.includes(G),disabled:W.date&&E&&E(new Date(G)),range:z&&V&&(0,c.isInRange)(G,U,A),start:z&&V&&G===j,end:z&&V&&G===q})}.bind(this)).cells.slice(this.showWeekNumbers?8:0)}},methods:{getCellCls:function(p){var S;return[String(b.default)+"-cell",(S={},(0,o.default)(S,String(b.default)+"-cell-selected",p.selected||p.start||p.end),(0,o.default)(S,String(b.default)+"-cell-disabled",p.disabled),(0,o.default)(S,String(b.default)+"-cell-today",p.type==="today"),(0,o.default)(S,String(b.default)+"-cell-prev-month",p.type==="prevMonth"),(0,o.default)(S,String(b.default)+"-cell-next-month",p.type==="nextMonth"),(0,o.default)(S,String(b.default)+"-cell-week-label",p.type==="weekLabel"),(0,o.default)(S,String(b.default)+"-cell-range",p.range&&!p.start&&!p.end),(0,o.default)(S,String(b.default)+"-focused",(0,c.clearHours)(p.date)===(0,c.clearHours)(this.focusedDate)),S)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(163),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(416);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=f(s),d=t(1),e=f(d),l=t(21),n=t(3),i=t(85),o=f(i),c=t(86),u=f(c);function f(y){return y&&y.__esModule?y:{default:y}}r.default={mixins:[o.default],props:{},computed:{classes:function(){return[""+String(u.default),String(u.default)+"-year"]},startYear:function(){return Math.floor(this.tableDate.getFullYear()/10)*10},cells:function(){for(var m=this,_=[],h={text:"",selected:!1,disabled:!1},g=this.dates.filter(Boolean).map(function(S){return(0,e.default)(this,m),(0,l.clearHours)(new Date(S.getFullYear(),0,1))}.bind(this)),b=(0,l.clearHours)(new Date(this.focusedDate.getFullYear(),0,1)),x=0;x<10;x++){var C=(0,n.deepCopy)(h);C.date=new Date(this.startYear+x,0,1),C.disabled=typeof this.disabledDate=="function"&&this.disabledDate(C.date)&&this.selectionMode==="year";var p=(0,l.clearHours)(C.date);C.selected=g.includes(p),C.focused=p===b,_.push(C)}return _}},methods:{getCellCls:function(m){var _;return[String(u.default)+"-cell",(_={},(0,a.default)(_,String(u.default)+"-cell-selected",m.selected),(0,a.default)(_,String(u.default)+"-cell-disabled",m.disabled),(0,a.default)(_,String(u.default)+"-cell-focused",m.focused),(0,a.default)(_,String(u.default)+"-cell-range",m.range&&!m.start&&!m.end),_)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(165),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(417);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=m(s),d=t(1),e=m(d),l=t(21),n=t(3),i=t(6),o=m(i),c=t(85),u=m(c),f=t(86),y=m(f);function m(_){return _&&_.__esModule?_:{default:_}}r.default={mixins:[o.default,u.default],props:{},computed:{classes:function(){return[""+String(y.default),String(y.default)+"-month"]},cells:function(){for(var h=this,g=[],b={text:"",selected:!1,disabled:!1},x=this.tableDate.getFullYear(),C=this.dates.filter(Boolean).map(function(R){return(0,e.default)(this,h),(0,l.clearHours)(new Date(R.getFullYear(),R.getMonth(),1))}.bind(this)),p=(0,l.clearHours)(new Date(this.focusedDate.getFullYear(),this.focusedDate.getMonth(),1)),S=0;S<12;S++){var P=(0,n.deepCopy)(b);P.date=new Date(x,S,1),P.text=this.tCell(S+1);var O=(0,l.clearHours)(P.date);P.disabled=typeof this.disabledDate=="function"&&this.disabledDate(P.date)&&this.selectionMode==="month",P.selected=C.includes(O),P.focused=O===p,g.push(P)}return g}},methods:{getCellCls:function(h){var g;return[String(y.default)+"-cell",(g={},(0,a.default)(g,String(y.default)+"-cell-selected",h.selected),(0,a.default)(g,String(y.default)+"-cell-disabled",h.disabled),(0,a.default)(g,String(y.default)+"-cell-focused",h.focused),(0,a.default)(g,String(y.default)+"-cell-range",h.range&&!h.start&&!h.end),g)]},tCell:function(h){return this.t("i.datepicker.months.m"+String(h))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(167),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(420);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=x(s),d=t(15),e=x(d),l=t(1),n=x(l),i=t(168),o=x(i),c=t(59),u=x(c),f=t(58),y=x(f),m=t(60),_=x(m),h=t(6),g=x(h),b=t(21);function x(T){return T&&T.__esModule?T:{default:T}}var C="ivu-picker-panel",p="ivu-time-picker",S=function(T){return(0,n.default)(void 0,void 0),T[0].toUpperCase()+T.slice(1)}.bind(void 0),P=function(T,B,j,q){(0,n.default)(void 0,void 0);var U=new Date(T.getTime());return U.setHours(B),U.setMinutes(j),U.setSeconds(q),U}.bind(void 0),O=function(T,B,j){return(0,n.default)(void 0,void 0),j.indexOf(T)===B}.bind(void 0),R=function(){return(0,n.default)(void 0,void 0),!1}.bind(void 0);r.default={name:"TimePickerPanel",mixins:[_.default,g.default,y.default],components:{TimeSpinner:o.default,Confirm:u.default},props:{disabledDate:{type:Function,default:R},steps:{type:Array,default:function(){return(0,n.default)(void 0,void 0),[]}.bind(void 0)},format:{type:String,default:"HH:mm:ss"},value:{type:Array,required:!0}},data:function(){return{prefixCls:C,timePrefixCls:p,date:this.value[0]||(0,b.initTimeDate)(),showDate:!1}},computed:{showSeconds:function(){return!!(this.format||"").match(/ss/)},visibleDate:function(){var B=this.date,j=B.getMonth()+1,q=this.t("i.datepicker.year"),U=this.t("i.datepicker.month"+String(j));return""+String(B.getFullYear())+String(q)+" "+String(U)},timeSlots:function(){var B=this;return this.value[0]?["getHours","getMinutes","getSeconds"].map(function(j){return(0,n.default)(this,B),this.date[j]()}.bind(this)):[]},disabledHMS:function(){var B=this,j=["disabledHours","disabledMinutes","disabledSeconds"];if(this.disabledDate===R||!this.value[0]){var q=j.reduce(function(E,W){return(0,n.default)(this,B),E[W]=this[W],E}.bind(this),{});return q}else{var U=[24,60,60],A=["Hours","Minutes","Seconds"].map(function(E){return(0,n.default)(this,B),this["disabled"+String(E)]}.bind(this)),V=A.map(function(E,W){(0,n.default)(this,B);for(var G=U[W],z=E,Z=function(N){var Y=B.timeSlots.map(function(F,H){return(0,n.default)(this,B),H===W?N:F}.bind(B)),w=P.apply(void 0,[B.date].concat((0,e.default)(Y)));B.disabledDate(w,!0)&&z.push(N)},re=0;re1&&arguments[1]!==void 0?arguments[1]:!0,U=new Date(this.date);(0,a.default)(B).forEach(function(A){return(0,n.default)(this,j),U["set"+String(S(A))](B[A])}.bind(this)),q&&this.$emit("on-pick",U,"time")}},mounted:function(){this.$parent&&this.$parent.$options.name==="DatePicker"&&(this.showDate=!0)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(169),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(418);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=y(s),d=t(32),e=y(d),l=t(2),n=y(l),i=t(1),o=y(i),c=t(58),u=y(c),f=t(3);function y(h){return h&&h.__esModule?h:{default:h}}var m="ivu-time-picker-cells",_=["hours","minutes","seconds"];r.default={name:"TimeSpinner",mixins:[u.default],props:{hours:{type:[Number,String],default:NaN},minutes:{type:[Number,String],default:NaN},seconds:{type:[Number,String],default:NaN},showSeconds:{type:Boolean,default:!0},steps:{type:Array,default:function(){return(0,o.default)(void 0,void 0),[]}.bind(void 0)}},data:function(){var g=this;return{spinerSteps:[1,1,1].map(function(b,x){return(0,o.default)(this,g),Math.abs(this.steps[x])||b}.bind(this)),prefixCls:m,compiled:!1,focusedColumn:-1,focusedTime:[0,0,0]}},computed:{classes:function(){return[""+m,(0,n.default)({},m+"-with-seconds",this.showSeconds)]},hoursList:function(){for(var g=[],b=this.spinerSteps[0],x=this.focusedColumn===0&&this.focusedTime[0],C={text:0,selected:!1,disabled:!1,hide:!1},p=0;p<24;p+=b){var S=(0,f.deepCopy)(C);S.text=p,S.focused=p===x,this.disabledHours.length&&this.disabledHours.indexOf(p)>-1&&(S.disabled=!0,this.hideDisabledOptions&&(S.hide=!0)),this.hours===p&&(S.selected=!0),g.push(S)}return g},minutesList:function(){for(var g=[],b=this.spinerSteps[1],x=this.focusedColumn===1&&this.focusedTime[1],C={text:0,selected:!1,disabled:!1,hide:!1},p=0;p<60;p+=b){var S=(0,f.deepCopy)(C);S.text=p,S.focused=p===x,this.disabledMinutes.length&&this.disabledMinutes.indexOf(p)>-1&&(S.disabled=!0,this.hideDisabledOptions&&(S.hide=!0)),this.minutes===p&&(S.selected=!0),g.push(S)}return g},secondsList:function(){for(var g=[],b=this.spinerSteps[2],x=this.focusedColumn===2&&this.focusedTime[2],C={text:0,selected:!1,disabled:!1,hide:!1},p=0;p<60;p+=b){var S=(0,f.deepCopy)(C);S.text=p,S.focused=p===x,this.disabledSeconds.length&&this.disabledSeconds.indexOf(p)>-1&&(S.disabled=!0,this.hideDisabledOptions&&(S.hide=!0)),this.seconds===p&&(S.selected=!0),g.push(S)}return g}},methods:{getCellCls:function(g){var b;return[m+"-cell",(b={},(0,n.default)(b,m+"-cell-selected",g.selected),(0,n.default)(b,m+"-cell-focused",g.focused),(0,n.default)(b,m+"-cell-disabled",g.disabled),b)]},chooseValue:function(g){var b=this,x=_.reduce(function(C,p,S){(0,o.default)(this,b);var P=g[S];return this[p]===P?C:(0,e.default)({},C,(0,n.default)({},p,P))}.bind(this),{});(0,a.default)(x).length>0&&this.emitChange(x)},handleClick:function(g,b){if(!b.disabled){var x=(0,n.default)({},g,b.text);this.emitChange(x)}},emitChange:function(g){this.$emit("on-change",g),this.$emit("on-pick-click")},scroll:function(g,b){var x=this.$refs[g].scrollTop,C=24*this.getScrollIndex(g,b);(0,f.scrollTop)(this.$refs[g],x,C,500)},getScrollIndex:function(g,b){var x=this,C=(0,f.firstUpperCase)(g),p=this["disabled"+String(C)];if(p.length&&this.hideDisabledOptions){var S=0;p.forEach(function(P){return(0,o.default)(this,x),P<=b?S++:""}.bind(this)),b-=S}return b},updateScroll:function(){var g=this;this.$nextTick(function(){(0,o.default)(this,g),_.forEach(function(b){(0,o.default)(this,g),this.$refs[b].scrollTop=24*this[String(b)+"List"].findIndex(function(x){return(0,o.default)(this,g),x.text==this[b]}.bind(this))}.bind(this))}.bind(this))},formatTime:function(g){return g<10?"0"+g:g},updateFocusedTime:function(g,b){this.focusedColumn=g,this.focusedTime=b.slice()}},watch:{hours:function(g){var b=this;!this.compiled||this.scroll("hours",this.hoursList.findIndex(function(x){return(0,o.default)(this,b),x.text==g}.bind(this)))},minutes:function(g){var b=this;!this.compiled||this.scroll("minutes",this.minutesList.findIndex(function(x){return(0,o.default)(this,b),x.text==g}.bind(this)))},seconds:function(g){var b=this;!this.compiled||this.scroll("seconds",this.secondsList.findIndex(function(x){return(0,o.default)(this,b),x.text==g}.bind(this)))},focusedTime:function(g,b){var x=this;_.forEach(function(C,p){if((0,o.default)(this,x),!(g[p]===b[p]||typeof g[p]=="undefined")){var S=this[String(C)+"List"].findIndex(function(P){return(0,o.default)(this,x),P.text===g[p]}.bind(this));this.scroll(C,S)}}.bind(this))}},mounted:function(){var g=this;this.$nextTick(function(){return(0,o.default)(this,g),this.compiled=!0}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=f(s),d=t(1),e=f(d),l=t(28),n=f(l),i=t(6),o=f(i),c=t(4),u=f(c);function f(m){return m&&m.__esModule?m:{default:m}}var y="ivu-picker";r.default={mixins:[o.default,u.default],components:{iButton:n.default},props:{showTime:!1,isTime:!1,timeDisabled:!1},data:function(){return{prefixCls:y}},computed:{timeClasses:function(){return y+"-confirm-time"},labels:function(){var _=this,h=["time","clear","ok"],g=[this.isTime?"selectDate":"selectTime","clear","ok"];return h.reduce(function(b,x,C){return(0,e.default)(this,_),b[x]=this.t("i.datepicker."+g[C]),b}.bind(this),{})}},methods:{handleClear:function(){this.$emit("on-pick-clear")},handleSuccess:function(){this.$emit("on-pick-success")},handleToggleTime:function(){this.timeDisabled||(this.$emit("on-pick-toggle-time"),this.dispatch("CalendarPicker","focus-input"),this.dispatch("CalendarPicker","update-popper"))},handleTab:function(_){var h=[].concat((0,a.default)(this.$el.children)),g=h[_.shiftKey?"shift":"pop"]();document.activeElement===g&&(_.preventDefault(),_.stopPropagation(),this.dispatch("CalendarPicker","focus-input"))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(172),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(421);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={props:{datePanelLabel:Object,currentView:String,datePrefixCls:String}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(3),e=t(21);function l(n){return n&&n.__esModule?n:{default:n}}r.default={props:{showTime:{type:Boolean,default:!1},format:{type:String,default:"yyyy-MM-dd"},selectionMode:{type:String,validator:function(i){return(0,d.oneOf)(i,["year","month","date","time"])},default:"date"},shortcuts:{type:Array,default:function(){return(0,a.default)(void 0,void 0),[]}.bind(void 0)},disabledDate:{type:Function,default:function(){return(0,a.default)(void 0,void 0),!1}.bind(void 0)},value:{type:Array,default:function(){return(0,a.default)(void 0,void 0),[(0,e.initTimeDate)(),(0,e.initTimeDate)()]}.bind(void 0)},timePickerOptions:{default:function(){return(0,a.default)(void 0,void 0),{}}.bind(void 0),type:Object},showWeekNumbers:{type:Boolean,default:!1},startDate:{type:Date},pickerType:{type:String,require:!0},focusedDate:{type:Date,required:!0}},computed:{isTime:function(){return this.currentView==="time"}},methods:{handleToggleTime:function(){this.currentView=this.currentView==="time"?"date":"time"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=q(s),d=t(27),e=q(d),l=t(1),n=q(l),i=t(8),o=q(i),c=t(160),u=q(c),f=t(162),y=q(f),m=t(164),_=q(m),h=t(175),g=q(h),b=t(59),x=q(b),C=t(21),p=t(171),S=q(p),P=t(60),O=q(P),R=t(173),T=q(R),B=t(6),j=q(B);function q(E){return E&&E.__esModule?E:{default:E}}var U="ivu-picker-panel",A="ivu-date-picker",V=function(E,W){return(0,n.default)(void 0,void 0),!E||!W?0:E.getTime()-W.getTime()}.bind(void 0);r.default={name:"RangeDatePickerPanel",mixins:[O.default,j.default,T.default],components:{Icon:o.default,DateTable:u.default,YearTable:y.default,MonthTable:_.default,TimePicker:g.default,Confirm:x.default,datePanelLabel:S.default},props:{splitPanels:{type:Boolean,default:!1}},data:function(){var W=this,G=this.value.map(function(N){return(0,n.default)(this,W),N||(0,C.initTimeDate)()}.bind(this)),z=(0,e.default)(G,2),Z=z[0],re=z[1],X=this.startDate?this.startDate:Z;return{prefixCls:U,datePrefixCls:A,dates:this.value,rangeState:{from:this.value[0],to:this.value[1],selecting:Z&&!re},currentView:this.selectionMode||"range",leftPickerTable:String(this.selectionMode)+"-table",rightPickerTable:String(this.selectionMode)+"-table",leftPanelDate:X,rightPanelDate:new Date(X.getFullYear(),X.getMonth()+1,1)}},computed:{classes:function(){var W;return[U+"-body-wrapper",A+"-with-range",(W={},(0,a.default)(W,U+"-with-sidebar",this.shortcuts.length),(0,a.default)(W,A+"-with-week-numbers",this.showWeekNumbers),W)]},panelBodyClasses:function(){var W;return[U+"-body",(W={},(0,a.default)(W,U+"-body-time",this.showTime),(0,a.default)(W,U+"-body-date",!this.showTime),W)]},leftDatePanelLabel:function(){return this.panelLabelConfig("left")},rightDatePanelLabel:function(){return this.panelLabelConfig("right")},leftDatePanelView:function(){return this.leftPickerTable.split("-").shift()},rightDatePanelView:function(){return this.rightPickerTable.split("-").shift()},timeDisabled:function(){return!(this.dates[0]&&this.dates[1])},preSelecting:function(){var W=String(this.currentView)+"-table";return{left:this.leftPickerTable!==W,right:this.rightPickerTable!==W}},panelPickerHandlers:function(){return{left:this.preSelecting.left?this.handlePreSelection.bind(this,"left"):this.handleRangePick,right:this.preSelecting.right?this.handlePreSelection.bind(this,"right"):this.handleRangePick}}},watch:{value:function(W){var G=W[0]?(0,C.toDate)(W[0]):null,z=W[1]?(0,C.toDate)(W[1]):null;this.dates=[G,z].sort(V),this.rangeState={from:this.dates[0],to:this.dates[1],selecting:!1},this.setPanelDates(this.startDate||this.dates[0]||new Date)},currentView:function(W){var G=this,z=this.leftPanelDate.getMonth(),Z=this.rightPanelDate.getMonth(),re=this.leftPanelDate.getFullYear()===this.rightPanelDate.getFullYear();W==="date"&&re&&z===Z&&this.changePanelDate("right","Month",1),W==="month"&&re&&this.changePanelDate("right","FullYear",1),W==="year"&&re&&this.changePanelDate("right","FullYear",10),this.currentView==="time"&&this.$nextTick(function(){(0,n.default)(this,G),this.$refs.timePicker.$refs.timeSpinner.updateScroll(),this.$refs.timePicker.$refs.timeSpinnerEnd.updateScroll()}.bind(this))},selectionMode:function(W){this.currentView=W||"range"},focusedDate:function(W){this.setPanelDates(W||new Date)}},methods:{reset:function(){this.currentView=this.selectionMode,this.leftPickerTable=String(this.currentView)+"-table",this.rightPickerTable=String(this.currentView)+"-table"},setPanelDates:function(W){this.leftPanelDate=W;var G=new Date(W.getFullYear(),W.getMonth()+1,1),z=this.dates[1]?this.dates[1].getTime():this.dates[1];this.rightPanelDate=this.splitPanels?new Date(Math.max(z,G.getTime())):G},panelLabelConfig:function(W){var G=this,z=this.t("i.locale"),Z=this.t("i.datepicker.datePanelLabel"),re=function(F){(0,n.default)(this,G);var H=F=="month"?this.showMonthPicker:this.showYearPicker;return function(){return(0,n.default)(this,G),H(W)}.bind(this)}.bind(this),X=this[String(W)+"PanelDate"],N=(0,C.formatDateLabels)(z,Z,X),Y=N.labels,w=N.separator;return{separator:w,labels:Y.map(function(F){return(0,n.default)(this,G),F.handler=re(F.type),F}.bind(this))}},prevYear:function(W){var G=this.currentView==="year"?-10:-1;this.changePanelDate(W,"FullYear",G)},nextYear:function(W){var G=this.currentView==="year"?10:1;this.changePanelDate(W,"FullYear",G)},prevMonth:function(W){this.changePanelDate(W,"Month",-1)},nextMonth:function(W){this.changePanelDate(W,"Month",1)},changePanelDate:function(W,G,z){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,re=new Date(this[String(W)+"PanelDate"]);if(G==="FullYear"?re["set"+G](re["get"+G]()+z):re["set"+G](re["get"+G]()+z,1),this[String(W)+"PanelDate"]=re,!!Z)if(this.splitPanels){var X=W==="left"?"right":"left";W==="left"&&this.leftPanelDate>=this.rightPanelDate&&this.changePanelDate(X,G,1),W==="right"&&this.rightPanelDate<=this.leftPanelDate&&this.changePanelDate(X,G,-1)}else{var N=W==="left"?"right":"left",Y=this[N+"PanelDate"],w=new Date(Y);if(G==="Month"){var F=new Date(w.getFullYear(),w.getMonth()+z+1,0).getDate();w.setDate(Math.min(F,w.getDate()))}w["set"+String(G)](w["get"+String(G)]()+z),this[N+"PanelDate"]=w}},showYearPicker:function(W){this[String(W)+"PickerTable"]="year-table"},showMonthPicker:function(W){this[String(W)+"PickerTable"]="month-table"},handlePreSelection:function(W,G){this[String(W)+"PanelDate"]=G;var z=this[String(W)+"PickerTable"];if(z==="year-table"?this[String(W)+"PickerTable"]="month-table":this[String(W)+"PickerTable"]=String(this.currentView)+"-table",!this.splitPanels){var Z=W==="left"?"right":"left";this[Z+"PanelDate"]=G;var re=Z==="left"?-1:1;this.changePanelDate(Z,"Month",re,!1)}},handleRangePick:function(W,G){if(this.rangeState.selecting||this.currentView==="time"){if(this.currentView==="time")this.dates=W;else{var z=[this.rangeState.from,W].sort(V),Z=(0,e.default)(z,2),re=Z[0],X=Z[1];this.dates=[re,X],this.rangeState={from:re,to:X,selecting:!1}}this.handleConfirm(!1,G||"date")}else this.rangeState={from:W,to:null,selecting:!0}},handleChangeRange:function(W){this.rangeState.to=W}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(176),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(424);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=p(s),d=t(2),e=p(d),l=t(27),n=p(l),i=t(1),o=p(i),c=t(168),u=p(c),f=t(59),y=p(f),m=t(58),_=p(m),h=t(60),g=p(h),b=t(6),x=p(b),C=t(21);function p(R){return R&&R.__esModule?R:{default:R}}var S="ivu-picker-panel",P="ivu-time-picker",O=function(R){return(0,o.default)(void 0,void 0),R[0].toUpperCase()+R.slice(1)}.bind(void 0);r.default={name:"RangeTimePickerPanel",mixins:[g.default,x.default,_.default],components:{TimeSpinner:u.default,Confirm:y.default},props:{steps:{type:Array,default:function(){return(0,o.default)(void 0,void 0),[]}.bind(void 0)},format:{type:String,default:"HH:mm:ss"},value:{type:Array,required:!0}},data:function(){var T=this.value.slice(),B=(0,n.default)(T,2),j=B[0],q=B[1];return{prefixCls:S,timePrefixCls:P,showDate:!1,dateStart:j||(0,C.initTimeDate)(),dateEnd:q||(0,C.initTimeDate)()}},computed:{classes:function(){return[S+"-body-wrapper",P+"-with-range",(0,e.default)({},P+"-with-seconds",this.showSeconds)]},showSeconds:function(){return!!(this.format||"").match(/ss/)},leftDatePanelLabel:function(){return this.panelLabelConfig(this.date)},rightDatePanelLabel:function(){return this.panelLabelConfig(this.dateEnd)}},watch:{value:function(T){var B=T.slice(),j=(0,n.default)(B,2),q=j[0],U=j[1];this.dateStart=q||(0,C.initTimeDate)(),this.dateEnd=U||(0,C.initTimeDate)()}},methods:{panelLabelConfig:function(T){var B=this.t("i.locale"),j=this.t("i.datepicker.datePanelLabel"),q=(0,C.formatDateLabels)(B,j,T||(0,C.initTimeDate)()),U=q.labels,A=q.separator;return[U[0].label,A,U[1].label].join("")},handleChange:function(T,B){var j=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,U=new Date(this.dateStart),A=new Date(this.dateEnd);(0,a.default)(T).forEach(function(V){(0,o.default)(this,j),U["set"+String(O(V))](T[V])}.bind(this)),(0,a.default)(B).forEach(function(V){(0,o.default)(this,j),A["set"+String(O(V))](B[V])}.bind(this)),A-1&&this.handleMask()},handleMousemove:function(p){if(!(!this.canMove||!this.draggable)){this.handleSetWrapperWidth();var S=p.pageX-this.wrapperLeft,P=this.placement==="right"?this.wrapperWidth-S:S;P=Math.max(P,parseFloat(this.minWidth)),p.atMin=P===parseFloat(this.minWidth),P<=100&&(P=P/this.wrapperWidth*100),this.dragWidth=P,this.$emit("on-resize-width",parseInt(this.dragWidth))}},handleSetWrapperWidth:function(){var p=this.$el.getBoundingClientRect(),S=p.width,P=p.left;this.wrapperWidth=S,this.wrapperLeft=P},handleMouseup:function(){!this.draggable||(this.canMove=!1)},handleTriggerMousedown:function(){this.canMove=!0,window.getSelection().removeAllRanges()}},mounted:function(){this.visible&&(this.wrapShow=!0);var p=!0;this.$slots.header===void 0&&!this.title&&(p=!1),this.showHead=p,(0,g.on)(document,"mousemove",this.handleMousemove),(0,g.on)(document,"mouseup",this.handleMouseup),this.handleSetWrapperWidth()},beforeDestroy:function(){(0,g.off)(document,"mousemove",this.handleMousemove),(0,g.off)(document,"mouseup",this.handleMouseup),this.removeScrollEffect()},watch:{value:function(p){this.visible=p},visible:function(p){var S=this;p===!1?this.timer=setTimeout(function(){(0,a.default)(this,S),this.wrapShow=!1;var P=(0,c.findBrothersComponents)(this,"Drawer")||[],O=(0,c.findComponentsUpward)(this,"Drawer")||[],R=[].concat(P).concat(O),T=R.some(function(B){return(0,a.default)(this,S),B.visible&&!B.scrollable}.bind(this));T||this.removeScrollEffect()}.bind(this),300):(this.timer&&clearTimeout(this.timer),this.wrapShow=!0,this.scrollable||this.addScrollEffect()),this.broadcast("Table","on-visible-change",p),this.broadcast("Slider","on-visible-change",p),this.$emit("on-visible-change",p)},scrollable:function(p){p?this.removeScrollEffect():this.addScrollEffect()},title:function(p){this.$slots.header===void 0&&(this.showHead=!!p)},width:function(p){this.dragWidth=p},height:function(p){this.dragHeight=p}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=y(s),d=t(2),e=y(d),l=t(37),n=y(l),i=t(82),o=y(i),c=t(24),u=y(c),f=t(3);function y(_){return _&&_.__esModule?_:{default:_}}var m="ivu-dropdown";r.default={name:"Dropdown",directives:{clickOutside:o.default,TransferDom:u.default},components:{Drop:n.default},props:{trigger:{validator:function(h){return(0,f.oneOf)(h,["click","hover","custom","contextMenu"])},default:"hover"},placement:{validator:function(h){return(0,f.oneOf)(h,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},visible:{type:Boolean,default:!1},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},transferClassName:{type:String},stopPropagation:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},eventsEnabled:{type:Boolean,default:!1}},computed:{transition:function(){return["bottom-start","bottom","bottom-end"].indexOf(this.placement)>-1?"slide-up":"fade"},dropdownCls:function(){var h;return h={},(0,e.default)(h,m+"-transfer",this.transfer),(0,e.default)(h,this.transferClassName,this.transferClassName),h},relClasses:function(){return[m+"-rel",(0,e.default)({},m+"-rel-user-select-none",this.trigger==="contextMenu")]}},data:function(){return{prefixCls:m,currentVisible:this.visible}},watch:{visible:function(h){this.currentVisible=h},currentVisible:function(h){h?this.$refs.drop.update():this.$refs.drop.destroy(),this.$emit("on-visible-change",h)}},methods:{handleClick:function(){if(this.trigger==="custom"||this.trigger!=="click")return!1;var h=this.hasParent();h||(this.currentVisible=!this.currentVisible)},handleRightClick:function(){if(this.trigger==="custom"||this.trigger!=="contextMenu")return!1;this.currentVisible=!this.currentVisible},handleMouseenter:function(){var h=this;if(this.trigger==="custom"||this.trigger!=="hover")return!1;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,h),this.currentVisible=!0}.bind(this),250)},handleMouseleave:function(){var h=this;if(this.trigger==="custom"||this.trigger!=="hover")return!1;this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,h),this.currentVisible=!1}.bind(this),150))},onClickoutside:function(h){this.handleClose(),this.handleRightClose(),this.currentVisible&&this.$emit("on-clickoutside",h)},handleClose:function(){if(this.trigger==="custom"||this.trigger!=="click")return!1;this.currentVisible=!1},handleRightClose:function(){if(this.trigger==="custom"||this.trigger!=="contextMenu")return!1;this.currentVisible=!1},hasParent:function(){var h=(0,f.findComponentUpward)(this,"Dropdown");return h||!1}},mounted:function(){var h=this;this.$on("on-click",function(g){if((0,a.default)(this,h),!this.stopPropagation){var b=this.hasParent();b&&b.$emit("on-click",g)}}.bind(this)),this.$on("on-hover-click",function(){(0,a.default)(this,h);var g=this.hasParent();g?(this.$nextTick(function(){if((0,a.default)(this,h),this.trigger==="custom")return!1;this.currentVisible=!1}.bind(this)),g.$emit("on-hover-click")):this.$nextTick(function(){if((0,a.default)(this,h),this.trigger==="custom")return!1;this.currentVisible=!1}.bind(this))}.bind(this)),this.$on("on-haschild-click",function(){(0,a.default)(this,h),this.$nextTick(function(){if((0,a.default)(this,h),this.trigger==="custom")return!1;this.currentVisible=!0}.bind(this));var g=this.hasParent();g&&g.$emit("on-haschild-click")}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"DropdownMenu"}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-dropdown-item";r.default={name:"DropdownItem",props:{name:{type:[String,Number]},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},divided:{type:Boolean,default:!1}},computed:{classes:function(){var i;return[""+l,(i={},(0,a.default)(i,l+"-disabled",this.disabled),(0,a.default)(i,l+"-selected",this.selected),(0,a.default)(i,l+"-divided",this.divided),i)]}},methods:{handleClick:function(){if(!this.disabled){var i=(0,d.findComponentUpward)(this,"Dropdown"),o=this.$parent&&this.$parent.$options.name==="Dropdown";o?this.$parent.$emit("on-haschild-click"):i&&i.$options.name==="Dropdown"&&i.$emit("on-hover-click"),i.$emit("on-click",this.name)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(183),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(438);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-layout";r.default={name:"Footer",computed:{wrapClasses:function(){return s+"-footer"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(185),a=u(s),d=t(1),e=u(d),l=t(15),n=u(l),i=t(2),o=u(i),c=t(3);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-form";r.default={name:"iForm",props:{model:{type:Object},rules:{type:Object},labelWidth:{type:[Number,String]},labelPosition:{validator:function(m){return(0,c.oneOf)(m,["left","right","top"])},default:"right"},inline:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},autocomplete:{validator:function(m){return(0,c.oneOf)(m,["on","off"])},default:"off"},hideRequiredMark:{type:Boolean,default:!1},labelColon:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1}},provide:function(){return{FormInstance:this}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},computed:{classes:function(){var m;return[""+f,f+"-label-"+String(this.labelPosition),(m={},(0,o.default)(m,f+"-inline",this.inline),(0,o.default)(m,f+"-hide-required-mark",this.hideRequiredMark),m)]},colon:function(){var m="";return this.labelColon&&(m=typeof this.labelColon=="boolean"?":":this.labelColon),m},autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var m=Math.max.apply(Math,(0,n.default)(this.potentialLabelWidthArr));return m?String(m)+"px":""}},methods:{resetFields:function(){var m=this;this.fields.forEach(function(_){(0,e.default)(this,m),_.resetField()}.bind(this))},validate:function(m){var _=this;return new a.default(function(h){(0,e.default)(this,_);var g=!0,b=0;this.fields.length===0&&(h(g),typeof m=="function"&&m(g)),this.fields.forEach(function(x){(0,e.default)(this,_),x.validate("",function(C){(0,e.default)(this,_),C&&(g=!1),++b===this.fields.length&&(h(g),typeof m=="function"&&m(g))}.bind(this))}.bind(this))}.bind(this))},validateField:function(m,_){var h=this,g=this.fields.filter(function(b){return(0,e.default)(this,h),b.prop===m}.bind(this))[0];if(!g)throw new Error("[iView warn]: must call validateField with valid prop string!");g.validate("",_)},getLabelWidthIndex:function(m){return this.potentialLabelWidthArr.indexOf(m)},registerLabelWidth:function(m,_){if(m&&_){var h=this.getLabelWidthIndex(_);h>-1&&this.potentialLabelWidthArr.splice(h,1,m)}else m&&this.potentialLabelWidthArr.push(m)},deregisterLabelWidth:function(m){var _=this.getLabelWidthIndex(m);_>-1&&this.potentialLabelWidthArr.splice(_,1)}},watch:{rules:function(){this.validate()}},created:function(){var m=this;this.$on("on-form-item-add",function(_){return(0,e.default)(this,m),_&&this.fields.push(_),!1}.bind(this)),this.$on("on-form-item-remove",function(_){return(0,e.default)(this,m),_.prop&&this.fields.splice(this.fields.indexOf(_),1),!1}.bind(this))}}},function(v,r,t){v.exports={default:t(441),__esModule:!0}},function(v,r,t){var s=t(23),a=t(43),d=t(10)("species");v.exports=function(e,l){var n=s(e).constructor,i;return n===void 0||(i=s(n)[d])==null?l:a(i)}},function(v,r,t){var s=t(25),a=t(443),d=t(105),e=t(69),l=t(9),n=l.process,i=l.setImmediate,o=l.clearImmediate,c=l.MessageChannel,u=l.Dispatch,f=0,y={},m="onreadystatechange",_,h,g,b=function(){var C=+this;if(y.hasOwnProperty(C)){var p=y[C];delete y[C],p()}},x=function(C){b.call(C.data)};(!i||!o)&&(i=function(p){for(var S=[],P=1;arguments.length>P;)S.push(arguments[P++]);return y[++f]=function(){a(typeof p=="function"?p:Function(p),S)},_(f),f},o=function(p){delete y[p]},t(41)(n)=="process"?_=function(C){n.nextTick(s(b,C,1))}:u&&u.now?_=function(C){u.now(s(b,C,1))}:c?(h=new c,g=h.port2,h.port1.onmessage=x,_=s(g.postMessage,g,1)):l.addEventListener&&typeof postMessage=="function"&&!l.importScripts?(_=function(C){l.postMessage(C+"","*")},l.addEventListener("message",x,!1)):m in e("script")?_=function(C){d.appendChild(e("script"))[m]=function(){d.removeChild(this),b.call(C)}}:_=function(C){setTimeout(s(b,C,1),0)}),v.exports={set:i,clear:o}},function(v,r){v.exports=function(t){try{return{e:!1,v:t()}}catch(s){return{e:!0,v:s}}}},function(v,r,t){var s=t(23),a=t(19),d=t(89);v.exports=function(e,l){if(s(e),a(l)&&l.constructor===e)return l;var n=d.f(e),i=n.resolve;return i(l),n.promise}},function(v,r,t){var s=t(9),a=t(5),d=t(16),e=t(13),l=t(10)("species");v.exports=function(n){var i=typeof a[n]=="function"?a[n]:s[n];e&&i&&!i[l]&&d.f(i,l,{configurable:!0,get:function(){return this}})}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=f(s),d=t(2),e=f(d),l=t(450),n=f(l),i=t(4),o=f(i),c=t(452),u=f(c);function f(_){return _&&_.__esModule?_:{default:_}}var y="ivu-form-item";function m(_,h){var g=_;h=h.replace(/\[(\w+)\]/g,".$1"),h=h.replace(/^\./,"");for(var b=h.split("."),x=0,C=b.length;x1&&arguments[1]!==void 0?arguments[1]:function(){},x=this.getFilteredRule(h);if(!x||x.length===0)if(this.required)x=[{required:!0}];else return b(),!0;this.validateState="validating";var C={};C[this.prop]=x;var p=new n.default(C),S={};S[this.prop]=this.fieldValue,p.validate(S,{firstFields:!0},function(P){(0,a.default)(this,g),this.validateState=P?"error":"success",this.validateMessage=P?P[0].message:"",b(this.validateMessage),this.FormInstance&&this.FormInstance.$emit("on-validate",this.prop,!P,this.validateMessage||null)}.bind(this)),this.validateDisabled=!1},resetField:function(){this.validateState="",this.validateMessage="";var h=this.FormInstance.model,g=this.fieldValue,b=this.prop;b.indexOf(":")!==-1&&(b=b.replace(/:/,"."));var x=m(h,b);Array.isArray(g)&&this.initialValue!==null?(this.validateDisabled=!0,x.o[x.k]=[].concat(this.initialValue)):(this.validateDisabled=!0,x.o[x.k]=this.initialValue)},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){if(this.validateDisabled){this.validateDisabled=!1;return}this.validate("change")},updateComputedLabelWidth:function(h){this.computedLabelWidth=h?String(h)+"px":""}},mounted:function(){this.prop&&(this.dispatch("iForm","on-form-item-add",this),Object.defineProperty(this,"initialValue",{value:this.fieldValue}),this.setRules())},beforeDestroy:function(){this.dispatch("iForm","on-form-item-remove",this)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-form-item";r.default={name:"FormLabel",props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["FormInstance","FormItem"],render:function(){var d=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var l=this.FormInstance,n=l.autoLabelWidth,i=l.labelPosition,o={};if(n&&n!=="auto"){var c=parseInt(n,10)-this.computedWidth;c&&(i==="left"?o.marginRight=c+"px":o.marginLeft=c+"px")}var u=s+"-label-wrap";return d("div",{class:u,style:o},[e])}else return e[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var d=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(d))}else return 0},updateLabelWidth:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&(d==="update"?this.computedWidth=this.getLabelWidth():d==="remove"&&this.FormInstance.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(d,e){this.updateAll&&(this.FormInstance.registerLabelWidth(d,e),this.FormItem.updateComputedLabelWidth(d))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(194),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(455);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-layout";r.default={name:"Header",computed:{wrapClasses:function(){return s+"-header"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(196),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(458);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=u(s),d=t(2),e=u(d),l=t(3),n=t(4),i=u(n),o=t(11),c=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var f="ivu-input-number",y="ivu-icon";function m(_,h){var g=void 0,b=void 0,x=void 0;try{g=_.toString().split(".")[1].length}catch{g=0}try{b=h.toString().split(".")[1].length}catch{b=0}return x=Math.pow(10,Math.max(g,b)),(Math.round(_*x)+Math.round(h*x))/x}r.default={name:"InputNumber",mixins:[i.default,c.default],props:{max:{type:Number,default:1/0},min:{type:Number,default:-1/0},step:{type:Number,default:1},activeChange:{type:Boolean,default:!0},value:{type:Number,default:1},size:{validator:function(h){return(0,l.oneOf)(h,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},name:{type:String},precision:{type:Number},elementId:{type:String},formatter:{type:Function},parser:{type:Function},placeholder:{type:String,default:""},controlsOutside:{type:Boolean,default:!1}},data:function(){return{focused:!1,upDisabled:!1,downDisabled:!1,currentValue:this.value}},computed:{wrapClasses:function(){var h;return[""+f,(h={},(0,e.default)(h,f+"-"+String(this.size),!!this.size),(0,e.default)(h,f+"-disabled",this.itemDisabled),(0,e.default)(h,f+"-focused",this.focused),(0,e.default)(h,f+"-controls-outside",this.controlsOutside),h)]},handlerClasses:function(){return f+"-handler-wrap"},upClasses:function(){return[f+"-handler",f+"-handler-up",(0,e.default)({},f+"-handler-up-disabled",this.upDisabled)]},innerUpClasses:function(){return f+"-handler-up-inner "+y+" "+y+"-ios-arrow-up"},downClasses:function(){return[f+"-handler",f+"-handler-down",(0,e.default)({},f+"-handler-down-disabled",this.downDisabled)]},innerDownClasses:function(){return f+"-handler-down-inner "+y+" "+y+"-ios-arrow-down"},inputWrapClasses:function(){return f+"-input-wrap"},inputClasses:function(){return f+"-input"},precisionValue:function(){return this.currentValue?this.precision?this.currentValue.toFixed(this.precision):this.currentValue:this.currentValue},formatterValue:function(){return this.formatter&&this.precisionValue!==null?this.formatter(this.precisionValue):this.precisionValue}},methods:{preventDefault:function(h){h.preventDefault()},up:function(h){var g=Number(h.target.value);if(this.upDisabled&&isNaN(g))return!1;this.changeStep("up",h)},down:function(h){var g=Number(h.target.value);if(this.downDisabled&&isNaN(g))return!1;this.changeStep("down",h)},changeStep:function(h,g){if(this.itemDisabled||this.readonly)return!1;var b=Number(g.target.value),x=Number(this.currentValue),C=Number(this.step);if(isNaN(x))return!1;if(!isNaN(b)){if(h==="up")if(m(b,C)<=this.max)x=b;else return!1;else if(h==="down")if(m(b,-C)>=this.min)x=b;else return!1}h==="up"?x=m(x,C):h==="down"&&(x=m(x,-C)),this.setValue(x)},setValue:function(h){var g=this;h&&!isNaN(this.precision)&&(h=Number(Number(h).toFixed(this.precision)));var b=this.min,x=this.max;h!==null&&(h>x?h=x:hthis.max,this.downDisabled=h-g0?(this.showTopLoader=!0,this.topRubberPadding=20):function(){P.showBottomLoader=!0,P.bottomRubberPadding=20;for(var T=0,B=P.$refs.scrollContainer,j=B.scrollTop,q=0;q<20;q++)setTimeout(function(){(0,o.default)(this,P),T=Math.max(T,this.$refs.bottomLoader.getBoundingClientRect().height),B.scrollTop=j+T}.bind(P),q*50)}();var O=[this.waitOneSecond(),this.onReachEdge?this.onReachEdge(S):C()];O.push(S>0?this.onReachTop?this.onReachTop():C():this.onReachBottom?this.onReachBottom():C());var R=setTimeout(function(){(0,o.default)(this,P),this.reset()}.bind(this),5e3);n.default.all(O).then(function(){(0,o.default)(this,P),clearTimeout(R),this.reset()}.bind(this))},reset:function(){var S=this;["showTopLoader","showBottomLoader","showBodyLoader","isLoading","reachedTopScrollLimit","reachedBottomScrollLimit"].forEach(function(P){return(0,o.default)(this,S),this[P]=!1}.bind(this)),this.lastScroll=0,this.topRubberPadding=0,this.bottomRubberPadding=0,clearInterval(this.rubberRollBackTimeout),this.touchScroll&&setTimeout(function(){(0,o.default)(this,S),(0,m.off)(window,"touchend",this.pointerUpHandler),this.$refs.scrollContainer.removeEventListener("touchmove",this.pointerMoveHandler),this.touchScroll=!1}.bind(this),500)},onWheel:function(S){if(!this.isLoading){var P=S.wheelDelta?S.wheelDelta:-(S.detail||S.deltaY);this.stretchEdge(P)}},stretchEdge:function(S){var P=this;if(clearTimeout(this.rubberRollBackTimeout),!this.onReachEdge){if(S>0){if(!this.onReachTop)return}else if(!this.onReachBottom)return}this.rubberRollBackTimeout=setTimeout(function(){(0,o.default)(this,P),this.isLoading||this.reset()}.bind(this),250),S>0&&this.reachedTopScrollLimit?(this.topRubberPadding+=5-this.topRubberPadding/5,this.topRubberPadding>this.topProximityThreshold&&this.onCallback(1)):S<0&&this.reachedBottomScrollLimit?(this.bottomRubberPadding+=6-this.bottomRubberPadding/4,this.bottomRubberPadding>this.bottomProximityThreshold&&this.onCallback(-1)):this.onScroll()},onScroll:function(){var S=this.$refs.scrollContainer;if(!(this.isLoading||!S)){var P=(0,a.default)(this.lastScroll-S.scrollTop),O=S.scrollHeight-S.clientHeight-S.scrollTop,R=this.topProximityThreshold<0?this.topProximityThreshold:0,T=this.bottomProximityThreshold<0?this.bottomProximityThreshold:0;P==-1&&O+T<=x.sensitivity?this.reachedBottomScrollLimit=!0:P>=0&&S.scrollTop+R<=0?this.reachedTopScrollLimit=!0:(this.reachedTopScrollLimit=!1,this.reachedBottomScrollLimit=!1,this.lastScroll=S.scrollTop)}},getTouchCoordinates:function(S){return{x:S.touches[0].pageX,y:S.touches[0].pageY}},onPointerDown:function(S){var P=this;if(!this.isLoading){if(S.type=="touchstart"){var O=this.$refs.scrollContainer;this.reachedTopScrollLimit?O.scrollTop=5:this.reachedBottomScrollLimit&&(O.scrollTop-=5)}S.type=="touchstart"&&this.$refs.scrollContainer.scrollTop==0&&(this.$refs.scrollContainer.scrollTop=5),this.pointerTouchDown=this.getTouchCoordinates(S),(0,m.on)(window,"touchend",this.pointerUpHandler),this.$refs.scrollContainer.parentElement.addEventListener("touchmove",function(R){(0,o.default)(this,P),R.stopPropagation(),this.pointerMoveHandler(R)}.bind(this),{passive:!1,useCapture:!0})}},onPointerMove:function(S){if(!!this.pointerTouchDown&&!this.isLoading){var P=this.getTouchCoordinates(S),O=P.y-this.pointerTouchDown.y;if(this.stretchEdge(O),!this.touchScroll){var R=Math.abs(O)>x.minimumStartDragOffset;R&&(this.touchScroll=!0)}}},onPointerUp:function(){this.pointerTouchDown=null}},created:function(){this.handleScroll=(0,u.default)(this.onScroll,150,{leading:!1}),this.pointerUpHandler=this.onPointerUp.bind(this),this.pointerMoveHandler=(0,u.default)(this.onPointerMove,50,{leading:!1})}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(91),e=i(d),l=t(8),n=i(l);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-scroll";r.default={props:["text","active","spinnerHeight"],components:{Spin:e.default,Icon:n.default},computed:{wrapperClasses:function(){return[o+"-loader-wrapper",(0,a.default)({},o+"-loader-wrapper-active",this.active)]},spinnerClasses:function(){return o+"-spinner"},iconClasses:function(){return o+"-spinner-icon"},textClasses:function(){return o+"-loader-text"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(3),e=t(87),l=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var i="ivu-spin";r.default={name:"Spin",mixins:[l.default],props:{size:{validator:function(c){return(0,d.oneOf)(c,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},fix:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},data:function(){return{showText:!1,visible:!1}},computed:{classes:function(){var c;return[""+i,(c={},(0,a.default)(c,i+"-"+String(this.size),!!this.size),(0,a.default)(c,i+"-fix",this.fix),(0,a.default)(c,i+"-show-text",this.showText),(0,a.default)(c,i+"-fullscreen",this.fullscreen),c)]},mainClasses:function(){return i+"-main"},dotClasses:function(){return i+"-dot"},textClasses:function(){return i+"-text"},fullscreenVisible:function(){return this.fullscreen?this.visible:!0}},watch:{visible:function(c){c?this.addScrollEffect():this.removeScrollEffect()}},mounted:function(){this.showText=this.$slots.default!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=c(s),d=t(2),e=c(d),l=t(3),n=t(12),i=t(472),o=c(i);function c(u){return u&&u.__esModule?u:{default:u}}r.default={name:"Split",components:{Trigger:o.default},props:{value:{type:[Number,String],default:.5},mode:{validator:function(f){return(0,l.oneOf)(f,["horizontal","vertical"])},default:"horizontal"},min:{type:[Number,String],default:"40px"},max:{type:[Number,String],default:"40px"}},data:function(){return{prefix:"ivu-split",offset:0,oldOffset:0,isMoving:!1,computedMin:0,computedMax:0,currentValue:.5}},computed:{wrapperClasses:function(){return[String(this.prefix)+"-wrapper",this.isMoving?"no-select":""]},paneClasses:function(){return[String(this.prefix)+"-pane",(0,e.default)({},String(this.prefix)+"-pane-moving",this.isMoving)]},isHorizontal:function(){return this.mode==="horizontal"},anotherOffset:function(){return 100-this.offset},valueIsPx:function(){return typeof this.value=="string"},offsetSize:function(){return this.isHorizontal?"offsetWidth":"offsetHeight"}},methods:{px2percent:function(f,y){return parseFloat(f)/parseFloat(y)},getComputedThresholdValue:function(f){var y=this.$refs.outerWrapper[this.offsetSize];return this.valueIsPx?typeof this[f]=="string"?this[f]:y*this[f]:typeof this[f]=="string"?this.px2percent(this[f],y):this[f]},getMin:function(f,y){return this.valueIsPx?String(Math.min(parseFloat(f),parseFloat(y)))+"px":Math.min(f,y)},getMax:function(f,y){return this.valueIsPx?String(Math.max(parseFloat(f),parseFloat(y)))+"px":Math.max(f,y)},getAnotherOffset:function(f){var y=0;return this.valueIsPx?y=this.$refs.outerWrapper[this.offsetSize]-parseFloat(f)+"px":y=1-f,y},handleMove:function(f){var y=this.isHorizontal?f.pageX:f.pageY,m=y-this.initOffset,_=this.$refs.outerWrapper[this.offsetSize],h=this.valueIsPx?String(parseFloat(this.oldOffset)+m)+"px":this.px2percent(_*this.oldOffset+m,_),g=this.getAnotherOffset(h);parseFloat(h)<=parseFloat(this.computedMin)&&(h=this.getMax(h,this.computedMin)),parseFloat(g)<=parseFloat(this.computedMax)&&(h=this.getAnotherOffset(this.getMax(g,this.computedMax))),f.atMin=this.value===this.computedMin,f.atMax=this.valueIsPx?this.getAnotherOffset(this.value)===this.computedMax:this.getAnotherOffset(this.value).toFixed(5)===this.computedMax.toFixed(5),this.$emit("input",h),this.$emit("on-moving",f)},handleUp:function(){this.isMoving=!1,(0,n.off)(document,"mousemove",this.handleMove),(0,n.off)(document,"mouseup",this.handleUp),this.$emit("on-move-end")},handleMousedown:function(f){this.initOffset=this.isHorizontal?f.pageX:f.pageY,this.oldOffset=this.value,this.isMoving=!0,(0,n.on)(document,"mousemove",this.handleMove),(0,n.on)(document,"mouseup",this.handleUp),this.$emit("on-move-start")},computeOffset:function(){var f=this;this.$nextTick(function(){(0,a.default)(this,f),this.computedMin=this.getComputedThresholdValue("min"),this.computedMax=this.getComputedThresholdValue("max"),this.offset=(this.valueIsPx?this.px2percent(this.value,this.$refs.outerWrapper[this.offsetSize]):this.value)*1e4/100}.bind(this))}},watch:{value:function(f){f!==this.currentValue&&(this.currentValue=f,this.computeOffset())}},mounted:function(){var f=this;this.$nextTick(function(){(0,a.default)(this,f),this.computeOffset()}.bind(this)),(0,n.on)(window,"resize",this.computeOffset)},beforeDestroy:function(){(0,n.off)(window,"resize",this.computeOffset)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"Trigger",props:{mode:String},data:function(){return{prefix:"ivu-split-trigger",initOffset:0}},computed:{isVertical:function(){return this.mode==="vertical"},classes:function(){return[this.prefix,this.isVertical?String(this.prefix)+"-vertical":String(this.prefix)+"-horizontal"]},barConClasses:function(){return[String(this.prefix)+"-bar-con",this.isVertical?"vertical":"horizontal"]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(2),e=l(d);function l(i){return i&&i.__esModule?i:{default:i}}var n="ivu-layout";r.default={name:"Layout",data:function(){return{hasSider:!1}},computed:{wrapClasses:function(){return[""+n,(0,e.default)({},n+"-has-sider",this.hasSider)]}},methods:{findSider:function(){var o=this;return this.$children.some(function(c){return(0,a.default)(this,o),c.$options.name==="Sider"}.bind(this))}},mounted:function(){this.hasSider=this.findSider()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(204),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(478);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(12),a=t(3),d="ivu-layout-sider";(0,a.setMatchMedia)(),r.default={name:"Sider",props:{value:{type:Boolean,default:!1},width:{type:[Number,String],default:200},collapsedWidth:{type:[Number,String],default:64},hideTrigger:{type:Boolean,default:!1},breakpoint:{type:String,validator:function(l){return(0,a.oneOf)(l,["xs","sm","md","lg","xl","xxl"])}},collapsible:{type:Boolean,default:!1},defaultCollapsed:{type:Boolean,default:!1},reverseArrow:{type:Boolean,default:!1}},data:function(){return{prefixCls:d,mediaMatched:!1}},computed:{wrapClasses:function(){return[""+d,this.siderWidth?"":d+"-zero-width",this.value?d+"-collapsed":""]},wrapStyles:function(){return{width:String(this.siderWidth)+"px",minWidth:String(this.siderWidth)+"px",maxWidth:String(this.siderWidth)+"px",flex:"0 0 "+String(this.siderWidth)+"px"}},triggerClasses:function(){return[d+"-trigger",this.value?d+"-trigger-collapsed":""]},childClasses:function(){return String(this.prefixCls)+"-children"},zeroWidthTriggerClasses:function(){return[d+"-zero-width-trigger",this.reverseArrow?d+"-zero-width-trigger-left":""]},triggerIconClasses:function(){return["ivu-icon","ivu-icon-ios-arrow-"+(this.reverseArrow?"forward":"back"),d+"-trigger-icon"]},siderWidth:function(){return this.collapsible?this.value?this.mediaMatched?0:parseInt(this.collapsedWidth):parseInt(this.width):this.width},showZeroTrigger:function(){return this.collapsible?this.mediaMatched&&!this.hideTrigger||parseInt(this.collapsedWidth)===0&&this.value&&!this.hideTrigger:!1},showBottomTrigger:function(){return this.collapsible?!this.mediaMatched&&!this.hideTrigger:!1}},methods:{toggleCollapse:function(){var l=this.collapsible?!this.value:!1;this.$emit("input",l)},matchMedia:function(){var l=void 0;window.matchMedia&&(l=window.matchMedia);var n=this.mediaMatched;this.mediaMatched=l("(max-width: "+String(a.dimensionMap[this.breakpoint])+")").matches,this.mediaMatched!==n&&this.$emit("input",this.mediaMatched)},onWindowResize:function(){this.matchMedia()}},watch:{value:function(l){this.$emit("on-collapse",l)}},mounted:function(){this.defaultCollapsed&&this.$emit("input",this.defaultCollapsed),this.breakpoint!==void 0&&((0,s.on)(window,"resize",this.onWindowResize),this.matchMedia())},beforeDestroy:function(){this.breakpoint!==void 0&&(0,s.off)(window,"resize",this.onWindowResize)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-list";r.default={name:"List",provide:function(){return{ListInstance:this}},props:{border:{type:Boolean,default:!1},itemLayout:{validator:function(i){return(0,d.oneOf)(i,["horizontal","vertical"])},default:"horizontal"},header:{type:String,default:""},footer:{type:String,default:""},loading:{type:Boolean,default:!1},size:{validator:function(i){return(0,d.oneOf)(i,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},split:{type:Boolean,default:!0}},data:function(){return{}},computed:{classes:function(){var i;return[""+l,l+"-"+String(this.size),l+"-"+String(this.itemLayout),(i={},(0,a.default)(i,l+"-bordered",this.border),(0,a.default)(i,l+"-split",this.split),i)]}},methods:{}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"ListItem",inject:["ListInstance"],props:{},computed:{itemLayout:function(){return this.ListInstance.itemLayout},isItemContainsTextNode:function(){var l=this,n=void 0;return this.$slots.default.forEach(function(i){(0,a.default)(this,l),typeof i=="string"&&(n=!0)}.bind(this)),n},isFlexMode:function(){var l=this.$slots.extra;return this.itemLayout==="vertical"?!!l:!this.isItemContainsTextNode},classes:function(){return[{"ivu-list-item-no-flex":!this.isFlexMode}]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(125),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"ListItemMeta",components:{Avatar:a.default},props:{avatar:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-loading-bar";r.default={name:"LoadingBar",props:{color:{type:String,default:"primary"},failedColor:{type:String,default:"error"},height:{type:Number,default:2}},data:function(){return{percent:0,status:"success",show:!1}},computed:{classes:function(){return""+e},innerClasses:function(){var n;return[e+"-inner",(n={},(0,a.default)(n,e+"-inner-color-primary",this.color==="primary"&&this.status==="success"),(0,a.default)(n,e+"-inner-failed-color-error",this.failedColor==="error"&&this.status==="error"),n)]},outerStyles:function(){return{height:String(this.height)+"px"}},styles:function(){var n={width:String(this.percent)+"%",height:String(this.height)+"px"};return this.color!=="primary"&&this.status==="success"&&(n.backgroundColor=this.color),this.failedColor!=="error"&&this.status==="error"&&(n.backgroundColor=this.failedColor),n}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=u(s),d=t(15),e=u(d),l=t(2),n=u(l),i=t(3),o=t(4),c=u(o);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-menu";r.default={name:"Menu",mixins:[c.default],props:{mode:{validator:function(m){return(0,i.oneOf)(m,["horizontal","vertical"])},default:"vertical"},theme:{validator:function(m){return(0,i.oneOf)(m,["light","dark","primary"])},default:"light"},activeName:{type:[String,Number]},openNames:{type:Array,default:function(){return[]}},accordion:{type:Boolean,default:!1},width:{type:String,default:"240px"}},data:function(){return{currentActiveName:this.activeName,openedNames:[]}},computed:{classes:function(){var m=this.theme;return this.mode==="vertical"&&this.theme==="primary"&&(m="light"),[""+f,f+"-"+String(m),(0,n.default)({},f+"-"+String(this.mode),this.mode)]},styles:function(){var m={};return this.mode==="vertical"&&(m.width=this.width),m}},methods:{updateActiveName:function(){this.currentActiveName===void 0&&(this.currentActiveName=-1),this.broadcast("Submenu","on-update-active-name",!1),this.broadcast("MenuItem","on-update-active-name",this.currentActiveName)},updateOpenKeys:function(m){var _=this,h=[].concat((0,e.default)(this.openedNames)),g=h.indexOf(m);if(this.accordion&&(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!1}.bind(this)),g>=0){var b=null;(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.name===m&&(b=p,p.opened=!1)}.bind(this)),(0,i.findComponentsUpward)(b,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!0}.bind(this)),(0,i.findComponentsDownward)(b,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!1}.bind(this))}else if(this.accordion){var x=null;(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.name===m&&(x=p,p.opened=!0)}.bind(this)),(0,i.findComponentsUpward)(x,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!0}.bind(this))}else(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.name===m&&(p.opened=!0)}.bind(this));var C=(0,i.findComponentsDownward)(this,"Submenu").filter(function(p){return(0,a.default)(this,_),p.opened}.bind(this)).map(function(p){return(0,a.default)(this,_),p.name}.bind(this));this.openedNames=[].concat((0,e.default)(C)),this.$emit("on-open-change",C)},updateOpened:function(){var m=this,_=(0,i.findComponentsDownward)(this,"Submenu");_.length&&_.forEach(function(h){(0,a.default)(this,m),this.openedNames.indexOf(h.name)>-1?h.opened=!0:h.opened=!1}.bind(this))},handleEmitSelectEvent:function(m){this.$emit("on-select",m)}},mounted:function(){var m=this;this.openedNames=[].concat((0,e.default)(this.openNames)),this.updateOpened(),this.$nextTick(function(){return(0,a.default)(this,m),this.updateActiveName()}.bind(this)),this.$on("on-menu-item-select",function(_){(0,a.default)(this,m),this.currentActiveName=_,this.$emit("on-select",_)}.bind(this))},watch:{openNames:function(m){this.openedNames=m},activeName:function(m){this.currentActiveName=m},currentActiveName:function(){this.updateActiveName()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(92),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-menu";r.default={name:"MenuGroup",mixins:[a.default],props:{title:{type:String,default:""}},data:function(){return{prefixCls:e}},computed:{groupStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*28+"px"}:{}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=y(s),d=t(2),e=y(d),l=t(4),n=y(l),i=t(3),o=t(92),c=y(o),u=t(48),f=y(u);function y(_){return _&&_.__esModule?_:{default:_}}var m="ivu-menu";r.default={name:"MenuItem",mixins:[n.default,c.default,f.default],props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{active:!1}},computed:{classes:function(){var h;return[m+"-item",(h={},(0,e.default)(h,m+"-item-active",this.active),(0,e.default)(h,m+"-item-selected",this.active),(0,e.default)(h,m+"-item-disabled",this.disabled),h)]},itemStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*24+"px"}:{}}},methods:{handleClickItem:function(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.disabled)if(g||this.target==="_blank"){this.handleCheckClick(h,g);var b=(0,i.findComponentUpward)(this,"Menu");b&&b.handleEmitSelectEvent(this.name)}else{var x=(0,i.findComponentUpward)(this,"Submenu");x?this.dispatch("Submenu","on-menu-item-select",this.name):this.dispatch("Menu","on-menu-item-select",this.name),this.handleCheckClick(h,g)}}},mounted:function(){var h=this;this.$on("on-update-active-name",function(g){(0,a.default)(this,h),this.name===g?(this.active=!0,this.dispatch("Submenu","on-update-active-name",g)):this.active=!1}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=g(s),d=t(2),e=g(d),l=t(37),n=g(l),i=t(8),o=g(i),c=t(83),u=g(c),f=t(3),y=t(4),m=g(y),_=t(92),h=g(_);function g(x){return x&&x.__esModule?x:{default:x}}var b="ivu-menu";r.default={name:"Submenu",mixins:[m.default,h.default],components:{Icon:o.default,Drop:n.default,CollapseTransition:u.default},props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:b,active:!1,opened:!1,dropWidth:parseFloat((0,f.getStyle)(this.$el,"width"))}},computed:{classes:function(){var C;return[b+"-submenu",(C={},(0,e.default)(C,b+"-item-active",this.active&&!this.hasParentSubmenu),(0,e.default)(C,b+"-opened",this.opened),(0,e.default)(C,b+"-submenu-disabled",this.disabled),(0,e.default)(C,b+"-submenu-has-parent-submenu",this.hasParentSubmenu),(0,e.default)(C,b+"-child-item-active",this.active),C)]},accordion:function(){return this.menu.accordion},dropStyle:function(){var C={};return this.dropWidth&&(C.minWidth=String(this.dropWidth)+"px"),C},titleStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*24+"px"}:{}},arrowType:function(){var C="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.menu.customArrow?C="":this.$IVIEW.menu.arrow&&(C=this.$IVIEW.menu.arrow)),C},customArrowType:function(){var C="";return this.$IVIEW&&this.$IVIEW.menu.customArrow&&(C=this.$IVIEW.menu.customArrow),C},arrowSize:function(){var C="";return this.$IVIEW&&this.$IVIEW.menu.arrowSize&&(C=this.$IVIEW.menu.arrowSize),C}},methods:{handleMouseenter:function(){var C=this;this.disabled||this.mode!=="vertical"&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,C),this.menu.updateOpenKeys(this.name),this.opened=!0}.bind(this),250))},handleMouseleave:function(){var C=this;this.disabled||this.mode!=="vertical"&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,C),this.menu.updateOpenKeys(this.name),this.opened=!1}.bind(this),150))},handleClick:function(){var C=this;if(!this.disabled&&this.mode!=="horizontal"){var p=this.opened;this.accordion&&this.$parent.$children.forEach(function(S){(0,a.default)(this,C),S.$options.name==="Submenu"&&(S.opened=!1)}.bind(this)),this.opened=!p,this.menu.updateOpenKeys(this.name)}}},watch:{mode:function(C){C==="horizontal"&&this.$refs.drop.update()},opened:function(C){this.mode!=="vertical"&&(C?(this.dropWidth=parseFloat((0,f.getStyle)(this.$el,"width")),this.$refs.drop.update()):this.$refs.drop.destroy())}},mounted:function(){var C=this;this.$on("on-menu-item-select",function(p){return(0,a.default)(this,C),this.mode==="horizontal"&&(this.opened=!1),this.dispatch("Menu","on-menu-item-select",p),!0}.bind(this)),this.$on("on-update-active-name",function(p){(0,a.default)(this,C),(0,f.findComponentUpward)(this,"Submenu")&&this.dispatch("Submenu","on-update-active-name",p),(0,f.findComponentsDownward)(this,"Submenu")&&(0,f.findComponentsDownward)(this,"Submenu").forEach(function(S){(0,a.default)(this,C),S.active=!1}.bind(this)),this.active=p}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(500),e=i(d),l=t(17),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}e.default.newInstance=function(o){(0,a.default)(void 0,void 0);var c=o||{},u=new n.default({render:function(_){return _(e.default,{props:c})}}),f=u.$mount();document.body.appendChild(f.$el);var y=u.$children[0];return{notice:function(_){y.add(_)},remove:function(_){y.close(_)},component:y,destroy:function(_){y.closeAll(),setTimeout(function(){document.body.removeChild(document.getElementsByClassName(_)[0])},500)}}}.bind(void 0),r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=o(s),d=t(2),e=o(d),l=t(501),n=o(l),i=t(33);function o(m){return m&&m.__esModule?m:{default:m}}var c="ivu-notification",u=0,f=Date.now();function y(){return"ivuNotification_"+f+"_"+u++}r.default={components:{Notice:n.default},props:{prefixCls:{type:String,default:c},styles:{type:Object,default:function(){return{top:"65px",left:"50%"}}},content:{type:String},className:{type:String},followScrollY:{type:Boolean,default:!0}},data:function(){return{notices:[],tIndex:this.handleGetIndex(),localScrollY:0}},mounted:function(){this.followScrollY&&window.addEventListener("scroll",this.windowScrollListener)},beforeDestroy:function(){this.followScrollY&&window.removeEventListener("scroll",this.windowScrollListener)},computed:{classes:function(){return[""+String(this.prefixCls),(0,e.default)({},""+String(this.className),!!this.className)]},wrapStyles:function(){var _=(0,a.default)({},this.styles);return _["z-index"]=(0,i.hasTransferIndex)(this.tIndex,1010+this.tIndex),this.followScrollY&&(_["margin-top"]=Math.max(0,this.localScrollY)+"px"),_}},methods:{add:function(_){var h=_.name||y(),g=(0,a.default)({styles:{right:"50%"},content:"",duration:1.5,closable:!1,name:h},_);this.notices.push(g),this.tIndex=this.handleGetIndex()},close:function(_){for(var h=this.notices,g=0;g-1&&this.handleMask()},handleMousedown:function(){this.isMouseTriggerIn=!0},shake:function(){var B=this;this.contentShake=!0,setTimeout(function(){(0,a.default)(this,B),this.contentShake=!1}.bind(this),500)},cancel:function(){this.close()},ok:function(){this.loading?this.buttonLoading=!0:(this.visible=!1,this.$emit("input",!1)),this.$emit("on-ok")},EscClose:function(B){var j=this;if(!this.CheckEnterOk(B)){if(this.$IVIEW.modal.checkEscClose===!0){this.EscCheckClose(B);return}if(this.visible&&this.closable&&B.keyCode===27){var q=(0,p.findComponentsDownward)(this.$root,"Modal").filter(function(A){return(0,a.default)(this,j),A.$data.visible&&A.$props.closable}.bind(this)),U=q.sort(function(A,V){return(0,a.default)(this,j),A.$data.modalIndex-this.stickyDistance&&q.x>0?this.dragData.x=U-this.dragData.rect.width:this.dragData.x+=q.x,this.dragData.y+q.y<=this.stickyDistance&&q.y<0?this.dragData.y=0:this.dragData.y+this.dragData.rect.height-A>-this.stickyDistance&&q.y>0?this.dragData.y=A-this.dragData.rect.height:this.dragData.y+=q.y}else this.dragData.x+=q.x,this.dragData.y+=q.y;this.dragData.dragX=j.x,this.dragData.dragY=j.y},handleMoveEnd:function(){this.dragData.dragging=!1,(0,C.off)(window,"mousemove",this.handleMoveMove),(0,C.off)(window,"mouseup",this.handleMoveEnd)},handleGetModalIndex:function(){return(0,S.transferIncrease)(),(0,S.getTransferIndex)()},handleClickModal:function(){this.draggable&&this.handleMoveTop()},handleMoveTop:function(){if(S.lastVisibleIndex!==this.lastVisibleIndex){this.lastVisibleIndex=S.lastVisibleIndex;return}this.modalIndex=this.handleGetModalIndex()}},mounted:function(){this.visible&&(this.wrapShow=!0);var B=!0;this.$slots.header===void 0&&!this.title&&(B=!1),this.showHead=B,document.addEventListener("keydown",this.EscClose)},beforeDestroy:function(){document.removeEventListener("keydown",this.EscClose),this.removeScrollEffect()},watch:{value:function(B){this.visible=B},visible:function(B){var j=this;if(this._uid){var q=S.modalVisibleAggregate.findIndex(function(U){var A=U._uid;return(0,a.default)(this,j),A===this._uid}.bind(this));B&&q===-1&&S.modalVisibleAggregate.push({_uid:this._uid,$data:this.$data,$props:this.$props,ok:this.ok,cancel:this.cancel,shake:this.shake}),!B&&q>-1&&S.modalVisibleAggregate.splice(q,1)}B===!1?(this.buttonLoading=!1,this.timer=setTimeout(function(){(0,a.default)(this,j),this.wrapShow=!1,this.removeScrollEffect()}.bind(this),300)):(this.lastVisible!==B&&(this.modalIndex=this.handleGetModalIndex(),(0,S.lastVisibleIncrease)()),this.timer&&clearTimeout(this.timer),this.wrapShow=!0,this.scrollable||this.addScrollEffect()),this.broadcast("Table","on-visible-change",B),this.broadcast("Slider","on-visible-change",B),this.$emit("on-visible-change",B),this.lastVisible=B,this.lastVisibleIndex=S.lastVisibleIndex,B&&this.resetDragPosition&&(this.dragData=(0,p.deepCopy)(R))},loading:function(B){B||(this.buttonLoading=!1)},scrollable:function(B){B?this.removeScrollEffect():this.addScrollEffect()},title:function(B){this.$slots.header===void 0&&(this.showHead=!!B)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=o(s),d=t(3),e=t(511),l=o(e),n=t(6),i=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-page";r.default={name:"Page",mixins:[i.default],components:{Options:l.default},props:{current:{type:Number,default:1},total:{type:Number,default:0},pageSize:{type:Number,default:10},pageSizeOpts:{type:Array,default:function(){return[10,20,30,40]}},placement:{validator:function(f){return(0,d.oneOf)(f,["top","bottom"])},default:"bottom"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},size:{validator:function(f){return(0,d.oneOf)(f,["small","default"])}},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showElevator:{type:Boolean,default:!1},showSizer:{type:Boolean,default:!1},className:{type:String},styles:{type:Object},prevText:{type:String,default:""},nextText:{type:String,default:""},disabled:{type:Boolean,default:!1},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:c,currentPage:this.current,currentPageSize:this.pageSize}},watch:{total:function(f){var y=Math.ceil(f/this.currentPageSize);y=this.allPages)return!1;this.changePage(f+1),this.$emit("on-next",f+1)}},fastPrev:function(){if(!this.disabled){var f=this.currentPage-5;f>0?this.changePage(f):this.changePage(1)}},fastNext:function(){if(!this.disabled){var f=this.currentPage+5;f>this.allPages?this.changePage(this.allPages):this.changePage(f)}},onSize:function(f){this.disabled||(this.currentPageSize=f,this.$emit("on-page-size-change",f),this.changePage(1))},onPage:function(f){this.disabled||this.changePage(f)},keyDown:function(f){var y=f.keyCode,m=y>=48&&y<=57||y>=96&&y<=105||y===8||y===37||y===39;m||f.preventDefault()},keyUp:function(f){var y=f.keyCode,m=parseInt(f.target.value);if(y===38)this.prev();else if(y===40)this.next();else if(y===13){var _=1;m>this.allPages?_=this.allPages:m<=0||!m?_=1:_=m,f.target.value=_,this.changePage(_)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(74),a=i(s),d=t(81),e=i(d),l=t(6),n=i(l);function i(u){return u&&u.__esModule?u:{default:u}}var o="ivu-page";function c(u){return/^[1-9][0-9]*$/.test(u+"")}r.default={name:"PageOption",mixins:[n.default],components:{iSelect:a.default,iOption:e.default},props:{pageSizeOpts:Array,showSizer:Boolean,showElevator:Boolean,current:Number,_current:Number,pageSize:Number,allPages:Number,isSmall:Boolean,placement:String,transfer:Boolean,disabled:Boolean,eventsEnabled:Boolean},data:function(){return{currentPageSize:this.pageSize}},watch:{pageSize:function(f){this.currentPageSize=f}},computed:{size:function(){return this.isSmall?"small":"default"},optsClasses:function(){return[o+"-options"]},sizerClasses:function(){return[o+"-options-sizer"]},ElevatorClasses:function(){return[o+"-options-elevator"]}},methods:{changeSize:function(){this.$emit("on-size",this.currentPageSize)},changePage:function(f){var y=f.target.value.trim(),m=0;if(c(y)){if(y=Number(y),y!=this.current){var _=this.allPages;y>_?m=_:m=y}}else m=1;m&&(this.$emit("on-page",m),f.target.value=m)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(221),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(515);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=b(s),d=t(2),e=b(d),l=t(222),n=b(l),i=t(28),o=b(i),c=t(82),u=b(c),f=t(24),y=b(f),m=t(3),_=t(33),h=t(6),g=b(h);function b(C){return C&&C.__esModule?C:{default:C}}var x="ivu-poptip";r.default={name:"Poptip",mixins:[n.default,g.default],directives:{clickOutside:u.default,TransferDom:y.default},components:{iButton:o.default},props:{trigger:{validator:function(p){return(0,m.oneOf)(p,["click","focus","hover"])},default:"click"},placement:{validator:function(p){return(0,m.oneOf)(p,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"top"},title:{type:[String,Number]},content:{type:[String,Number],default:""},width:{type:[String,Number]},confirm:{type:Boolean,default:!1},okText:{type:String},cancelText:{type:String},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},popperClass:{type:String},wordWrap:{type:Boolean,default:!1},padding:{type:String},disabled:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!1}},transferClassName:{type:String}},data:function(){return{prefixCls:x,showTitle:!0,isInput:!1,disableCloseUnderTransfer:!1,tIndex:this.handleGetIndex()}},computed:{classes:function(){return[""+x,(0,e.default)({},x+"-confirm",this.confirm)]},popperClasses:function(){var p;return[x+"-popper",(p={},(0,e.default)(p,x+"-confirm",this.transfer&&this.confirm),(0,e.default)(p,""+String(this.popperClass),!!this.popperClass),(0,e.default)(p,x+"-transfer",this.transfer),(0,e.default)(p,this.transferClassName,this.transferClassName),p)]},styles:function(){var p={};return this.width&&(p.width=String(this.width)+"px"),this.transfer&&(p["z-index"]=(0,_.hasTransferIndex)(this.tIndex,1060+this.tIndex)),p},localeOkText:function(){return this.okText===void 0?this.t("i.poptip.okText"):this.okText},localeCancelText:function(){return this.cancelText===void 0?this.t("i.poptip.cancelText"):this.cancelText},contentClasses:function(){return[x+"-body-content",(0,e.default)({},x+"-body-content-word-wrap",this.wordWrap)]},contentPaddingStyle:function(){var p={};return this.padding!==""&&(p.padding=this.padding),p}},methods:{handleClick:function(){if(!this.disabled){if(this.confirm)return this.visible=!this.visible,!0;if(this.trigger!=="click")return!1;this.visible=!this.visible}},handleTransferClick:function(){this.transfer&&(this.disableCloseUnderTransfer=!0)},handleClose:function(){if(this.disableCloseUnderTransfer)return this.disableCloseUnderTransfer=!1,!1;if(this.confirm)return this.visible=!1,!0;if(this.trigger!=="click")return!1;this.visible=!1},handleFocus:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.disabled){if(this.trigger!=="focus"||this.confirm||this.isInput&&!p)return!1;this.visible=!0}},handleBlur:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.trigger!=="focus"||this.confirm||this.isInput&&!p)return!1;this.visible=!1},handleMouseenter:function(){var p=this;if(!this.disabled){if(this.trigger!=="hover"||this.confirm)return!1;this.enterTimer&&clearTimeout(this.enterTimer),this.enterTimer=setTimeout(function(){(0,a.default)(this,p),this.visible=!0}.bind(this),100)}},handleMouseleave:function(){var p=this;if(this.trigger!=="hover"||this.confirm)return!1;this.enterTimer&&(clearTimeout(this.enterTimer),this.enterTimer=setTimeout(function(){(0,a.default)(this,p),this.visible=!1}.bind(this),100))},cancel:function(){this.visible=!1,this.$emit("on-cancel")},ok:function(){this.visible=!1,this.$emit("on-ok")},getInputChildren:function(){var p=this.$refs.reference.querySelectorAll("input"),S=this.$refs.reference.querySelectorAll("textarea"),P=null;return p.length?P=p[0]:S.length&&(P=S[0]),P},handleGetIndex:function(){return(0,_.transferIncrease)(),(0,_.getTransferIndex)()},handleIndexIncrease:function(){this.tIndex=this.handleGetIndex()}},mounted:function(){var p=this;this.confirm||(this.showTitle=this.$slots.title!==void 0||this.title),this.trigger==="focus"&&this.$nextTick(function(){(0,a.default)(this,p);var S=this.getInputChildren();S&&(this.isInput=!0,S.addEventListener("focus",this.handleFocus,!1),S.addEventListener("blur",this.handleBlur,!1))}.bind(this))},beforeDestroy:function(){var p=this.getInputChildren();p&&(p.removeEventListener("focus",this.handleFocus,!1),p.removeEventListener("blur",this.handleBlur,!1))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(17),e=l(d);function l(o){return o&&o.__esModule?o:{default:o}}var n=e.default.prototype.$isServer,i=n?function(){}:t(118);r.default={props:{eventsEnabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:Object,popper:Object,offset:{default:0},value:{type:Boolean,default:!1},transition:String,options:{type:Object,default:function(){return{modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:"window"}}}}}},data:function(){return{visible:this.value}},watch:{value:{immediate:!0,handler:function(c){this.visible=c,this.$emit("input",c)}},visible:function(c){c?(this.handleIndexIncrease&&this.handleIndexIncrease(),this.updatePopper(),this.$emit("on-popper-show")):this.$emit("on-popper-hide"),this.$emit("input",c)}},methods:{createPopper:function(){var c=this;if(!n&&!!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)){var u=this.options,f=this.popper||this.$refs.popper,y=this.reference||this.$refs.reference;!f||!y||(this.popperJS&&this.popperJS.hasOwnProperty("destroy")&&this.popperJS.destroy(),u.eventsEnabled=this.eventsEnabled,u.placement=this.placement,u.modifiers.offset||(u.modifiers.offset={}),u.modifiers.offset.offset=this.offset,u.onCreate=function(){(0,a.default)(this,c),this.$nextTick(this.updatePopper),this.$emit("created",this)}.bind(this),this.popperJS=new i(y,f,u))}},updatePopper:function(){n||(this.popperJS?this.popperJS.update():this.createPopper())},doDestroy:function(){n||this.visible||(this.popperJS.destroy(),this.popperJS=null)}},updated:function(){var c=this;this.$nextTick(function(){return(0,a.default)(this,c),this.updatePopper()}.bind(this))},beforeDestroy:function(){n||this.popperJS&&this.popperJS.destroy()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(224),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(517);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(20),e=n(d),l=t(3);function n(o){return o&&o.__esModule?o:{default:o}}var i="ivu-progress";r.default={name:"Progress",components:{Icon:e.default},props:{percent:{type:Number,default:0},successPercent:{type:Number,default:0},status:{validator:function(c){return(0,l.oneOf)(c,["normal","active","wrong","success"])},default:"normal"},hideInfo:{type:Boolean,default:!1},strokeWidth:{type:Number,default:10},vertical:{type:Boolean,default:!1},strokeColor:{type:[String,Array]},textInside:{type:Boolean,default:!1}},data:function(){return{currentStatus:this.status}},computed:{isStatus:function(){return this.currentStatus=="wrong"||this.currentStatus=="success"},statusIcon:function(){var c="";switch(this.currentStatus){case"wrong":c="ios-close-circle";break;case"success":c="ios-checkmark-circle";break}return c},bgStyle:function(){var c=this.vertical?{height:String(this.percent)+"%",width:String(this.strokeWidth)+"px"}:{width:String(this.percent)+"%",height:String(this.strokeWidth)+"px"};return this.strokeColor&&(typeof this.strokeColor=="string"?c["background-color"]=this.strokeColor:c["background-image"]="linear-gradient(to right, "+String(this.strokeColor[0])+" 0%, "+String(this.strokeColor[1])+" 100%)"),c},successBgStyle:function(){return this.vertical?{height:String(this.successPercent)+"%",width:String(this.strokeWidth)+"px"}:{width:String(this.successPercent)+"%",height:String(this.strokeWidth)+"px"}},wrapClasses:function(){var c;return[""+i,i+"-"+String(this.currentStatus),(c={},(0,a.default)(c,i+"-show-info",!this.hideInfo&&!this.textInside),(0,a.default)(c,i+"-vertical",this.vertical),c)]},textClasses:function(){return i+"-text"},textInnerClasses:function(){return i+"-text-inner"},outerClasses:function(){return i+"-outer"},innerClasses:function(){return i+"-inner"},bgClasses:function(){return i+"-bg"},successBgClasses:function(){return i+"-success-bg"}},created:function(){this.handleStatus()},methods:{handleStatus:function(c){c?(this.currentStatus="normal",this.$emit("on-status-change","normal")):parseInt(this.percent,10)==100&&(this.currentStatus="success",this.$emit("on-status-change","success"))}},watch:{percent:function(c,u){c=0,currentValue:_}},computed:{classes:function(){return[""+y,(0,a.default)({},y+"-disabled",this.itemDisabled)]},iconClasses:function(){var _;return["ivu-icon",(_={},(0,a.default)(_,"ivu-icon-"+String(this.icon),this.icon!==""),(0,a.default)(_,""+String(this.customIcon),this.customIcon!==""),_)]},showCharacter:function(){return this.character!==""||this.icon!==""||this.customIcon!==""}},watch:{value:function(_){this.currentValue=_||0},currentValue:function(_){this.setHalf(_)}},methods:{starCls:function(_){var h,g=this.hoverIndex,b=this.isHover?g:this.currentValue,x=!1,C=!1;return b>=_&&(x=!0),this.isHover?C=b===_:C=Math.ceil(this.currentValue)===_,[(h={},(0,a.default)(h,y+"-star",!this.showCharacter),(0,a.default)(h,y+"-star-chart",this.showCharacter),(0,a.default)(h,y+"-star-full",!C&&x||C&&!this.isHalf),(0,a.default)(h,y+"-star-half",C&&this.isHalf),(0,a.default)(h,y+"-star-zero",!x),h)]},handleMousemove:function(_,h){if(!this.itemDisabled){if(this.isHover=!0,this.allowHalf){var g=h.target.getAttribute("type")||!1;this.isHalf=g==="half"}else this.isHalf=!1;this.hoverIndex=_}},handleMouseleave:function(){this.itemDisabled||(this.isHover=!1,this.setHalf(this.currentValue),this.hoverIndex=-1)},setHalf:function(_){this.isHalf=this.allowHalf&&_.toString().indexOf(".")>=0},handleClick:function(_){this.itemDisabled||(this.isHalf&&(_-=.5),this.clearable&&Math.abs(_-this.currentValue)<.01&&(_=0),this.currentValue=_,this.$emit("input",_),this.$emit("on-change",_),this.dispatch("FormItem","on-form-change",_))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(75),a=j(s),d=t(27),e=j(d),l=t(22),n=j(l),i=t(2),o=j(i),c=t(1),u=j(c),f=t(15),y=j(f),m=t(195),_=j(m),h=t(93),g=j(h),b=t(530),x=j(b),C=t(3),p=t(12),S=t(4),P=j(S),O=t(11),R=j(O),T=t(94),B=j(T);function j(U){return U&&U.__esModule?U:{default:U}}var q="ivu-slider";r.default={name:"Slider",mixins:[P.default,R.default],components:{InputNumber:_.default,Tooltip:g.default,SliderMarker:x.default},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},range:{type:Boolean,default:!1},value:{type:[Number,Array],default:0},disabled:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},inputSize:{type:String,default:"default",validator:function(A){return(0,C.oneOf)(A,["small","large","default"])}},showStops:{type:Boolean,default:!1},tipFormat:{type:Function,default:function(A){return A}},showTip:{type:String,default:"hover",validator:function(A){return(0,C.oneOf)(A,["hover","always","never"])}},name:{type:String},activeChange:{type:Boolean,default:!0},marks:{type:Object}},data:function(){var A=this.checkLimits(Array.isArray(this.value)?this.value:[this.value]);return this.range&&this.value===null&&(A=[0,0]),{prefixCls:q,currentValue:A,dragging:!1,pointerDown:"",startX:0,currentX:0,startPos:0,oldValue:[].concat((0,y.default)(A)),valueIndex:{min:0,max:1},sliderWidth:0,isValueNull:!1}},watch:{value:function(A){A===null&&(this.isValueNull=!0),A=this.checkLimits(Array.isArray(A)?A:[A]),!this.dragging&&(A[0]!==this.currentValue[0]||A[1]!==this.currentValue[1])&&(this.isValueNull&&this.range?this.currentValue=[0,0]:this.currentValue=A)},exportValue:function(A){var V=this;this.$nextTick(function(){(0,u.default)(this,V),this.$refs.minTooltip.updatePopper(),this.range&&this.$refs.maxTooltip.updatePopper()}.bind(this));var E=this.range?A:A[0];this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",E),this.$emit("on-input",E)}},computed:{classes:function(){var A;return[""+q,(A={},(0,o.default)(A,q+"-input",this.showInput&&!this.range),(0,o.default)(A,q+"-range",this.range),(0,o.default)(A,q+"-disabled",this.itemDisabled),A)]},minButtonClasses:function(){return[q+"-button",(0,o.default)({},q+"-button-dragging",this.pointerDown==="min")]},maxButtonClasses:function(){return[q+"-button",(0,o.default)({},q+"-button-dragging",this.pointerDown==="max")]},exportValue:function(){var A=this,V=(String(this.step).split(".")[1]||"").length;return this.currentValue.map(function(E){return(0,u.default)(this,A),Number(E.toFixed(V))}.bind(this))},minPosition:function(){var A=this.currentValue;return(A[0]-this.min)/this.valueRange*100},maxPosition:function(){var A=this.currentValue;return(A[1]-this.min)/this.valueRange*100},barStyle:function(){var A={width:(this.currentValue[0]-this.min)/this.valueRange*100+"%"};return this.range&&(A.left=(this.currentValue[0]-this.min)/this.valueRange*100+"%",A.width=(this.currentValue[1]-this.currentValue[0])/this.valueRange*100+"%"),A},stops:function(){for(var A=this.valueRange/this.step,V=[],E=100*this.step/this.valueRange,W=1;W=this.min}.bind(this)).map(function(E){return(0,u.default)(this,A),{point:E,position:(E-this.min)*100/(this.max-this.min),mark:this.marks[E]}}.bind(this))},tipDisabled:function(){return this.tipFormat(this.currentValue[0])===null||this.showTip==="never"},valueRange:function(){return this.max-this.min},firstPosition:function(){return this.currentValue[0]},secondPosition:function(){return this.currentValue[1]}},methods:{getPointerX:function(A){return A.type.indexOf("touch")!==-1?A.touches[0].clientX:A.clientX},checkLimits:function(A){var V=(0,e.default)(A,2),E=V[0],W=V[1];return E=Math.max(this.min,E),E=Math.min(this.max,E),W=Math.max(this.min,E,W),W=Math.min(this.max,W),[E,W]},getCurrentValue:function(A,V){if(!this.itemDisabled){var E=this.valueIndex[V];if(typeof E!="undefined")return this.currentValue[E]}},onKeyLeft:function(A,V){var E=this.getCurrentValue(A,V);(0,a.default)(E)&&this.changeButtonPosition(E-this.step,V)},onKeyRight:function(A,V){var E=this.getCurrentValue(A,V);(0,a.default)(E)&&this.changeButtonPosition(E+this.step,V)},onPointerDown:function(A,V){this.itemDisabled||(A.preventDefault(),this.pointerDown=V,this.onPointerDragStart(A),(0,p.on)(window,"mousemove",this.onPointerDrag),(0,p.on)(window,"touchmove",this.onPointerDrag),(0,p.on)(window,"mouseup",this.onPointerDragEnd),(0,p.on)(window,"touchend",this.onPointerDragEnd))},onPointerDragStart:function(A){this.dragging=!1,this.startX=this.getPointerX(A),this.startPos=this[String(this.pointerDown)+"Position"]*this.valueRange/100+this.min},onPointerDrag:function(A){this.dragging=!0,this.$refs[String(this.pointerDown)+"Tooltip"].visible=!0,this.currentX=this.getPointerX(A);var V=(this.currentX-this.startX)/this.sliderWidth*this.valueRange;this.changeButtonPosition(this.startPos+V)},onPointerDragEnd:function(){this.dragging&&(this.dragging=!1,this.$refs[String(this.pointerDown)+"Tooltip"].visible=!1,this.emitChange()),this.pointerDown="",(0,p.off)(window,"mousemove",this.onPointerDrag),(0,p.off)(window,"touchmove",this.onPointerDrag),(0,p.off)(window,"mouseup",this.onPointerDragEnd),(0,p.off)(window,"touchend",this.onPointerDragEnd)},changeButtonPosition:function(A,V){var E=V||this.pointerDown,W=E==="min"?0:1;E==="min"?A=this.checkLimits([A,this.max])[0]:A=this.checkLimits([this.min,A])[1];var G=this.handleDecimal(A,this.step),z=this.currentValue;z[W]=A-G,this.range&&(E==="min"&&z[0]>z[1]&&(z[1]=z[0]),E==="max"&&z[0]>z[1]&&(z[0]=z[1])),this.currentValue=[].concat((0,y.default)(z)),this.dragging||this.currentValue[W]!==this.oldValue[W]&&(this.emitChange(),this.oldValue[W]=this.currentValue[W])},handleDecimal:function(A,V){if(V<1){var E=V.toString(),W=1,G=void 0;try{G=E.split(".")[1].length}catch{G=0}return W=Math.pow(10,G),A*W%(V*W)/W}else return A%V},emitChange:function(){var A=this.range?this.exportValue:this.exportValue[0];this.$emit("on-change",A),this.dispatch("FormItem","on-form-change",A)},sliderClick:function(A){if(!this.itemDisabled){var V=this.getPointerX(A),E=this.$refs.slider.getBoundingClientRect().left,W=(V-E)/this.sliderWidth*this.valueRange+this.min,G=W/this.valueRange*100;!this.range||G<=this.minPosition?this.changeButtonPosition(W,"min"):G>=this.maxPosition?this.changeButtonPosition(W,"max"):this.changeButtonPosition(W,W-this.firstPosition<=this.secondPosition-W?"min":"max")}},handleInputChange:function(A){this.currentValue=[A===0?0:A||this.min,this.currentValue[1]],this.emitChange()},handleFocus:function(A){this.$refs[String(A)+"Tooltip"].handleShowPopper()},handleBlur:function(A){this.$refs[String(A)+"Tooltip"].handleClosePopper()},handleSetSliderWidth:function(){this.sliderWidth=parseInt((0,C.getStyle)(this.$refs.slider,"width"),10)}},mounted:function(){var A=this;this.$on("on-visible-change",function(V){(0,u.default)(this,A),V&&this.showTip==="always"&&(this.$refs.minTooltip.doDestroy(),this.range&&this.$refs.maxTooltip.doDestroy(),this.$nextTick(function(){(0,u.default)(this,A),this.$refs.minTooltip.updatePopper(),this.range&&this.$refs.maxTooltip.updatePopper()}.bind(this)))}.bind(this)),this.observer=(0,B.default)(),this.observer.listenTo(this.$refs.slider,this.handleSetSliderWidth)},beforeDestroy:function(){this.observer.removeListener(this.$refs.slider,this.handleSetSliderWidth)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=f(s),d=t(2),e=f(d),l=t(222),n=f(l),i=t(24),o=f(i),c=t(3),u=t(33);function f(m){return m&&m.__esModule?m:{default:m}}var y="ivu-tooltip";r.default={name:"Tooltip",directives:{TransferDom:o.default},mixins:[n.default],props:{placement:{validator:function(_){return(0,c.oneOf)(_,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},content:{type:[String,Number],default:""},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1},controlled:{type:Boolean,default:!1},always:{type:Boolean,default:!1},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},theme:{validator:function(_){return(0,c.oneOf)(_,["dark","light"])},default:"dark"},maxWidth:{type:[String,Number]},transferClassName:{type:String},rawIndex:{type:[String,Number],default:null}},data:function(){return{prefixCls:y,tIndex:this.handleGetIndex()}},computed:{innerStyles:function(){var _={};return this.maxWidth&&(_["max-width"]=String(this.maxWidth)+"px"),_},innerClasses:function(){return[y+"-inner",(0,e.default)({},y+"-inner-with-width",!!this.maxWidth)]},dropStyles:function(){var _={};return this.rawIndex!==null?_["z-index"]=this.rawIndex:this.transfer&&(_["z-index"]=(0,u.hasTransferIndex)(this.tIndex,1060+this.tIndex)),_},dropdownCls:function(){var _;return[y+"-popper",y+"-"+String(this.theme),(_={},(0,e.default)(_,y+"-transfer",this.transfer),(0,e.default)(_,this.transferClassName,this.transferClassName),_)]}},watch:{content:function(){this.updatePopper()}},methods:{handleShowPopper:function(){var _=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,_),this.visible=!0}.bind(this),this.delay),this.tIndex=this.handleGetIndex()},handleClosePopper:function(){var _=this;this.timeout&&(clearTimeout(this.timeout),this.controlled||(this.timeout=setTimeout(function(){(0,a.default)(this,_),this.visible=!1}.bind(this),100)))},handleGetIndex:function(){return(0,u.transferIncrease)(),(0,u.getTransferIndex)()}},mounted:function(){this.always&&this.updatePopper()}}},function(v,r,t){var s=v.exports={};s.forEach=function(a,d){for(var e=0;e";while(o[0]);return n>4?n:l}();return a===e},s.isLegacyOpera=function(){return!!window.opera}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(2),e=n(d),l=t(3);function n(c){return c&&c.__esModule?c:{default:c}}var i="ivu-steps";function o(c){var u=void 0;return function(){if(!u){u=!0;var f=this,y=arguments,m=function(){u=!1,c.apply(f,y)};this.$nextTick(m)}}}r.default={name:"Steps",props:{current:{type:Number,default:0},status:{validator:function(u){return(0,l.oneOf)(u,["wait","process","finish","error"])},default:"process"},size:{validator:function(u){return(0,l.oneOf)(u,["small"])}},direction:{validator:function(u){return(0,l.oneOf)(u,["horizontal","vertical"])},default:"horizontal"}},computed:{classes:function(){return[""+i,i+"-"+String(this.direction),(0,e.default)({},i+"-"+String(this.size),!!this.size)]}},methods:{updateChildProps:function(u){var f=this,y=this.$children.length;this.$children.forEach(function(m,_){(0,a.default)(this,f),m.stepNumber=_+1,this.direction==="horizontal"&&(m.total=y),u&&m.currentStatus||(_===this.current?this.status!=="error"&&(m.currentStatus="process"):_=this.$children.length))if(u){var f=this.$children[this.current].currentStatus;f||(this.$children[this.current].currentStatus=this.status)}else this.$children[this.current].currentStatus=this.status},debouncedAppendRemove:function(){return o(function(){this.updateSteps()})},updateSteps:function(){this.updateChildProps(!0),this.setNextError(),this.updateCurrent(!0)}},mounted:function(){this.updateSteps(),this.$on("append",this.debouncedAppendRemove()),this.$on("remove",this.debouncedAppendRemove())},watch:{current:function(){this.updateChildProps()},status:function(){this.updateCurrent()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(4),e=n(d),l=t(3);function n(c){return c&&c.__esModule?c:{default:c}}var i="ivu-steps",o="ivu-icon";r.default={name:"Step",mixins:[e.default],props:{status:{validator:function(u){return(0,l.oneOf)(u,["wait","process","finish","error"])}},title:{type:String,default:""},content:{type:String},icon:{type:String}},data:function(){return{prefixCls:i,stepNumber:"",nextError:!1,total:1,currentStatus:""}},computed:{wrapClasses:function(){var u;return[i+"-item",i+"-status-"+String(this.currentStatus),(u={},(0,a.default)(u,i+"-custom",!!this.icon||!!this.$slots.icon),(0,a.default)(u,i+"-next-error",this.nextError),u)]},iconClasses:function(){var u="";return this.icon?u=this.icon:this.currentStatus==="finish"?u="ios-checkmark":this.currentStatus==="error"&&(u="ios-close"),[i+"-icon",""+o,(0,a.default)({},o+"-"+String(u),u!=="")]}},watch:{status:function(u){this.currentStatus=u,this.currentStatus==="error"&&this.$parent.setNextError()}},created:function(){this.currentStatus=this.status},mounted:function(){this.dispatch("Steps","append")},beforeDestroy:function(){this.dispatch("Steps","remove")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=u(s),d=t(2),e=u(d),l=t(3),n=t(4),i=u(n),o=t(11),c=u(o);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-switch";r.default={name:"iSwitch",mixins:[i.default,c.default],props:{value:{type:[String,Number,Boolean],default:!1},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:!1},size:{validator:function(m){return(0,l.oneOf)(m,["large","small","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},name:{type:String},loading:{type:Boolean,default:!1},trueColor:{type:String},falseColor:{type:String},beforeChange:Function},data:function(){return{currentValue:this.value}},computed:{wrapClasses:function(){var m;return[""+f,(m={},(0,e.default)(m,f+"-checked",this.currentValue===this.trueValue),(0,e.default)(m,f+"-disabled",this.itemDisabled),(0,e.default)(m,f+"-"+String(this.size),!!this.size),(0,e.default)(m,f+"-loading",this.loading),m)]},wrapStyles:function(){var m={};return this.trueColor&&this.currentValue===this.trueValue?(m["border-color"]=this.trueColor,m["background-color"]=this.trueColor):this.falseColor&&this.currentValue===this.falseValue&&(m["border-color"]=this.falseColor,m["background-color"]=this.falseColor),m},innerClasses:function(){return f+"-inner"}},methods:{handleToggle:function(){var m=this.currentValue===this.trueValue?this.falseValue:this.trueValue;this.currentValue=m,this.$emit("input",m),this.$emit("on-change",m),this.dispatch("FormItem","on-form-change",m)},toggle:function(m){var _=this;if(m.preventDefault(),this.itemDisabled||this.loading)return!1;if(!this.beforeChange)return this.handleToggle();var h=this.beforeChange();h&&h.then?h.then(function(){(0,a.default)(this,_),this.handleToggle()}.bind(this)):this.handleToggle()}},watch:{value:function(m){if(m!==this.trueValue&&m!==this.falseValue&&m!==null)throw"Value should be trueValue or falseValue.";this.currentValue=m}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(45),a=Z(s),d=t(554),e=Z(d),l=t(15),n=Z(l),i=t(57),o=Z(i),c=t(1),u=Z(c),f=t(2),y=Z(f),m=t(569),_=Z(m),h=t(572),g=Z(h),b=t(578),x=Z(b),C=t(61),p=Z(C),S=t(62),P=Z(S),O=t(91),R=Z(O),T=t(3),B=t(12),j=t(580),q=Z(j),U=t(581),A=Z(U),V=t(6),E=Z(V),W=t(94),G=Z(W),z=t(582);function Z(Y){return Y&&Y.__esModule?Y:{default:Y}}var re="ivu-table",X=1,N=1;r.default={name:"Table",mixins:[E.default],components:{tableHead:_.default,tableBody:g.default,tableSummary:x.default,Spin:R.default,Dropdown:p.default,DropdownMenu:P.default},provide:function(){return{tableRoot:this}},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:{validator:function(w){return(0,T.oneOf)(w,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},width:{type:[Number,String]},height:{type:[Number,String]},maxHeight:{type:[Number,String]},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},highlightRow:{type:Boolean,default:!1},rowClassName:{type:Function,default:function(){return""}},context:{type:Object},noDataText:{type:String},noFilteredDataText:{type:String},disabledHover:{type:Boolean},loading:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tooltipTheme:{validator:function(w){return(0,T.oneOf)(w,["dark","light"])},default:"dark"},tooltipMaxWidth:{type:Number,default:300},rowKey:{type:[Boolean,String],default:!1},spanMethod:{type:Function},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},sumText:{type:String},indentSize:{type:Number,default:16},loadData:{type:Function},updateShowChildren:{type:Boolean,default:!1},contextMenu:{type:Boolean,default:!1},showContextMenu:{type:Boolean,default:!1},fixedShadow:{validator:function(w){return(0,T.oneOf)(w,["auto","show","hide"])},default:"show"}},data:function(){var w=this.makeColumnsId(this.columns);return{ready:!1,tableWidth:0,columnsWidth:{},prefixCls:re,compiledUids:[],objData:this.makeObjData(),rebuildData:[],cloneColumns:this.makeColumns(w),columnRows:this.makeColumnRows(!1,w),leftFixedColumnRows:this.makeColumnRows("left",w),rightFixedColumnRows:this.makeColumnRows("right",w),allColumns:(0,z.getAllColumns)(w),showSlotHeader:!0,showSlotFooter:!0,bodyHeight:0,scrollBarWidth:(0,T.getScrollBarSize)(),currentContext:this.context,cloneData:(0,T.deepCopy)(this.data),showVerticalScrollBar:!1,showHorizontalScrollBar:!1,headerWidth:0,headerHeight:0,showResizeLine:!1,contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},scrollOnTheLeft:!1,scrollOnTheRight:!1}},computed:{localeNoDataText:function(){return this.noDataText===void 0?this.t("i.table.noDataText"):this.noDataText},localeNoFilteredDataText:function(){return this.noFilteredDataText===void 0?this.t("i.table.noFilteredDataText"):this.noFilteredDataText},localeSumText:function(){return this.sumText===void 0?this.t("i.table.sumText"):this.sumText},wrapClasses:function(){var w;return[re+"-wrapper",(w={},(0,y.default)(w,re+"-hide",!this.ready),(0,y.default)(w,re+"-with-header",this.showSlotHeader),(0,y.default)(w,re+"-with-footer",this.showSlotFooter),(0,y.default)(w,re+"-with-summary",this.showSummary),(0,y.default)(w,re+"-wrapper-with-border",this.border),w)]},classes:function(){var w;return[""+re,(w={},(0,y.default)(w,re+"-"+String(this.size),!!this.size),(0,y.default)(w,re+"-border",this.border),(0,y.default)(w,re+"-stripe",this.stripe),(0,y.default)(w,re+"-with-fixed-top",!!this.height),w)]},fixedTableClasses:function(){return[re+"-fixed",(0,y.default)({},re+"-fixed-shadow",this.fixedShadow==="show"||this.fixedShadow==="auto"&&!this.scrollOnTheLeft)]},fixedRightTableClasses:function(){return[re+"-fixed-right",(0,y.default)({},re+"-fixed-shadow",this.fixedShadow==="show"||this.fixedShadow==="auto"&&!this.scrollOnTheRight)]},fixedHeaderClasses:function(){return[re+"-fixed-header",(0,y.default)({},re+"-fixed-header-with-empty",!this.rebuildData.length)]},styles:function(){var w={},F=0;if(this.showSummary&&(this.size==="small"?F=40:this.size==="large"?F=60:F=48),this.height){var H=parseInt(this.height)+F;w.height=String(H)+"px"}if(this.maxHeight){var te=parseInt(this.maxHeight)+F;w.maxHeight=String(te)+"px"}return this.width&&(w.width=String(this.width)+"px"),w},tableStyle:function(){var w={};if(this.tableWidth!==0){var F="";this.bodyHeight===0?F=this.tableWidth:F=this.tableWidth-(this.showVerticalScrollBar?this.scrollBarWidth:0),w.width=String(F)+"px"}return w},tableHeaderStyle:function(){var w={};if(this.tableWidth!==0){var F="";F=this.tableWidth,w.width=String(F)+"px"}return w},fixedTableStyle:function(){var w=this,F={},H=0;return this.leftFixedColumns.forEach(function(te){(0,u.default)(this,w),te.fixed&&te.fixed==="left"&&(H+=te._width)}.bind(this)),F.width=String(H)+"px",F},fixedRightTableStyle:function(){var w=this,F={},H=0;return this.rightFixedColumns.forEach(function(te){(0,u.default)(this,w),te.fixed&&te.fixed==="right"&&(H+=te._width)}.bind(this)),F.width=String(H)+"px",F.right=String(this.showVerticalScrollBar?this.scrollBarWidth:0)+"px",F},fixedRightHeaderStyle:function(){var w={},F=0,H=this.headerHeight+1;return this.showVerticalScrollBar&&(F=this.scrollBarWidth),w.width=String(F)+"px",w.height=String(H)+"px",w},bodyStyle:function(){var w={};if(this.bodyHeight!==0){var F=this.bodyHeight;this.height?w.height=String(F)+"px":this.maxHeight&&(w.maxHeight=String(F)+"px")}return w},fixedBodyStyle:function(){var w={};if(this.bodyHeight!==0){var F=this.bodyHeight-(this.showHorizontalScrollBar?this.scrollBarWidth:0),H=this.showHorizontalScrollBar?F+"px":F-1+"px";this.height?w.height=H:this.maxHeight&&(w.maxHeight=H)}return w},leftFixedColumns:function(){return(0,z.convertColumnOrder)(this.cloneColumns,"left")},rightFixedColumns:function(){return(0,z.convertColumnOrder)(this.cloneColumns,"right")},isLeftFixed:function(){var w=this;return this.columns.some(function(F){return(0,u.default)(this,w),F.fixed&&F.fixed==="left"}.bind(this))},isRightFixed:function(){var w=this;return this.columns.some(function(F){return(0,u.default)(this,w),F.fixed&&F.fixed==="right"}.bind(this))},summaryData:function(){var w=this;if(!this.showSummary)return{};var F={};return this.summaryMethod?F=this.summaryMethod({columns:this.cloneColumns,data:this.rebuildData}):this.cloneColumns.forEach(function(H,te){(0,u.default)(this,w);var ie=H.key;if(te===0){F[ie]={key:H.key,value:this.localeSumText};return}var ue=this.rebuildData.map(function(k){return(0,u.default)(this,w),Number(k[H.key])}.bind(this)),ee=[],he=!0;ue.forEach(function(k){if((0,u.default)(this,w),!isNaN(k)){he=!1;var $=(""+k).split(".")[1];ee.push($?$.length:0)}}.bind(this));var ae=Math.max.apply(null,ee);if(he)F[ie]={key:H.key,value:""};else{var M=ue.reduce(function(k,$){(0,u.default)(this,w);var D=Number($);return isNaN(D)?k:parseFloat((k+$).toFixed(Math.min(ae,20)))}.bind(this),0);F[ie]={key:H.key,value:M}}}.bind(this)),F}},methods:{rowClsName:function(w){return this.rowClassName(this.data[w],w)},handleResize:function(){var w=this,F=this.$el.offsetWidth-1,H={},te=0,ie=[],ue=[],ee=[];this.cloneColumns.forEach(function(le){(0,u.default)(this,w),le.width?ie.push(le):(ue.push(le),le.minWidth&&(te+=le.minWidth),le.maxWidth||ee.push(le)),le._width=null}.bind(this));var he=ie.map(function(le){return(0,u.default)(this,w),le.width}.bind(this)).reduce(function(le,fe){return(0,u.default)(this,w),le+fe}.bind(this),0),ae=F-he-te-(this.showVerticalScrollBar?this.scrollBarWidth:0)-1,M=ue.length,k=0;ae>0&&M>0&&(k=parseInt(ae/M));for(var $=0;$I?I=D.minWidth:D.maxWidth0?(ae-=I-(D.minWidth?D.minWidth:0),M--,M>0?k=parseInt(ae/M):k=0):k=0),D._width=I,H[D._index]={width:I}}if(ae>0){M=ee.length,k=parseInt(ae/M);for(var K=0;K1?(M--,ae-=k,k=parseInt(ae/M)):k=0,J._width=se,H[J._index]={width:se}}}this.tableWidth=this.cloneColumns.map(function(le){return(0,u.default)(this,w),le._width}.bind(this)).reduce(function(le,fe){return(0,u.default)(this,w),le+fe}.bind(this),0)+(this.showVerticalScrollBar?this.scrollBarWidth:0)+1,this.columnsWidth=H,this.fixedHeader(),this.fixedShadow==="auto"&&this.$nextTick(function(){(0,u.default)(this,w);var le=this.$refs.body;this.scrollOnTheLeft=le.scrollLeft===0,this.scrollOnTheRight=le.scrollWidth===le.scrollLeft+le.clientWidth}.bind(this))},handleMouseIn:function(w,F){if(!this.disabledHover){var H=F?this.getDataByRowKey(F):this.objData[w];H._isHover||(H._isHover=!0)}},handleMouseOut:function(w,F){if(!this.disabledHover){var H=F?this.getDataByRowKey(F):this.objData[w];H._isHover=!1}},handleCurrentRow:function(w,F,H){var te=H?this.getDataByRowKey(H):this.objData[F],ie=null,ue=-1;for(var ee in this.objData)if(this.objData[ee]._isHighlight){ue=parseInt(ee),this.objData[ee]._isHighlight=!1;break}else if(this.objData[ee].children&&this.objData[ee].children.length){var he=this.handleResetChildrenRow(this.objData[ee]);he&&(ie=JSON.parse((0,o.default)(he)))}w==="highlight"&&(te._isHighlight=!0),ue>=0&&(ie=JSON.parse((0,o.default)(this.cloneData[ue])));var ae=w==="highlight"?H?JSON.parse((0,o.default)(this.getBaseDataByRowKey(H))):JSON.parse((0,o.default)(this.cloneData[F])):null;this.$emit("on-current-change",ae,ie)},handleResetChildrenRow:function(w){var F=null;if(w.children&&w.children.length)for(var H=0;H-1&&(ue=ue.concat(ee)),ee.children&&ee.children.length&&H.length&&(ue=ue.concat(this.getSelectionChildren(ee,ue,H)))}.bind(this)),ue=[].concat((0,n.default)(new e.default(ue))),JSON.parse((0,o.default)(ue))},getSelectionChildrenRowKeys:function(w,F){var H=this;return w.children&&w.children.length&&w.children.forEach(function(te){(0,u.default)(this,H),te._isChecked&&F.push(te._rowKey),te.children&&te.children.length&&(F=F.concat(this.getSelectionChildrenRowKeys(te,F)))}.bind(this)),F},getSelectionChildren:function(w,F,H){var te=this;return w.children&&w.children.length&&w.children.forEach(function(ie){(0,u.default)(this,te),H.indexOf(ie[this.rowKey])>-1&&(F=F.concat(ie)),ie.children&&ie.children.length&&(F=F.concat(this.getSelectionChildren(ie,F,H)))}.bind(this)),F},toggleSelect:function(w,F){var H={};if(F)H=this.getDataByRowKey(F);else for(var te in this.objData)if(parseInt(te)===w){H=this.objData[te];break}var ie=!H._isChecked;H._isChecked=ie;var ue=this.getSelection(),ee=F?this.getBaseDataByRowKey(F,this.data):this.data[w];this.$emit(ie?"on-select":"on-select-cancel",ue,JSON.parse((0,o.default)(ee))),this.$emit("on-selection-change",ue)},toggleExpand:function(w){var F=this,H={};for(var te in this.objData)if(parseInt(te)===w){H=this.objData[te];break}var ie=!H._isExpanded;this.objData[w]._isExpanded=ie,this.$emit("on-expand",JSON.parse((0,o.default)(this.cloneData[w])),ie),(this.height||this.maxHeight)&&this.$nextTick(function(){return(0,u.default)(this,F),this.fixedBody()}.bind(this))},toggleTree:function(w){var F=this,H=this.getDataByRowKey(w);if(!("_loading"in H&&H._loading)){if("_loading"in H&&!H._loading&&H.children.length===0){var te=this.getBaseDataByRowKey(w,this.data);this.$set(te,"_loading",!0),this.loadData(te,function(ie){(0,u.default)(this,F),this.$set(te,"_loading",!1),ie.length&&(this.$set(te,"children",ie),this.$nextTick(function(){(0,u.default)(this,F);var ue=this.getDataByRowKey(w);ue._isShowChildren=!ue._isShowChildren,this.updateDataStatus(w,"_showChildren",ue._isShowChildren)}.bind(this)))}.bind(this));return}H._isShowChildren=!H._isShowChildren,this.updateShowChildren&&this.updateDataStatus(w,"_showChildren",H._isShowChildren),this.$emit("on-expand-tree",w,H._isShowChildren)}},updateDataStatus:function(w,F,H){var te=this.getBaseDataByRowKey(w,this.data);this.$set(te,F,H)},getDataByRowKey:function(w){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.objData,H=null;for(var te in F){var ie=F[te];if(ie._rowKey===w){H=ie;break}else if(ie.children&&ie.children.length&&(H=this.getChildrenByRowKey(w,ie),H))break}return H},getChildrenByRowKey:function(w,F){var H=null;if(F.children&&F.children.length)for(var te=0;te1&&arguments[1]!==void 0?arguments[1]:this.cloneData,H=null,te=0;te0&&te.scrollHeight-te.clientHeight>ie&&w.preventDefault();var ue=0,ee=setInterval(function(){(0,u.default)(this,F),ue+=5,H>0?te.scrollTop+=2:te.scrollTop-=2,ue>=Math.abs(H)&&clearInterval(ee)}.bind(this),5)}},handleMouseWheel:function(w){var F=w.deltaX,H=this.$refs.body;F>0?H.scrollLeft=H.scrollLeft+10:H.scrollLeft=H.scrollLeft-10},sortData:function(w,F,H){var te=this,ie=this.cloneColumns[H].key;w.sort(function(ee,he){if((0,u.default)(this,te),this.cloneColumns[H].sortMethod)return this.cloneColumns[H].sortMethod(ee[ie],he[ie],F);if(F==="asc")return ee[ie]>he[ie]?1:-1;if(F==="desc")return ee[ie]1;return O?this.fixed?this.fixedColumnRows:this.columnRows:[this.columns]},isSelectDisabled:function(){var O=!0;if(this.data.length)for(var R in this.objData){var T=this.objData[R];T._isDisabled?T.children&&T.children.length&&(O=this.isChildrenDisabled(T,O)):O=!1}return O}},methods:{cellClasses:function(O){var R;return[String(this.prefixCls)+"-cell",(R={},(0,e.default)(R,String(this.prefixCls)+"-hidden",!this.fixed&&O.fixed&&(O.fixed==="left"||O.fixed==="right")),(0,e.default)(R,String(this.prefixCls)+"-cell-with-selection",O.type==="selection"),R)]},scrollBarCellClass:function(){var O=!1;for(var R in this.headRows)for(var T in this.headRows[R]){if(this.headRows[R][T].fixed==="right"){O=!0;break}if(O)break}return[(0,e.default)({},String(this.prefixCls)+"-hidden",O)]},itemClasses:function(O,R){return[String(this.prefixCls)+"-filter-select-item",(0,e.default)({},String(this.prefixCls)+"-filter-select-item-selected",O._filterChecked[0]===R.value)]},itemAllClasses:function(O){return[String(this.prefixCls)+"-filter-select-item",(0,e.default)({},String(this.prefixCls)+"-filter-select-item-selected",!O._filterChecked.length)]},selectAll:function(){var O=!this.isSelectAll;this.$parent.selectAll(O)},handleSort:function(O,R){var T=this,B=this.columns.find(function(q){return(0,a.default)(this,T),q._index===O}.bind(this)),j=B._index;B._sortType===R&&(R="normal"),this.$parent.handleSort(j,R)},handleSortByHead:function(O){var R=this,T=this.columns.find(function(j){return(0,a.default)(this,R),j._index===O}.bind(this));if(T.sortable){var B=T._sortType;B==="normal"?this.handleSort(O,"asc"):B==="asc"?this.handleSort(O,"desc"):this.handleSort(O,"normal")}},handleFilter:function(O){this.$parent.handleFilter(O)},handleSelect:function(O,R){this.$parent.handleFilterSelect(O,R)},handleReset:function(O){this.$parent.handleFilterReset(O)},handleFilterHide:function(O){this.$parent.handleFilterHide(O)},getColumn:function(O,R){var T=this,B=this.columnRows.length>1;if(B){var j=this.headRows[O][R].__id;return this.columns.filter(function(q){return(0,a.default)(this,T),q.__id===j}.bind(this))[0]}else return this.headRows[O][R]},handleMouseDown:function(O,R){var T=this;if(!this.$isServer&&this.draggingColumn){this.dragging=!0;var B=this.$parent,j=B.$el,q=j.getBoundingClientRect().left,U=this.$el.querySelector("th.ivu-table-column-"+String(O.__id)),A=U.getBoundingClientRect(),V=A.left-q+30;B.showResizeLine=!0,this.dragState={startMouseLeft:R.clientX,startLeft:A.right-q,startColumnLeft:A.left-q,tableLeft:q};var E=B.$refs.resizeLine;E.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var W=function(z){(0,a.default)(this,T);var Z=z.clientX-this.dragState.startMouseLeft,re=this.dragState.startLeft+Z;E.style.left=Math.max(V,re)+"px"}.bind(this),G=function(){if((0,a.default)(this,T),this.dragging){var z=this.dragState,Z=z.startColumnLeft,re=z.startLeft,X=parseInt(E.style.left,10),N=X-Z,Y=B.columns.find(function(w){return(0,a.default)(this,T),w.__id===O.__id}.bind(this));Y&&(Y.width=N),B.$emit("on-column-width-resize",Y.width,re-Z,O,R),document.body.style.cursor="",this.dragging=!1,this.draggingColumn=null,this.dragState={},B.showResizeLine=!1}document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",G),document.onselectstart=null,document.ondragstart=null}.bind(this);document.addEventListener("mousemove",W),document.addEventListener("mouseup",G)}},handleMouseMove:function(O,R){for(var T=R.target;T&&T.tagName!=="TH";)T=T.parentNode;if(!(!O||!O.resizable)&&!this.dragging){var B=T.getBoundingClientRect(),j=document.body.style;B.width>12&&B.right-R.pageX<8?(j.cursor="col-resize",this.draggingColumn=O):this.dragging||(j.cursor="",this.draggingColumn=null)}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},isChildrenSelected:function(O,R){var T=this,B=R;return O.children&&O.children.length&&O.children.forEach(function(j){(0,a.default)(this,T),!j._isChecked&&!j._isDisabled?B=!1:j.children&&j.children.length&&(B=this.isChildrenSelected(j,B))}.bind(this)),B},isChildrenAllDisabledAndUnSelected:function(O,R){var T=this,B=R;return O.children&&O.children.length&&O.children.forEach(function(j){(0,a.default)(this,T),j._isDisabled&&!j._isChecked?j.children&&j.children.length&&(B=this.isChildrenAllDisabledAndUnSelected(j,B)):B=!1}.bind(this)),B},isChildrenDisabled:function(O,R){var T=this,B=R;return O.children&&O.children.length&&O.children.forEach(function(j){(0,a.default)(this,T),j._isDisabled?j.children&&j.children.length&&(B=this.isChildrenDisabled(j,B)):B=!1}.bind(this)),B}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=h(s),d=t(1),e=h(d),l=t(18),n=h(l),i=t(573),o=h(i),c=t(575),u=h(c),f=t(241),y=h(f),m=t(95),_=h(m);function h(g){return g&&g.__esModule?g:{default:g}}r.default={name:"TableBody",mixins:[_.default],components:{TableCell:u.default,Expand:y.default,TableTr:o.default},props:{prefixCls:String,styleObject:Object,columns:Array,data:Array,objData:Object,columnsWidth:Object,fixed:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1},rowKey:{type:[Boolean,String],default:!1}},computed:{expandRender:function(){for(var b=function(){return""},x=0;xh.offsetWidth,g=null},handleToggleTree:function(){this.$parent.$parent.$parent.toggleTree(this.row._rowKey)}},created:function(){this.column.type==="index"?this.renderType="index":this.column.type==="selection"?this.renderType="selection":this.column.type==="html"?this.renderType="html":this.column.type==="expand"?this.renderType="expand":this.column.render?this.renderType="render":this.column.slot?this.renderType="slot":this.renderType="normal"}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"TableExpand",functional:!0,props:{row:Object,render:Function,index:Number,column:{type:Object,default:null}},render:function(l,n){(0,a.default)(void 0,void 0);var i={row:n.props.row,index:n.props.index};return n.props.column&&(i.column=n.props.column),n.props.render(l,i)}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=l(s),d=t(95),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"TableSummary",mixins:[e.default],props:{prefixCls:String,styleObject:Object,columns:Array,data:Object,columnsWidth:Object,fixed:{type:[Boolean,String],default:!1}},methods:{cellCls:function(i){return[(0,a.default)({},"ivu-table-hidden",this.fixed==="left"&&i.fixed!=="left"||this.fixed==="right"&&i.fixed!=="right"||!this.fixed&&i.fixed&&(i.fixed==="left"||i.fixed==="right"))]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=R(s),d=t(18),e=R(d),l=t(2),n=R(l),i=t(45),o=R(i),c=t(1),u=R(c),f=t(8),y=R(f),m=t(216),_=R(m),h=t(61),g=R(h),b=t(62),x=R(b),C=t(3),p=t(4),S=R(p),P=t(94),O=R(P);function R(U){return U&&U.__esModule?U:{default:U}}var T="ivu-tabs",B=300,j=function(U,A,V,E){(0,u.default)(void 0,void 0);var W=U.findIndex(function(Z){return(0,u.default)(void 0,void 0),Z.name===A}.bind(void 0)),G=(W+V+U.length)%U.length,z=U[G];return z.disabled?j(U,z.name,V,E):z}.bind(void 0),q=function(U,A){(0,u.default)(void 0,void 0);try{U.focus()}catch{}if(document.activeElement==U&&U!==A)return!0;var V=U.children,E=!0,W=!1,G=void 0;try{for(var z=(0,o.default)(V),Z;!(E=(Z=z.next()).done);E=!0){var re=Z.value;if(q(re,A))return!0}}catch(X){W=!0,G=X}finally{try{!E&&z.return&&z.return()}finally{if(W)throw G}}return!1}.bind(void 0);r.default={name:"Tabs",mixins:[S.default],components:{Icon:y.default,Render:_.default,Dropdown:g.default,DropdownMenu:x.default},provide:function(){return{TabsInstance:this}},props:{value:{type:[String,Number]},type:{validator:function(A){return(0,C.oneOf)(A,["line","card"])},default:"line"},size:{validator:function(A){return(0,C.oneOf)(A,["small","default"])},default:"default"},animated:{type:Boolean,default:!0},captureFocus:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},beforeRemove:Function,name:{type:String},draggable:{type:Boolean,default:!1},contextMenuClassName:{type:String,default:""}},data:function(){return{prefixCls:T,navList:[],barWidth:0,barOffset:0,activeKey:this.value,focusedKey:this.value,showSlot:!1,navStyle:{transform:""},scrollable:!1,transitioning:!1,contextMenuVisible:!1,contextMenuStyles:{top:0,left:0}}},computed:{classes:function(){var A;return[""+T,(A={},(0,n.default)(A,T+"-card",this.type==="card"),(0,n.default)(A,T+"-mini",this.size==="small"&&this.type==="line"),(0,n.default)(A,T+"-no-animation",!this.animated),A)]},contentClasses:function(){return[T+"-content",(0,n.default)({},T+"-content-animated",this.animated)]},barClasses:function(){return[T+"-ink-bar",(0,n.default)({},T+"-ink-bar-animated",this.animated)]},contentStyle:function(){var A=this.getTabIndex(this.activeKey),V=A===0?"0%":"-"+String(A)+"00%",E={};return A>-1&&(E={transform:"translateX("+V+") translateZ(0px)"}),E},barStyle:function(){var A={visibility:"hidden",width:String(this.barWidth)+"px"};return this.type==="line"&&(A.visibility="visible"),this.animated?A.transform="translate3d("+String(this.barOffset)+"px, 0px, 0px)":A.left=String(this.barOffset)+"px",A},arrowType:function(){var A="ios-close";return this.$IVIEW&&(this.$IVIEW.tabs.customCloseIcon?A="":this.$IVIEW.tabs.closeIcon&&(A=this.$IVIEW.tabs.closeIcon)),A},customArrowType:function(){var A="";return this.$IVIEW&&this.$IVIEW.tabs.customCloseIcon&&(A=this.$IVIEW.tabs.customCloseIcon),A},arrowSize:function(){var A="";return this.$IVIEW&&this.$IVIEW.tabs.closeIconSize&&(A=this.$IVIEW.tabs.closeIconSize),A}},methods:{getTabs:function(){var A=this,V=(0,C.findComponentsDownward)(this,"TabPane"),E=[];return V.forEach(function(W){(0,u.default)(this,A),W.tab&&this.name?W.tab===this.name&&E.push(W):E.push(W)}.bind(this)),E.sort(function(W,G){if((0,u.default)(this,A),W.index&&G.index)return W.index>G.index?1:-1}.bind(this)),E},updateNav:function(){var A=this;this.navList=[],this.getTabs().forEach(function(V,E){(0,u.default)(this,A),this.navList.push({labelType:(0,e.default)(V.label),label:V.label,icon:V.icon||"",name:V.currentName||E,disabled:V.disabled,closable:V.closable,contextMenu:V.contextMenu}),V.currentName||(V.currentName=E),E===0&&(this.activeKey||(this.activeKey=V.currentName||E))}.bind(this)),this.updateStatus(),this.updateBar()},updateBar:function(){var A=this;this.$nextTick(function(){(0,u.default)(this,A);var V=this.getTabIndex(this.activeKey);if(!!this.$refs.nav){var E=this.$refs.nav.querySelectorAll("."+T+"-tab"),W=E[V];if(this.barWidth=W?parseFloat(W.offsetWidth):0,V>0){for(var G=0,z=this.size==="small"?0:16,Z=0;Z0&&arguments[0]!==void 0?arguments[0]:!1;if(!A){var V=this.focusedKey||0,E=this.getTabIndex(V);this.handleChange(E)}},handleRemove:function(A){var V=this;if(!this.beforeRemove)return this.handleRemoveTab(A);var E=this.beforeRemove(A);E&&E.then?E.then(function(){(0,u.default)(this,V),this.handleRemoveTab(A)}.bind(this)):this.handleRemoveTab(A)},handleRemoveTab:function(A){var V=this,E=this.getTabs(),W=E[A];if(W.$destroy(),W.currentName===this.activeKey){var G=this.getTabs(),z=-1;if(G.length){var Z=E.filter(function(X,N){return(0,u.default)(this,V),!X.disabled&&NA}.bind(this));re.length?z=re[0].currentName:Z.length?z=Z[Z.length-1].currentName:z=G[0].currentName}this.activeKey=z,this.$emit("input",z)}this.$emit("on-tab-remove",W.currentName),this.updateNav()},showClose:function(A){return this.type==="card"?A.closable!==null?A.closable:this.closable:!1},scrollPrev:function(){var A=this.$refs.navScroll.offsetWidth,V=this.getCurrentScrollOffset();if(!!V){var E=V>A?V-A:0;this.setOffset(E)}},scrollNext:function(){var A=this.$refs.nav.offsetWidth,V=this.$refs.navScroll.offsetWidth,E=this.getCurrentScrollOffset();if(!(A-E<=V)){var W=A-E>V*2?E+V:A-V;this.setOffset(W)}},getCurrentScrollOffset:function(){var A=this.navStyle;return A.transform?Number(A.transform.match(/translateX\(-(\d+(\.\d+)*)px\)/)[1]):0},getTabIndex:function(A){var V=this;return this.navList.findIndex(function(E){return(0,u.default)(this,V),E.name===A}.bind(this))},setOffset:function(A){this.navStyle.transform="translateX(-"+String(A)+"px)"},scrollToActiveTab:function(){if(!!this.scrollable){var A=this.$refs.nav,V=this.$el.querySelector("."+T+"-tab-active");if(!!V){var E=this.$refs.navScroll,W=V.getBoundingClientRect(),G=E.getBoundingClientRect(),z=A.getBoundingClientRect(),Z=this.getCurrentScrollOffset(),re=Z;z.rightG.right&&(re=Z+W.right-G.right),Z!==re&&this.setOffset(Math.max(re,0))}}},updateNavScroll:function(){var A=this.$refs.nav.offsetWidth,V=this.$refs.navScroll.offsetWidth,E=this.getCurrentScrollOffset();V0&&this.setOffset(0))},handleScroll:function(A){A.preventDefault(),A.stopPropagation();var V=A.type,E=0;(V==="DOMMouseScroll"||V==="mousewheel")&&(E=A.wheelDelta?A.wheelDelta:-(A.detail||0)*40),E>0?this.scrollPrev():this.scrollNext()},handleResize:function(){this.updateNavScroll()},isInsideHiddenElement:function(){for(var A=this.$el.parentNode;A&&A!==document.body;){if(A.style&&A.style.display==="none")return A;A=A.parentNode}return!1},updateVisibility:function(A){var V=this;[].concat((0,a.default)(this.$refs.panes.querySelectorAll("."+T+"-tabpane"))).forEach(function(E,W){(0,u.default)(this,V),A===W?([].concat((0,a.default)(E.children)).filter(function(G){return(0,u.default)(this,V),G.classList.contains(T+"-tabpane")}.bind(this)).forEach(function(G){return(0,u.default)(this,V),G.style.visibility="visible"}.bind(this)),this.captureFocus&&setTimeout(function(){return(0,u.default)(this,V),q(E,E)}.bind(this),B)):setTimeout(function(){(0,u.default)(this,V),[].concat((0,a.default)(E.children)).filter(function(G){return(0,u.default)(this,V),G.classList.contains(T+"-tabpane")}.bind(this)).forEach(function(G){return(0,u.default)(this,V),G.style.visibility="hidden"}.bind(this))}.bind(this),B)}.bind(this))},handleDrag:function(A,V){var E=this.navList[A];E&&V.dataTransfer.setData("tab-name",E.name)},handleDrop:function(A,V){var E=this,W=this.navList[A];if(W){var G=V.dataTransfer.getData("tab-name");V.preventDefault();var z=this.navList.map(function(X){return(0,u.default)(this,E),X.name}.bind(this)),Z=parseInt(z.findIndex(function(X){return(0,u.default)(this,E),X===G}.bind(this))),re=parseInt(z.findIndex(function(X){return(0,u.default)(this,E),X===W.name}.bind(this)));z.splice.apply(z,[re,1].concat((0,a.default)(z.splice(Z,1,z[re])))),this.$emit("on-drag-drop",G,W.name,Z,re,z)}}},watch:{value:function(A){this.activeKey=A,this.focusedKey=A},activeKey:function(A){var V=this;this.focusedKey=A,this.updateBar(),this.updateStatus(),this.broadcast("Table","on-visible-change",!0),this.$nextTick(function(){(0,u.default)(this,V),this.scrollToActiveTab()}.bind(this));var E=Math.max(this.getTabIndex(this.focusedKey),0);this.updateVisibility(E)}},mounted:function(){var A=this;this.showSlot=this.$slots.extra!==void 0,this.observer=(0,O.default)(),this.observer.listenTo(this.$refs.navWrap,this.handleResize);var V=this.isInsideHiddenElement();V&&(this.mutationObserver=new C.MutationObserver(function(){(0,u.default)(this,A),V.style.display!=="none"&&(this.updateBar(),this.mutationObserver.disconnect())}.bind(this)),this.mutationObserver.observe(V,{attributes:!0,childList:!0,characterData:!0,attributeFilter:["style"]})),this.handleTabKeyboardSelect(!0),this.updateVisibility(this.getTabIndex(this.activeKey))},beforeDestroy:function(){this.observer.removeListener(this.$refs.navWrap,this.handleResize),this.mutationObserver&&this.mutationObserver.disconnect()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-tabs-tabpane";r.default={name:"TabPane",inject:["TabsInstance"],props:{name:{type:String},label:{type:[String,Function],default:""},icon:{type:String},disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:null},tab:{type:String},index:{type:Number},contextMenu:{type:Boolean,default:!1}},data:function(){return{prefixCls:s,show:!0,currentName:this.name}},computed:{contentStyle:function(){return{visibility:this.TabsInstance.activeKey!==this.currentName?"hidden":"visible"}}},methods:{updateNav:function(){this.TabsInstance.updateNav()}},watch:{name:function(d){this.currentName=d,this.updateNav()},label:function(){this.updateNav()},icon:function(){this.updateNav()},disabled:function(){this.updateNav()}},mounted:function(){this.updateNav()},destroyed:function(){this.updateNav()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(20),e=n(d),l=t(3);function n(u){return u&&u.__esModule?u:{default:u}}var i="ivu-tag",o=["default","primary","success","warning","error","blue","green","red","yellow","pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"],c=["pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"];r.default={name:"Tag",components:{Icon:e.default},props:{closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:!0},color:{type:String,default:"default"},type:{validator:function(f){return(0,l.oneOf)(f,["border","dot"])}},name:{type:[String,Number]},fade:{type:Boolean,default:!0},size:{validator:function(f){return(0,l.oneOf)(f,["default","medium","large"])},default:"default"}},data:function(){return{isChecked:this.checked}},computed:{classes:function(){var f;return[""+i,i+"-size-"+String(this.size),(f={},(0,a.default)(f,i+"-"+String(this.color),!!this.color&&(0,l.oneOf)(this.color,o)),(0,a.default)(f,i+"-"+String(this.type),!!this.type),(0,a.default)(f,i+"-closable",this.closable),(0,a.default)(f,i+"-checked",this.isChecked),f)]},wraperStyles:function(){return(0,l.oneOf)(this.color,o)?{}:{background:this.isChecked?this.defaultTypeColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:this.type!=="dot"&&this.type!=="border"&&this.isChecked?this.borderColor:this.lineColor,color:this.lineColor}},textClasses:function(){return[i+"-text",this.type==="border"&&(0,l.oneOf)(this.color,o)?i+"-color-"+String(this.color):"",this.type!=="dot"&&this.type!=="border"&&this.color!=="default"&&this.isChecked&&c.indexOf(this.color)<0?i+"-color-white":""]},dotClasses:function(){return i+"-dot-inner"},iconClass:function(){return this.type==="dot"?"":this.type==="border"?(0,l.oneOf)(this.color,o)?i+"-color-"+String(this.color):"":this.color!==void 0?this.color==="default"?"":"rgb(255, 255, 255)":""},showDot:function(){return!!this.type&&this.type==="dot"},lineColor:function(){return this.type==="dot"?"":this.type==="border"?this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:"":this.color!==void 0?this.color==="default"?"":"rgb(255, 255, 255)":""},borderColor:function(){return this.color!==void 0?this.color==="default"?"":this.color:""},dotColor:function(){return this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:""},textColorStyle:function(){return(0,l.oneOf)(this.color,o)?{}:this.type!=="dot"&&this.type!=="border"?this.isChecked?{color:this.lineColor}:{}:{color:this.lineColor}},bgColorStyle:function(){return(0,l.oneOf)(this.color,o)?{}:{background:this.dotColor}},defaultTypeColor:function(){return this.type!=="dot"&&this.type!=="border"&&this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:""}},methods:{close:function(f){this.name===void 0?this.$emit("on-close",f):this.$emit("on-close",f,this.name)},check:function(f){if(!this.checkable){this.$emit("on-click",f);return}var y=!this.isChecked;this.isChecked=y,this.name===void 0?this.$emit("on-change",y):this.$emit("on-change",y,this.name)}},watch:{checked:function(f){this.isChecked=f}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=_(s),d=t(18),e=_(d),l=t(2),n=_(l),i=t(17),o=_(i),c=t(3),u=t(6),f=_(u),y=t(594),m=_(y);function _(b){return b&&b.__esModule?b:{default:b}}var h=o.default.prototype.$isServer,g="ivu-time";r.default={name:"Time",mixins:[f.default],props:{time:{type:[Number,Date,String],required:!0},type:{type:String,validator:function(x){return(0,c.oneOf)(x,["relative","date","datetime"])},default:"relative"},hash:{type:String,default:""},interval:{type:Number,default:60}},data:function(){return{date:""}},computed:{classes:function(){return[""+g,(0,n.default)({},g+"-with-hash",this.hash)]}},watch:{time:function(){h||this.setTime()}},methods:{handleClick:function(){this.hash!==""&&(window.location.hash=this.hash)},setTime:function(){var x=(0,e.default)(this.time),C=void 0;if(x==="number"){var p=this.time.toString().length>10?this.time:this.time*1e3;C=new Date(p).getTime()}else x==="object"?C=this.time.getTime():x==="string"&&(C=new Date(this.time).getTime());if(this.type==="relative")this.date=(0,m.default)(C,this.t);else{var S=new Date(this.time),P=S.getFullYear(),O=S.getMonth()+1<10?"0"+(S.getMonth()+1):S.getMonth()+1,R=S.getDate()<10?"0"+S.getDate():S.getDate(),T=S.getHours()<10?"0"+S.getHours():S.getHours(),B=S.getMinutes()<10?"0"+S.getMinutes():S.getMinutes(),j=S.getSeconds()<10?"0"+S.getSeconds():S.getSeconds();this.type==="datetime"?this.date=String(P)+"-"+String(O)+"-"+String(R)+" "+String(T)+":"+String(B)+":"+String(j):this.type==="date"&&(this.date=String(P)+"-"+String(O)+"-"+String(R))}}},mounted:function(){var x=this;this.setTime(),!h&&(this.timer=setInterval(function(){(0,a.default)(this,x),this.setTime()}.bind(this),1e3*this.interval))},beforeDestroy:function(){this.timer&&clearInterval(this.timer)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-timeline";r.default={name:"Timeline",props:{pending:{type:Boolean,default:!1}},computed:{classes:function(){return[""+e,(0,a.default)({},e+"-pending",this.pending)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-timeline";r.default={name:"TimelineItem",props:{color:{type:String,default:"blue"}},data:function(){return{dot:!1}},mounted:function(){this.dot=!!this.$refs.dot.innerHTML.length},computed:{itemClasses:function(){return e+"-item"},tailClasses:function(){return e+"-item-tail"},headClasses:function(){var n;return[e+"-item-head",(n={},(0,a.default)(n,e+"-item-head-custom",this.dot),(0,a.default)(n,e+"-item-head-"+String(this.color),this.headColorShow),n)]},headColorShow:function(){return this.color=="blue"||this.color=="red"||this.color=="green"},customColor:function(){var n={};return this.color&&(this.headColorShow||(n={color:this.color,"border-color":this.color})),n},contentClasses:function(){return e+"-item-content"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=m(s),d=t(1),e=m(d),l=t(606),n=m(l),i=t(610),o=m(i),c=t(6),u=m(c),f=t(4),y=m(f);function m(h){return h&&h.__esModule?h:{default:h}}var _="ivu-transfer";r.default={name:"Transfer",mixins:[y.default,u.default],render:function(g){var b=this;function x(S){var P=this,O=S.children&&S.children.map(function(T){return(0,e.default)(this,P),x(T)}.bind(this)),R=g(S.tag,S.data,O);return R.text=S.text,R.isComment=S.isComment,R.componentOptions=S.componentOptions,R.elm=S.elm,R.context=S.context,R.ns=S.ns,R.isStatic=S.isStatic,R.key=S.key,R}var C=this.$slots.default===void 0?[]:this.$slots.default,p=this.$slots.default===void 0?[]:C.map(function(S){return(0,e.default)(this,b),x(S)}.bind(this));return g("div",{class:this.classes},[g(n.default,{ref:"left",props:{prefixCls:this.prefixCls+"-list",data:this.leftData,renderFormat:this.renderFormat,checkedKeys:this.leftCheckedKeys,validKeysCount:this.leftValidKeysCount,listStyle:this.listStyle,title:this.localeTitles[0],filterable:this.filterable,filterPlaceholder:this.localeFilterPlaceholder,filterMethod:this.filterMethod,notFoundText:this.localeNotFoundText},on:{"on-checked-keys-change":this.handleLeftCheckedKeysChange}},C),g(o.default,{props:{prefixCls:this.prefixCls,operations:this.operations,leftActive:this.leftValidKeysCount>0,rightActive:this.rightValidKeysCount>0,reverseOperation:this.reverseOperation}}),g(n.default,{ref:"right",props:{prefixCls:this.prefixCls+"-list",data:this.rightData,renderFormat:this.renderFormat,checkedKeys:this.rightCheckedKeys,validKeysCount:this.rightValidKeysCount,listStyle:this.listStyle,title:this.localeTitles[1],filterable:this.filterable,filterPlaceholder:this.localeFilterPlaceholder,filterMethod:this.filterMethod,notFoundText:this.localeNotFoundText},on:{"on-checked-keys-change":this.handleRightCheckedKeysChange}},p)])},props:{data:{type:Array,default:function(){return[]}},renderFormat:{type:Function,default:function(g){return g.label||g.key}},targetKeys:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}},listStyle:{type:Object,default:function(){return{}}},titles:{type:Array},operations:{type:Array,default:function(){return[]}},filterable:{type:Boolean,default:!1},filterPlaceholder:{type:String},filterMethod:{type:Function,default:function(g,b){var x="label"in g?"label":"key";return g[x].indexOf(b)>-1}},notFoundText:{type:String},reverseOperation:{type:Boolean,default:!1}},data:function(){return{prefixCls:_,leftData:[],rightData:[],leftCheckedKeys:[],rightCheckedKeys:[]}},computed:{classes:function(){return[""+_]},leftValidKeysCount:function(){return this.getValidKeys("left").length},rightValidKeysCount:function(){return this.getValidKeys("right").length},localeFilterPlaceholder:function(){return this.filterPlaceholder===void 0?this.t("i.transfer.filterPlaceholder"):this.filterPlaceholder},localeNotFoundText:function(){return this.notFoundText===void 0?this.t("i.transfer.notFoundText"):this.notFoundText},localeTitles:function(){return this.titles===void 0?[this.t("i.transfer.titles.source"),this.t("i.transfer.titles.target")]:this.titles}},methods:{getValidKeys:function(g){var b=this;return this[String(g)+"Data"].filter(function(x){return(0,e.default)(this,b),!x.disabled&&this[String(g)+"CheckedKeys"].indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,b),x.key}.bind(this))},splitData:function(){var g=this,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.leftData=[].concat((0,a.default)(this.data)),this.rightData=[],this.targetKeys.length>0&&this.targetKeys.forEach(function(x){(0,e.default)(this,g);var C=this.leftData.filter(function(p,S){return(0,e.default)(this,g),p.key===x?(this.leftData.splice(S,1),!0):!1}.bind(this));C&&C.length>0&&this.rightData.push(C[0])}.bind(this)),b&&this.splitSelectedKey()},splitSelectedKey:function(){var g=this,b=this.selectedKeys;b.length>0&&(this.leftCheckedKeys=this.leftData.filter(function(x){return(0,e.default)(this,g),b.indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,g),x.key}.bind(this)),this.rightCheckedKeys=this.rightData.filter(function(x){return(0,e.default)(this,g),b.indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,g),x.key}.bind(this)))},moveTo:function(g){var b=this,x=this.targetKeys,C=g==="left"?"right":"left",p=this.getValidKeys(C),S=g==="right"?p.concat(x):x.filter(function(P){return(0,e.default)(this,b),!p.some(function(O){return(0,e.default)(this,b),P===O}.bind(this))}.bind(this));this.$refs[C].toggleSelectAll(!1),this.$emit("on-change",S,g,p),this.dispatch("FormItem","on-form-change",{tarketKeys:S,direction:g,moveKeys:p})},handleLeftCheckedKeysChange:function(g){this.leftCheckedKeys=g},handleRightCheckedKeysChange:function(g){this.rightCheckedKeys=g},handleCheckedKeys:function(){var g=this.getValidKeys("left"),b=this.getValidKeys("right");this.$emit("on-selected-change",g,b)}},watch:{targetKeys:function(){this.splitData(!1)},data:function(){this.splitData(!1)}},mounted:function(){this.splitData(!0)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=c(s),d=t(2),e=c(d),l=t(607),n=c(l),i=t(49),o=c(i);function c(u){return u&&u.__esModule?u:{default:u}}r.default={name:"TransferList",components:{Search:n.default,Checkbox:o.default},props:{prefixCls:String,data:Array,renderFormat:Function,checkedKeys:Array,listStyle:Object,title:[String,Number],filterable:Boolean,filterPlaceholder:String,filterMethod:Function,notFoundText:String,validKeysCount:Number},data:function(){return{showItems:[],query:"",showFooter:!0}},watch:{data:function(){this.updateFilteredData()}},computed:{classes:function(){return[""+String(this.prefixCls),(0,e.default)({},String(this.prefixCls)+"-with-footer",this.showFooter)]},bodyClasses:function(){var f;return[String(this.prefixCls)+"-body",(f={},(0,e.default)(f,String(this.prefixCls)+"-body-with-search",this.filterable),(0,e.default)(f,String(this.prefixCls)+"-body-with-footer",this.showFooter),f)]},count:function(){var f=this.validKeysCount;return(f>0?String(f)+"/":"")+(""+String(this.data.length))},checkedAll:function(){var f=this;return this.filterData.filter(function(y){return(0,a.default)(this,f),!y.disabled}.bind(this)).length===this.validKeysCount&&this.validKeysCount!==0},checkedAllDisabled:function(){var f=this;return this.filterData.filter(function(y){return(0,a.default)(this,f),!y.disabled}.bind(this)).length<=0},filterData:function(){var f=this;return this.showItems.filter(function(y){return(0,a.default)(this,f),this.filterMethod(y,this.query)}.bind(this))}},methods:{itemClasses:function(f){return[String(this.prefixCls)+"-content-item",(0,e.default)({},String(this.prefixCls)+"-content-item-disabled",f.disabled)]},showLabel:function(f){return this.renderFormat(f)},isCheck:function(f){var y=this;return this.checkedKeys.some(function(m){return(0,a.default)(this,y),m===f.key}.bind(this))},select:function(f){if(!f.disabled){var y=this.checkedKeys.indexOf(f.key);y>-1?this.checkedKeys.splice(y,1):this.checkedKeys.push(f.key),this.$parent.handleCheckedKeys()}},updateFilteredData:function(){this.showItems=this.data},toggleSelectAll:function(f){var y=this,m=f?this.filterData.filter(function(_){return(0,a.default)(this,y),!_.disabled||this.checkedKeys.indexOf(_.key)>-1}.bind(this)).map(function(_){return(0,a.default)(this,y),_.key}.bind(this)):this.filterData.filter(function(_){return(0,a.default)(this,y),_.disabled&&this.checkedKeys.indexOf(_.key)>-1}.bind(this)).map(function(_){return(0,a.default)(this,y),_.key}.bind(this));this.$emit("on-checked-keys-change",m)},handleQueryClear:function(){this.query=""},handleQueryChange:function(f){this.query=f}},created:function(){this.updateFilteredData()},mounted:function(){this.showFooter=this.$slots.default!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(38),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"Search",components:{iInput:a.default},props:{prefixCls:String,placeholder:String,query:String},data:function(){return{currentQuery:this.query}},watch:{query:function(l){this.currentQuery=l},currentQuery:function(l){this.$emit("on-query-change",l)}},computed:{icon:function(){return this.query===""?"ios-search":"ios-close-circle"}},methods:{handleClick:function(){this.currentQuery!==""&&(this.currentQuery="",this.$emit("on-query-clear"))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(28),a=l(s),d=t(8),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"Operation",components:{iButton:a.default,Icon:e.default},props:{prefixCls:String,operations:Array,leftActive:Boolean,rightActive:Boolean,reverseOperation:Boolean},methods:{moveToLeft:function(){this.$parent.moveTo("left")},moveToRight:function(){this.$parent.moveTo("right")}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=m(s),d=t(614),e=m(d),l=t(61),n=m(l),i=t(62),o=m(i),c=t(4),u=m(c),f=t(6),y=m(f);function m(h){return h&&h.__esModule?h:{default:h}}var _="ivu-tree";r.default={name:"Tree",mixins:[u.default,y.default],components:{TreeNode:e.default,Dropdown:n.default,DropdownMenu:o.default},provide:function(){return{TreeInstance:this}},props:{data:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},checkDirectly:{type:Boolean,default:!1},emptyText:{type:String},childrenKey:{type:String,default:"children"},loadData:{type:Function},render:{type:Function},selectNode:{type:Boolean,default:!0},expandNode:{type:Boolean,default:!1}},data:function(){return{prefixCls:_,stateTree:this.data,flatState:[],contextMenuVisible:!1,contextMenuStyles:{top:0,left:0}}},watch:{data:{deep:!0,handler:function(){this.stateTree=this.data,this.flatState=this.compileFlatState(),this.rebuildTree()}}},computed:{localeEmptyText:function(){return typeof this.emptyText=="undefined"?this.t("i.tree.emptyText"):this.emptyText}},methods:{compileFlatState:function(){var g=this,b=0,x=this.childrenKey,C=[];function p(S,P){var O=this;S.nodeKey=b++,C[S.nodeKey]={node:S,nodeKey:S.nodeKey},typeof P!="undefined"&&(C[S.nodeKey].parent=P.nodeKey,C[P.nodeKey][x].push(S.nodeKey)),S[x]&&(C[S.nodeKey][x]=[],S[x].forEach(function(R){return(0,a.default)(this,O),p(R,S)}.bind(this)))}return this.stateTree.forEach(function(S){(0,a.default)(this,g),p(S)}.bind(this)),C},updateTreeUp:function(g){var b=this,x=this.flatState[g].parent;if(!(typeof x=="undefined"||this.checkStrictly)){var C=this.flatState[g].node,p=this.flatState[x].node;C.checked==p.checked&&C.indeterminate==p.indeterminate||(C.checked==!0?(this.$set(p,"checked",p[this.childrenKey].every(function(S){return(0,a.default)(this,b),S.checked}.bind(this))),this.$set(p,"indeterminate",!p.checked)):(this.$set(p,"checked",!1),this.$set(p,"indeterminate",p[this.childrenKey].some(function(S){return(0,a.default)(this,b),S.checked||S.indeterminate}.bind(this)))),this.updateTreeUp(x))}},rebuildTree:function(){var g=this,b=this.getCheckedNodes();b.forEach(function(x){(0,a.default)(this,g),this.updateTreeDown(x,{checked:!0});var C=this.flatState[x.nodeKey].parent;if(!(!C&&C!==0)){var p=this.flatState[C].node,S=typeof x.checked!="undefined"&&x.checked;S&&p.checked!=x.checked&&this.updateTreeUp(x.nodeKey)}}.bind(this))},getSelectedNodes:function(){var g=this;return this.flatState.filter(function(b){return(0,a.default)(this,g),b.node.selected}.bind(this)).map(function(b){return(0,a.default)(this,g),b.node}.bind(this))},getCheckedNodes:function(){var g=this;return this.flatState.filter(function(b){return(0,a.default)(this,g),b.node.checked}.bind(this)).map(function(b){return(0,a.default)(this,g),b.node}.bind(this))},getCheckedAndIndeterminateNodes:function(){var g=this;return this.flatState.filter(function(b){return(0,a.default)(this,g),b.node.checked||b.node.indeterminate}.bind(this)).map(function(b){return(0,a.default)(this,g),b.node}.bind(this))},updateTreeDown:function(g){var b=this,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.checkStrictly){for(var C in x)this.$set(g,C,x[C]);g[this.childrenKey]&&g[this.childrenKey].forEach(function(p){(0,a.default)(this,b),this.updateTreeDown(p,x)}.bind(this))}},handleSelect:function(g){var b=this;if(!!this.flatState[g]){var x=this.flatState[g].node;if(!this.multiple){var C=this.flatState.findIndex(function(p){return(0,a.default)(this,b),p.node.selected}.bind(this));C>=0&&C!==g&&this.$set(this.flatState[C].node,"selected",!1)}this.$set(x,"selected",!x.selected),this.$emit("on-select-change",this.getSelectedNodes(),x)}},handleCheck:function(g){var b=g.checked,x=g.nodeKey;if(!!this.flatState[x]){var C=this.flatState[x].node;this.$set(C,"checked",b),this.$set(C,"indeterminate",!1),this.updateTreeUp(x),this.updateTreeDown(C,{checked:b,indeterminate:!1}),this.$emit("on-check-change",this.getCheckedNodes(),C)}},handleContextmenu:function(g){var b=this,x=g.data,C=g.event;this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(function(){(0,a.default)(this,b);var p=this.$refs.treeWrap,S=p.getBoundingClientRect(),P={left:C.clientX-S.left+"px",top:C.clientY-S.top+"px"};this.contextMenuStyles=P,this.contextMenuVisible=!0,this.$emit("on-contextmenu",x,C,P)}.bind(this))},handleClickContextMenuOutside:function(){this.contextMenuVisible=!1}},created:function(){this.flatState=this.compileFlatState(),this.rebuildTree()},mounted:function(){var g=this;this.$on("on-check",this.handleCheck),this.$on("on-selected",this.handleSelect),this.$on("toggle-expand",function(b){return(0,a.default)(this,g),this.$emit("on-toggle-expand",b)}.bind(this)),this.$on("contextmenu",this.handleContextmenu)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=g(s),d=t(2),e=g(d),l=t(49),n=g(l),i=t(8),o=g(i),c=t(615),u=g(c),f=t(83),y=g(f),m=t(4),_=g(m),h=t(3);function g(x){return x&&x.__esModule?x:{default:x}}var b="ivu-tree";r.default={name:"TreeNode",mixins:[_.default],inject:["TreeInstance"],components:{Checkbox:n.default,Icon:o.default,CollapseTransition:y.default,Render:u.default},props:{data:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},childrenKey:{type:String,default:"children"},showCheckbox:{type:Boolean,default:!1},appear:{type:Boolean,default:!1}},data:function(){return{prefixCls:b,appearByClickArrow:!1}},computed:{classes:function(){return[b+"-children"]},selectedCls:function(){return[(0,e.default)({},b+"-node-selected",this.data.selected)]},arrowClasses:function(){var C;return[b+"-arrow",(C={},(0,e.default)(C,b+"-arrow-disabled",this.data.disabled),(0,e.default)(C,b+"-arrow-open",this.data.expand),C)]},titleClasses:function(){return[b+"-title",(0,e.default)({},b+"-title-selected",this.data.selected)]},showArrow:function(){return this.data[this.childrenKey]&&this.data[this.childrenKey].length||"loading"in this.data&&!this.data.loading},showLoading:function(){return"loading"in this.data&&this.data.loading},isParentRender:function(){var C=(0,h.findComponentUpward)(this,"Tree");return C&&C.render},parentRender:function(){var C=(0,h.findComponentUpward)(this,"Tree");return C&&C.render?C.render:null},node:function(){var C=this,p=(0,h.findComponentUpward)(this,"Tree");return p?[p.flatState,p.flatState.find(function(S){return(0,a.default)(this,C),S.nodeKey===this.data.nodeKey}.bind(this))]:[]},children:function(){return this.data[this.childrenKey]},arrowType:function(){var C="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.tree.customArrow?C="":this.$IVIEW.tree.arrow&&(C=this.$IVIEW.tree.arrow)),C},customArrowType:function(){var C="";return this.$IVIEW&&this.$IVIEW.tree.customArrow&&(C=this.$IVIEW.tree.customArrow),C},arrowSize:function(){var C="";return this.$IVIEW&&this.$IVIEW.tree.arrowSize&&(C=this.$IVIEW.tree.arrowSize),C}},methods:{handleExpand:function(){var C=this,p=this.data;if(this.appearByClickArrow=!0,p[this.childrenKey].length===0){var S=(0,h.findComponentUpward)(this,"Tree");if(S&&S.loadData){this.$set(this.data,"loading",!0),S.loadData(p,function(P){(0,a.default)(this,C),this.$set(this.data,"loading",!1),P.length&&(this.$set(this.data,this.childrenKey,P),this.$nextTick(function(){return(0,a.default)(this,C),this.handleExpand()}.bind(this)))}.bind(this));return}}p[this.childrenKey]&&p[this.childrenKey].length&&(this.$set(this.data,"expand",!this.data.expand),this.dispatch("Tree","toggle-expand",this.data))},handleClickNode:function(){this.TreeInstance.expandNode?this.showArrow&&this.handleExpand():this.TreeInstance.selectNode&&this.handleSelect()},handleSelect:function(){this.data.disabled||(this.TreeInstance.showCheckbox&&this.TreeInstance.checkDirectly?this.handleCheck():this.dispatch("Tree","on-selected",this.data.nodeKey))},handleCheck:function(){if(!this.data.disabled){var C={checked:!this.data.checked&&!this.data.indeterminate,nodeKey:this.data.nodeKey};this.dispatch("Tree","on-check",C)}},handleContextmenu:function(C,p){C.contextmenu&&(p.preventDefault(),this.dispatch("Tree","contextmenu",{data:C,event:p}))},handlePreventSelect:function(C,p){C.contextmenu&&p.preventDefault()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=x(s),d=t(1),e=x(d),l=t(18),n=x(l),i=t(2),o=x(i),c=t(620),u=x(c),f=t(622),y=x(f),m=t(3),_=t(4),h=x(_),g=t(11),b=x(g);function x(p){return p&&p.__esModule?p:{default:p}}var C="ivu-upload";r.default={name:"Upload",mixins:[h.default,b.default],components:{UploadList:u.default},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},data:{type:Object},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showUploadList:{type:Boolean,default:!0},type:{type:String,validator:function(S){return(0,m.oneOf)(S,["select","drag"])},default:"select"},format:{type:Array,default:function(){return[]}},accept:{type:String},maxSize:{type:Number},beforeUpload:Function,onProgress:{type:Function,default:function(){return{}}},onSuccess:{type:Function,default:function(){return{}}},onError:{type:Function,default:function(){return{}}},onRemove:{type:Function,default:function(){return{}}},onPreview:{type:Function,default:function(){return{}}},onExceededSize:{type:Function,default:function(){return{}}},onFormatError:{type:Function,default:function(){return{}}},defaultFileList:{type:Array,default:function(){return[]}},paste:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},webkitdirectory:{type:Boolean,default:!1}},data:function(){return{prefixCls:C,dragOver:!1,fileList:[],ajaxList:[],tempIndex:1}},computed:{classes:function(){var S;return[""+C,(S={},(0,o.default)(S,C+"-select",this.type==="select"),(0,o.default)(S,C+"-drag",this.type==="drag"),(0,o.default)(S,C+"-dragOver",this.type==="drag"&&this.dragOver),S)]}},methods:{isJson:function(S){return(typeof S=="undefined"?"undefined":(0,n.default)(S))=="object"&&Object.prototype.toString.call(S).toLowerCase()==="[object object]"&&typeof S.length=="undefined"},handleClick:function(){this.itemDisabled||this.$refs.input.click()},handleChange:function(S){var P=S.target.files;!P||(this.uploadFiles(P),this.$refs.input.value=null)},onDrop:function(S){this.dragOver=!1,!this.itemDisabled&&this.uploadFiles(S.dataTransfer.files)},handlePaste:function(S){this.itemDisabled||this.paste&&this.uploadFiles(S.clipboardData.files)},uploadFiles:function(S){var P=this,O=Array.prototype.slice.call(S);this.multiple||(O=O.slice(0,1)),O.length!==0&&O.forEach(function(R){(0,e.default)(this,P),this.upload(R)}.bind(this))},upload:function(S){var P=this;if(!this.beforeUpload)return this.post(S);var O=this.beforeUpload(S);O&&O.then?O.then(function(R){(0,e.default)(this,P),Object.prototype.toString.call(R)==="[object File]"?this.post(R):this.post(S)}.bind(this),function(){(0,e.default)(this,P)}.bind(this)):O!==!1&&this.post(S)},cancel:function(S){var P=this,O=0;return this.ajaxList.forEach(function(R){(0,e.default)(this,P),R.uid===S&&(O++,R.request&&R.request.abort())}.bind(this)),O>0&&(this.ajaxList=this.ajaxList.filter(function(R){return(0,e.default)(this,P),R.uid!==S}.bind(this))),O},post:function(S){var P=this;if(this.format.length){var O=S.name.split(".").pop().toLocaleLowerCase(),R=this.format.some(function(j){return(0,e.default)(this,P),j.toLocaleLowerCase()===O}.bind(this));if(!R)return this.onFormatError(S,this.fileList),!1}if(this.maxSize&&S.size>this.maxSize*1024)return this.onExceededSize(S,this.fileList),!1;this.handleStart(S);var T=new FormData;T.append(this.name,S);var B=(0,a.default)({},this.data);this.webkitdirectory&&(this.isJson(B)||(B={}),B.webkitRelativePath=S.webkitRelativePath),this.isJson(S.ajaxExtraData)&&(this.isJson(B)||(B={}),B=(0,a.default)(B,S.ajaxExtraData)),this.ajaxList.push({uid:S.uid,request:(0,y.default)({headers:this.headers,withCredentials:this.withCredentials,file:S,data:B,filename:this.name,action:this.action,onProgress:function(q){(0,e.default)(this,P),this.handleProgress(q,S)}.bind(this),onSuccess:function(q){(0,e.default)(this,P),this.handleSuccess(q,S),this.ajaxList=this.ajaxList.filter(function(U){var A=U.uid;return(0,e.default)(this,P),A!==S.uid}.bind(this))}.bind(this),onError:function(q,U){(0,e.default)(this,P),this.handleError(q,U,S),this.ajaxList=this.ajaxList.filter(function(A){var V=A.uid;return(0,e.default)(this,P),V!==S.uid}.bind(this))}.bind(this)})})},handleStart:function(S){S.uid=Date.now()+this.tempIndex++;var P={status:"uploading",name:S.name,size:S.size,percentage:0,uid:S.uid,showProgress:!0};this.fileList.push(P)},getFile:function(S){var P=this,O=this.fileList,R=void 0;return O.every(function(T){return(0,e.default)(this,P),R=S.uid===T.uid?T:null,!R}.bind(this)),R},handleProgress:function(S,P){var O=this.getFile(P);this.onProgress(S,O,this.fileList),O.percentage=S.percent||0},handleSuccess:function(S,P){var O=this,R=this.getFile(P);R&&(R.status="finished",R.response=S,this.onSuccess(S,R,this.fileList),this.dispatch("FormItem","on-form-change",R),setTimeout(function(){(0,e.default)(this,O),R.showProgress=!1}.bind(this),1e3))},handleError:function(S,P,O){var R=this.getFile(O),T=this.fileList;R.status="fail",T.splice(T.indexOf(R),1),this.onError(S,P,O)},handleRemove:function(S){var P=this.fileList;P.splice(P.indexOf(S),1),this.onRemove(S,P)},handlePreview:function(S){S.status==="finished"&&this.onPreview(S)},clearFiles:function(){this.fileList=[]}},watch:{defaultFileList:{immediate:!0,handler:function(S){var P=this;this.fileList=S.map(function(O){return(0,e.default)(this,P),O.status="finished",O.percentage=100,O.uid=Date.now()+this.tempIndex++,O}.bind(this))}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(8),e=i(d),l=t(223),n=i(l);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-upload";r.default={name:"UploadList",components:{Icon:e.default,iProgress:n.default},props:{files:{type:Array,default:function(){return[]}}},data:function(){return{prefixCls:o}},methods:{fileCls:function(u){return[o+"-list-file",(0,a.default)({},o+"-list-file-finish",u.status==="finished")]},handleClick:function(u){this.$emit("on-file-click",u)},handlePreview:function(u){this.$emit("on-file-preview",u)},handleRemove:function(u){this.$emit("on-file-remove",u)},format:function(u){var f=u.name.split(".").pop().toLocaleLowerCase()||"",y="ios-document-outline";return["gif","jpg","jpeg","png","bmp","webp"].indexOf(f)>-1&&(y="ios-image"),["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"].indexOf(f)>-1&&(y="ios-film"),["mp3","wav","wma","ogg","aac","flac"].indexOf(f)>-1&&(y="ios-musical-notes"),["doc","txt","docx","pages","epub","pdf"].indexOf(f)>-1&&(y="md-document"),["numbers","csv","xls","xlsx"].indexOf(f)>-1&&(y="ios-stats"),["keynote","ppt","pptx"].indexOf(f)>-1&&(y="ios-videocam"),y},parsePercentage:function(u){return parseInt(u,10)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(2),e=n(d),l=t(3);function n(o){return o&&o.__esModule?o:{default:o}}var i="ivu-row";r.default={name:"Row",props:{type:{validator:function(c){return(0,l.oneOf)(c,["flex"])}},align:{validator:function(c){return(0,l.oneOf)(c,["top","middle","bottom"])}},justify:{validator:function(c){return(0,l.oneOf)(c,["start","end","center","space-around","space-between"])}},gutter:{type:Number,default:0},className:String,wrap:{type:Boolean,default:!0}},computed:{classes:function(){var c;return[""+i,(c={},(0,e.default)(c,i+"-"+String(this.type),!!this.type),(0,e.default)(c,i+"-"+String(this.type)+"-"+String(this.align),!!this.align&&this.type),(0,e.default)(c,i+"-"+String(this.type)+"-"+String(this.justify),!!this.justify&&this.type),(0,e.default)(c,i+"-"+String(this.align),!!this.align),(0,e.default)(c,i+"-"+String(this.justify),!!this.justify),(0,e.default)(c,""+String(this.className),!!this.className),(0,e.default)(c,i+"-no-wrap",!this.wrap),c)]},styles:function(){var c={};return this.gutter!==0&&(c={marginLeft:this.gutter/-2+"px",marginRight:this.gutter/-2+"px"}),c}},methods:{updateGutter:function(c){var u=this,f=(0,l.findComponentDownward)(this,"iCol"),y=(0,l.findBrothersComponents)(f,"iCol",!1);y.length&&y.forEach(function(m){(0,a.default)(this,u),c!==0&&(m.gutter=c)}.bind(this))}},watch:{gutter:function(c){this.updateGutter(c)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=u(s),d=t(18),e=u(d),l=t(1),n=u(l),i=t(2),o=u(i),c=t(3);function u(m){return m&&m.__esModule?m:{default:m}}var f="ivu-col";function y(m){return typeof m=="number"?m+" "+m+" auto":/^\d+(\.\d+)?(px|em|rem|%)$/.test(m)?"0 0 "+String(m):m}r.default={name:"iCol",props:{span:[Number,String],order:[Number,String],offset:[Number,String],push:[Number,String],pull:[Number,String],className:String,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object],xxl:[Number,Object],flex:{type:[Number,String],default:""}},data:function(){return{gutter:0}},computed:{classes:function(){var _,h=this,g=[""+f,(_={},(0,o.default)(_,f+"-span-"+String(this.span),this.span),(0,o.default)(_,f+"-order-"+String(this.order),this.order),(0,o.default)(_,f+"-offset-"+String(this.offset),this.offset),(0,o.default)(_,f+"-push-"+String(this.push),this.push),(0,o.default)(_,f+"-pull-"+String(this.pull),this.pull),(0,o.default)(_,""+String(this.className),!!this.className),_)];return["xs","sm","md","lg","xl","xxl"].forEach(function(b){if((0,n.default)(this,h),typeof this[b]=="number")g.push(f+"-span-"+String(b)+"-"+String(this[b]));else if((0,e.default)(this[b])==="object"){var x=this[b];(0,a.default)(x).forEach(function(C){(0,n.default)(this,h),g.push(C!=="span"?f+"-"+String(b)+"-"+String(C)+"-"+String(x[C]):f+"-span-"+String(b)+"-"+String(x[C]))}.bind(this))}}.bind(this)),g},styles:function(){var _={};return this.gutter!==0&&(_={paddingLeft:this.gutter/2+"px",paddingRight:this.gutter/2+"px"}),this.flex&&(_.flex=y(this.flex)),_}},methods:{updateGutter:function(){var _=(0,c.findComponentUpward)(this,"Row");_&&_.updateGutter(_.gutter)}},mounted:function(){this.updateGutter()},beforeDestroy:function(){this.updateGutter()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-select-group";r.default={name:"OptionGroup",props:{label:{type:String,default:""}},data:function(){return{prefixCls:e,hidden:!1}},methods:{queryChange:function(){var n=this;this.$nextTick(function(){(0,a.default)(this,n);for(var i=this.$refs.options.querySelectorAll(".ivu-select-item"),o=!1,c=0;c1&&arguments[1]!==void 0?arguments[1]:{};Ze.installed||(tt.default.use(ve.locale),tt.default.i18n(ve.i18n),(0,e.default)(ft).forEach(function(vt){(0,a.default)(this,At),Je.component(vt,ft[vt])}.bind(this)),Je.prototype.$IVIEW={size:ve.size||"",transfer:"transfer"in ve?ve.transfer:"",capture:"capture"in ve?ve.capture:!0,select:{arrow:ve.select&&ve.select.arrow?ve.select.arrow:"",customArrow:ve.select&&ve.select.customArrow?ve.select.customArrow:"",arrowSize:ve.select&&ve.select.arrowSize?ve.select.arrowSize:""},cell:{arrow:ve.cell&&ve.cell.arrow?ve.cell.arrow:"",customArrow:ve.cell&&ve.cell.customArrow?ve.cell.customArrow:"",arrowSize:ve.cell&&ve.cell.arrowSize?ve.cell.arrowSize:""},menu:{arrow:ve.menu&&ve.menu.arrow?ve.menu.arrow:"",customArrow:ve.menu&&ve.menu.customArrow?ve.menu.customArrow:"",arrowSize:ve.menu&&ve.menu.arrowSize?ve.menu.arrowSize:""},tree:{arrow:ve.tree&&ve.tree.arrow?ve.tree.arrow:"",customArrow:ve.tree&&ve.tree.customArrow?ve.tree.customArrow:"",arrowSize:ve.tree&&ve.tree.arrowSize?ve.tree.arrowSize:""},cascader:{arrow:ve.cascader&&ve.cascader.arrow?ve.cascader.arrow:"",customArrow:ve.cascader&&ve.cascader.customArrow?ve.cascader.customArrow:"",arrowSize:ve.cascader&&ve.cascader.arrowSize?ve.cascader.arrowSize:"",itemArrow:ve.cascader&&ve.cascader.itemArrow?ve.cascader.itemArrow:"",customItemArrow:ve.cascader&&ve.cascader.customItemArrow?ve.cascader.customItemArrow:"",itemArrowSize:ve.cascader&&ve.cascader.itemArrowSize?ve.cascader.itemArrowSize:""},colorPicker:{arrow:ve.colorPicker&&ve.colorPicker.arrow?ve.colorPicker.arrow:"",customArrow:ve.colorPicker&&ve.colorPicker.customArrow?ve.colorPicker.customArrow:"",arrowSize:ve.colorPicker&&ve.colorPicker.arrowSize?ve.colorPicker.arrowSize:""},datePicker:{icon:ve.datePicker&&ve.datePicker.icon?ve.datePicker.icon:"",customIcon:ve.datePicker&&ve.datePicker.customIcon?ve.datePicker.customIcon:"",iconSize:ve.datePicker&&ve.datePicker.iconSize?ve.datePicker.iconSize:""},timePicker:{icon:ve.timePicker&&ve.timePicker.icon?ve.timePicker.icon:"",customIcon:ve.timePicker&&ve.timePicker.customIcon?ve.timePicker.customIcon:"",iconSize:ve.timePicker&&ve.timePicker.iconSize?ve.timePicker.iconSize:""},tabs:{closeIcon:ve.tabs&&ve.tabs.closeIcon?ve.tabs.closeIcon:"",customCloseIcon:ve.tabs&&ve.tabs.customCloseIcon?ve.tabs.customCloseIcon:"",closeIconSize:ve.tabs&&ve.tabs.closeIconSize?ve.tabs.closeIconSize:""},modal:{maskClosable:ve.modal&&"maskClosable"in ve.modal?ve.modal.maskClosable:"",checkEscClose:ve.modal&&"checkEscClose"in ve.modal?ve.modal.checkEscClose:""}},Je.prototype.$Loading=ke.default,Je.prototype.$Message=Ye.default,Je.prototype.$Modal=qe.default,Je.prototype.$Notice=L.default,Je.prototype.$Spin=ze.default)};typeof window!="undefined"&&window.Vue&&ct(window.Vue);var ht=(0,n.default)({version:"4.7.0-56",locale:tt.default.use,i18n:tt.default.i18n,install:ct,Circle:X.default,Switch:nt.default},dt);ht.lang=function(Ze){(0,a.default)(void 0,void 0);var Je=window["iview/locale"].default;Ze===Je.i.locale?tt.default.use(Je):console.log("The "+String(Ze)+" language pack is not loaded.")}.bind(void 0),v.exports.default=v.exports=ht},function(v,r,t){t(262),v.exports=t(5).Object.keys},function(v,r,t){var s=t(29),a=t(40);t(97)("keys",function(){return function(e){return a(s(e))}})},function(v,r,t){var s=t(34),a=t(52),d=t(264);v.exports=function(e){return function(l,n,i){var o=s(l),c=a(o.length),u=d(i,c),f;if(e&&n!=n){for(;c>u;)if(f=o[u++],f!=f)return!0}else for(;c>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}}},function(v,r,t){var s=t(65),a=Math.max,d=Math.min;v.exports=function(e,l){return e=s(e),e<0?a(e+l,0):d(e,l)}},function(v,r,t){t(266),v.exports=t(5).Object.assign},function(v,r,t){var s=t(7);s(s.S+s.F,"Object",{assign:t(267)})},function(v,r,t){var s=t(13),a=t(40),d=t(71),e=t(54),l=t(29),n=t(64),i=Object.assign;v.exports=!i||t(31)(function(){var o={},c={},u=Symbol(),f="abcdefghijklmnopqrst";return o[u]=7,f.split("").forEach(function(y){c[y]=y}),i({},o)[u]!=7||Object.keys(i({},c)).join("")!=f})?function(c,u){for(var f=l(c),y=arguments.length,m=1,_=d.f,h=e.f;y>m;)for(var g=n(arguments[m++]),b=_?a(g).concat(_(g)):a(g),x=b.length,C=0,p;x>C;)p=b[C++],(!s||h.call(g,p))&&(f[p]=g[p]);return f}:i},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(269),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(99),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(273);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(271),__esModule:!0}},function(v,r,t){t(272);var s=t(5).Object;v.exports=function(d,e,l){return s.defineProperty(d,e,l)}},function(v,r,t){var s=t(7);s(s.S+s.F*!t(13),"Object",{defineProperty:t(16).f})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",[n("div",{ref:"point",class:e.classes,style:e.styles},[e._t("default")],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.slot,expression:"slot"}],style:e.slotStyle})])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(275),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(100),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(283);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("i",{class:e.classes,style:e.styles,on:{click:e.handleClick}})},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){t(46),t(36),v.exports=t(282)},function(v,r,t){var s=t(279),a=t(102),d=t(35),e=t(34);v.exports=t(72)(Array,"Array",function(l,n){this._t=e(l),this._i=0,this._k=n},function(){var l=this._t,n=this._k,i=this._i++;return!l||i>=l.length?(this._t=void 0,a(1)):n=="keys"?a(0,i):n=="values"?a(0,l[i]):a(0,[i,l[i]])},"values"),d.Arguments=d.Array,s("keys"),s("values"),s("entries")},function(v,r){v.exports=function(){}},function(v,r,t){var s=t(55),a=t(44),d=t(47),e={};t(26)(e,t(10)("iterator"),function(){return this}),v.exports=function(l,n,i){l.prototype=s(e,{next:a(1,i)}),d(l,n+" Iterator")}},function(v,r,t){var s=t(65),a=t(63);v.exports=function(d){return function(e,l){var n=String(a(e)),i=s(l),o=n.length,c,u;return i<0||i>=o?d?"":void 0:(c=n.charCodeAt(i),c<55296||c>56319||i+1===o||(u=n.charCodeAt(i+1))<56320||u>57343?d?n.charAt(i):c:d?n.slice(i,i+2):(c-55296<<10)+(u-56320)+65536)}}},function(v,r,t){var s=t(23),a=t(73);v.exports=t(5).getIterator=function(d){var e=a(d);if(typeof e!="function")throw TypeError(d+" is not iterable!");return s(e.call(d))}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.fade?"fade":""}},[e.closed?e._e():n("div",{class:e.wrapClasses},[e.showIcon?n("span",{class:e.iconClasses},[e._t("icon",function(){return[n("Icon",{attrs:{type:e.iconType}})]})],2):e._e(),e._v(" "),n("span",{class:e.messageClasses},[e._t("default")],2),e._v(" "),n("span",{class:e.descClasses},[e._t("desc")],2),e._v(" "),e.closable?n("a",{class:e.closeClasses,on:{click:e.close}},[e._t("close",function(){return[n("Icon",{attrs:{type:"ios-close"}})]})],2):e._e()])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(285),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(107),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(286);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.wrapperComponent,{tag:"component",attrs:{"offset-top":e.offsetTop,"offset-bottom":e.offsetBottom},on:{"on-change":e.handleAffixStateChange}},[n("div",{class:e.prefix+"-wrapper",style:e.wrapperStyle},[n("div",{class:""+e.prefix},[n("div",{class:e.prefix+"-ink"},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showInk,expression:"showInk"}],class:e.prefix+"-ink-ball",style:{top:e.inkTop+"px"}})]),e._v(" "),e._t("default")],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(288),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(108),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(289);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.anchorLinkClasses},[n("a",{class:e.linkTitleClasses,attrs:{href:e.href,"data-scroll-offset":e.scrollOffset,"data-href":e.href,title:e.title},on:{click:function(o){return o.preventDefault(),e.goAnchor.apply(null,arguments)}}},[e._v(e._s(e.title))]),e._v(" "),e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(291),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(109),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(341);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(293),__esModule:!0}},function(v,r,t){t(46),t(36),v.exports=t(294)},function(v,r,t){var s=t(56),a=t(10)("iterator"),d=t(35);v.exports=t(5).isIterable=function(e){var l=Object(e);return l[a]!==void 0||"@@iterator"in l||d.hasOwnProperty(s(l))}},function(v,r,t){t(296),v.exports=t(5).Number.isFinite},function(v,r,t){var s=t(7),a=t(9).isFinite;s(s.S,"Number",{isFinite:function(e){return typeof e=="number"&&a(e)}})},function(v,r,t){v.exports={default:t(298),__esModule:!0}},function(v,r,t){t(36),t(46),v.exports=t(76).f("iterator")},function(v,r,t){v.exports={default:t(300),__esModule:!0}},function(v,r,t){t(301),t(79),t(305),t(306),v.exports=t(5).Symbol},function(v,r,t){var s=t(9),a=t(30),d=t(13),e=t(7),l=t(103),n=t(77).KEY,i=t(31),o=t(67),c=t(47),u=t(53),f=t(10),y=t(76),m=t(78),_=t(302),h=t(111),g=t(23),b=t(19),x=t(29),C=t(34),p=t(70),S=t(44),P=t(55),O=t(303),R=t(304),T=t(71),B=t(16),j=t(40),q=R.f,U=B.f,A=O.f,V=s.Symbol,E=s.JSON,W=E&&E.stringify,G="prototype",z=f("_hidden"),Z=f("toPrimitive"),re={}.propertyIsEnumerable,X=o("symbol-registry"),N=o("symbols"),Y=o("op-symbols"),w=Object[G],F=typeof V=="function"&&!!T.f,H=s.QObject,te=!H||!H[G]||!H[G].findChild,ie=d&&i(function(){return P(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a!=7})?function(me,pe,ge){var Me=q(w,pe);Me&&delete w[pe],U(me,pe,ge),Me&&me!==w&&U(w,pe,Me)}:U,ue=function(me){var pe=N[me]=P(V[G]);return pe._k=me,pe},ee=F&&typeof V.iterator=="symbol"?function(me){return typeof me=="symbol"}:function(me){return me instanceof V},he=function(pe,ge,Me){return pe===w&&he(Y,ge,Me),g(pe),ge=p(ge,!0),g(Me),a(N,ge)?(Me.enumerable?(a(pe,z)&&pe[z][ge]&&(pe[z][ge]=!1),Me=P(Me,{enumerable:S(0,!1)})):(a(pe,z)||U(pe,z,S(1,{})),pe[z][ge]=!0),ie(pe,ge,Me)):U(pe,ge,Me)},ae=function(pe,ge){g(pe);for(var Me=_(ge=C(ge)),we=0,Le=Me.length,Ee;Le>we;)he(pe,Ee=Me[we++],ge[Ee]);return pe},M=function(pe,ge){return ge===void 0?P(pe):ae(P(pe),ge)},k=function(pe){var ge=re.call(this,pe=p(pe,!0));return this===w&&a(N,pe)&&!a(Y,pe)?!1:ge||!a(this,pe)||!a(N,pe)||a(this,z)&&this[z][pe]?ge:!0},$=function(pe,ge){if(pe=C(pe),ge=p(ge,!0),!(pe===w&&a(N,ge)&&!a(Y,ge))){var Me=q(pe,ge);return Me&&a(N,ge)&&!(a(pe,z)&&pe[z][ge])&&(Me.enumerable=!0),Me}},D=function(pe){for(var ge=A(C(pe)),Me=[],we=0,Le;ge.length>we;)!a(N,Le=ge[we++])&&Le!=z&&Le!=n&&Me.push(Le);return Me},I=function(pe){for(var ge=pe===w,Me=A(ge?Y:C(pe)),we=[],Le=0,Ee;Me.length>Le;)a(N,Ee=Me[Le++])&&(ge?a(w,Ee):!0)&&we.push(N[Ee]);return we};F||(V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var pe=u(arguments.length>0?arguments[0]:void 0),ge=function(Me){this===w&&ge.call(Y,Me),a(this,z)&&a(this[z],pe)&&(this[z][pe]=!1),ie(this,pe,S(1,Me))};return d&&te&&ie(w,pe,{configurable:!0,set:ge}),ue(pe)},l(V[G],"toString",function(){return this._k}),R.f=$,B.f=he,t(112).f=O.f=D,t(54).f=k,T.f=I,d&&!t(42)&&l(w,"propertyIsEnumerable",k,!0),y.f=function(me){return ue(f(me))}),e(e.G+e.W+e.F*!F,{Symbol:V});for(var K="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;K.length>J;)f(K[J++]);for(var se=j(f.store),le=0;se.length>le;)m(se[le++]);e(e.S+e.F*!F,"Symbol",{for:function(me){return a(X,me+="")?X[me]:X[me]=V(me)},keyFor:function(pe){if(!ee(pe))throw TypeError(pe+" is not a symbol!");for(var ge in X)if(X[ge]===pe)return ge},useSetter:function(){te=!0},useSimple:function(){te=!1}}),e(e.S+e.F*!F,"Object",{create:M,defineProperty:he,defineProperties:ae,getOwnPropertyDescriptor:$,getOwnPropertyNames:D,getOwnPropertySymbols:I});var fe=i(function(){T.f(1)});e(e.S+e.F*fe,"Object",{getOwnPropertySymbols:function(pe){return T.f(x(pe))}}),E&&e(e.S+e.F*(!F||i(function(){var me=V();return W([me])!="[null]"||W({a:me})!="{}"||W(Object(me))!="{}"})),"JSON",{stringify:function(pe){for(var ge=[pe],Me=1,we,Le;arguments.length>Me;)ge.push(arguments[Me++]);if(Le=we=ge[1],!(!b(we)&&pe===void 0||ee(pe)))return h(we)||(we=function(Ee,$e){if(typeof Le=="function"&&($e=Le.call(this,Ee,$e)),!ee($e))return $e}),ge[1]=we,W.apply(E,ge)}}),V[G][Z]||t(26)(V[G],Z,V[G].valueOf),c(V,"Symbol"),c(Math,"Math",!0),c(s.JSON,"JSON",!0)},function(v,r,t){var s=t(40),a=t(71),d=t(54);v.exports=function(e){var l=s(e),n=a.f;if(n)for(var i=n(e),o=d.f,c=0,u;i.length>c;)o.call(e,u=i[c++])&&l.push(u);return l}},function(v,r,t){var s=t(34),a=t(112).f,d={}.toString,e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(n){try{return a(n)}catch{return e.slice()}};v.exports.f=function(i){return e&&d.call(i)=="[object Window]"?l(i):a(s(i))}},function(v,r,t){var s=t(54),a=t(44),d=t(34),e=t(70),l=t(30),n=t(98),i=Object.getOwnPropertyDescriptor;r.f=t(13)?i:function(c,u){if(c=d(c),u=e(u,!0),n)try{return i(c,u)}catch{}if(l(c,u))return a(!s.f.call(c,u),c[u])}},function(v,r,t){t(78)("asyncIterator")},function(v,r,t){t(78)("observable")},function(v,r,t){var s=t(5),a=s.JSON||(s.JSON={stringify:JSON.stringify});v.exports=function(e){return a.stringify.apply(a,arguments)}},function(v,r,t){t(36),t(309),v.exports=t(5).Array.from},function(v,r,t){var s=t(25),a=t(7),d=t(29),e=t(114),l=t(115),n=t(52),i=t(310),o=t(73);a(a.S+a.F*!t(116)(function(c){Array.from(c)}),"Array",{from:function(u){var f=d(u),y=typeof this=="function"?this:Array,m=arguments.length,_=m>1?arguments[1]:void 0,h=_!==void 0,g=0,b=o(f),x,C,p,S;if(h&&(_=s(_,m>2?arguments[2]:void 0,2)),b!=null&&!(y==Array&&l(b)))for(S=b.call(f),C=new y;!(p=S.next()).done;g++)i(C,g,h?e(S,_,[p.value,g],!0):p.value);else for(x=n(f.length),C=new y(x);x>g;g++)i(C,g,h?_(f[g],g):f[g]);return C.length=g,C}})},function(v,r,t){var s=t(16),a=t(44);v.exports=function(d,e,l){e in d?s.f(d,e,a(0,l)):d[e]=l}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-select-dropdown",class:e.className,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){v.exports={default:t(313),__esModule:!0}},function(v,r,t){t(314);var s=t(5).Object;v.exports=function(d,e){return s.defineProperties(d,e)}},function(v,r,t){var s=t(7);s(s.S+s.F*!t(13),"Object",{defineProperties:t(104)})},function(v,r,t){v.exports={default:t(316),__esModule:!0}},function(v,r,t){t(317);var s=t(5).Object;v.exports=function(d,e){return s.create(d,e)}},function(v,r,t){var s=t(7);s(s.S,"Object",{create:t(55)})},function(v,r,t){v.exports={default:t(319),__esModule:!0}},function(v,r,t){t(320),v.exports=t(5).Object.getPrototypeOf},function(v,r,t){var s=t(29),a=t(106);t(97)("getPrototypeOf",function(){return function(e){return a(s(e))}})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(322),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u6761",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"}}};(0,a.default)(e),r.default=e},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(l){e||typeof window.iview!="undefined"&&("langs"in iview||(iview.langs={}),iview.langs[l.i.locale]=l)};var s=t(17),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e=a.default.prototype.$isServer},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(_){return a(_)&&!d(_)};function a(m){return!!m&&typeof m=="object"}function d(m){var _=Object.prototype.toString.call(m);return _==="[object RegExp]"||_==="[object Date]"||n(m)}var e=typeof Symbol=="function"&&Symbol.for,l=e?Symbol.for("react.element"):60103;function n(m){return m.$$typeof===l}function i(m){return Array.isArray(m)?[]:{}}function o(m,_){return _.clone!==!1&&_.isMergeableObject(m)?f(i(m),m,_):m}function c(m,_,h){return m.concat(_).map(function(g){return o(g,h)})}function u(m,_,h){var g={};return h.isMergeableObject(m)&&Object.keys(m).forEach(function(b){g[b]=o(m[b],h)}),Object.keys(_).forEach(function(b){!h.isMergeableObject(_[b])||!m[b]?g[b]=o(_[b],h):g[b]=f(m[b],_[b],h)}),g}function f(m,_,h){h=h||{},h.arrayMerge=h.arrayMerge||c,h.isMergeableObject=h.isMergeableObject||s;var g=Array.isArray(_),b=Array.isArray(m),x=g===b;return x?g?h.arrayMerge(m,_,h):u(m,_,h):o(_,h)}f.all=function(_,h){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(g,b){return f(g,b,h)},{})};var y=f;r.default=y},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(18),e=l(d);r.default=function(){function i(c,u){return Object.prototype.hasOwnProperty.call(c,u)}function o(c){for(var u=this,f=arguments.length,y=Array(f>1?f-1:0),m=1;me.maxTagCount?n("div",{staticClass:"ivu-tag ivu-tag-checked"},[n("span",{staticClass:"ivu-tag-text ivu-select-max-tag"},[e.maxTagPlaceholder?[e._v(e._s(e.maxTagPlaceholder(e.selectedMultiple.length-e.maxTagCount)))]:[e._v("+ "+e._s(e.selectedMultiple.length-e.maxTagCount)+"...")]],2)]):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.singleDisplayValue,expression:"singleDisplayValue"}],class:e.singleDisplayClasses},[e._v(e._s(e.singleDisplayValue))]),e._v(" "),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"},{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],ref:"input",class:[e.prefixCls+"-input"],style:e.inputStyle,attrs:{id:e.inputElementId,type:"text",readonly:e.searchInOption,disabled:e.disabled,placeholder:e.showPlaceholder?e.localePlaceholder:"",autocomplete:"off",spellcheck:"false"},domProps:{value:e.query},on:{keydown:[e.resetInputState,function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"delete",[8,46],i.key,["Backspace","Delete","Del"])?null:e.handleInputDelete.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleInputEnter.apply(null,arguments)}],focus:e.onInputFocus,blur:e.onInputBlur,input:function(o){o.target.composing||(e.query=o.target.value)}}}):e._e(),e._v(" "),e.resetSelect?n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:"ios-close-circle"},nativeOn:{click:function(o){return o.stopPropagation(),e.onClear.apply(null,arguments)}}}):e._e(),e._v(" "),!e.resetSelect&&!e.remote?n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(122),a=t.n(s);for(var d in s)d!=="default"&&function(y){t.d(r,y,function(){return s[y]})}(d);var e=t(0),l,n,i=!1,o=null,c=null,u=null,f=Object(e.a)(a.a,l,n,i,o,c,u);r.default=f.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside:[capture]",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture},{name:"click-outside",rawName:"v-click-outside:[capture].mousedown",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture,modifiers:{mousedown:!0}},{name:"click-outside",rawName:"v-click-outside:[capture].touchstart",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture,modifiers:{touchstart:!0}}],class:e.classes},[n("div",{ref:"reference",class:e.selectionCls,attrs:{tabindex:e.selectTabindex},on:{blur:e.toggleHeaderFocus,focus:e.toggleHeaderFocus,click:e.toggleMenu,keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:e.handleKeydown.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleKeydown.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),e.handleKeydown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),e.handleKeydown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"tab",9,i.key,"Tab")?null:e.handleKeydown.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"delete",[8,46],i.key,["Backspace","Delete","Del"])?null:e.handleKeydown.apply(null,arguments)}],mouseenter:function(o){e.hasMouseHoverHead=!0},mouseleave:function(o){e.hasMouseHoverHead=!1}}},[e._t("input",function(){return[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.publicValue}}),e._v(" "),n("select-head",{attrs:{filterable:e.filterable,multiple:e.multiple,multipleUncancelable:e.multipleUncancelable,searchInOption:e.searchInOption,values:e.values,clearable:e.canBeCleared,prefix:e.prefix,disabled:e.itemDisabled,remote:e.remote,"input-element-id":e.elementId,"initial-label":e.initialLabel,placeholder:e.placeholder,"query-prop":e.query,"max-tag-count":e.maxTagCount,"max-tag-placeholder":e.maxTagPlaceholder,"allow-create":e.allowCreate,"show-create-item":e.showCreateItem},on:{"on-query-change":e.onQueryChange,"on-input-focus":function(o){e.isFocused=!0},"on-input-blur":function(o){e.isFocused=!1},"on-clear":e.clearSingleSelect,"on-enter":e.handleCreateItem}},[e._t("prefix",null,{slot:"prefix"})],2)]})],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.dropVisible,expression:"dropVisible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"dropdown",class:e.dropdownCls,attrs:{placement:e.placement,"data-transfer":e.transfer,transfer:e.transfer,eventsEnabled:e.eventsEnabled}},[e._t("drop-prepend"),e._v(" "),e.searchInOption?n("div",{ref:"searchInOption",class:e.prefixCls+"-search-in-option"},[n("Input",{attrs:{placeholder:e.localePlaceholder},model:{value:e.query,callback:function(o){e.query=o},expression:"query"}})],1):e._e(),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showNotFoundLabel&&!e.allowCreate,expression:"showNotFoundLabel && !allowCreate"}],class:[e.prefixCls+"-not-found"]},[n("li",[e._v(e._s(e.localeNotFoundText))])]),e._v(" "),!e.remote||e.remote&&!e.loading?n("functional-options",{class:e.prefixCls+"-dropdown-list",attrs:{options:e.selectOptions,"slot-update-hook":e.updateSlotOptions,"slot-options":e.slotOptions}},[e.showCreateItem?n("li",{class:e.prefixCls+"-item",on:{click:e.handleCreateItem}},[e._v(` + a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,-"+2*this.radius},len:function(){return Math.PI*2*this.radius},trailStyle:function(){var i={};return this.dashboard&&(i={"stroke-dasharray":this.len-75+"px "+String(this.len)+"px","stroke-dashoffset":"-"+75/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"}),i},pathStyle:function(){var i={};return this.dashboard?i={"stroke-dasharray":this.percent/100*(this.len-75)+"px "+String(this.len)+"px","stroke-dashoffset":"-"+75/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .6s ease 0s, stroke .6s, stroke-width .06s ease .6s"}:i={"stroke-dasharray":String(this.len)+"px "+String(this.len)+"px","stroke-dashoffset":(100-this.percent)/100*this.len+"px",transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"},i},wrapClasses:function(){return""+l},innerClasses:function(){return l+"-inner"},strokeValue:function(){var i=this.strokeColor;return typeof this.strokeColor!="string"&&(i="url(#"+String(this.id)+")"),i},showDefs:function(){return typeof this.strokeColor!="string"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(2),e=l(d);function l(i){return i&&i.__esModule?i:{default:i}}var n="ivu-collapse";r.default={name:"Collapse",props:{accordion:{type:Boolean,default:!1},value:{type:[Array,String]},simple:{type:Boolean,default:!1}},data:function(){return{currentValue:this.value}},computed:{classes:function(){return[""+n,(0,e.default)({},n+"-simple",this.simple)]}},mounted:function(){this.setActive()},methods:{setActive:function(){var o=this,c=this.getActiveKey();this.$children.forEach(function(u,f){(0,a.default)(this,o);var y=u.name||f.toString();u.isActive=c.indexOf(y)>-1,u.index=f}.bind(this))},getActiveKey:function(){var o=this.currentValue||[],c=this.accordion;Array.isArray(o)||(o=[o]),c&&o.length>1&&(o=[o[0]]);for(var u=0;u-1&&f.splice(y,1):y<0&&f.push(c),u=f}this.currentValue=u,this.$emit("input",u),this.$emit("on-change",u)}},watch:{value:function(o){this.currentValue=o},currentValue:function(){this.setActive()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(8),e=i(d),l=t(83),n=i(l);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-collapse";r.default={name:"Panel",components:{Icon:e.default,CollapseTransition:n.default},props:{name:{type:String},hideArrow:{type:Boolean,default:!1}},data:function(){return{index:0,isActive:!1,mounted:!1}},computed:{itemClasses:function(){return[o+"-item",(0,a.default)({},o+"-item-active",this.isActive)]},headerClasses:function(){return o+"-header"},contentClasses:function(){return o+"-content"},boxClasses:function(){return o+"-content-box"}},methods:{toggle:function(){this.$parent.toggle({name:this.name||this.index,isActive:this.isActive})}},mounted:function(){this.mounted=!0,this.$parent.setActive()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=G(s),d=t(149),e=G(d),l=t(80),n=t(24),i=G(n),o=t(37),c=G(o),u=t(395),f=G(u),y=t(397),m=G(y),_=t(399),h=G(_),g=t(401),b=G(g),x=t(38),C=G(x),p=t(28),S=G(p),P=t(8),O=G(P),A=t(6),T=G(A),B=t(3),j=t(4),q=G(j),U=t(11),R=G(U),V=t(50),E=G(V),k=t(39);function G(z){return z&&z.__esModule?z:{default:z}}r.default={name:"ColorPicker",components:{Drop:c.default,RecommendColors:f.default,Saturation:m.default,Hue:h.default,Alpha:b.default,iInput:C.default,iButton:S.default,Icon:O.default},directives:{clickOutside:l.directive,TransferDom:i.default},mixins:[q.default,T.default,E.default,R.default],props:{value:{type:String,default:void 0},hue:{type:Boolean,default:!0},alpha:{type:Boolean,default:!1},recommend:{type:Boolean,default:!1},format:{type:String,validator:function(Z){return(0,B.oneOf)(Z,["hsl","hsv","hex","rgb"])},default:void 0},colors:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},size:{validator:function(Z){return(0,B.oneOf)(Z,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},hideDropDown:{type:Boolean,default:!1},placement:{type:String,validator:function(Z){return(0,B.oneOf)(Z,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String,default:void 0},editable:{type:Boolean,default:!0},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{val:(0,k.changeColor)(this.value||""),currentValue:this.value||"",dragging:!1,visible:!1,recommendedColor:["#2d8cf0","#19be6b","#ff9900","#ed4014","#00b5ff","#19c919","#f9e31c","#ea1a1a","#9b1dea","#00c2b1","#ac7a33","#1d35ea","#8bc34a","#f16b62","#ea4ca3","#0d94aa","#febd79","#5d4037","#00bcd4","#f06292","#cddc39","#607d8b","#000000","#ffffff"]}},computed:{arrowClasses:function(){return[String(this.inputPrefixCls)+"-icon",String(this.inputPrefixCls)+"-icon-normal"]},transition:function(){return(0,B.oneOf)(this.placement,["bottom-start","bottom","bottom-end"])?"slide-up":"fade"},saturationColors:{get:function(){return this.val},set:function(Z){this.val=Z,this.$emit("on-active-change",this.formatColor)}},classes:function(){return[""+String(this.prefixCls),(0,a.default)({},String(this.prefixCls)+"-transfer",this.transfer)]},wrapClasses:function(){return[String(this.prefixCls)+"-rel",String(this.prefixCls)+"-"+String(this.size),String(this.inputPrefixCls)+"-wrapper",String(this.inputPrefixCls)+"-wrapper-"+String(this.size),(0,a.default)({},String(this.prefixCls)+"-disabled",this.itemDisabled)]},inputClasses:function(){var Z;return[String(this.prefixCls)+"-input",""+String(this.inputPrefixCls),String(this.inputPrefixCls)+"-"+String(this.size),(Z={},(0,a.default)(Z,String(this.prefixCls)+"-focused",this.visible),(0,a.default)(Z,String(this.prefixCls)+"-disabled",this.itemDisabled),Z)]},dropClasses:function(){var Z;return[String(this.transferPrefixCls)+"-no-max-height",(Z={},(0,a.default)(Z,String(this.prefixCls)+"-transfer",this.transfer),(0,a.default)(Z,String(this.prefixCls)+"-hide-drop",this.hideDropDown),(0,a.default)(Z,this.transferClassName,this.transferClassName),Z)]},displayedColorStyle:function(){return{backgroundColor:(0,k.toRGBAString)(this.visible?this.saturationColors.rgba:(0,e.default)(this.value).toRgb())}},formatColor:function(){var Z=this.format,re=this.saturationColors;if(Z){if(Z==="hsl")return(0,e.default)(re.hsl).toHslString();if(Z==="hsv")return(0,e.default)(re.hsv).toHsvString();if(Z==="hex")return re.hex;if(Z==="rgb")return(0,k.toRGBAString)(re.rgba)}else if(this.alpha)return(0,k.toRGBAString)(re.rgba);return re.hex},confirmColorClasses:function(){return[String(this.prefixCls)+"-confirm-color",(0,a.default)({},String(this.prefixCls)+"-confirm-color-editable",this.editable)]},arrowType:function(){var Z="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.colorPicker.customArrow?Z="":this.$IVIEW.colorPicker.arrow&&(Z=this.$IVIEW.colorPicker.arrow)),Z},customArrowType:function(){var Z="";return this.$IVIEW&&this.$IVIEW.colorPicker.customArrow&&(Z=this.$IVIEW.colorPicker.customArrow),Z},arrowSize:function(){var Z="";return this.$IVIEW&&this.$IVIEW.colorPicker.arrowSize&&(Z=this.$IVIEW.colorPicker.arrowSize),Z}},watch:{value:function(Z){this.val=(0,k.changeColor)(Z||"")},visible:function(Z){this.val=(0,k.changeColor)(this.value||""),this.$refs.drop[Z?"update":"destroy"](),this.$emit("on-open-change",Boolean(Z))}},mounted:function(){this.$on("on-escape-keydown",this.closer),this.$on("on-dragging",this.setDragging)},methods:{setDragging:function(Z){this.dragging=Z},handleClose:function(Z){if(this.visible){if(this.dragging||Z.type==="mousedown"){this.$refs.editColorInput&&Z.target!==this.$refs.editColorInput.$el.querySelector("input")&&Z.preventDefault();return}if(this.transfer){var re=this.$refs.drop.$el;if(re===Z.target||re.contains(Z.target))return}this.closer(Z);return}this.visible=!1},toggleVisible:function(){this.itemDisabled||(this.visible=!this.visible,this.$refs.input.focus())},childChange:function(Z){this.colorChange(Z)},colorChange:function(Z,re){this.oldHue=this.saturationColors.hsl.h,this.saturationColors=(0,k.changeColor)(Z,re||this.oldHue)},closer:function(Z){Z&&(Z.preventDefault(),Z.stopPropagation()),this.visible=!1,this.$refs.input.focus()},handleButtons:function(Z,re){this.currentValue=re,this.$emit("input",re),this.$emit("on-change",re),this.dispatch("FormItem","on-form-change",re),this.closer(Z)},handleSuccess:function(Z){this.handleButtons(Z,this.formatColor),this.$emit("on-pick-success")},handleClear:function(Z){this.handleButtons(Z,""),this.$emit("on-pick-clear")},handleSelectColor:function(Z){this.val=(0,k.changeColor)(Z),this.$emit("on-active-change",this.formatColor)},handleEditColor:function(Z){var re=Z.target.value;this.handleSelectColor(re)},handleFirstTab:function(Z){Z.shiftKey&&(Z.preventDefault(),Z.stopPropagation(),this.$refs.ok.$el.focus())},handleLastTab:function(Z){Z.shiftKey||(Z.preventDefault(),Z.stopPropagation(),this.$refs.saturation.$el.focus())},onTab:function(Z){this.visible&&Z.preventDefault()},onEscape:function(Z){this.visible&&this.closer(Z)},onArrow:function(Z){this.visible||(Z.preventDefault(),Z.stopPropagation(),this.visible=!0)}}}},function(v,r,t){var s;(function(a){var d=/^\s+/,e=/\s+$/,l=0,n=a.round,i=a.min,o=a.max,c=a.random;function u(M,W){if(M=M||"",W=W||{},M instanceof u)return M;if(!(this instanceof u))return new u(M,W);var $=f(M);this._originalInput=M,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=n(100*this._a)/100,this._format=W.format||$.format,this._gradientType=W.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=$.ok,this._tc_id=l++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var M=this.toRgb();return(M.r*299+M.g*587+M.b*114)/1e3},getLuminance:function(){var M=this.toRgb(),W,$,D,I,K,X;return W=M.r/255,$=M.g/255,D=M.b/255,W<=.03928?I=W/12.92:I=a.pow((W+.055)/1.055,2.4),$<=.03928?K=$/12.92:K=a.pow(($+.055)/1.055,2.4),D<=.03928?X=D/12.92:X=a.pow((D+.055)/1.055,2.4),.2126*I+.7152*K+.0722*X},setAlpha:function(M){return this._a=Z(M),this._roundA=n(100*this._a)/100,this},toHsv:function(){var M=h(this._r,this._g,this._b);return{h:M.h*360,s:M.s,v:M.v,a:this._a}},toHsvString:function(){var M=h(this._r,this._g,this._b),W=n(M.h*360),$=n(M.s*100),D=n(M.v*100);return this._a==1?"hsv("+W+", "+$+"%, "+D+"%)":"hsva("+W+", "+$+"%, "+D+"%, "+this._roundA+")"},toHsl:function(){var M=m(this._r,this._g,this._b);return{h:M.h*360,s:M.s,l:M.l,a:this._a}},toHslString:function(){var M=m(this._r,this._g,this._b),W=n(M.h*360),$=n(M.s*100),D=n(M.l*100);return this._a==1?"hsl("+W+", "+$+"%, "+D+"%)":"hsla("+W+", "+$+"%, "+D+"%, "+this._roundA+")"},toHex:function(M){return b(this._r,this._g,this._b,M)},toHexString:function(M){return"#"+this.toHex(M)},toHex8:function(M){return x(this._r,this._g,this._b,this._a,M)},toHex8String:function(M){return"#"+this.toHex8(M)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(re(this._r,255)*100)+"%",g:n(re(this._g,255)*100)+"%",b:n(re(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(re(this._r,255)*100)+"%, "+n(re(this._g,255)*100)+"%, "+n(re(this._b,255)*100)+"%)":"rgba("+n(re(this._r,255)*100)+"%, "+n(re(this._g,255)*100)+"%, "+n(re(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(M){var W="#"+C(this._r,this._g,this._b,this._a),$=W,D=this._gradientType?"GradientType = 1, ":"";if(M){var I=u(M);$="#"+C(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+D+"startColorstr="+W+",endColorstr="+$+")"},toString:function(M){var W=!!M;M=M||this._format;var $=!1,D=this._a<1&&this._a>=0,I=!W&&D&&(M==="hex"||M==="hex6"||M==="hex3"||M==="hex4"||M==="hex8"||M==="name");return I?M==="name"&&this._a===0?this.toName():this.toRgbString():(M==="rgb"&&($=this.toRgbString()),M==="prgb"&&($=this.toPercentageRgbString()),(M==="hex"||M==="hex6")&&($=this.toHexString()),M==="hex3"&&($=this.toHexString(!0)),M==="hex4"&&($=this.toHex8String(!0)),M==="hex8"&&($=this.toHex8String()),M==="name"&&($=this.toName()),M==="hsl"&&($=this.toHslString()),M==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(M,W){var $=M.apply(null,[this].concat([].slice.call(W)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(B,arguments)},_applyCombination:function(M,W){return M.apply(null,[this].concat([].slice.call(W)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(q,arguments)},tetrad:function(){return this._applyCombination(U,arguments)}},u.fromRatio=function(M,W){if(typeof M=="object"){var $={};for(var D in M)M.hasOwnProperty(D)&&(D==="a"?$[D]=M[D]:$[D]=H(M[D]));M=$}return u(M,W)};function f(M){var W={r:0,g:0,b:0},$=1,D=null,I=null,K=null,X=!1,se=!1;return typeof M=="string"&&(M=he(M)),typeof M=="object"&&(ee(M.r)&&ee(M.g)&&ee(M.b)?(W=y(M.r,M.g,M.b),X=!0,se=String(M.r).substr(-1)==="%"?"prgb":"rgb"):ee(M.h)&&ee(M.s)&&ee(M.v)?(D=H(M.s),I=H(M.v),W=g(M.h,D,I),X=!0,se="hsv"):ee(M.h)&&ee(M.s)&&ee(M.l)&&(D=H(M.s),K=H(M.l),W=_(M.h,D,K),X=!0,se="hsl"),M.hasOwnProperty("a")&&($=M.a)),$=Z($),{ok:X,format:M.format||se,r:i(255,o(W.r,0)),g:i(255,o(W.g,0)),b:i(255,o(W.b,0)),a:$}}function y(M,W,$){return{r:re(M,255)*255,g:re(W,255)*255,b:re($,255)*255}}function m(M,W,$){M=re(M,255),W=re(W,255),$=re($,255);var D=o(M,W,$),I=i(M,W,$),K,X,se=(D+I)/2;if(D==I)K=X=0;else{var le=D-I;switch(X=se>.5?le/(2-D-I):le/(D+I),D){case M:K=(W-$)/le+(W<$?6:0);break;case W:K=($-M)/le+2;break;case $:K=(M-W)/le+4;break}K/=6}return{h:K,s:X,l:se}}function _(M,W,$){var D,I,K;M=re(M,360),W=re(W,100),$=re($,100);function X(fe,me,pe){return pe<0&&(pe+=1),pe>1&&(pe-=1),pe<1/6?fe+(me-fe)*6*pe:pe<1/2?me:pe<2/3?fe+(me-fe)*(2/3-pe)*6:fe}if(W===0)D=I=K=$;else{var se=$<.5?$*(1+W):$+W-$*W,le=2*$-se;D=X(le,se,M+1/3),I=X(le,se,M),K=X(le,se,M-1/3)}return{r:D*255,g:I*255,b:K*255}}function h(M,W,$){M=re(M,255),W=re(W,255),$=re($,255);var D=o(M,W,$),I=i(M,W,$),K,X,se=D,le=D-I;if(X=D===0?0:le/D,D==I)K=0;else{switch(D){case M:K=(W-$)/le+(W<$?6:0);break;case W:K=($-M)/le+2;break;case $:K=(M-W)/le+4;break}K/=6}return{h:K,s:X,v:se}}function g(M,W,$){M=re(M,360)*6,W=re(W,100),$=re($,100);var D=a.floor(M),I=M-D,K=$*(1-W),X=$*(1-I*W),se=$*(1-(1-I)*W),le=D%6,fe=[$,X,K,K,se,$][le],me=[se,$,$,X,K,K][le],pe=[K,K,se,$,$,X][le];return{r:fe*255,g:me*255,b:pe*255}}function b(M,W,$,D){var I=[F(n(M).toString(16)),F(n(W).toString(16)),F(n($).toString(16))];return D&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0):I.join("")}function x(M,W,$,D,I){var K=[F(n(M).toString(16)),F(n(W).toString(16)),F(n($).toString(16)),F(te(D))];return I&&K[0].charAt(0)==K[0].charAt(1)&&K[1].charAt(0)==K[1].charAt(1)&&K[2].charAt(0)==K[2].charAt(1)&&K[3].charAt(0)==K[3].charAt(1)?K[0].charAt(0)+K[1].charAt(0)+K[2].charAt(0)+K[3].charAt(0):K.join("")}function C(M,W,$,D){var I=[F(te(D)),F(n(M).toString(16)),F(n(W).toString(16)),F(n($).toString(16))];return I.join("")}u.equals=function(M,W){return!M||!W?!1:u(M).toRgbString()==u(W).toRgbString()},u.random=function(){return u.fromRatio({r:c(),g:c(),b:c()})};function p(M,W){W=W===0?0:W||10;var $=u(M).toHsl();return $.s-=W/100,$.s=J($.s),u($)}function S(M,W){W=W===0?0:W||10;var $=u(M).toHsl();return $.s+=W/100,$.s=J($.s),u($)}function P(M){return u(M).desaturate(100)}function O(M,W){W=W===0?0:W||10;var $=u(M).toHsl();return $.l+=W/100,$.l=J($.l),u($)}function A(M,W){W=W===0?0:W||10;var $=u(M).toRgb();return $.r=o(0,i(255,$.r-n(255*-(W/100)))),$.g=o(0,i(255,$.g-n(255*-(W/100)))),$.b=o(0,i(255,$.b-n(255*-(W/100)))),u($)}function T(M,W){W=W===0?0:W||10;var $=u(M).toHsl();return $.l-=W/100,$.l=J($.l),u($)}function B(M,W){var $=u(M).toHsl(),D=($.h+W)%360;return $.h=D<0?360+D:D,u($)}function j(M){var W=u(M).toHsl();return W.h=(W.h+180)%360,u(W)}function q(M){var W=u(M).toHsl(),$=W.h;return[u(M),u({h:($+120)%360,s:W.s,l:W.l}),u({h:($+240)%360,s:W.s,l:W.l})]}function U(M){var W=u(M).toHsl(),$=W.h;return[u(M),u({h:($+90)%360,s:W.s,l:W.l}),u({h:($+180)%360,s:W.s,l:W.l}),u({h:($+270)%360,s:W.s,l:W.l})]}function R(M){var W=u(M).toHsl(),$=W.h;return[u(M),u({h:($+72)%360,s:W.s,l:W.l}),u({h:($+216)%360,s:W.s,l:W.l})]}function V(M,W,$){W=W||6,$=$||30;var D=u(M).toHsl(),I=360/$,K=[u(M)];for(D.h=(D.h-(I*W>>1)+720)%360;--W;)D.h=(D.h+I)%360,K.push(u(D));return K}function E(M,W){W=W||6;for(var $=u(M).toHsv(),D=$.h,I=$.s,K=$.v,X=[],se=1/W;W--;)X.push(u({h:D,s:I,v:K})),K=(K+se)%1;return X}u.mix=function(M,W,$){$=$===0?0:$||50;var D=u(M).toRgb(),I=u(W).toRgb(),K=$/100,X={r:(I.r-D.r)*K+D.r,g:(I.g-D.g)*K+D.g,b:(I.b-D.b)*K+D.b,a:(I.a-D.a)*K+D.a};return u(X)},u.readability=function(M,W){var $=u(M),D=u(W);return(a.max($.getLuminance(),D.getLuminance())+.05)/(a.min($.getLuminance(),D.getLuminance())+.05)},u.isReadable=function(M,W,$){var D=u.readability(M,W),I,K;switch(K=!1,I=ae($),I.level+I.size){case"AAsmall":case"AAAlarge":K=D>=4.5;break;case"AAlarge":K=D>=3;break;case"AAAsmall":K=D>=7;break}return K},u.mostReadable=function(M,W,$){var D=null,I=0,K,X,se,le;$=$||{},X=$.includeFallbackColors,se=$.level,le=$.size;for(var fe=0;feI&&(I=K,D=u(W[fe]));return u.isReadable(M,D,{level:se,size:le})||!X?D:($.includeFallbackColors=!1,u.mostReadable(M,["#fff","#000"],$))};var k=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=u.hexNames=z(k);function z(M){var W={};for(var $ in M)M.hasOwnProperty($)&&(W[M[$]]=$);return W}function Z(M){return M=parseFloat(M),(isNaN(M)||M<0||M>1)&&(M=1),M}function re(M,W){Y(M)&&(M="100%");var $=w(M);return M=i(W,o(0,parseFloat(M))),$&&(M=parseInt(M*W,10)/100),a.abs(M-W)<1e-6?1:M%W/parseFloat(W)}function J(M){return i(1,o(0,M))}function N(M){return parseInt(M,16)}function Y(M){return typeof M=="string"&&M.indexOf(".")!=-1&&parseFloat(M)===1}function w(M){return typeof M=="string"&&M.indexOf("%")!=-1}function F(M){return M.length==1?"0"+M:""+M}function H(M){return M<=1&&(M=M*100+"%"),M}function te(M){return a.round(parseFloat(M)*255).toString(16)}function ie(M){return N(M)/255}var ue=function(){var M="[-\\+]?\\d+%?",W="[-\\+]?\\d*\\.\\d+%?",$="(?:"+W+")|(?:"+M+")",D="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",I="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ee(M){return!!ue.CSS_UNIT.exec(M)}function he(M){M=M.replace(d,"").replace(e,"").toLowerCase();var W=!1;if(k[M])M=k[M],W=!0;else if(M=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=ue.rgb.exec(M))?{r:$[1],g:$[2],b:$[3]}:($=ue.rgba.exec(M))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=ue.hsl.exec(M))?{h:$[1],s:$[2],l:$[3]}:($=ue.hsla.exec(M))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=ue.hsv.exec(M))?{h:$[1],s:$[2],v:$[3]}:($=ue.hsva.exec(M))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=ue.hex8.exec(M))?{r:N($[1]),g:N($[2]),b:N($[3]),a:ie($[4]),format:W?"name":"hex8"}:($=ue.hex6.exec(M))?{r:N($[1]),g:N($[2]),b:N($[3]),format:W?"name":"hex"}:($=ue.hex4.exec(M))?{r:N($[1]+""+$[1]),g:N($[2]+""+$[2]),b:N($[3]+""+$[3]),a:ie($[4]+""+$[4]),format:W?"name":"hex8"}:($=ue.hex3.exec(M))?{r:N($[1]+""+$[1]),g:N($[2]+""+$[2]),b:N($[3]+""+$[3]),format:W?"name":"hex"}:!1}function ae(M){var W,$;return M=M||{level:"AA",size:"small"},W=(M.level||"AA").toUpperCase(),$=(M.size||"small").toLowerCase(),W!=="AA"&&W!=="AAA"&&(W="AA"),$!=="small"&&$!=="large"&&($="small"),{level:W,size:$}}typeof v!="undefined"&&v.exports?v.exports=u:(s=function(){return u}.call(r,t,r,v),s!==void 0&&(v.exports=s))})(Math)},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(32),a=u(s),d=t(4),e=u(d),l=t(151),n=u(l),i=t(50),o=u(i),c=t(39);function u(f){return f&&f.__esModule?f:{default:f}}r.default={name:"RecommendedColors",mixins:[e.default,n.default,o.default],props:{list:{type:Array,default:void 0}},data:function(){var y=12,m=Math.ceil(this.list.length/y),_=1;return{left:-_,right:_,up:-_,down:_,powerKey:"shiftKey",grid:{x:1,y:1},rows:m,columns:y}},computed:{hideClass:function(){return String(this.prefixCls)+"-hide"},linearIndex:function(){return this.getLinearIndex(this.grid)},currentCircle:function(){return this.$refs["color-circle-"+String(this.linearIndex)][0]}},methods:{getLinearIndex:function(y){return this.columns*(y.y-1)+y.x-1},getMaxLimit:function(y){return y==="x"?this.columns:this.rows},handleArrow:function(y,m,_){y.preventDefault(),y.stopPropagation(),this.blurColor();var h=(0,a.default)({},this.grid);y[this.powerKey]?_<0?h[m]=1:h[m]=this.getMaxLimit(m):h[m]+=_;var g=this.getLinearIndex(h);g>=0&&gu){this.change(100);return}this.change(c*100/u)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(84),a=n(s),d=t(50),e=n(d),l=t(39);function n(i){return i&&i.__esModule?i:{default:i}}r.default={name:"Alpha",mixins:[a.default,e.default],data:function(){var o=1,c=10;return{left:-o,right:o,up:c,down:-c,powerKey:"shiftKey"}},computed:{gradientStyle:function(){var o=this.value.rgba,c=o.r,u=o.g,f=o.b,y=(0,l.toRGBAString)({r:c,g:u,b:f,a:0}),m=(0,l.toRGBAString)({r:c,g:u,b:f,a:1});return{background:"linear-gradient(to right, "+String(y)+" 0%, "+String(m)+" 100%)"}}},methods:{change:function(o){var c=this.value.hsl,u=c.h,f=c.s,y=c.l,m=this.value.a;m!==o&&this.$emit("change",{h:u,s:f,l:y,a:o,source:"rgba"})},handleSlide:function(o,c){o.preventDefault(),o.stopPropagation(),this.change((0,l.clamp)(o[this.powerKey]?c:Math.round(this.value.hsl.a*100+c)/100,0,1))},handleChange:function(o){o.preventDefault(),o.stopPropagation();var c=this.getLeft(o);if(c<0){this.change(0);return}var u=this.$refs.container.clientWidth;if(c>u){this.change(1);return}this.change(Math.round(c*100/u)/100)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(156),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(405);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-layout";r.default={name:"Content",computed:{wrapClasses:function(){return s+"-content"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(158),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(409);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(18),a=R(s),d=t(57),e=R(d),l=t(27),n=R(l),i=t(32),o=R(i),c=t(15),u=R(c),f=t(2),y=R(f),m=t(1),_=R(m),h=t(38),g=R(h),b=t(37),x=R(b),C=t(8),p=R(C),S=t(80),P=t(24),O=R(P),A=t(3),T=t(21),B=t(4),j=R(B),q=t(11),U=R(q);function R(J){return J&&J.__esModule?J:{default:J}}var V="ivu-date-picker",E="ivu-picker",k=function(J){return(0,_.default)(void 0,void 0),J.reduce(function(N,Y){return(0,_.default)(void 0,void 0),N&&!Y||typeof Y=="string"&&Y.trim()===""}.bind(void 0),!0)}.bind(void 0),G={40:"up",39:"right",38:"down",37:"left"},z=function(J,N,Y){if((0,_.default)(void 0,void 0),J==="left")return N*-1;if(J==="right")return N*1;if(J==="up")return Y*1;if(J==="down")return Y*-1}.bind(void 0),Z=function(J){(0,_.default)(void 0,void 0);var N="ivu-date-picker-btn-pulse";J.classList.add(N),setTimeout(function(){return(0,_.default)(void 0,void 0),J.classList.remove(N)}.bind(void 0),200)}.bind(void 0),re=function(J){return(0,_.default)(void 0,void 0),J?[J.getHours(),J.getMinutes(),J.getSeconds()]:[0,0,0]}.bind(void 0);r.default={mixins:[j.default,U.default],components:{iInput:g.default,Drop:x.default,Icon:p.default},directives:{clickOutside:S.directive,TransferDom:O.default},props:{format:{type:String},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},confirm:{type:Boolean,default:!1},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{default:function(){return(0,_.default)(void 0,void 0),{}}.bind(void 0),type:Object},splitPanels:{type:Boolean,default:!1},showWeekNumbers:{type:Boolean,default:!1},startDate:{type:Date},size:{validator:function(N){return(0,A.oneOf)(N,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},placeholder:{type:String,default:""},placement:{validator:function(N){return(0,A.oneOf)(N,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom-start"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String},elementId:{type:String},steps:{type:Array,default:function(){return(0,_.default)(void 0,void 0),[]}.bind(void 0)},value:{type:[Date,String,Array]},options:{type:Object,default:function(){return(0,_.default)(void 0,void 0),{}}.bind(void 0)},separator:{type:String,default:" - "},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){var N=this.type.includes("range"),Y=N?[null,null]:[null],w=k((N?this.value:[this.value])||[])?Y:this.parseDate(this.value),F=w.map(re);return{prefixCls:V,showClose:!1,visible:!1,internalValue:w,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:this.onSelectionModeChange(this.type),forceInputRerender:1,isFocused:!1,focusedDate:w[0]||this.startDate||new Date,focusedTime:{column:0,picker:0,time:F,active:!1},internalFocus:!1,isValueNull:!1,innerWidth:window.innerWidth}},computed:{wrapperClasses:function(){return[V,(0,y.default)({},V+"-focused",this.isFocused)]},publicVModelValue:function(){var N=this;if(this.multiple)return this.internalValue.slice();var Y=this.type.includes("range"),w=this.internalValue.map(function(F){return(0,_.default)(this,N),F instanceof Date?new Date(F):F||""}.bind(this));return this.type.match(/^time/)&&(w=w.map(this.formatDate)),Y||this.multiple?w:w[0]},publicStringValue:function(){var N=this.formatDate,Y=this.publicVModelValue,w=this.type;return w.match(/^time/)?Y:this.multiple?N(Y):Array.isArray(Y)?Y.map(N):N(Y)},opened:function(){return this.open===null?this.visible:this.open},transition:function(){var N=this.placement.match(/^bottom/);return N?"slide-up":"slide-down"},visualValue:function(){return this.formatDate(this.internalValue)},isConfirm:function(){return this.confirm||this.type==="datetime"||this.type==="datetimerange"||this.multiple},arrowType:function(){var N="";return this.type==="time"||this.type==="timerange"?(N="ios-time-outline",this.$IVIEW&&(this.$IVIEW.timePicker.customIcon?N="":this.$IVIEW.timePicker.icon&&(N=this.$IVIEW.timePicker.icon))):(N="ios-calendar-outline",this.$IVIEW&&(this.$IVIEW.datePicker.customIcon?N="":this.$IVIEW.datePicker.icon&&(N=this.$IVIEW.datePicker.icon))),this.showClose&&(N="ios-close-circle"),N},customArrowType:function(){var N="";return this.showClose||(this.type==="time"||this.type==="timerange"?this.$IVIEW&&this.$IVIEW.timePicker.customIcon&&(N=this.$IVIEW.timePicker.customIcon):this.$IVIEW&&this.$IVIEW.datePicker.customIcon&&(N=this.$IVIEW.datePicker.customIcon)),N},arrowSize:function(){var N="";return this.showClose||(this.type==="time"||this.type==="timerange"?this.$IVIEW&&this.$IVIEW.timePicker.iconSize&&(N=this.$IVIEW.timePicker.iconSize):this.$IVIEW&&this.$IVIEW.datePicker.iconSize&&(N=this.$IVIEW.datePicker.iconSize)),N},dropdownCls:function(){var N;return N={},(0,y.default)(N,V+"-transfer",this.transfer),(0,y.default)(N,this.transferClassName,this.transferClassName),N},dropdownStyle:function(){return this.innerWidth<=768?{maxWidth:this.innerWidth*.98+"px",overflow:"auto"}:null}},methods:{onSelectionModeChange:function(N){return N.match(/^date/)&&(N="date"),this.selectionMode=(0,A.oneOf)(N,["year","month","date","time"])&&N,this.selectionMode},handleTransferClick:function(){this.transfer&&(this.disableCloseUnderTransfer=!0)},handleClose:function(N){if(this.disableCloseUnderTransfer)return this.disableCloseUnderTransfer=!1,!1;if(N&&N.type==="mousedown"&&this.visible){N.preventDefault(),N.stopPropagation();return}if(this.visible){var Y=this.$refs.pickerPanel&&this.$refs.pickerPanel.$el;if(N&&Y&&Y.contains(N.target))return;this.visible=!1,N&&N.preventDefault(),N&&N.stopPropagation(),this.$emit("on-clickoutside",N);return}this.isFocused=!1,this.disableClickOutSide=!1},handleFocus:function(N){this.readonly||(this.isFocused=!0,!(N&&N.type==="focus")&&(this.itemDisabled||(this.visible=!0)))},handleBlur:function(N){if(this.internalFocus){this.internalFocus=!1;return}if(this.visible){N.preventDefault();return}this.isFocused=!1,this.onSelectionModeChange(this.type),this.internalValue=this.internalValue.slice(),this.reset(),this.$refs.pickerPanel.onToggleVisibility(!1)},handleKeydown:function(N){var Y=this,w=N.keyCode;if(w===9)if(this.visible)if(N.stopPropagation(),N.preventDefault(),this.isConfirm){var F="."+E+"-confirm > *",H=this.$refs.drop.$el.querySelectorAll(F);this.internalFocus=!0;var te=[].concat((0,u.default)(H))[N.shiftKey?"pop":"shift"]();te.focus()}else this.handleClose();else this.focused=!1;var ie=[37,38,39,40];if(!this.visible&&ie.includes(w)){this.visible=!0;return}if(w===27&&this.visible&&(N.stopPropagation(),this.handleClose()),w===13){var ue=(0,A.findComponentsDownward)(this,"TimeSpinner");if(ue.length>0){var ee=ue[0].showSeconds?3:2,he=Math.floor(this.focusedTime.column/ee),ae=this.focusedTime.time[he];ue[he].chooseValue(ae);return}if(this.type.match(/range/))this.$refs.pickerPanel.handleRangePick(this.focusedDate,"date");else{var M=(0,A.findComponentsDownward)(this,"PanelTable"),W=function(D){(0,_.default)(this,Y);var I=["year","month","date"].indexOf(this.type)+1;return[D.getFullYear(),D.getMonth(),D.getDate()].slice(0,I).join("-")}.bind(this),$=M.find(function(D){var I=D.cells;return(0,_.default)(this,Y),I.find(function(K){var X=K.date,se=K.disabled;return(0,_.default)(this,Y),W(X)===W(this.focusedDate)&&!se}.bind(this))}.bind(this));$&&this.onPick(this.focusedDate,!1,"date")}}!ie.includes(w)||(this.focusedTime.active&&N.preventDefault(),this.navigateDatePanel(G[w],N.shiftKey))},reset:function(){this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()},navigateTimePanel:function(N){var Y=this;this.focusedTime.active=!0;var w=N.match(/left|right/),F=N.match(/up|down/),H=(0,A.findComponentsDownward)(this,"TimeSpinner"),te=(H[0].showSeconds?3:2)*H.length,ie=function(se){(0,_.default)(this,Y);var le=se+(w?N==="left"?-1:1:0);return(le+te)%te}.bind(this)(this.focusedTime.column),ue=te/H.length,ee=Math.floor(ie/ue),he=ie%ue;if(w){var ae=this.internalValue.map(re);this.focusedTime=(0,o.default)({},this.focusedTime,{column:ie,time:ae}),H.forEach(function(se,le){(0,_.default)(this,Y),le===ee?se.updateFocusedTime(he,ae[ee]):se.updateFocusedTime(-1,se.focusedTime)}.bind(this))}if(F){var M=N==="up"?1:-1,W=["hours","minutes","seconds"],$=H[ee][String(W[he])+"List"],D=$.findIndex(function(se){var le=se.text;return(0,_.default)(this,Y),this.focusedTime.time[ee][he]===le}.bind(this)),I=(D+M+$.length)%$.length,K=$[I].text,X=this.focusedTime.time.map(function(se,le){return(0,_.default)(this,Y),le!==ee||(se[he]=K),se}.bind(this));this.focusedTime=(0,o.default)({},this.focusedTime,{time:X}),H.forEach(function(se,le){(0,_.default)(this,Y),le===ee?se.updateFocusedTime(he,X[le]):se.updateFocusedTime(-1,se.focusedTime)}.bind(this))}},navigateDatePanel:function(N,Y){var w=(0,A.findComponentsDownward)(this,"TimeSpinner");if(w.length>0){this.navigateTimePanel(N,Y,w);return}if(Y){this.type==="year"?this.focusedDate=new Date(this.focusedDate.getFullYear()+z(N,0,10),this.focusedDate.getMonth(),this.focusedDate.getDate()):this.focusedDate=new Date(this.focusedDate.getFullYear()+z(N,0,1),this.focusedDate.getMonth()+z(N,1,0),this.focusedDate.getDate());var F=N.match(/left|down/)?"prev":"next",H=N.match(/up|down/)?"-double":"",te=this.$refs.drop.$el.querySelector(".ivu-date-picker-"+F+"-btn-arrow"+H);te&&Z(te);return}var ie=this.focusedDate||this.internalValue&&this.internalValue[0]||new Date,ue=new Date(ie);if(this.type.match(/^date/)){var ee=(0,T.getDayCountOfMonth)(ie.getFullYear(),ie.getMonth()),he=ie.getDate(),ae=ue.getDate()+z(N,1,7);ae<1?N.match(/left|right/)?(ue.setMonth(ue.getMonth()+1),ue.setDate(ae)):ue.setDate(he+Math.floor((ee-he)/7)*7):ae>ee?N.match(/left|right/)?(ue.setMonth(ue.getMonth()-1),ue.setDate(ae)):ue.setDate(he%7):ue.setDate(ae)}this.type.match(/^month/)&&ue.setMonth(ue.getMonth()+z(N,1,3)),this.type.match(/^year/)&&ue.setFullYear(ue.getFullYear()+z(N,1,3)),this.focusedDate=ue},handleInputChange:function(N){var Y=this,w=this.type.includes("range")||this.multiple,F=this.visualValue,H=N.target.value,te=this.parseDate(H),ie=this.options&&typeof this.options.disabledDate=="function"&&this.options.disabledDate,ue=w?te:te[0],ee=ie&&ie(ue),he=te.reduce(function(ae,M){return(0,_.default)(this,Y),ae&&M instanceof Date}.bind(this),!0);H!==F&&!ee&&he?(this.emitChange(this.type),this.internalValue=te):this.forceInputRerender++},handleInputMouseenter:function(){this.readonly||this.itemDisabled||this.visualValue&&this.clearable&&(this.showClose=!0)},handleInputMouseleave:function(){this.showClose=!1},handleIconClick:function(N){this.showClose?(N&&N.stopPropagation(),this.handleClear()):this.itemDisabled||this.handleFocus()},handleClear:function(){var N=this;this.visible=!1,this.internalValue=this.internalValue.map(function(){return(0,_.default)(this,N),null}.bind(this)),this.$emit("on-clear"),this.dispatch("FormItem","on-form-change",""),this.emitChange(this.type),this.reset(),setTimeout(function(){return(0,_.default)(this,N),this.onSelectionModeChange(this.type)}.bind(this),500)},emitChange:function(N){var Y=this;this.$nextTick(function(){(0,_.default)(this,Y),this.$emit("on-change",this.publicStringValue,N),this.dispatch("FormItem","on-form-change",this.publicStringValue)}.bind(this))},parseDate:function(N){var Y=this,w=this.type.includes("range"),F=this.type,H=(T.TYPE_VALUE_RESOLVER_MAP[F]||T.TYPE_VALUE_RESOLVER_MAP.default).parser,te=this.format||T.DEFAULT_FORMATS[F],ie=T.TYPE_VALUE_RESOLVER_MAP.multiple.parser;if(N&&F==="time"&&!(N instanceof Date))N=H(N,te,this.separator);else if(this.multiple&&N)N=ie(N,te,this.separator);else if(w)if(!N)N=[null,null];else if(typeof N=="string")N=H(N,te,this.separator);else if(F==="timerange")N=H(N,te,this.separator).map(function(M){return(0,_.default)(this,Y),M||""}.bind(this));else{var ue=N,ee=(0,n.default)(ue,2),he=ee[0],ae=ee[1];he instanceof Date&&ae instanceof Date?N=N.map(function(M){return(0,_.default)(this,Y),new Date(M)}.bind(this)):typeof he=="string"&&typeof ae=="string"?N=H(N.join(this.separator),te,this.separator):(!he||!ae)&&(N=[null,null])}else typeof N=="string"&&F.indexOf("time")!==0&&(N=H(N,te)||null);return w||this.multiple?N||[]:[N]},formatDate:function(N){var Y=T.DEFAULT_FORMATS[this.type];if(this.multiple){var w=T.TYPE_VALUE_RESOLVER_MAP.multiple.formatter;return w(N,this.format||Y,this.separator)}else{var F=T.TYPE_VALUE_RESOLVER_MAP[this.type]||T.TYPE_VALUE_RESOLVER_MAP.default,H=F.formatter;return H(N,this.format||Y,this.separator)}},onPick:function(N){var Y=this,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F=arguments[2];if(this.multiple){var H=N.getTime(),te=this.internalValue.findIndex(function(ee){return(0,_.default)(this,Y),ee&&ee.getTime()===H}.bind(this)),ie=[].concat((0,u.default)(this.internalValue),[N]).filter(Boolean),ue=ie.map(function(ee){return(0,_.default)(this,Y),ee.getTime()}.bind(this)).filter(function(ee,he,ae){return(0,_.default)(this,Y),ae.indexOf(ee)===he&&he!==te}.bind(this));this.internalValue=ue.map(function(ee){return(0,_.default)(this,Y),new Date(ee)}.bind(this))}else N=this.parseDate(N),this.internalValue=Array.isArray(N)?N:[N];this.internalValue[0]&&(this.focusedDate=this.internalValue[0]),this.focusedTime=(0,o.default)({},this.focusedTime,{time:this.internalValue.map(re)}),this.isConfirm||this.onSelectionModeChange(this.type),this.isConfirm||(this.visible=w),this.emitChange(F)},onPickSuccess:function(){this.visible=!1,this.$emit("on-ok"),this.focus(),this.reset()},focus:function(){this.$refs.input&&this.$refs.input.focus()},updatePopper:function(){this.$refs.drop.update()}},watch:{visible:function(N){N===!1&&this.$refs.drop.destroy(),N&&this.$refs.drop.update(),this.$emit("on-open-change",N)},value:function(N){N===null&&(this.isValueNull=!0),this.internalValue=this.parseDate(N)},open:function(N){this.visible=N===!0},type:function(N){this.onSelectionModeChange(N)},publicVModelValue:function(N,Y){var w=(0,e.default)(N),F=(0,e.default)(Y),H=w!==F||(typeof N=="undefined"?"undefined":(0,a.default)(N))!==(typeof Y=="undefined"?"undefined":(0,a.default)(Y));H&&(this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",N))}},mounted:function(){var N=this;this.open!==null&&(this.visible=this.open),this.$on("focus-input",function(){return(0,_.default)(this,N),this.focus()}.bind(this)),this.$on("update-popper",function(){return(0,_.default)(this,N),this.updatePopper()}.bind(this))},beforeDestroy:function(){this.$off("focus-input"),this.$off("update-popper")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=B(s),d=t(2),e=B(d),l=t(8),n=B(l),i=t(160),o=B(i),c=t(162),u=B(c),f=t(164),y=B(f),m=t(166),_=B(m),h=t(59),g=B(h),b=t(171),x=B(b),C=t(60),p=B(C),S=t(173),P=B(S),O=t(6),A=B(O),T=t(21);function B(U){return U&&U.__esModule?U:{default:U}}var j="ivu-picker-panel",q="ivu-date-picker";r.default={name:"DatePickerPanel",mixins:[p.default,A.default,P.default],components:{Icon:n.default,DateTable:o.default,YearTable:u.default,MonthTable:y.default,TimePicker:_.default,Confirm:g.default,datePanelLabel:x.default},props:{multiple:{type:Boolean,default:!1}},data:function(){var R=this.selectionMode,V=this.value,E=V.slice().sort();return{prefixCls:j,datePrefixCls:q,currentView:R||"date",pickerTable:this.getTableType(R),dates:E,panelDate:this.startDate||E[0]||new Date}},computed:{classes:function(){return[j+"-body-wrapper",(0,e.default)({},j+"-with-sidebar",this.shortcuts.length)]},panelPickerHandlers:function(){return this.pickerTable===String(this.currentView)+"-table"?this.handlePick:this.handlePreSelection},datePanelLabel:function(){var R=this,V=this.t("i.locale"),E=this.t("i.datepicker.datePanelLabel"),k=this.panelDate,G=(0,T.formatDateLabels)(V,E,k),z=G.labels,Z=G.separator,re=function(J){return(0,a.default)(this,R),function(){return(0,a.default)(this,R),this.pickerTable=this.getTableType(J)}.bind(this)}.bind(this);return{separator:Z,labels:z.map(function(J){return(0,a.default)(this,R),J.handler=re(J.type),J}.bind(this))}},timeDisabled:function(){return!this.dates[0]}},watch:{value:function(R){this.dates=R;var V=this.multiple?this.dates[this.dates.length-1]:this.startDate||this.dates[0];this.panelDate=V||new Date},currentView:function(R){var V=this;this.$emit("on-selection-mode-change",R),this.currentView==="time"&&this.$nextTick(function(){(0,a.default)(this,V);var E=this.$refs.timePicker.$refs.timeSpinner;E.updateScroll()}.bind(this))},selectionMode:function(R){this.currentView=R,this.pickerTable=this.getTableType(R)},focusedDate:function(R){var V=R.getFullYear()!==this.panelDate.getFullYear(),E=V||R.getMonth()!==this.panelDate.getMonth();(V||E)&&(this.multiple||(this.panelDate=R))}},methods:{reset:function(){this.currentView=this.selectionMode,this.pickerTable=this.getTableType(this.currentView)},changeYear:function(R){this.selectionMode==="year"||this.pickerTable==="year-table"?this.panelDate=new Date(this.panelDate.getFullYear()+R*10,0,1):this.panelDate=(0,T.siblingMonth)(this.panelDate,R*12)},getTableType:function(R){return R.match(/^time/)?"time-picker":String(R)+"-table"},changeMonth:function(R){this.panelDate=(0,T.siblingMonth)(this.panelDate,R)},handlePreSelection:function(R){this.panelDate=R,this.pickerTable==="year-table"?this.pickerTable="month-table":this.pickerTable=this.getTableType(this.currentView)},handlePick:function(R,V){var E=this.selectionMode,k=this.panelDate;E==="year"?R=new Date(R.getFullYear(),0,1):E==="month"?R=new Date(k.getFullYear(),R.getMonth(),1):R=new Date(R),this.dates=[R],this.$emit("on-pick",R,!1,V||E)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(161),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(415);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(32),a=x(s),d=t(27),e=x(d),l=t(1),n=x(l),i=t(2),o=x(i),c=t(21),u=t(6),f=x(u),y=t(411),m=x(y),_=t(85),h=x(_),g=t(86),b=x(g);function x(C){return C&&C.__esModule?C:{default:C}}r.default={mixins:[f.default,h.default],props:{showWeekNumbers:{type:Boolean,default:!1}},data:function(){return{prefixCls:b.default}},computed:{classes:function(){return[""+String(b.default),(0,o.default)({},String(b.default)+"-show-week-numbers",this.showWeekNumbers)]},calendar:function(){var p=Number(this.t("i.datepicker.weekStartDay"));return new m.default.Generator({onlyDays:!this.showWeekNumbers,weekStart:p})},headerDays:function(){var p=this,S=Number(this.t("i.datepicker.weekStartDay")),P=["sun","mon","tue","wed","thu","fri","sat"].map(function(A){return(0,n.default)(this,p),this.t("i.datepicker.weeks."+A)}.bind(this)),O=P.splice(S,7-S).concat(P.splice(0,S));return this.showWeekNumbers?[""].concat(O):O},cells:function(){var p=this,S=this.tableDate.getFullYear(),P=this.tableDate.getMonth(),O=(0,c.clearHours)(new Date),A=this.dates.filter(Boolean).map(c.clearHours),T=this.dates.map(c.clearHours),B=(0,e.default)(T,2),j=B[0],q=B[1],U=this.rangeState.from&&(0,c.clearHours)(this.rangeState.from),R=this.rangeState.to&&(0,c.clearHours)(this.rangeState.to),V=this.selectionMode==="range",E=typeof this.disabledDate=="function"&&this.disabledDate;return this.calendar(S,P,function(k){(0,n.default)(this,p),k.date instanceof Date&&k.date.setTime(k.date.getTime()+k.date.getTimezoneOffset()*6e4+480*60*1e3);var G=k.date&&(0,c.clearHours)(k.date),z=k.date&&P===k.date.getMonth();return(0,a.default)({},k,{type:G===O?"today":k.type,selected:z&&A.includes(G),disabled:k.date&&E&&E(new Date(G)),range:z&&V&&(0,c.isInRange)(G,U,R),start:z&&V&&G===j,end:z&&V&&G===q})}.bind(this)).cells.slice(this.showWeekNumbers?8:0)}},methods:{getCellCls:function(p){var S;return[String(b.default)+"-cell",(S={},(0,o.default)(S,String(b.default)+"-cell-selected",p.selected||p.start||p.end),(0,o.default)(S,String(b.default)+"-cell-disabled",p.disabled),(0,o.default)(S,String(b.default)+"-cell-today",p.type==="today"),(0,o.default)(S,String(b.default)+"-cell-prev-month",p.type==="prevMonth"),(0,o.default)(S,String(b.default)+"-cell-next-month",p.type==="nextMonth"),(0,o.default)(S,String(b.default)+"-cell-week-label",p.type==="weekLabel"),(0,o.default)(S,String(b.default)+"-cell-range",p.range&&!p.start&&!p.end),(0,o.default)(S,String(b.default)+"-focused",(0,c.clearHours)(p.date)===(0,c.clearHours)(this.focusedDate)),S)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(163),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(416);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=f(s),d=t(1),e=f(d),l=t(21),n=t(3),i=t(85),o=f(i),c=t(86),u=f(c);function f(y){return y&&y.__esModule?y:{default:y}}r.default={mixins:[o.default],props:{},computed:{classes:function(){return[""+String(u.default),String(u.default)+"-year"]},startYear:function(){return Math.floor(this.tableDate.getFullYear()/10)*10},cells:function(){for(var m=this,_=[],h={text:"",selected:!1,disabled:!1},g=this.dates.filter(Boolean).map(function(S){return(0,e.default)(this,m),(0,l.clearHours)(new Date(S.getFullYear(),0,1))}.bind(this)),b=(0,l.clearHours)(new Date(this.focusedDate.getFullYear(),0,1)),x=0;x<10;x++){var C=(0,n.deepCopy)(h);C.date=new Date(this.startYear+x,0,1),C.disabled=typeof this.disabledDate=="function"&&this.disabledDate(C.date)&&this.selectionMode==="year";var p=(0,l.clearHours)(C.date);C.selected=g.includes(p),C.focused=p===b,_.push(C)}return _}},methods:{getCellCls:function(m){var _;return[String(u.default)+"-cell",(_={},(0,a.default)(_,String(u.default)+"-cell-selected",m.selected),(0,a.default)(_,String(u.default)+"-cell-disabled",m.disabled),(0,a.default)(_,String(u.default)+"-cell-focused",m.focused),(0,a.default)(_,String(u.default)+"-cell-range",m.range&&!m.start&&!m.end),_)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(165),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(417);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=m(s),d=t(1),e=m(d),l=t(21),n=t(3),i=t(6),o=m(i),c=t(85),u=m(c),f=t(86),y=m(f);function m(_){return _&&_.__esModule?_:{default:_}}r.default={mixins:[o.default,u.default],props:{},computed:{classes:function(){return[""+String(y.default),String(y.default)+"-month"]},cells:function(){for(var h=this,g=[],b={text:"",selected:!1,disabled:!1},x=this.tableDate.getFullYear(),C=this.dates.filter(Boolean).map(function(A){return(0,e.default)(this,h),(0,l.clearHours)(new Date(A.getFullYear(),A.getMonth(),1))}.bind(this)),p=(0,l.clearHours)(new Date(this.focusedDate.getFullYear(),this.focusedDate.getMonth(),1)),S=0;S<12;S++){var P=(0,n.deepCopy)(b);P.date=new Date(x,S,1),P.text=this.tCell(S+1);var O=(0,l.clearHours)(P.date);P.disabled=typeof this.disabledDate=="function"&&this.disabledDate(P.date)&&this.selectionMode==="month",P.selected=C.includes(O),P.focused=O===p,g.push(P)}return g}},methods:{getCellCls:function(h){var g;return[String(y.default)+"-cell",(g={},(0,a.default)(g,String(y.default)+"-cell-selected",h.selected),(0,a.default)(g,String(y.default)+"-cell-disabled",h.disabled),(0,a.default)(g,String(y.default)+"-cell-focused",h.focused),(0,a.default)(g,String(y.default)+"-cell-range",h.range&&!h.start&&!h.end),g)]},tCell:function(h){return this.t("i.datepicker.months.m"+String(h))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(167),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(420);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=x(s),d=t(15),e=x(d),l=t(1),n=x(l),i=t(168),o=x(i),c=t(59),u=x(c),f=t(58),y=x(f),m=t(60),_=x(m),h=t(6),g=x(h),b=t(21);function x(T){return T&&T.__esModule?T:{default:T}}var C="ivu-picker-panel",p="ivu-time-picker",S=function(T){return(0,n.default)(void 0,void 0),T[0].toUpperCase()+T.slice(1)}.bind(void 0),P=function(T,B,j,q){(0,n.default)(void 0,void 0);var U=new Date(T.getTime());return U.setHours(B),U.setMinutes(j),U.setSeconds(q),U}.bind(void 0),O=function(T,B,j){return(0,n.default)(void 0,void 0),j.indexOf(T)===B}.bind(void 0),A=function(){return(0,n.default)(void 0,void 0),!1}.bind(void 0);r.default={name:"TimePickerPanel",mixins:[_.default,g.default,y.default],components:{TimeSpinner:o.default,Confirm:u.default},props:{disabledDate:{type:Function,default:A},steps:{type:Array,default:function(){return(0,n.default)(void 0,void 0),[]}.bind(void 0)},format:{type:String,default:"HH:mm:ss"},value:{type:Array,required:!0}},data:function(){return{prefixCls:C,timePrefixCls:p,date:this.value[0]||(0,b.initTimeDate)(),showDate:!1}},computed:{showSeconds:function(){return!!(this.format||"").match(/ss/)},visibleDate:function(){var B=this.date,j=B.getMonth()+1,q=this.t("i.datepicker.year"),U=this.t("i.datepicker.month"+String(j));return""+String(B.getFullYear())+String(q)+" "+String(U)},timeSlots:function(){var B=this;return this.value[0]?["getHours","getMinutes","getSeconds"].map(function(j){return(0,n.default)(this,B),this.date[j]()}.bind(this)):[]},disabledHMS:function(){var B=this,j=["disabledHours","disabledMinutes","disabledSeconds"];if(this.disabledDate===A||!this.value[0]){var q=j.reduce(function(E,k){return(0,n.default)(this,B),E[k]=this[k],E}.bind(this),{});return q}else{var U=[24,60,60],R=["Hours","Minutes","Seconds"].map(function(E){return(0,n.default)(this,B),this["disabled"+String(E)]}.bind(this)),V=R.map(function(E,k){(0,n.default)(this,B);for(var G=U[k],z=E,Z=function(N){var Y=B.timeSlots.map(function(F,H){return(0,n.default)(this,B),H===k?N:F}.bind(B)),w=P.apply(void 0,[B.date].concat((0,e.default)(Y)));B.disabledDate(w,!0)&&z.push(N)},re=0;re1&&arguments[1]!==void 0?arguments[1]:!0,U=new Date(this.date);(0,a.default)(B).forEach(function(R){return(0,n.default)(this,j),U["set"+String(S(R))](B[R])}.bind(this)),q&&this.$emit("on-pick",U,"time")}},mounted:function(){this.$parent&&this.$parent.$options.name==="DatePicker"&&(this.showDate=!0)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(169),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(418);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=y(s),d=t(32),e=y(d),l=t(2),n=y(l),i=t(1),o=y(i),c=t(58),u=y(c),f=t(3);function y(h){return h&&h.__esModule?h:{default:h}}var m="ivu-time-picker-cells",_=["hours","minutes","seconds"];r.default={name:"TimeSpinner",mixins:[u.default],props:{hours:{type:[Number,String],default:NaN},minutes:{type:[Number,String],default:NaN},seconds:{type:[Number,String],default:NaN},showSeconds:{type:Boolean,default:!0},steps:{type:Array,default:function(){return(0,o.default)(void 0,void 0),[]}.bind(void 0)}},data:function(){var g=this;return{spinerSteps:[1,1,1].map(function(b,x){return(0,o.default)(this,g),Math.abs(this.steps[x])||b}.bind(this)),prefixCls:m,compiled:!1,focusedColumn:-1,focusedTime:[0,0,0]}},computed:{classes:function(){return[""+m,(0,n.default)({},m+"-with-seconds",this.showSeconds)]},hoursList:function(){for(var g=[],b=this.spinerSteps[0],x=this.focusedColumn===0&&this.focusedTime[0],C={text:0,selected:!1,disabled:!1,hide:!1},p=0;p<24;p+=b){var S=(0,f.deepCopy)(C);S.text=p,S.focused=p===x,this.disabledHours.length&&this.disabledHours.indexOf(p)>-1&&(S.disabled=!0,this.hideDisabledOptions&&(S.hide=!0)),this.hours===p&&(S.selected=!0),g.push(S)}return g},minutesList:function(){for(var g=[],b=this.spinerSteps[1],x=this.focusedColumn===1&&this.focusedTime[1],C={text:0,selected:!1,disabled:!1,hide:!1},p=0;p<60;p+=b){var S=(0,f.deepCopy)(C);S.text=p,S.focused=p===x,this.disabledMinutes.length&&this.disabledMinutes.indexOf(p)>-1&&(S.disabled=!0,this.hideDisabledOptions&&(S.hide=!0)),this.minutes===p&&(S.selected=!0),g.push(S)}return g},secondsList:function(){for(var g=[],b=this.spinerSteps[2],x=this.focusedColumn===2&&this.focusedTime[2],C={text:0,selected:!1,disabled:!1,hide:!1},p=0;p<60;p+=b){var S=(0,f.deepCopy)(C);S.text=p,S.focused=p===x,this.disabledSeconds.length&&this.disabledSeconds.indexOf(p)>-1&&(S.disabled=!0,this.hideDisabledOptions&&(S.hide=!0)),this.seconds===p&&(S.selected=!0),g.push(S)}return g}},methods:{getCellCls:function(g){var b;return[m+"-cell",(b={},(0,n.default)(b,m+"-cell-selected",g.selected),(0,n.default)(b,m+"-cell-focused",g.focused),(0,n.default)(b,m+"-cell-disabled",g.disabled),b)]},chooseValue:function(g){var b=this,x=_.reduce(function(C,p,S){(0,o.default)(this,b);var P=g[S];return this[p]===P?C:(0,e.default)({},C,(0,n.default)({},p,P))}.bind(this),{});(0,a.default)(x).length>0&&this.emitChange(x)},handleClick:function(g,b){if(!b.disabled){var x=(0,n.default)({},g,b.text);this.emitChange(x)}},emitChange:function(g){this.$emit("on-change",g),this.$emit("on-pick-click")},scroll:function(g,b){var x=this.$refs[g].scrollTop,C=24*this.getScrollIndex(g,b);(0,f.scrollTop)(this.$refs[g],x,C,500)},getScrollIndex:function(g,b){var x=this,C=(0,f.firstUpperCase)(g),p=this["disabled"+String(C)];if(p.length&&this.hideDisabledOptions){var S=0;p.forEach(function(P){return(0,o.default)(this,x),P<=b?S++:""}.bind(this)),b-=S}return b},updateScroll:function(){var g=this;this.$nextTick(function(){(0,o.default)(this,g),_.forEach(function(b){(0,o.default)(this,g),this.$refs[b].scrollTop=24*this[String(b)+"List"].findIndex(function(x){return(0,o.default)(this,g),x.text==this[b]}.bind(this))}.bind(this))}.bind(this))},formatTime:function(g){return g<10?"0"+g:g},updateFocusedTime:function(g,b){this.focusedColumn=g,this.focusedTime=b.slice()}},watch:{hours:function(g){var b=this;!this.compiled||this.scroll("hours",this.hoursList.findIndex(function(x){return(0,o.default)(this,b),x.text==g}.bind(this)))},minutes:function(g){var b=this;!this.compiled||this.scroll("minutes",this.minutesList.findIndex(function(x){return(0,o.default)(this,b),x.text==g}.bind(this)))},seconds:function(g){var b=this;!this.compiled||this.scroll("seconds",this.secondsList.findIndex(function(x){return(0,o.default)(this,b),x.text==g}.bind(this)))},focusedTime:function(g,b){var x=this;_.forEach(function(C,p){if((0,o.default)(this,x),!(g[p]===b[p]||typeof g[p]=="undefined")){var S=this[String(C)+"List"].findIndex(function(P){return(0,o.default)(this,x),P.text===g[p]}.bind(this));this.scroll(C,S)}}.bind(this))}},mounted:function(){var g=this;this.$nextTick(function(){return(0,o.default)(this,g),this.compiled=!0}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=f(s),d=t(1),e=f(d),l=t(28),n=f(l),i=t(6),o=f(i),c=t(4),u=f(c);function f(m){return m&&m.__esModule?m:{default:m}}var y="ivu-picker";r.default={mixins:[o.default,u.default],components:{iButton:n.default},props:{showTime:!1,isTime:!1,timeDisabled:!1},data:function(){return{prefixCls:y}},computed:{timeClasses:function(){return y+"-confirm-time"},labels:function(){var _=this,h=["time","clear","ok"],g=[this.isTime?"selectDate":"selectTime","clear","ok"];return h.reduce(function(b,x,C){return(0,e.default)(this,_),b[x]=this.t("i.datepicker."+g[C]),b}.bind(this),{})}},methods:{handleClear:function(){this.$emit("on-pick-clear")},handleSuccess:function(){this.$emit("on-pick-success")},handleToggleTime:function(){this.timeDisabled||(this.$emit("on-pick-toggle-time"),this.dispatch("CalendarPicker","focus-input"),this.dispatch("CalendarPicker","update-popper"))},handleTab:function(_){var h=[].concat((0,a.default)(this.$el.children)),g=h[_.shiftKey?"shift":"pop"]();document.activeElement===g&&(_.preventDefault(),_.stopPropagation(),this.dispatch("CalendarPicker","focus-input"))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(172),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(421);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={props:{datePanelLabel:Object,currentView:String,datePrefixCls:String}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(3),e=t(21);function l(n){return n&&n.__esModule?n:{default:n}}r.default={props:{showTime:{type:Boolean,default:!1},format:{type:String,default:"yyyy-MM-dd"},selectionMode:{type:String,validator:function(i){return(0,d.oneOf)(i,["year","month","date","time"])},default:"date"},shortcuts:{type:Array,default:function(){return(0,a.default)(void 0,void 0),[]}.bind(void 0)},disabledDate:{type:Function,default:function(){return(0,a.default)(void 0,void 0),!1}.bind(void 0)},value:{type:Array,default:function(){return(0,a.default)(void 0,void 0),[(0,e.initTimeDate)(),(0,e.initTimeDate)()]}.bind(void 0)},timePickerOptions:{default:function(){return(0,a.default)(void 0,void 0),{}}.bind(void 0),type:Object},showWeekNumbers:{type:Boolean,default:!1},startDate:{type:Date},pickerType:{type:String,require:!0},focusedDate:{type:Date,required:!0}},computed:{isTime:function(){return this.currentView==="time"}},methods:{handleToggleTime:function(){this.currentView=this.currentView==="time"?"date":"time"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=q(s),d=t(27),e=q(d),l=t(1),n=q(l),i=t(8),o=q(i),c=t(160),u=q(c),f=t(162),y=q(f),m=t(164),_=q(m),h=t(175),g=q(h),b=t(59),x=q(b),C=t(21),p=t(171),S=q(p),P=t(60),O=q(P),A=t(173),T=q(A),B=t(6),j=q(B);function q(E){return E&&E.__esModule?E:{default:E}}var U="ivu-picker-panel",R="ivu-date-picker",V=function(E,k){return(0,n.default)(void 0,void 0),!E||!k?0:E.getTime()-k.getTime()}.bind(void 0);r.default={name:"RangeDatePickerPanel",mixins:[O.default,j.default,T.default],components:{Icon:o.default,DateTable:u.default,YearTable:y.default,MonthTable:_.default,TimePicker:g.default,Confirm:x.default,datePanelLabel:S.default},props:{splitPanels:{type:Boolean,default:!1}},data:function(){var k=this,G=this.value.map(function(N){return(0,n.default)(this,k),N||(0,C.initTimeDate)()}.bind(this)),z=(0,e.default)(G,2),Z=z[0],re=z[1],J=this.startDate?this.startDate:Z;return{prefixCls:U,datePrefixCls:R,dates:this.value,rangeState:{from:this.value[0],to:this.value[1],selecting:Z&&!re},currentView:this.selectionMode||"range",leftPickerTable:String(this.selectionMode)+"-table",rightPickerTable:String(this.selectionMode)+"-table",leftPanelDate:J,rightPanelDate:new Date(J.getFullYear(),J.getMonth()+1,1)}},computed:{classes:function(){var k;return[U+"-body-wrapper",R+"-with-range",(k={},(0,a.default)(k,U+"-with-sidebar",this.shortcuts.length),(0,a.default)(k,R+"-with-week-numbers",this.showWeekNumbers),k)]},panelBodyClasses:function(){var k;return[U+"-body",(k={},(0,a.default)(k,U+"-body-time",this.showTime),(0,a.default)(k,U+"-body-date",!this.showTime),k)]},leftDatePanelLabel:function(){return this.panelLabelConfig("left")},rightDatePanelLabel:function(){return this.panelLabelConfig("right")},leftDatePanelView:function(){return this.leftPickerTable.split("-").shift()},rightDatePanelView:function(){return this.rightPickerTable.split("-").shift()},timeDisabled:function(){return!(this.dates[0]&&this.dates[1])},preSelecting:function(){var k=String(this.currentView)+"-table";return{left:this.leftPickerTable!==k,right:this.rightPickerTable!==k}},panelPickerHandlers:function(){return{left:this.preSelecting.left?this.handlePreSelection.bind(this,"left"):this.handleRangePick,right:this.preSelecting.right?this.handlePreSelection.bind(this,"right"):this.handleRangePick}}},watch:{value:function(k){var G=k[0]?(0,C.toDate)(k[0]):null,z=k[1]?(0,C.toDate)(k[1]):null;this.dates=[G,z].sort(V),this.rangeState={from:this.dates[0],to:this.dates[1],selecting:!1},this.setPanelDates(this.startDate||this.dates[0]||new Date)},currentView:function(k){var G=this,z=this.leftPanelDate.getMonth(),Z=this.rightPanelDate.getMonth(),re=this.leftPanelDate.getFullYear()===this.rightPanelDate.getFullYear();k==="date"&&re&&z===Z&&this.changePanelDate("right","Month",1),k==="month"&&re&&this.changePanelDate("right","FullYear",1),k==="year"&&re&&this.changePanelDate("right","FullYear",10),this.currentView==="time"&&this.$nextTick(function(){(0,n.default)(this,G),this.$refs.timePicker.$refs.timeSpinner.updateScroll(),this.$refs.timePicker.$refs.timeSpinnerEnd.updateScroll()}.bind(this))},selectionMode:function(k){this.currentView=k||"range"},focusedDate:function(k){this.setPanelDates(k||new Date)}},methods:{reset:function(){this.currentView=this.selectionMode,this.leftPickerTable=String(this.currentView)+"-table",this.rightPickerTable=String(this.currentView)+"-table"},setPanelDates:function(k){this.leftPanelDate=k;var G=new Date(k.getFullYear(),k.getMonth()+1,1),z=this.dates[1]?this.dates[1].getTime():this.dates[1];this.rightPanelDate=this.splitPanels?new Date(Math.max(z,G.getTime())):G},panelLabelConfig:function(k){var G=this,z=this.t("i.locale"),Z=this.t("i.datepicker.datePanelLabel"),re=function(F){(0,n.default)(this,G);var H=F=="month"?this.showMonthPicker:this.showYearPicker;return function(){return(0,n.default)(this,G),H(k)}.bind(this)}.bind(this),J=this[String(k)+"PanelDate"],N=(0,C.formatDateLabels)(z,Z,J),Y=N.labels,w=N.separator;return{separator:w,labels:Y.map(function(F){return(0,n.default)(this,G),F.handler=re(F.type),F}.bind(this))}},prevYear:function(k){var G=this.currentView==="year"?-10:-1;this.changePanelDate(k,"FullYear",G)},nextYear:function(k){var G=this.currentView==="year"?10:1;this.changePanelDate(k,"FullYear",G)},prevMonth:function(k){this.changePanelDate(k,"Month",-1)},nextMonth:function(k){this.changePanelDate(k,"Month",1)},changePanelDate:function(k,G,z){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,re=new Date(this[String(k)+"PanelDate"]);if(G==="FullYear"?re["set"+G](re["get"+G]()+z):re["set"+G](re["get"+G]()+z,1),this[String(k)+"PanelDate"]=re,!!Z)if(this.splitPanels){var J=k==="left"?"right":"left";k==="left"&&this.leftPanelDate>=this.rightPanelDate&&this.changePanelDate(J,G,1),k==="right"&&this.rightPanelDate<=this.leftPanelDate&&this.changePanelDate(J,G,-1)}else{var N=k==="left"?"right":"left",Y=this[N+"PanelDate"],w=new Date(Y);if(G==="Month"){var F=new Date(w.getFullYear(),w.getMonth()+z+1,0).getDate();w.setDate(Math.min(F,w.getDate()))}w["set"+String(G)](w["get"+String(G)]()+z),this[N+"PanelDate"]=w}},showYearPicker:function(k){this[String(k)+"PickerTable"]="year-table"},showMonthPicker:function(k){this[String(k)+"PickerTable"]="month-table"},handlePreSelection:function(k,G){this[String(k)+"PanelDate"]=G;var z=this[String(k)+"PickerTable"];if(z==="year-table"?this[String(k)+"PickerTable"]="month-table":this[String(k)+"PickerTable"]=String(this.currentView)+"-table",!this.splitPanels){var Z=k==="left"?"right":"left";this[Z+"PanelDate"]=G;var re=Z==="left"?-1:1;this.changePanelDate(Z,"Month",re,!1)}},handleRangePick:function(k,G){if(this.rangeState.selecting||this.currentView==="time"){if(this.currentView==="time")this.dates=k;else{var z=[this.rangeState.from,k].sort(V),Z=(0,e.default)(z,2),re=Z[0],J=Z[1];this.dates=[re,J],this.rangeState={from:re,to:J,selecting:!1}}this.handleConfirm(!1,G||"date")}else this.rangeState={from:k,to:null,selecting:!0}},handleChangeRange:function(k){this.rangeState.to=k}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(176),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(424);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=p(s),d=t(2),e=p(d),l=t(27),n=p(l),i=t(1),o=p(i),c=t(168),u=p(c),f=t(59),y=p(f),m=t(58),_=p(m),h=t(60),g=p(h),b=t(6),x=p(b),C=t(21);function p(A){return A&&A.__esModule?A:{default:A}}var S="ivu-picker-panel",P="ivu-time-picker",O=function(A){return(0,o.default)(void 0,void 0),A[0].toUpperCase()+A.slice(1)}.bind(void 0);r.default={name:"RangeTimePickerPanel",mixins:[g.default,x.default,_.default],components:{TimeSpinner:u.default,Confirm:y.default},props:{steps:{type:Array,default:function(){return(0,o.default)(void 0,void 0),[]}.bind(void 0)},format:{type:String,default:"HH:mm:ss"},value:{type:Array,required:!0}},data:function(){var T=this.value.slice(),B=(0,n.default)(T,2),j=B[0],q=B[1];return{prefixCls:S,timePrefixCls:P,showDate:!1,dateStart:j||(0,C.initTimeDate)(),dateEnd:q||(0,C.initTimeDate)()}},computed:{classes:function(){return[S+"-body-wrapper",P+"-with-range",(0,e.default)({},P+"-with-seconds",this.showSeconds)]},showSeconds:function(){return!!(this.format||"").match(/ss/)},leftDatePanelLabel:function(){return this.panelLabelConfig(this.date)},rightDatePanelLabel:function(){return this.panelLabelConfig(this.dateEnd)}},watch:{value:function(T){var B=T.slice(),j=(0,n.default)(B,2),q=j[0],U=j[1];this.dateStart=q||(0,C.initTimeDate)(),this.dateEnd=U||(0,C.initTimeDate)()}},methods:{panelLabelConfig:function(T){var B=this.t("i.locale"),j=this.t("i.datepicker.datePanelLabel"),q=(0,C.formatDateLabels)(B,j,T||(0,C.initTimeDate)()),U=q.labels,R=q.separator;return[U[0].label,R,U[1].label].join("")},handleChange:function(T,B){var j=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,U=new Date(this.dateStart),R=new Date(this.dateEnd);(0,a.default)(T).forEach(function(V){(0,o.default)(this,j),U["set"+String(O(V))](T[V])}.bind(this)),(0,a.default)(B).forEach(function(V){(0,o.default)(this,j),R["set"+String(O(V))](B[V])}.bind(this)),R-1&&this.handleMask()},handleMousemove:function(p){if(!(!this.canMove||!this.draggable)){this.handleSetWrapperWidth();var S=p.pageX-this.wrapperLeft,P=this.placement==="right"?this.wrapperWidth-S:S;P=Math.max(P,parseFloat(this.minWidth)),p.atMin=P===parseFloat(this.minWidth),P<=100&&(P=P/this.wrapperWidth*100),this.dragWidth=P,this.$emit("on-resize-width",parseInt(this.dragWidth))}},handleSetWrapperWidth:function(){var p=this.$el.getBoundingClientRect(),S=p.width,P=p.left;this.wrapperWidth=S,this.wrapperLeft=P},handleMouseup:function(){!this.draggable||(this.canMove=!1)},handleTriggerMousedown:function(){this.canMove=!0,window.getSelection().removeAllRanges()}},mounted:function(){this.visible&&(this.wrapShow=!0);var p=!0;this.$slots.header===void 0&&!this.title&&(p=!1),this.showHead=p,(0,g.on)(document,"mousemove",this.handleMousemove),(0,g.on)(document,"mouseup",this.handleMouseup),this.handleSetWrapperWidth()},beforeDestroy:function(){(0,g.off)(document,"mousemove",this.handleMousemove),(0,g.off)(document,"mouseup",this.handleMouseup),this.removeScrollEffect()},watch:{value:function(p){this.visible=p},visible:function(p){var S=this;p===!1?this.timer=setTimeout(function(){(0,a.default)(this,S),this.wrapShow=!1;var P=(0,c.findBrothersComponents)(this,"Drawer")||[],O=(0,c.findComponentsUpward)(this,"Drawer")||[],A=[].concat(P).concat(O),T=A.some(function(B){return(0,a.default)(this,S),B.visible&&!B.scrollable}.bind(this));T||this.removeScrollEffect()}.bind(this),300):(this.timer&&clearTimeout(this.timer),this.wrapShow=!0,this.scrollable||this.addScrollEffect()),this.broadcast("Table","on-visible-change",p),this.broadcast("Slider","on-visible-change",p),this.$emit("on-visible-change",p)},scrollable:function(p){p?this.removeScrollEffect():this.addScrollEffect()},title:function(p){this.$slots.header===void 0&&(this.showHead=!!p)},width:function(p){this.dragWidth=p},height:function(p){this.dragHeight=p}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=y(s),d=t(2),e=y(d),l=t(37),n=y(l),i=t(82),o=y(i),c=t(24),u=y(c),f=t(3);function y(_){return _&&_.__esModule?_:{default:_}}var m="ivu-dropdown";r.default={name:"Dropdown",directives:{clickOutside:o.default,TransferDom:u.default},components:{Drop:n.default},props:{trigger:{validator:function(h){return(0,f.oneOf)(h,["click","hover","custom","contextMenu"])},default:"hover"},placement:{validator:function(h){return(0,f.oneOf)(h,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},visible:{type:Boolean,default:!1},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},transferClassName:{type:String},stopPropagation:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},eventsEnabled:{type:Boolean,default:!1}},computed:{transition:function(){return["bottom-start","bottom","bottom-end"].indexOf(this.placement)>-1?"slide-up":"fade"},dropdownCls:function(){var h;return h={},(0,e.default)(h,m+"-transfer",this.transfer),(0,e.default)(h,this.transferClassName,this.transferClassName),h},relClasses:function(){return[m+"-rel",(0,e.default)({},m+"-rel-user-select-none",this.trigger==="contextMenu")]}},data:function(){return{prefixCls:m,currentVisible:this.visible}},watch:{visible:function(h){this.currentVisible=h},currentVisible:function(h){h?this.$refs.drop.update():this.$refs.drop.destroy(),this.$emit("on-visible-change",h)}},methods:{handleClick:function(){if(this.trigger==="custom"||this.trigger!=="click")return!1;var h=this.hasParent();h||(this.currentVisible=!this.currentVisible)},handleRightClick:function(){if(this.trigger==="custom"||this.trigger!=="contextMenu")return!1;this.currentVisible=!this.currentVisible},handleMouseenter:function(){var h=this;if(this.trigger==="custom"||this.trigger!=="hover")return!1;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,h),this.currentVisible=!0}.bind(this),250)},handleMouseleave:function(){var h=this;if(this.trigger==="custom"||this.trigger!=="hover")return!1;this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,h),this.currentVisible=!1}.bind(this),150))},onClickoutside:function(h){this.handleClose(),this.handleRightClose(),this.currentVisible&&this.$emit("on-clickoutside",h)},handleClose:function(){if(this.trigger==="custom"||this.trigger!=="click")return!1;this.currentVisible=!1},handleRightClose:function(){if(this.trigger==="custom"||this.trigger!=="contextMenu")return!1;this.currentVisible=!1},hasParent:function(){var h=(0,f.findComponentUpward)(this,"Dropdown");return h||!1}},mounted:function(){var h=this;this.$on("on-click",function(g){if((0,a.default)(this,h),!this.stopPropagation){var b=this.hasParent();b&&b.$emit("on-click",g)}}.bind(this)),this.$on("on-hover-click",function(){(0,a.default)(this,h);var g=this.hasParent();g?(this.$nextTick(function(){if((0,a.default)(this,h),this.trigger==="custom")return!1;this.currentVisible=!1}.bind(this)),g.$emit("on-hover-click")):this.$nextTick(function(){if((0,a.default)(this,h),this.trigger==="custom")return!1;this.currentVisible=!1}.bind(this))}.bind(this)),this.$on("on-haschild-click",function(){(0,a.default)(this,h),this.$nextTick(function(){if((0,a.default)(this,h),this.trigger==="custom")return!1;this.currentVisible=!0}.bind(this));var g=this.hasParent();g&&g.$emit("on-haschild-click")}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"DropdownMenu"}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-dropdown-item";r.default={name:"DropdownItem",props:{name:{type:[String,Number]},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},divided:{type:Boolean,default:!1}},computed:{classes:function(){var i;return[""+l,(i={},(0,a.default)(i,l+"-disabled",this.disabled),(0,a.default)(i,l+"-selected",this.selected),(0,a.default)(i,l+"-divided",this.divided),i)]}},methods:{handleClick:function(){if(!this.disabled){var i=(0,d.findComponentUpward)(this,"Dropdown"),o=this.$parent&&this.$parent.$options.name==="Dropdown";o?this.$parent.$emit("on-haschild-click"):i&&i.$options.name==="Dropdown"&&i.$emit("on-hover-click"),i.$emit("on-click",this.name)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(183),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(438);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-layout";r.default={name:"Footer",computed:{wrapClasses:function(){return s+"-footer"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(185),a=u(s),d=t(1),e=u(d),l=t(15),n=u(l),i=t(2),o=u(i),c=t(3);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-form";r.default={name:"iForm",props:{model:{type:Object},rules:{type:Object},labelWidth:{type:[Number,String]},labelPosition:{validator:function(m){return(0,c.oneOf)(m,["left","right","top"])},default:"right"},inline:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},autocomplete:{validator:function(m){return(0,c.oneOf)(m,["on","off"])},default:"off"},hideRequiredMark:{type:Boolean,default:!1},labelColon:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1}},provide:function(){return{FormInstance:this}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},computed:{classes:function(){var m;return[""+f,f+"-label-"+String(this.labelPosition),(m={},(0,o.default)(m,f+"-inline",this.inline),(0,o.default)(m,f+"-hide-required-mark",this.hideRequiredMark),m)]},colon:function(){var m="";return this.labelColon&&(m=typeof this.labelColon=="boolean"?":":this.labelColon),m},autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var m=Math.max.apply(Math,(0,n.default)(this.potentialLabelWidthArr));return m?String(m)+"px":""}},methods:{resetFields:function(){var m=this;this.fields.forEach(function(_){(0,e.default)(this,m),_.resetField()}.bind(this))},validate:function(m){var _=this;return new a.default(function(h){(0,e.default)(this,_);var g=!0,b=0;this.fields.length===0&&(h(g),typeof m=="function"&&m(g)),this.fields.forEach(function(x){(0,e.default)(this,_),x.validate("",function(C){(0,e.default)(this,_),C&&(g=!1),++b===this.fields.length&&(h(g),typeof m=="function"&&m(g))}.bind(this))}.bind(this))}.bind(this))},validateField:function(m,_){var h=this,g=this.fields.filter(function(b){return(0,e.default)(this,h),b.prop===m}.bind(this))[0];if(!g)throw new Error("[iView warn]: must call validateField with valid prop string!");g.validate("",_)},getLabelWidthIndex:function(m){return this.potentialLabelWidthArr.indexOf(m)},registerLabelWidth:function(m,_){if(m&&_){var h=this.getLabelWidthIndex(_);h>-1&&this.potentialLabelWidthArr.splice(h,1,m)}else m&&this.potentialLabelWidthArr.push(m)},deregisterLabelWidth:function(m){var _=this.getLabelWidthIndex(m);_>-1&&this.potentialLabelWidthArr.splice(_,1)}},watch:{rules:function(){this.validate()}},created:function(){var m=this;this.$on("on-form-item-add",function(_){return(0,e.default)(this,m),_&&this.fields.push(_),!1}.bind(this)),this.$on("on-form-item-remove",function(_){return(0,e.default)(this,m),_.prop&&this.fields.splice(this.fields.indexOf(_),1),!1}.bind(this))}}},function(v,r,t){v.exports={default:t(441),__esModule:!0}},function(v,r,t){var s=t(23),a=t(43),d=t(10)("species");v.exports=function(e,l){var n=s(e).constructor,i;return n===void 0||(i=s(n)[d])==null?l:a(i)}},function(v,r,t){var s=t(25),a=t(443),d=t(105),e=t(69),l=t(9),n=l.process,i=l.setImmediate,o=l.clearImmediate,c=l.MessageChannel,u=l.Dispatch,f=0,y={},m="onreadystatechange",_,h,g,b=function(){var C=+this;if(y.hasOwnProperty(C)){var p=y[C];delete y[C],p()}},x=function(C){b.call(C.data)};(!i||!o)&&(i=function(p){for(var S=[],P=1;arguments.length>P;)S.push(arguments[P++]);return y[++f]=function(){a(typeof p=="function"?p:Function(p),S)},_(f),f},o=function(p){delete y[p]},t(41)(n)=="process"?_=function(C){n.nextTick(s(b,C,1))}:u&&u.now?_=function(C){u.now(s(b,C,1))}:c?(h=new c,g=h.port2,h.port1.onmessage=x,_=s(g.postMessage,g,1)):l.addEventListener&&typeof postMessage=="function"&&!l.importScripts?(_=function(C){l.postMessage(C+"","*")},l.addEventListener("message",x,!1)):m in e("script")?_=function(C){d.appendChild(e("script"))[m]=function(){d.removeChild(this),b.call(C)}}:_=function(C){setTimeout(s(b,C,1),0)}),v.exports={set:i,clear:o}},function(v,r){v.exports=function(t){try{return{e:!1,v:t()}}catch(s){return{e:!0,v:s}}}},function(v,r,t){var s=t(23),a=t(19),d=t(89);v.exports=function(e,l){if(s(e),a(l)&&l.constructor===e)return l;var n=d.f(e),i=n.resolve;return i(l),n.promise}},function(v,r,t){var s=t(9),a=t(5),d=t(16),e=t(13),l=t(10)("species");v.exports=function(n){var i=typeof a[n]=="function"?a[n]:s[n];e&&i&&!i[l]&&d.f(i,l,{configurable:!0,get:function(){return this}})}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=f(s),d=t(2),e=f(d),l=t(450),n=f(l),i=t(4),o=f(i),c=t(452),u=f(c);function f(_){return _&&_.__esModule?_:{default:_}}var y="ivu-form-item";function m(_,h){var g=_;h=h.replace(/\[(\w+)\]/g,".$1"),h=h.replace(/^\./,"");for(var b=h.split("."),x=0,C=b.length;x1&&arguments[1]!==void 0?arguments[1]:function(){},x=this.getFilteredRule(h);if(!x||x.length===0)if(this.required)x=[{required:!0}];else return b(),!0;this.validateState="validating";var C={};C[this.prop]=x;var p=new n.default(C),S={};S[this.prop]=this.fieldValue,p.validate(S,{firstFields:!0},function(P){(0,a.default)(this,g),this.validateState=P?"error":"success",this.validateMessage=P?P[0].message:"",b(this.validateMessage),this.FormInstance&&this.FormInstance.$emit("on-validate",this.prop,!P,this.validateMessage||null)}.bind(this)),this.validateDisabled=!1},resetField:function(){this.validateState="",this.validateMessage="";var h=this.FormInstance.model,g=this.fieldValue,b=this.prop;b.indexOf(":")!==-1&&(b=b.replace(/:/,"."));var x=m(h,b);Array.isArray(g)&&this.initialValue!==null?(this.validateDisabled=!0,x.o[x.k]=[].concat(this.initialValue)):(this.validateDisabled=!0,x.o[x.k]=this.initialValue)},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){if(this.validateDisabled){this.validateDisabled=!1;return}this.validate("change")},updateComputedLabelWidth:function(h){this.computedLabelWidth=h?String(h)+"px":""}},mounted:function(){this.prop&&(this.dispatch("iForm","on-form-item-add",this),Object.defineProperty(this,"initialValue",{value:this.fieldValue}),this.setRules())},beforeDestroy:function(){this.dispatch("iForm","on-form-item-remove",this)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-form-item";r.default={name:"FormLabel",props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["FormInstance","FormItem"],render:function(){var d=arguments[0],e=this.$slots.default;if(!e)return null;if(this.isAutoWidth){var l=this.FormInstance,n=l.autoLabelWidth,i=l.labelPosition,o={};if(n&&n!=="auto"){var c=parseInt(n,10)-this.computedWidth;c&&(i==="left"?o.marginRight=c+"px":o.marginLeft=c+"px")}var u=s+"-label-wrap";return d("div",{class:u,style:o},[e])}else return e[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var d=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(d))}else return 0},updateLabelWidth:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&(d==="update"?this.computedWidth=this.getLabelWidth():d==="remove"&&this.FormInstance.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(d,e){this.updateAll&&(this.FormInstance.registerLabelWidth(d,e),this.FormItem.updateComputedLabelWidth(d))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(194),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(455);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-layout";r.default={name:"Header",computed:{wrapClasses:function(){return s+"-header"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(196),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(458);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=u(s),d=t(2),e=u(d),l=t(3),n=t(4),i=u(n),o=t(11),c=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var f="ivu-input-number",y="ivu-icon";function m(_,h){var g=void 0,b=void 0,x=void 0;try{g=_.toString().split(".")[1].length}catch{g=0}try{b=h.toString().split(".")[1].length}catch{b=0}return x=Math.pow(10,Math.max(g,b)),(Math.round(_*x)+Math.round(h*x))/x}r.default={name:"InputNumber",mixins:[i.default,c.default],props:{max:{type:Number,default:1/0},min:{type:Number,default:-1/0},step:{type:Number,default:1},activeChange:{type:Boolean,default:!0},value:{type:Number,default:1},size:{validator:function(h){return(0,l.oneOf)(h,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},name:{type:String},precision:{type:Number},elementId:{type:String},formatter:{type:Function},parser:{type:Function},placeholder:{type:String,default:""},controlsOutside:{type:Boolean,default:!1}},data:function(){return{focused:!1,upDisabled:!1,downDisabled:!1,currentValue:this.value}},computed:{wrapClasses:function(){var h;return[""+f,(h={},(0,e.default)(h,f+"-"+String(this.size),!!this.size),(0,e.default)(h,f+"-disabled",this.itemDisabled),(0,e.default)(h,f+"-focused",this.focused),(0,e.default)(h,f+"-controls-outside",this.controlsOutside),h)]},handlerClasses:function(){return f+"-handler-wrap"},upClasses:function(){return[f+"-handler",f+"-handler-up",(0,e.default)({},f+"-handler-up-disabled",this.upDisabled)]},innerUpClasses:function(){return f+"-handler-up-inner "+y+" "+y+"-ios-arrow-up"},downClasses:function(){return[f+"-handler",f+"-handler-down",(0,e.default)({},f+"-handler-down-disabled",this.downDisabled)]},innerDownClasses:function(){return f+"-handler-down-inner "+y+" "+y+"-ios-arrow-down"},inputWrapClasses:function(){return f+"-input-wrap"},inputClasses:function(){return f+"-input"},precisionValue:function(){return this.currentValue?this.precision?this.currentValue.toFixed(this.precision):this.currentValue:this.currentValue},formatterValue:function(){return this.formatter&&this.precisionValue!==null?this.formatter(this.precisionValue):this.precisionValue}},methods:{preventDefault:function(h){h.preventDefault()},up:function(h){var g=Number(h.target.value);if(this.upDisabled&&isNaN(g))return!1;this.changeStep("up",h)},down:function(h){var g=Number(h.target.value);if(this.downDisabled&&isNaN(g))return!1;this.changeStep("down",h)},changeStep:function(h,g){if(this.itemDisabled||this.readonly)return!1;var b=Number(g.target.value),x=Number(this.currentValue),C=Number(this.step);if(isNaN(x))return!1;if(!isNaN(b)){if(h==="up")if(m(b,C)<=this.max)x=b;else return!1;else if(h==="down")if(m(b,-C)>=this.min)x=b;else return!1}h==="up"?x=m(x,C):h==="down"&&(x=m(x,-C)),this.setValue(x)},setValue:function(h){var g=this;h&&!isNaN(this.precision)&&(h=Number(Number(h).toFixed(this.precision)));var b=this.min,x=this.max;h!==null&&(h>x?h=x:hthis.max,this.downDisabled=h-g0?(this.showTopLoader=!0,this.topRubberPadding=20):function(){P.showBottomLoader=!0,P.bottomRubberPadding=20;for(var T=0,B=P.$refs.scrollContainer,j=B.scrollTop,q=0;q<20;q++)setTimeout(function(){(0,o.default)(this,P),T=Math.max(T,this.$refs.bottomLoader.getBoundingClientRect().height),B.scrollTop=j+T}.bind(P),q*50)}();var O=[this.waitOneSecond(),this.onReachEdge?this.onReachEdge(S):C()];O.push(S>0?this.onReachTop?this.onReachTop():C():this.onReachBottom?this.onReachBottom():C());var A=setTimeout(function(){(0,o.default)(this,P),this.reset()}.bind(this),5e3);n.default.all(O).then(function(){(0,o.default)(this,P),clearTimeout(A),this.reset()}.bind(this))},reset:function(){var S=this;["showTopLoader","showBottomLoader","showBodyLoader","isLoading","reachedTopScrollLimit","reachedBottomScrollLimit"].forEach(function(P){return(0,o.default)(this,S),this[P]=!1}.bind(this)),this.lastScroll=0,this.topRubberPadding=0,this.bottomRubberPadding=0,clearInterval(this.rubberRollBackTimeout),this.touchScroll&&setTimeout(function(){(0,o.default)(this,S),(0,m.off)(window,"touchend",this.pointerUpHandler),this.$refs.scrollContainer.removeEventListener("touchmove",this.pointerMoveHandler),this.touchScroll=!1}.bind(this),500)},onWheel:function(S){if(!this.isLoading){var P=S.wheelDelta?S.wheelDelta:-(S.detail||S.deltaY);this.stretchEdge(P)}},stretchEdge:function(S){var P=this;if(clearTimeout(this.rubberRollBackTimeout),!this.onReachEdge){if(S>0){if(!this.onReachTop)return}else if(!this.onReachBottom)return}this.rubberRollBackTimeout=setTimeout(function(){(0,o.default)(this,P),this.isLoading||this.reset()}.bind(this),250),S>0&&this.reachedTopScrollLimit?(this.topRubberPadding+=5-this.topRubberPadding/5,this.topRubberPadding>this.topProximityThreshold&&this.onCallback(1)):S<0&&this.reachedBottomScrollLimit?(this.bottomRubberPadding+=6-this.bottomRubberPadding/4,this.bottomRubberPadding>this.bottomProximityThreshold&&this.onCallback(-1)):this.onScroll()},onScroll:function(){var S=this.$refs.scrollContainer;if(!(this.isLoading||!S)){var P=(0,a.default)(this.lastScroll-S.scrollTop),O=S.scrollHeight-S.clientHeight-S.scrollTop,A=this.topProximityThreshold<0?this.topProximityThreshold:0,T=this.bottomProximityThreshold<0?this.bottomProximityThreshold:0;P==-1&&O+T<=x.sensitivity?this.reachedBottomScrollLimit=!0:P>=0&&S.scrollTop+A<=0?this.reachedTopScrollLimit=!0:(this.reachedTopScrollLimit=!1,this.reachedBottomScrollLimit=!1,this.lastScroll=S.scrollTop)}},getTouchCoordinates:function(S){return{x:S.touches[0].pageX,y:S.touches[0].pageY}},onPointerDown:function(S){var P=this;if(!this.isLoading){if(S.type=="touchstart"){var O=this.$refs.scrollContainer;this.reachedTopScrollLimit?O.scrollTop=5:this.reachedBottomScrollLimit&&(O.scrollTop-=5)}S.type=="touchstart"&&this.$refs.scrollContainer.scrollTop==0&&(this.$refs.scrollContainer.scrollTop=5),this.pointerTouchDown=this.getTouchCoordinates(S),(0,m.on)(window,"touchend",this.pointerUpHandler),this.$refs.scrollContainer.parentElement.addEventListener("touchmove",function(A){(0,o.default)(this,P),A.stopPropagation(),this.pointerMoveHandler(A)}.bind(this),{passive:!1,useCapture:!0})}},onPointerMove:function(S){if(!!this.pointerTouchDown&&!this.isLoading){var P=this.getTouchCoordinates(S),O=P.y-this.pointerTouchDown.y;if(this.stretchEdge(O),!this.touchScroll){var A=Math.abs(O)>x.minimumStartDragOffset;A&&(this.touchScroll=!0)}}},onPointerUp:function(){this.pointerTouchDown=null}},created:function(){this.handleScroll=(0,u.default)(this.onScroll,150,{leading:!1}),this.pointerUpHandler=this.onPointerUp.bind(this),this.pointerMoveHandler=(0,u.default)(this.onPointerMove,50,{leading:!1})}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(91),e=i(d),l=t(8),n=i(l);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-scroll";r.default={props:["text","active","spinnerHeight"],components:{Spin:e.default,Icon:n.default},computed:{wrapperClasses:function(){return[o+"-loader-wrapper",(0,a.default)({},o+"-loader-wrapper-active",this.active)]},spinnerClasses:function(){return o+"-spinner"},iconClasses:function(){return o+"-spinner-icon"},textClasses:function(){return o+"-loader-text"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(3),e=t(87),l=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var i="ivu-spin";r.default={name:"Spin",mixins:[l.default],props:{size:{validator:function(c){return(0,d.oneOf)(c,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},fix:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},data:function(){return{showText:!1,visible:!1}},computed:{classes:function(){var c;return[""+i,(c={},(0,a.default)(c,i+"-"+String(this.size),!!this.size),(0,a.default)(c,i+"-fix",this.fix),(0,a.default)(c,i+"-show-text",this.showText),(0,a.default)(c,i+"-fullscreen",this.fullscreen),c)]},mainClasses:function(){return i+"-main"},dotClasses:function(){return i+"-dot"},textClasses:function(){return i+"-text"},fullscreenVisible:function(){return this.fullscreen?this.visible:!0}},watch:{visible:function(c){c?this.addScrollEffect():this.removeScrollEffect()}},mounted:function(){this.showText=this.$slots.default!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=c(s),d=t(2),e=c(d),l=t(3),n=t(12),i=t(472),o=c(i);function c(u){return u&&u.__esModule?u:{default:u}}r.default={name:"Split",components:{Trigger:o.default},props:{value:{type:[Number,String],default:.5},mode:{validator:function(f){return(0,l.oneOf)(f,["horizontal","vertical"])},default:"horizontal"},min:{type:[Number,String],default:"40px"},max:{type:[Number,String],default:"40px"}},data:function(){return{prefix:"ivu-split",offset:0,oldOffset:0,isMoving:!1,computedMin:0,computedMax:0,currentValue:.5}},computed:{wrapperClasses:function(){return[String(this.prefix)+"-wrapper",this.isMoving?"no-select":""]},paneClasses:function(){return[String(this.prefix)+"-pane",(0,e.default)({},String(this.prefix)+"-pane-moving",this.isMoving)]},isHorizontal:function(){return this.mode==="horizontal"},anotherOffset:function(){return 100-this.offset},valueIsPx:function(){return typeof this.value=="string"},offsetSize:function(){return this.isHorizontal?"offsetWidth":"offsetHeight"}},methods:{px2percent:function(f,y){return parseFloat(f)/parseFloat(y)},getComputedThresholdValue:function(f){var y=this.$refs.outerWrapper[this.offsetSize];return this.valueIsPx?typeof this[f]=="string"?this[f]:y*this[f]:typeof this[f]=="string"?this.px2percent(this[f],y):this[f]},getMin:function(f,y){return this.valueIsPx?String(Math.min(parseFloat(f),parseFloat(y)))+"px":Math.min(f,y)},getMax:function(f,y){return this.valueIsPx?String(Math.max(parseFloat(f),parseFloat(y)))+"px":Math.max(f,y)},getAnotherOffset:function(f){var y=0;return this.valueIsPx?y=this.$refs.outerWrapper[this.offsetSize]-parseFloat(f)+"px":y=1-f,y},handleMove:function(f){var y=this.isHorizontal?f.pageX:f.pageY,m=y-this.initOffset,_=this.$refs.outerWrapper[this.offsetSize],h=this.valueIsPx?String(parseFloat(this.oldOffset)+m)+"px":this.px2percent(_*this.oldOffset+m,_),g=this.getAnotherOffset(h);parseFloat(h)<=parseFloat(this.computedMin)&&(h=this.getMax(h,this.computedMin)),parseFloat(g)<=parseFloat(this.computedMax)&&(h=this.getAnotherOffset(this.getMax(g,this.computedMax))),f.atMin=this.value===this.computedMin,f.atMax=this.valueIsPx?this.getAnotherOffset(this.value)===this.computedMax:this.getAnotherOffset(this.value).toFixed(5)===this.computedMax.toFixed(5),this.$emit("input",h),this.$emit("on-moving",f)},handleUp:function(){this.isMoving=!1,(0,n.off)(document,"mousemove",this.handleMove),(0,n.off)(document,"mouseup",this.handleUp),this.$emit("on-move-end")},handleMousedown:function(f){this.initOffset=this.isHorizontal?f.pageX:f.pageY,this.oldOffset=this.value,this.isMoving=!0,(0,n.on)(document,"mousemove",this.handleMove),(0,n.on)(document,"mouseup",this.handleUp),this.$emit("on-move-start")},computeOffset:function(){var f=this;this.$nextTick(function(){(0,a.default)(this,f),this.computedMin=this.getComputedThresholdValue("min"),this.computedMax=this.getComputedThresholdValue("max"),this.offset=(this.valueIsPx?this.px2percent(this.value,this.$refs.outerWrapper[this.offsetSize]):this.value)*1e4/100}.bind(this))}},watch:{value:function(f){f!==this.currentValue&&(this.currentValue=f,this.computeOffset())}},mounted:function(){var f=this;this.$nextTick(function(){(0,a.default)(this,f),this.computeOffset()}.bind(this)),(0,n.on)(window,"resize",this.computeOffset)},beforeDestroy:function(){(0,n.off)(window,"resize",this.computeOffset)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"Trigger",props:{mode:String},data:function(){return{prefix:"ivu-split-trigger",initOffset:0}},computed:{isVertical:function(){return this.mode==="vertical"},classes:function(){return[this.prefix,this.isVertical?String(this.prefix)+"-vertical":String(this.prefix)+"-horizontal"]},barConClasses:function(){return[String(this.prefix)+"-bar-con",this.isVertical?"vertical":"horizontal"]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(2),e=l(d);function l(i){return i&&i.__esModule?i:{default:i}}var n="ivu-layout";r.default={name:"Layout",data:function(){return{hasSider:!1}},computed:{wrapClasses:function(){return[""+n,(0,e.default)({},n+"-has-sider",this.hasSider)]}},methods:{findSider:function(){var o=this;return this.$children.some(function(c){return(0,a.default)(this,o),c.$options.name==="Sider"}.bind(this))}},mounted:function(){this.hasSider=this.findSider()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(204),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(478);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(12),a=t(3),d="ivu-layout-sider";(0,a.setMatchMedia)(),r.default={name:"Sider",props:{value:{type:Boolean,default:!1},width:{type:[Number,String],default:200},collapsedWidth:{type:[Number,String],default:64},hideTrigger:{type:Boolean,default:!1},breakpoint:{type:String,validator:function(l){return(0,a.oneOf)(l,["xs","sm","md","lg","xl","xxl"])}},collapsible:{type:Boolean,default:!1},defaultCollapsed:{type:Boolean,default:!1},reverseArrow:{type:Boolean,default:!1}},data:function(){return{prefixCls:d,mediaMatched:!1}},computed:{wrapClasses:function(){return[""+d,this.siderWidth?"":d+"-zero-width",this.value?d+"-collapsed":""]},wrapStyles:function(){return{width:String(this.siderWidth)+"px",minWidth:String(this.siderWidth)+"px",maxWidth:String(this.siderWidth)+"px",flex:"0 0 "+String(this.siderWidth)+"px"}},triggerClasses:function(){return[d+"-trigger",this.value?d+"-trigger-collapsed":""]},childClasses:function(){return String(this.prefixCls)+"-children"},zeroWidthTriggerClasses:function(){return[d+"-zero-width-trigger",this.reverseArrow?d+"-zero-width-trigger-left":""]},triggerIconClasses:function(){return["ivu-icon","ivu-icon-ios-arrow-"+(this.reverseArrow?"forward":"back"),d+"-trigger-icon"]},siderWidth:function(){return this.collapsible?this.value?this.mediaMatched?0:parseInt(this.collapsedWidth):parseInt(this.width):this.width},showZeroTrigger:function(){return this.collapsible?this.mediaMatched&&!this.hideTrigger||parseInt(this.collapsedWidth)===0&&this.value&&!this.hideTrigger:!1},showBottomTrigger:function(){return this.collapsible?!this.mediaMatched&&!this.hideTrigger:!1}},methods:{toggleCollapse:function(){var l=this.collapsible?!this.value:!1;this.$emit("input",l)},matchMedia:function(){var l=void 0;window.matchMedia&&(l=window.matchMedia);var n=this.mediaMatched;this.mediaMatched=l("(max-width: "+String(a.dimensionMap[this.breakpoint])+")").matches,this.mediaMatched!==n&&this.$emit("input",this.mediaMatched)},onWindowResize:function(){this.matchMedia()}},watch:{value:function(l){this.$emit("on-collapse",l)}},mounted:function(){this.defaultCollapsed&&this.$emit("input",this.defaultCollapsed),this.breakpoint!==void 0&&((0,s.on)(window,"resize",this.onWindowResize),this.matchMedia())},beforeDestroy:function(){this.breakpoint!==void 0&&(0,s.off)(window,"resize",this.onWindowResize)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=e(s),d=t(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-list";r.default={name:"List",provide:function(){return{ListInstance:this}},props:{border:{type:Boolean,default:!1},itemLayout:{validator:function(i){return(0,d.oneOf)(i,["horizontal","vertical"])},default:"horizontal"},header:{type:String,default:""},footer:{type:String,default:""},loading:{type:Boolean,default:!1},size:{validator:function(i){return(0,d.oneOf)(i,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},split:{type:Boolean,default:!0}},data:function(){return{}},computed:{classes:function(){var i;return[""+l,l+"-"+String(this.size),l+"-"+String(this.itemLayout),(i={},(0,a.default)(i,l+"-bordered",this.border),(0,a.default)(i,l+"-split",this.split),i)]}},methods:{}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"ListItem",inject:["ListInstance"],props:{},computed:{itemLayout:function(){return this.ListInstance.itemLayout},isItemContainsTextNode:function(){var l=this,n=void 0;return this.$slots.default.forEach(function(i){(0,a.default)(this,l),typeof i=="string"&&(n=!0)}.bind(this)),n},isFlexMode:function(){var l=this.$slots.extra;return this.itemLayout==="vertical"?!!l:!this.isItemContainsTextNode},classes:function(){return[{"ivu-list-item-no-flex":!this.isFlexMode}]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(125),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"ListItemMeta",components:{Avatar:a.default},props:{avatar:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-loading-bar";r.default={name:"LoadingBar",props:{color:{type:String,default:"primary"},failedColor:{type:String,default:"error"},height:{type:Number,default:2}},data:function(){return{percent:0,status:"success",show:!1}},computed:{classes:function(){return""+e},innerClasses:function(){var n;return[e+"-inner",(n={},(0,a.default)(n,e+"-inner-color-primary",this.color==="primary"&&this.status==="success"),(0,a.default)(n,e+"-inner-failed-color-error",this.failedColor==="error"&&this.status==="error"),n)]},outerStyles:function(){return{height:String(this.height)+"px"}},styles:function(){var n={width:String(this.percent)+"%",height:String(this.height)+"px"};return this.color!=="primary"&&this.status==="success"&&(n.backgroundColor=this.color),this.failedColor!=="error"&&this.status==="error"&&(n.backgroundColor=this.failedColor),n}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=u(s),d=t(15),e=u(d),l=t(2),n=u(l),i=t(3),o=t(4),c=u(o);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-menu";r.default={name:"Menu",mixins:[c.default],props:{mode:{validator:function(m){return(0,i.oneOf)(m,["horizontal","vertical"])},default:"vertical"},theme:{validator:function(m){return(0,i.oneOf)(m,["light","dark","primary"])},default:"light"},activeName:{type:[String,Number]},openNames:{type:Array,default:function(){return[]}},accordion:{type:Boolean,default:!1},width:{type:String,default:"240px"}},data:function(){return{currentActiveName:this.activeName,openedNames:[]}},computed:{classes:function(){var m=this.theme;return this.mode==="vertical"&&this.theme==="primary"&&(m="light"),[""+f,f+"-"+String(m),(0,n.default)({},f+"-"+String(this.mode),this.mode)]},styles:function(){var m={};return this.mode==="vertical"&&(m.width=this.width),m}},methods:{updateActiveName:function(){this.currentActiveName===void 0&&(this.currentActiveName=-1),this.broadcast("Submenu","on-update-active-name",!1),this.broadcast("MenuItem","on-update-active-name",this.currentActiveName)},updateOpenKeys:function(m){var _=this,h=[].concat((0,e.default)(this.openedNames)),g=h.indexOf(m);if(this.accordion&&(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!1}.bind(this)),g>=0){var b=null;(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.name===m&&(b=p,p.opened=!1)}.bind(this)),(0,i.findComponentsUpward)(b,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!0}.bind(this)),(0,i.findComponentsDownward)(b,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!1}.bind(this))}else if(this.accordion){var x=null;(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.name===m&&(x=p,p.opened=!0)}.bind(this)),(0,i.findComponentsUpward)(x,"Submenu").forEach(function(p){(0,a.default)(this,_),p.opened=!0}.bind(this))}else(0,i.findComponentsDownward)(this,"Submenu").forEach(function(p){(0,a.default)(this,_),p.name===m&&(p.opened=!0)}.bind(this));var C=(0,i.findComponentsDownward)(this,"Submenu").filter(function(p){return(0,a.default)(this,_),p.opened}.bind(this)).map(function(p){return(0,a.default)(this,_),p.name}.bind(this));this.openedNames=[].concat((0,e.default)(C)),this.$emit("on-open-change",C)},updateOpened:function(){var m=this,_=(0,i.findComponentsDownward)(this,"Submenu");_.length&&_.forEach(function(h){(0,a.default)(this,m),this.openedNames.indexOf(h.name)>-1?h.opened=!0:h.opened=!1}.bind(this))},handleEmitSelectEvent:function(m){this.$emit("on-select",m)}},mounted:function(){var m=this;this.openedNames=[].concat((0,e.default)(this.openNames)),this.updateOpened(),this.$nextTick(function(){return(0,a.default)(this,m),this.updateActiveName()}.bind(this)),this.$on("on-menu-item-select",function(_){(0,a.default)(this,m),this.currentActiveName=_,this.$emit("on-select",_)}.bind(this))},watch:{openNames:function(m){this.openedNames=m},activeName:function(m){this.currentActiveName=m},currentActiveName:function(){this.updateActiveName()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(92),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-menu";r.default={name:"MenuGroup",mixins:[a.default],props:{title:{type:String,default:""}},data:function(){return{prefixCls:e}},computed:{groupStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*28+"px"}:{}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=y(s),d=t(2),e=y(d),l=t(4),n=y(l),i=t(3),o=t(92),c=y(o),u=t(48),f=y(u);function y(_){return _&&_.__esModule?_:{default:_}}var m="ivu-menu";r.default={name:"MenuItem",mixins:[n.default,c.default,f.default],props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{active:!1}},computed:{classes:function(){var h;return[m+"-item",(h={},(0,e.default)(h,m+"-item-active",this.active),(0,e.default)(h,m+"-item-selected",this.active),(0,e.default)(h,m+"-item-disabled",this.disabled),h)]},itemStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*24+"px"}:{}}},methods:{handleClickItem:function(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.disabled)if(g||this.target==="_blank"){this.handleCheckClick(h,g);var b=(0,i.findComponentUpward)(this,"Menu");b&&b.handleEmitSelectEvent(this.name)}else{var x=(0,i.findComponentUpward)(this,"Submenu");x?this.dispatch("Submenu","on-menu-item-select",this.name):this.dispatch("Menu","on-menu-item-select",this.name),this.handleCheckClick(h,g)}}},mounted:function(){var h=this;this.$on("on-update-active-name",function(g){(0,a.default)(this,h),this.name===g?(this.active=!0,this.dispatch("Submenu","on-update-active-name",g)):this.active=!1}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=g(s),d=t(2),e=g(d),l=t(37),n=g(l),i=t(8),o=g(i),c=t(83),u=g(c),f=t(3),y=t(4),m=g(y),_=t(92),h=g(_);function g(x){return x&&x.__esModule?x:{default:x}}var b="ivu-menu";r.default={name:"Submenu",mixins:[m.default,h.default],components:{Icon:o.default,Drop:n.default,CollapseTransition:u.default},props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:b,active:!1,opened:!1,dropWidth:parseFloat((0,f.getStyle)(this.$el,"width"))}},computed:{classes:function(){var C;return[b+"-submenu",(C={},(0,e.default)(C,b+"-item-active",this.active&&!this.hasParentSubmenu),(0,e.default)(C,b+"-opened",this.opened),(0,e.default)(C,b+"-submenu-disabled",this.disabled),(0,e.default)(C,b+"-submenu-has-parent-submenu",this.hasParentSubmenu),(0,e.default)(C,b+"-child-item-active",this.active),C)]},accordion:function(){return this.menu.accordion},dropStyle:function(){var C={};return this.dropWidth&&(C.minWidth=String(this.dropWidth)+"px"),C},titleStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*24+"px"}:{}},arrowType:function(){var C="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.menu.customArrow?C="":this.$IVIEW.menu.arrow&&(C=this.$IVIEW.menu.arrow)),C},customArrowType:function(){var C="";return this.$IVIEW&&this.$IVIEW.menu.customArrow&&(C=this.$IVIEW.menu.customArrow),C},arrowSize:function(){var C="";return this.$IVIEW&&this.$IVIEW.menu.arrowSize&&(C=this.$IVIEW.menu.arrowSize),C}},methods:{handleMouseenter:function(){var C=this;this.disabled||this.mode!=="vertical"&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,C),this.menu.updateOpenKeys(this.name),this.opened=!0}.bind(this),250))},handleMouseleave:function(){var C=this;this.disabled||this.mode!=="vertical"&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,C),this.menu.updateOpenKeys(this.name),this.opened=!1}.bind(this),150))},handleClick:function(){var C=this;if(!this.disabled&&this.mode!=="horizontal"){var p=this.opened;this.accordion&&this.$parent.$children.forEach(function(S){(0,a.default)(this,C),S.$options.name==="Submenu"&&(S.opened=!1)}.bind(this)),this.opened=!p,this.menu.updateOpenKeys(this.name)}}},watch:{mode:function(C){C==="horizontal"&&this.$refs.drop.update()},opened:function(C){this.mode!=="vertical"&&(C?(this.dropWidth=parseFloat((0,f.getStyle)(this.$el,"width")),this.$refs.drop.update()):this.$refs.drop.destroy())}},mounted:function(){var C=this;this.$on("on-menu-item-select",function(p){return(0,a.default)(this,C),this.mode==="horizontal"&&(this.opened=!1),this.dispatch("Menu","on-menu-item-select",p),!0}.bind(this)),this.$on("on-update-active-name",function(p){(0,a.default)(this,C),(0,f.findComponentUpward)(this,"Submenu")&&this.dispatch("Submenu","on-update-active-name",p),(0,f.findComponentsDownward)(this,"Submenu")&&(0,f.findComponentsDownward)(this,"Submenu").forEach(function(S){(0,a.default)(this,C),S.active=!1}.bind(this)),this.active=p}.bind(this))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(500),e=i(d),l=t(17),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}e.default.newInstance=function(o){(0,a.default)(void 0,void 0);var c=o||{},u=new n.default({render:function(_){return _(e.default,{props:c})}}),f=u.$mount();document.body.appendChild(f.$el);var y=u.$children[0];return{notice:function(_){y.add(_)},remove:function(_){y.close(_)},component:y,destroy:function(_){y.closeAll(),setTimeout(function(){document.body.removeChild(document.getElementsByClassName(_)[0])},500)}}}.bind(void 0),r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=o(s),d=t(2),e=o(d),l=t(501),n=o(l),i=t(33);function o(m){return m&&m.__esModule?m:{default:m}}var c="ivu-notification",u=0,f=Date.now();function y(){return"ivuNotification_"+f+"_"+u++}r.default={components:{Notice:n.default},props:{prefixCls:{type:String,default:c},styles:{type:Object,default:function(){return{top:"65px",left:"50%"}}},content:{type:String},className:{type:String},followScrollY:{type:Boolean,default:!0}},data:function(){return{notices:[],tIndex:this.handleGetIndex(),localScrollY:0}},mounted:function(){this.followScrollY&&window.addEventListener("scroll",this.windowScrollListener)},beforeDestroy:function(){this.followScrollY&&window.removeEventListener("scroll",this.windowScrollListener)},computed:{classes:function(){return[""+String(this.prefixCls),(0,e.default)({},""+String(this.className),!!this.className)]},wrapStyles:function(){var _=(0,a.default)({},this.styles);return _["z-index"]=(0,i.hasTransferIndex)(this.tIndex,1010+this.tIndex),this.followScrollY&&(_["margin-top"]=Math.max(0,this.localScrollY)+"px"),_}},methods:{add:function(_){var h=_.name||y(),g=(0,a.default)({styles:{right:"50%"},content:"",duration:1.5,closable:!1,name:h},_);this.notices.push(g),this.tIndex=this.handleGetIndex()},close:function(_){for(var h=this.notices,g=0;g-1&&this.handleMask()},handleMousedown:function(){this.isMouseTriggerIn=!0},shake:function(){var B=this;this.contentShake=!0,setTimeout(function(){(0,a.default)(this,B),this.contentShake=!1}.bind(this),500)},cancel:function(){this.close()},ok:function(){this.loading?this.buttonLoading=!0:(this.visible=!1,this.$emit("input",!1)),this.$emit("on-ok")},EscClose:function(B){var j=this;if(!this.CheckEnterOk(B)){if(this.$IVIEW.modal.checkEscClose===!0){this.EscCheckClose(B);return}if(this.visible&&this.closable&&B.keyCode===27){var q=(0,p.findComponentsDownward)(this.$root,"Modal").filter(function(R){return(0,a.default)(this,j),R.$data.visible&&R.$props.closable}.bind(this)),U=q.sort(function(R,V){return(0,a.default)(this,j),R.$data.modalIndex-this.stickyDistance&&q.x>0?this.dragData.x=U-this.dragData.rect.width:this.dragData.x+=q.x,this.dragData.y+q.y<=this.stickyDistance&&q.y<0?this.dragData.y=0:this.dragData.y+this.dragData.rect.height-R>-this.stickyDistance&&q.y>0?this.dragData.y=R-this.dragData.rect.height:this.dragData.y+=q.y}else this.dragData.x+=q.x,this.dragData.y+=q.y;this.dragData.dragX=j.x,this.dragData.dragY=j.y},handleMoveEnd:function(){this.dragData.dragging=!1,(0,C.off)(window,"mousemove",this.handleMoveMove),(0,C.off)(window,"mouseup",this.handleMoveEnd)},handleGetModalIndex:function(){return(0,S.transferIncrease)(),(0,S.getTransferIndex)()},handleClickModal:function(){this.draggable&&this.handleMoveTop()},handleMoveTop:function(){if(S.lastVisibleIndex!==this.lastVisibleIndex){this.lastVisibleIndex=S.lastVisibleIndex;return}this.modalIndex=this.handleGetModalIndex()}},mounted:function(){this.visible&&(this.wrapShow=!0);var B=!0;this.$slots.header===void 0&&!this.title&&(B=!1),this.showHead=B,document.addEventListener("keydown",this.EscClose)},beforeDestroy:function(){document.removeEventListener("keydown",this.EscClose),this.removeScrollEffect()},watch:{value:function(B){this.visible=B},visible:function(B){var j=this;if(this._uid){var q=S.modalVisibleAggregate.findIndex(function(U){var R=U._uid;return(0,a.default)(this,j),R===this._uid}.bind(this));B&&q===-1&&S.modalVisibleAggregate.push({_uid:this._uid,$data:this.$data,$props:this.$props,ok:this.ok,cancel:this.cancel,shake:this.shake}),!B&&q>-1&&S.modalVisibleAggregate.splice(q,1)}B===!1?(this.buttonLoading=!1,this.timer=setTimeout(function(){(0,a.default)(this,j),this.wrapShow=!1,this.removeScrollEffect()}.bind(this),300)):(this.lastVisible!==B&&(this.modalIndex=this.handleGetModalIndex(),(0,S.lastVisibleIncrease)()),this.timer&&clearTimeout(this.timer),this.wrapShow=!0,this.scrollable||this.addScrollEffect()),this.broadcast("Table","on-visible-change",B),this.broadcast("Slider","on-visible-change",B),this.$emit("on-visible-change",B),this.lastVisible=B,this.lastVisibleIndex=S.lastVisibleIndex,B&&this.resetDragPosition&&(this.dragData=(0,p.deepCopy)(A))},loading:function(B){B||(this.buttonLoading=!1)},scrollable:function(B){B?this.removeScrollEffect():this.addScrollEffect()},title:function(B){this.$slots.header===void 0&&(this.showHead=!!B)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=o(s),d=t(3),e=t(511),l=o(e),n=t(6),i=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var c="ivu-page";r.default={name:"Page",mixins:[i.default],components:{Options:l.default},props:{current:{type:Number,default:1},total:{type:Number,default:0},pageSize:{type:Number,default:10},pageSizeOpts:{type:Array,default:function(){return[10,20,30,40]}},placement:{validator:function(f){return(0,d.oneOf)(f,["top","bottom"])},default:"bottom"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},size:{validator:function(f){return(0,d.oneOf)(f,["small","default"])}},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showElevator:{type:Boolean,default:!1},showSizer:{type:Boolean,default:!1},className:{type:String},styles:{type:Object},prevText:{type:String,default:""},nextText:{type:String,default:""},disabled:{type:Boolean,default:!1},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:c,currentPage:this.current,currentPageSize:this.pageSize}},watch:{total:function(f){var y=Math.ceil(f/this.currentPageSize);y=this.allPages)return!1;this.changePage(f+1),this.$emit("on-next",f+1)}},fastPrev:function(){if(!this.disabled){var f=this.currentPage-5;f>0?this.changePage(f):this.changePage(1)}},fastNext:function(){if(!this.disabled){var f=this.currentPage+5;f>this.allPages?this.changePage(this.allPages):this.changePage(f)}},onSize:function(f){this.disabled||(this.currentPageSize=f,this.$emit("on-page-size-change",f),this.changePage(1))},onPage:function(f){this.disabled||this.changePage(f)},keyDown:function(f){var y=f.keyCode,m=y>=48&&y<=57||y>=96&&y<=105||y===8||y===37||y===39;m||f.preventDefault()},keyUp:function(f){var y=f.keyCode,m=parseInt(f.target.value);if(y===38)this.prev();else if(y===40)this.next();else if(y===13){var _=1;m>this.allPages?_=this.allPages:m<=0||!m?_=1:_=m,f.target.value=_,this.changePage(_)}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(74),a=i(s),d=t(81),e=i(d),l=t(6),n=i(l);function i(u){return u&&u.__esModule?u:{default:u}}var o="ivu-page";function c(u){return/^[1-9][0-9]*$/.test(u+"")}r.default={name:"PageOption",mixins:[n.default],components:{iSelect:a.default,iOption:e.default},props:{pageSizeOpts:Array,showSizer:Boolean,showElevator:Boolean,current:Number,_current:Number,pageSize:Number,allPages:Number,isSmall:Boolean,placement:String,transfer:Boolean,disabled:Boolean,eventsEnabled:Boolean},data:function(){return{currentPageSize:this.pageSize}},watch:{pageSize:function(f){this.currentPageSize=f}},computed:{size:function(){return this.isSmall?"small":"default"},optsClasses:function(){return[o+"-options"]},sizerClasses:function(){return[o+"-options-sizer"]},ElevatorClasses:function(){return[o+"-options-elevator"]}},methods:{changeSize:function(){this.$emit("on-size",this.currentPageSize)},changePage:function(f){var y=f.target.value.trim(),m=0;if(c(y)){if(y=Number(y),y!=this.current){var _=this.allPages;y>_?m=_:m=y}}else m=1;m&&(this.$emit("on-page",m),f.target.value=m)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(221),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(515);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=b(s),d=t(2),e=b(d),l=t(222),n=b(l),i=t(28),o=b(i),c=t(82),u=b(c),f=t(24),y=b(f),m=t(3),_=t(33),h=t(6),g=b(h);function b(C){return C&&C.__esModule?C:{default:C}}var x="ivu-poptip";r.default={name:"Poptip",mixins:[n.default,g.default],directives:{clickOutside:u.default,TransferDom:y.default},components:{iButton:o.default},props:{trigger:{validator:function(p){return(0,m.oneOf)(p,["click","focus","hover"])},default:"click"},placement:{validator:function(p){return(0,m.oneOf)(p,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"top"},title:{type:[String,Number]},content:{type:[String,Number],default:""},width:{type:[String,Number]},confirm:{type:Boolean,default:!1},okText:{type:String},cancelText:{type:String},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},popperClass:{type:String},wordWrap:{type:Boolean,default:!1},padding:{type:String},disabled:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!1}},transferClassName:{type:String}},data:function(){return{prefixCls:x,showTitle:!0,isInput:!1,disableCloseUnderTransfer:!1,tIndex:this.handleGetIndex()}},computed:{classes:function(){return[""+x,(0,e.default)({},x+"-confirm",this.confirm)]},popperClasses:function(){var p;return[x+"-popper",(p={},(0,e.default)(p,x+"-confirm",this.transfer&&this.confirm),(0,e.default)(p,""+String(this.popperClass),!!this.popperClass),(0,e.default)(p,x+"-transfer",this.transfer),(0,e.default)(p,this.transferClassName,this.transferClassName),p)]},styles:function(){var p={};return this.width&&(p.width=String(this.width)+"px"),this.transfer&&(p["z-index"]=(0,_.hasTransferIndex)(this.tIndex,1060+this.tIndex)),p},localeOkText:function(){return this.okText===void 0?this.t("i.poptip.okText"):this.okText},localeCancelText:function(){return this.cancelText===void 0?this.t("i.poptip.cancelText"):this.cancelText},contentClasses:function(){return[x+"-body-content",(0,e.default)({},x+"-body-content-word-wrap",this.wordWrap)]},contentPaddingStyle:function(){var p={};return this.padding!==""&&(p.padding=this.padding),p}},methods:{handleClick:function(){if(!this.disabled){if(this.confirm)return this.visible=!this.visible,!0;if(this.trigger!=="click")return!1;this.visible=!this.visible}},handleTransferClick:function(){this.transfer&&(this.disableCloseUnderTransfer=!0)},handleClose:function(){if(this.disableCloseUnderTransfer)return this.disableCloseUnderTransfer=!1,!1;if(this.confirm)return this.visible=!1,!0;if(this.trigger!=="click")return!1;this.visible=!1},handleFocus:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.disabled){if(this.trigger!=="focus"||this.confirm||this.isInput&&!p)return!1;this.visible=!0}},handleBlur:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.trigger!=="focus"||this.confirm||this.isInput&&!p)return!1;this.visible=!1},handleMouseenter:function(){var p=this;if(!this.disabled){if(this.trigger!=="hover"||this.confirm)return!1;this.enterTimer&&clearTimeout(this.enterTimer),this.enterTimer=setTimeout(function(){(0,a.default)(this,p),this.visible=!0}.bind(this),100)}},handleMouseleave:function(){var p=this;if(this.trigger!=="hover"||this.confirm)return!1;this.enterTimer&&(clearTimeout(this.enterTimer),this.enterTimer=setTimeout(function(){(0,a.default)(this,p),this.visible=!1}.bind(this),100))},cancel:function(){this.visible=!1,this.$emit("on-cancel")},ok:function(){this.visible=!1,this.$emit("on-ok")},getInputChildren:function(){var p=this.$refs.reference.querySelectorAll("input"),S=this.$refs.reference.querySelectorAll("textarea"),P=null;return p.length?P=p[0]:S.length&&(P=S[0]),P},handleGetIndex:function(){return(0,_.transferIncrease)(),(0,_.getTransferIndex)()},handleIndexIncrease:function(){this.tIndex=this.handleGetIndex()}},mounted:function(){var p=this;this.confirm||(this.showTitle=this.$slots.title!==void 0||this.title),this.trigger==="focus"&&this.$nextTick(function(){(0,a.default)(this,p);var S=this.getInputChildren();S&&(this.isInput=!0,S.addEventListener("focus",this.handleFocus,!1),S.addEventListener("blur",this.handleBlur,!1))}.bind(this))},beforeDestroy:function(){var p=this.getInputChildren();p&&(p.removeEventListener("focus",this.handleFocus,!1),p.removeEventListener("blur",this.handleBlur,!1))}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(17),e=l(d);function l(o){return o&&o.__esModule?o:{default:o}}var n=e.default.prototype.$isServer,i=n?function(){}:t(118);r.default={props:{eventsEnabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:Object,popper:Object,offset:{default:0},value:{type:Boolean,default:!1},transition:String,options:{type:Object,default:function(){return{modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:"window"}}}}}},data:function(){return{visible:this.value}},watch:{value:{immediate:!0,handler:function(c){this.visible=c,this.$emit("input",c)}},visible:function(c){c?(this.handleIndexIncrease&&this.handleIndexIncrease(),this.updatePopper(),this.$emit("on-popper-show")):this.$emit("on-popper-hide"),this.$emit("input",c)}},methods:{createPopper:function(){var c=this;if(!n&&!!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)){var u=this.options,f=this.popper||this.$refs.popper,y=this.reference||this.$refs.reference;!f||!y||(this.popperJS&&this.popperJS.hasOwnProperty("destroy")&&this.popperJS.destroy(),u.eventsEnabled=this.eventsEnabled,u.placement=this.placement,u.modifiers.offset||(u.modifiers.offset={}),u.modifiers.offset.offset=this.offset,u.onCreate=function(){(0,a.default)(this,c),this.$nextTick(this.updatePopper),this.$emit("created",this)}.bind(this),this.popperJS=new i(y,f,u))}},updatePopper:function(){n||(this.popperJS?this.popperJS.update():this.createPopper())},doDestroy:function(){n||this.visible||(this.popperJS.destroy(),this.popperJS=null)}},updated:function(){var c=this;this.$nextTick(function(){return(0,a.default)(this,c),this.updatePopper()}.bind(this))},beforeDestroy:function(){n||this.popperJS&&this.popperJS.destroy()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(224),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(517);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(20),e=n(d),l=t(3);function n(o){return o&&o.__esModule?o:{default:o}}var i="ivu-progress";r.default={name:"Progress",components:{Icon:e.default},props:{percent:{type:Number,default:0},successPercent:{type:Number,default:0},status:{validator:function(c){return(0,l.oneOf)(c,["normal","active","wrong","success"])},default:"normal"},hideInfo:{type:Boolean,default:!1},strokeWidth:{type:Number,default:10},vertical:{type:Boolean,default:!1},strokeColor:{type:[String,Array]},textInside:{type:Boolean,default:!1}},data:function(){return{currentStatus:this.status}},computed:{isStatus:function(){return this.currentStatus=="wrong"||this.currentStatus=="success"},statusIcon:function(){var c="";switch(this.currentStatus){case"wrong":c="ios-close-circle";break;case"success":c="ios-checkmark-circle";break}return c},bgStyle:function(){var c=this.vertical?{height:String(this.percent)+"%",width:String(this.strokeWidth)+"px"}:{width:String(this.percent)+"%",height:String(this.strokeWidth)+"px"};return this.strokeColor&&(typeof this.strokeColor=="string"?c["background-color"]=this.strokeColor:c["background-image"]="linear-gradient(to right, "+String(this.strokeColor[0])+" 0%, "+String(this.strokeColor[1])+" 100%)"),c},successBgStyle:function(){return this.vertical?{height:String(this.successPercent)+"%",width:String(this.strokeWidth)+"px"}:{width:String(this.successPercent)+"%",height:String(this.strokeWidth)+"px"}},wrapClasses:function(){var c;return[""+i,i+"-"+String(this.currentStatus),(c={},(0,a.default)(c,i+"-show-info",!this.hideInfo&&!this.textInside),(0,a.default)(c,i+"-vertical",this.vertical),c)]},textClasses:function(){return i+"-text"},textInnerClasses:function(){return i+"-text-inner"},outerClasses:function(){return i+"-outer"},innerClasses:function(){return i+"-inner"},bgClasses:function(){return i+"-bg"},successBgClasses:function(){return i+"-success-bg"}},created:function(){this.handleStatus()},methods:{handleStatus:function(c){c?(this.currentStatus="normal",this.$emit("on-status-change","normal")):parseInt(this.percent,10)==100&&(this.currentStatus="success",this.$emit("on-status-change","success"))}},watch:{percent:function(c,u){c=0,currentValue:_}},computed:{classes:function(){return[""+y,(0,a.default)({},y+"-disabled",this.itemDisabled)]},iconClasses:function(){var _;return["ivu-icon",(_={},(0,a.default)(_,"ivu-icon-"+String(this.icon),this.icon!==""),(0,a.default)(_,""+String(this.customIcon),this.customIcon!==""),_)]},showCharacter:function(){return this.character!==""||this.icon!==""||this.customIcon!==""}},watch:{value:function(_){this.currentValue=_||0},currentValue:function(_){this.setHalf(_)}},methods:{starCls:function(_){var h,g=this.hoverIndex,b=this.isHover?g:this.currentValue,x=!1,C=!1;return b>=_&&(x=!0),this.isHover?C=b===_:C=Math.ceil(this.currentValue)===_,[(h={},(0,a.default)(h,y+"-star",!this.showCharacter),(0,a.default)(h,y+"-star-chart",this.showCharacter),(0,a.default)(h,y+"-star-full",!C&&x||C&&!this.isHalf),(0,a.default)(h,y+"-star-half",C&&this.isHalf),(0,a.default)(h,y+"-star-zero",!x),h)]},handleMousemove:function(_,h){if(!this.itemDisabled){if(this.isHover=!0,this.allowHalf){var g=h.target.getAttribute("type")||!1;this.isHalf=g==="half"}else this.isHalf=!1;this.hoverIndex=_}},handleMouseleave:function(){this.itemDisabled||(this.isHover=!1,this.setHalf(this.currentValue),this.hoverIndex=-1)},setHalf:function(_){this.isHalf=this.allowHalf&&_.toString().indexOf(".")>=0},handleClick:function(_){this.itemDisabled||(this.isHalf&&(_-=.5),this.clearable&&Math.abs(_-this.currentValue)<.01&&(_=0),this.currentValue=_,this.$emit("input",_),this.$emit("on-change",_),this.dispatch("FormItem","on-form-change",_))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(75),a=j(s),d=t(27),e=j(d),l=t(22),n=j(l),i=t(2),o=j(i),c=t(1),u=j(c),f=t(15),y=j(f),m=t(195),_=j(m),h=t(93),g=j(h),b=t(530),x=j(b),C=t(3),p=t(12),S=t(4),P=j(S),O=t(11),A=j(O),T=t(94),B=j(T);function j(U){return U&&U.__esModule?U:{default:U}}var q="ivu-slider";r.default={name:"Slider",mixins:[P.default,A.default],components:{InputNumber:_.default,Tooltip:g.default,SliderMarker:x.default},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},range:{type:Boolean,default:!1},value:{type:[Number,Array],default:0},disabled:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},inputSize:{type:String,default:"default",validator:function(R){return(0,C.oneOf)(R,["small","large","default"])}},showStops:{type:Boolean,default:!1},tipFormat:{type:Function,default:function(R){return R}},showTip:{type:String,default:"hover",validator:function(R){return(0,C.oneOf)(R,["hover","always","never"])}},name:{type:String},activeChange:{type:Boolean,default:!0},marks:{type:Object}},data:function(){var R=this.checkLimits(Array.isArray(this.value)?this.value:[this.value]);return this.range&&this.value===null&&(R=[0,0]),{prefixCls:q,currentValue:R,dragging:!1,pointerDown:"",startX:0,currentX:0,startPos:0,oldValue:[].concat((0,y.default)(R)),valueIndex:{min:0,max:1},sliderWidth:0,isValueNull:!1}},watch:{value:function(R){R===null&&(this.isValueNull=!0),R=this.checkLimits(Array.isArray(R)?R:[R]),!this.dragging&&(R[0]!==this.currentValue[0]||R[1]!==this.currentValue[1])&&(this.isValueNull&&this.range?this.currentValue=[0,0]:this.currentValue=R)},exportValue:function(R){var V=this;this.$nextTick(function(){(0,u.default)(this,V),this.$refs.minTooltip.updatePopper(),this.range&&this.$refs.maxTooltip.updatePopper()}.bind(this));var E=this.range?R:R[0];this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",E),this.$emit("on-input",E)}},computed:{classes:function(){var R;return[""+q,(R={},(0,o.default)(R,q+"-input",this.showInput&&!this.range),(0,o.default)(R,q+"-range",this.range),(0,o.default)(R,q+"-disabled",this.itemDisabled),R)]},minButtonClasses:function(){return[q+"-button",(0,o.default)({},q+"-button-dragging",this.pointerDown==="min")]},maxButtonClasses:function(){return[q+"-button",(0,o.default)({},q+"-button-dragging",this.pointerDown==="max")]},exportValue:function(){var R=this,V=(String(this.step).split(".")[1]||"").length;return this.currentValue.map(function(E){return(0,u.default)(this,R),Number(E.toFixed(V))}.bind(this))},minPosition:function(){var R=this.currentValue;return(R[0]-this.min)/this.valueRange*100},maxPosition:function(){var R=this.currentValue;return(R[1]-this.min)/this.valueRange*100},barStyle:function(){var R={width:(this.currentValue[0]-this.min)/this.valueRange*100+"%"};return this.range&&(R.left=(this.currentValue[0]-this.min)/this.valueRange*100+"%",R.width=(this.currentValue[1]-this.currentValue[0])/this.valueRange*100+"%"),R},stops:function(){for(var R=this.valueRange/this.step,V=[],E=100*this.step/this.valueRange,k=1;k=this.min}.bind(this)).map(function(E){return(0,u.default)(this,R),{point:E,position:(E-this.min)*100/(this.max-this.min),mark:this.marks[E]}}.bind(this))},tipDisabled:function(){return this.tipFormat(this.currentValue[0])===null||this.showTip==="never"},valueRange:function(){return this.max-this.min},firstPosition:function(){return this.currentValue[0]},secondPosition:function(){return this.currentValue[1]}},methods:{getPointerX:function(R){return R.type.indexOf("touch")!==-1?R.touches[0].clientX:R.clientX},checkLimits:function(R){var V=(0,e.default)(R,2),E=V[0],k=V[1];return E=Math.max(this.min,E),E=Math.min(this.max,E),k=Math.max(this.min,E,k),k=Math.min(this.max,k),[E,k]},getCurrentValue:function(R,V){if(!this.itemDisabled){var E=this.valueIndex[V];if(typeof E!="undefined")return this.currentValue[E]}},onKeyLeft:function(R,V){var E=this.getCurrentValue(R,V);(0,a.default)(E)&&this.changeButtonPosition(E-this.step,V)},onKeyRight:function(R,V){var E=this.getCurrentValue(R,V);(0,a.default)(E)&&this.changeButtonPosition(E+this.step,V)},onPointerDown:function(R,V){this.itemDisabled||(R.preventDefault(),this.pointerDown=V,this.onPointerDragStart(R),(0,p.on)(window,"mousemove",this.onPointerDrag),(0,p.on)(window,"touchmove",this.onPointerDrag),(0,p.on)(window,"mouseup",this.onPointerDragEnd),(0,p.on)(window,"touchend",this.onPointerDragEnd))},onPointerDragStart:function(R){this.dragging=!1,this.startX=this.getPointerX(R),this.startPos=this[String(this.pointerDown)+"Position"]*this.valueRange/100+this.min},onPointerDrag:function(R){this.dragging=!0,this.$refs[String(this.pointerDown)+"Tooltip"].visible=!0,this.currentX=this.getPointerX(R);var V=(this.currentX-this.startX)/this.sliderWidth*this.valueRange;this.changeButtonPosition(this.startPos+V)},onPointerDragEnd:function(){this.dragging&&(this.dragging=!1,this.$refs[String(this.pointerDown)+"Tooltip"].visible=!1,this.emitChange()),this.pointerDown="",(0,p.off)(window,"mousemove",this.onPointerDrag),(0,p.off)(window,"touchmove",this.onPointerDrag),(0,p.off)(window,"mouseup",this.onPointerDragEnd),(0,p.off)(window,"touchend",this.onPointerDragEnd)},changeButtonPosition:function(R,V){var E=V||this.pointerDown,k=E==="min"?0:1;E==="min"?R=this.checkLimits([R,this.max])[0]:R=this.checkLimits([this.min,R])[1];var G=this.handleDecimal(R,this.step),z=this.currentValue;z[k]=R-G,this.range&&(E==="min"&&z[0]>z[1]&&(z[1]=z[0]),E==="max"&&z[0]>z[1]&&(z[0]=z[1])),this.currentValue=[].concat((0,y.default)(z)),this.dragging||this.currentValue[k]!==this.oldValue[k]&&(this.emitChange(),this.oldValue[k]=this.currentValue[k])},handleDecimal:function(R,V){if(V<1){var E=V.toString(),k=1,G=void 0;try{G=E.split(".")[1].length}catch{G=0}return k=Math.pow(10,G),R*k%(V*k)/k}else return R%V},emitChange:function(){var R=this.range?this.exportValue:this.exportValue[0];this.$emit("on-change",R),this.dispatch("FormItem","on-form-change",R)},sliderClick:function(R){if(!this.itemDisabled){var V=this.getPointerX(R),E=this.$refs.slider.getBoundingClientRect().left,k=(V-E)/this.sliderWidth*this.valueRange+this.min,G=k/this.valueRange*100;!this.range||G<=this.minPosition?this.changeButtonPosition(k,"min"):G>=this.maxPosition?this.changeButtonPosition(k,"max"):this.changeButtonPosition(k,k-this.firstPosition<=this.secondPosition-k?"min":"max")}},handleInputChange:function(R){this.currentValue=[R===0?0:R||this.min,this.currentValue[1]],this.emitChange()},handleFocus:function(R){this.$refs[String(R)+"Tooltip"].handleShowPopper()},handleBlur:function(R){this.$refs[String(R)+"Tooltip"].handleClosePopper()},handleSetSliderWidth:function(){this.sliderWidth=parseInt((0,C.getStyle)(this.$refs.slider,"width"),10)}},mounted:function(){var R=this;this.$on("on-visible-change",function(V){(0,u.default)(this,R),V&&this.showTip==="always"&&(this.$refs.minTooltip.doDestroy(),this.range&&this.$refs.maxTooltip.doDestroy(),this.$nextTick(function(){(0,u.default)(this,R),this.$refs.minTooltip.updatePopper(),this.range&&this.$refs.maxTooltip.updatePopper()}.bind(this)))}.bind(this)),this.observer=(0,B.default)(),this.observer.listenTo(this.$refs.slider,this.handleSetSliderWidth)},beforeDestroy:function(){this.observer.removeListener(this.$refs.slider,this.handleSetSliderWidth)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=f(s),d=t(2),e=f(d),l=t(222),n=f(l),i=t(24),o=f(i),c=t(3),u=t(33);function f(m){return m&&m.__esModule?m:{default:m}}var y="ivu-tooltip";r.default={name:"Tooltip",directives:{TransferDom:o.default},mixins:[n.default],props:{placement:{validator:function(_){return(0,c.oneOf)(_,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},content:{type:[String,Number],default:""},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1},controlled:{type:Boolean,default:!1},always:{type:Boolean,default:!1},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},theme:{validator:function(_){return(0,c.oneOf)(_,["dark","light"])},default:"dark"},maxWidth:{type:[String,Number]},transferClassName:{type:String},rawIndex:{type:[String,Number],default:null}},data:function(){return{prefixCls:y,tIndex:this.handleGetIndex()}},computed:{innerStyles:function(){var _={};return this.maxWidth&&(_["max-width"]=String(this.maxWidth)+"px"),_},innerClasses:function(){return[y+"-inner",(0,e.default)({},y+"-inner-with-width",!!this.maxWidth)]},dropStyles:function(){var _={};return this.rawIndex!==null?_["z-index"]=this.rawIndex:this.transfer&&(_["z-index"]=(0,u.hasTransferIndex)(this.tIndex,1060+this.tIndex)),_},dropdownCls:function(){var _;return[y+"-popper",y+"-"+String(this.theme),(_={},(0,e.default)(_,y+"-transfer",this.transfer),(0,e.default)(_,this.transferClassName,this.transferClassName),_)]}},watch:{content:function(){this.updatePopper()}},methods:{handleShowPopper:function(){var _=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,a.default)(this,_),this.visible=!0}.bind(this),this.delay),this.tIndex=this.handleGetIndex()},handleClosePopper:function(){var _=this;this.timeout&&(clearTimeout(this.timeout),this.controlled||(this.timeout=setTimeout(function(){(0,a.default)(this,_),this.visible=!1}.bind(this),100)))},handleGetIndex:function(){return(0,u.transferIncrease)(),(0,u.getTransferIndex)()}},mounted:function(){this.always&&this.updatePopper()}}},function(v,r,t){var s=v.exports={};s.forEach=function(a,d){for(var e=0;e";while(o[0]);return n>4?n:l}();return a===e},s.isLegacyOpera=function(){return!!window.opera}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(2),e=n(d),l=t(3);function n(c){return c&&c.__esModule?c:{default:c}}var i="ivu-steps";function o(c){var u=void 0;return function(){if(!u){u=!0;var f=this,y=arguments,m=function(){u=!1,c.apply(f,y)};this.$nextTick(m)}}}r.default={name:"Steps",props:{current:{type:Number,default:0},status:{validator:function(u){return(0,l.oneOf)(u,["wait","process","finish","error"])},default:"process"},size:{validator:function(u){return(0,l.oneOf)(u,["small"])}},direction:{validator:function(u){return(0,l.oneOf)(u,["horizontal","vertical"])},default:"horizontal"}},computed:{classes:function(){return[""+i,i+"-"+String(this.direction),(0,e.default)({},i+"-"+String(this.size),!!this.size)]}},methods:{updateChildProps:function(u){var f=this,y=this.$children.length;this.$children.forEach(function(m,_){(0,a.default)(this,f),m.stepNumber=_+1,this.direction==="horizontal"&&(m.total=y),u&&m.currentStatus||(_===this.current?this.status!=="error"&&(m.currentStatus="process"):_=this.$children.length))if(u){var f=this.$children[this.current].currentStatus;f||(this.$children[this.current].currentStatus=this.status)}else this.$children[this.current].currentStatus=this.status},debouncedAppendRemove:function(){return o(function(){this.updateSteps()})},updateSteps:function(){this.updateChildProps(!0),this.setNextError(),this.updateCurrent(!0)}},mounted:function(){this.updateSteps(),this.$on("append",this.debouncedAppendRemove()),this.$on("remove",this.debouncedAppendRemove())},watch:{current:function(){this.updateChildProps()},status:function(){this.updateCurrent()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(4),e=n(d),l=t(3);function n(c){return c&&c.__esModule?c:{default:c}}var i="ivu-steps",o="ivu-icon";r.default={name:"Step",mixins:[e.default],props:{status:{validator:function(u){return(0,l.oneOf)(u,["wait","process","finish","error"])}},title:{type:String,default:""},content:{type:String},icon:{type:String}},data:function(){return{prefixCls:i,stepNumber:"",nextError:!1,total:1,currentStatus:""}},computed:{wrapClasses:function(){var u;return[i+"-item",i+"-status-"+String(this.currentStatus),(u={},(0,a.default)(u,i+"-custom",!!this.icon||!!this.$slots.icon),(0,a.default)(u,i+"-next-error",this.nextError),u)]},iconClasses:function(){var u="";return this.icon?u=this.icon:this.currentStatus==="finish"?u="ios-checkmark":this.currentStatus==="error"&&(u="ios-close"),[i+"-icon",""+o,(0,a.default)({},o+"-"+String(u),u!=="")]}},watch:{status:function(u){this.currentStatus=u,this.currentStatus==="error"&&this.$parent.setNextError()}},created:function(){this.currentStatus=this.status},mounted:function(){this.dispatch("Steps","append")},beforeDestroy:function(){this.dispatch("Steps","remove")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=u(s),d=t(2),e=u(d),l=t(3),n=t(4),i=u(n),o=t(11),c=u(o);function u(y){return y&&y.__esModule?y:{default:y}}var f="ivu-switch";r.default={name:"iSwitch",mixins:[i.default,c.default],props:{value:{type:[String,Number,Boolean],default:!1},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:!1},size:{validator:function(m){return(0,l.oneOf)(m,["large","small","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},name:{type:String},loading:{type:Boolean,default:!1},trueColor:{type:String},falseColor:{type:String},beforeChange:Function},data:function(){return{currentValue:this.value}},computed:{wrapClasses:function(){var m;return[""+f,(m={},(0,e.default)(m,f+"-checked",this.currentValue===this.trueValue),(0,e.default)(m,f+"-disabled",this.itemDisabled),(0,e.default)(m,f+"-"+String(this.size),!!this.size),(0,e.default)(m,f+"-loading",this.loading),m)]},wrapStyles:function(){var m={};return this.trueColor&&this.currentValue===this.trueValue?(m["border-color"]=this.trueColor,m["background-color"]=this.trueColor):this.falseColor&&this.currentValue===this.falseValue&&(m["border-color"]=this.falseColor,m["background-color"]=this.falseColor),m},innerClasses:function(){return f+"-inner"}},methods:{handleToggle:function(){var m=this.currentValue===this.trueValue?this.falseValue:this.trueValue;this.currentValue=m,this.$emit("input",m),this.$emit("on-change",m),this.dispatch("FormItem","on-form-change",m)},toggle:function(m){var _=this;if(m.preventDefault(),this.itemDisabled||this.loading)return!1;if(!this.beforeChange)return this.handleToggle();var h=this.beforeChange();h&&h.then?h.then(function(){(0,a.default)(this,_),this.handleToggle()}.bind(this)):this.handleToggle()}},watch:{value:function(m){if(m!==this.trueValue&&m!==this.falseValue&&m!==null)throw"Value should be trueValue or falseValue.";this.currentValue=m}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(45),a=Z(s),d=t(554),e=Z(d),l=t(15),n=Z(l),i=t(57),o=Z(i),c=t(1),u=Z(c),f=t(2),y=Z(f),m=t(569),_=Z(m),h=t(572),g=Z(h),b=t(578),x=Z(b),C=t(61),p=Z(C),S=t(62),P=Z(S),O=t(91),A=Z(O),T=t(3),B=t(12),j=t(580),q=Z(j),U=t(581),R=Z(U),V=t(6),E=Z(V),k=t(94),G=Z(k),z=t(582);function Z(Y){return Y&&Y.__esModule?Y:{default:Y}}var re="ivu-table",J=1,N=1;r.default={name:"Table",mixins:[E.default],components:{tableHead:_.default,tableBody:g.default,tableSummary:x.default,Spin:A.default,Dropdown:p.default,DropdownMenu:P.default},provide:function(){return{tableRoot:this}},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:{validator:function(w){return(0,T.oneOf)(w,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},width:{type:[Number,String]},height:{type:[Number,String]},maxHeight:{type:[Number,String]},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},highlightRow:{type:Boolean,default:!1},rowClassName:{type:Function,default:function(){return""}},context:{type:Object},noDataText:{type:String},noFilteredDataText:{type:String},disabledHover:{type:Boolean},loading:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tooltipTheme:{validator:function(w){return(0,T.oneOf)(w,["dark","light"])},default:"dark"},tooltipMaxWidth:{type:Number,default:300},rowKey:{type:[Boolean,String],default:!1},spanMethod:{type:Function},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},sumText:{type:String},indentSize:{type:Number,default:16},loadData:{type:Function},updateShowChildren:{type:Boolean,default:!1},contextMenu:{type:Boolean,default:!1},showContextMenu:{type:Boolean,default:!1},fixedShadow:{validator:function(w){return(0,T.oneOf)(w,["auto","show","hide"])},default:"show"}},data:function(){var w=this.makeColumnsId(this.columns);return{ready:!1,tableWidth:0,columnsWidth:{},prefixCls:re,compiledUids:[],objData:this.makeObjData(),rebuildData:[],cloneColumns:this.makeColumns(w),columnRows:this.makeColumnRows(!1,w),leftFixedColumnRows:this.makeColumnRows("left",w),rightFixedColumnRows:this.makeColumnRows("right",w),allColumns:(0,z.getAllColumns)(w),showSlotHeader:!0,showSlotFooter:!0,bodyHeight:0,scrollBarWidth:(0,T.getScrollBarSize)(),currentContext:this.context,cloneData:(0,T.deepCopy)(this.data),showVerticalScrollBar:!1,showHorizontalScrollBar:!1,headerWidth:0,headerHeight:0,showResizeLine:!1,contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},scrollOnTheLeft:!1,scrollOnTheRight:!1}},computed:{localeNoDataText:function(){return this.noDataText===void 0?this.t("i.table.noDataText"):this.noDataText},localeNoFilteredDataText:function(){return this.noFilteredDataText===void 0?this.t("i.table.noFilteredDataText"):this.noFilteredDataText},localeSumText:function(){return this.sumText===void 0?this.t("i.table.sumText"):this.sumText},wrapClasses:function(){var w;return[re+"-wrapper",(w={},(0,y.default)(w,re+"-hide",!this.ready),(0,y.default)(w,re+"-with-header",this.showSlotHeader),(0,y.default)(w,re+"-with-footer",this.showSlotFooter),(0,y.default)(w,re+"-with-summary",this.showSummary),(0,y.default)(w,re+"-wrapper-with-border",this.border),w)]},classes:function(){var w;return[""+re,(w={},(0,y.default)(w,re+"-"+String(this.size),!!this.size),(0,y.default)(w,re+"-border",this.border),(0,y.default)(w,re+"-stripe",this.stripe),(0,y.default)(w,re+"-with-fixed-top",!!this.height),w)]},fixedTableClasses:function(){return[re+"-fixed",(0,y.default)({},re+"-fixed-shadow",this.fixedShadow==="show"||this.fixedShadow==="auto"&&!this.scrollOnTheLeft)]},fixedRightTableClasses:function(){return[re+"-fixed-right",(0,y.default)({},re+"-fixed-shadow",this.fixedShadow==="show"||this.fixedShadow==="auto"&&!this.scrollOnTheRight)]},fixedHeaderClasses:function(){return[re+"-fixed-header",(0,y.default)({},re+"-fixed-header-with-empty",!this.rebuildData.length)]},styles:function(){var w={},F=0;if(this.showSummary&&(this.size==="small"?F=40:this.size==="large"?F=60:F=48),this.height){var H=parseInt(this.height)+F;w.height=String(H)+"px"}if(this.maxHeight){var te=parseInt(this.maxHeight)+F;w.maxHeight=String(te)+"px"}return this.width&&(w.width=String(this.width)+"px"),w},tableStyle:function(){var w={};if(this.tableWidth!==0){var F="";this.bodyHeight===0?F=this.tableWidth:F=this.tableWidth-(this.showVerticalScrollBar?this.scrollBarWidth:0),w.width=String(F)+"px"}return w},tableHeaderStyle:function(){var w={};if(this.tableWidth!==0){var F="";F=this.tableWidth,w.width=String(F)+"px"}return w},fixedTableStyle:function(){var w=this,F={},H=0;return this.leftFixedColumns.forEach(function(te){(0,u.default)(this,w),te.fixed&&te.fixed==="left"&&(H+=te._width)}.bind(this)),F.width=String(H)+"px",F},fixedRightTableStyle:function(){var w=this,F={},H=0;return this.rightFixedColumns.forEach(function(te){(0,u.default)(this,w),te.fixed&&te.fixed==="right"&&(H+=te._width)}.bind(this)),F.width=String(H)+"px",F.right=String(this.showVerticalScrollBar?this.scrollBarWidth:0)+"px",F},fixedRightHeaderStyle:function(){var w={},F=0,H=this.headerHeight+1;return this.showVerticalScrollBar&&(F=this.scrollBarWidth),w.width=String(F)+"px",w.height=String(H)+"px",w},bodyStyle:function(){var w={};if(this.bodyHeight!==0){var F=this.bodyHeight;this.height?w.height=String(F)+"px":this.maxHeight&&(w.maxHeight=String(F)+"px")}return w},fixedBodyStyle:function(){var w={};if(this.bodyHeight!==0){var F=this.bodyHeight-(this.showHorizontalScrollBar?this.scrollBarWidth:0),H=this.showHorizontalScrollBar?F+"px":F-1+"px";this.height?w.height=H:this.maxHeight&&(w.maxHeight=H)}return w},leftFixedColumns:function(){return(0,z.convertColumnOrder)(this.cloneColumns,"left")},rightFixedColumns:function(){return(0,z.convertColumnOrder)(this.cloneColumns,"right")},isLeftFixed:function(){var w=this;return this.columns.some(function(F){return(0,u.default)(this,w),F.fixed&&F.fixed==="left"}.bind(this))},isRightFixed:function(){var w=this;return this.columns.some(function(F){return(0,u.default)(this,w),F.fixed&&F.fixed==="right"}.bind(this))},summaryData:function(){var w=this;if(!this.showSummary)return{};var F={};return this.summaryMethod?F=this.summaryMethod({columns:this.cloneColumns,data:this.rebuildData}):this.cloneColumns.forEach(function(H,te){(0,u.default)(this,w);var ie=H.key;if(te===0){F[ie]={key:H.key,value:this.localeSumText};return}var ue=this.rebuildData.map(function(W){return(0,u.default)(this,w),Number(W[H.key])}.bind(this)),ee=[],he=!0;ue.forEach(function(W){if((0,u.default)(this,w),!isNaN(W)){he=!1;var $=(""+W).split(".")[1];ee.push($?$.length:0)}}.bind(this));var ae=Math.max.apply(null,ee);if(he)F[ie]={key:H.key,value:""};else{var M=ue.reduce(function(W,$){(0,u.default)(this,w);var D=Number($);return isNaN(D)?W:parseFloat((W+$).toFixed(Math.min(ae,20)))}.bind(this),0);F[ie]={key:H.key,value:M}}}.bind(this)),F}},methods:{rowClsName:function(w){return this.rowClassName(this.data[w],w)},handleResize:function(){var w=this,F=this.$el.offsetWidth-1,H={},te=0,ie=[],ue=[],ee=[];this.cloneColumns.forEach(function(le){(0,u.default)(this,w),le.width?ie.push(le):(ue.push(le),le.minWidth&&(te+=le.minWidth),le.maxWidth||ee.push(le)),le._width=null}.bind(this));var he=ie.map(function(le){return(0,u.default)(this,w),le.width}.bind(this)).reduce(function(le,fe){return(0,u.default)(this,w),le+fe}.bind(this),0),ae=F-he-te-(this.showVerticalScrollBar?this.scrollBarWidth:0)-1,M=ue.length,W=0;ae>0&&M>0&&(W=parseInt(ae/M));for(var $=0;$I?I=D.minWidth:D.maxWidth0?(ae-=I-(D.minWidth?D.minWidth:0),M--,M>0?W=parseInt(ae/M):W=0):W=0),D._width=I,H[D._index]={width:I}}if(ae>0){M=ee.length,W=parseInt(ae/M);for(var K=0;K1?(M--,ae-=W,W=parseInt(ae/M)):W=0,X._width=se,H[X._index]={width:se}}}this.tableWidth=this.cloneColumns.map(function(le){return(0,u.default)(this,w),le._width}.bind(this)).reduce(function(le,fe){return(0,u.default)(this,w),le+fe}.bind(this),0)+(this.showVerticalScrollBar?this.scrollBarWidth:0)+1,this.columnsWidth=H,this.fixedHeader(),this.fixedShadow==="auto"&&this.$nextTick(function(){(0,u.default)(this,w);var le=this.$refs.body;this.scrollOnTheLeft=le.scrollLeft===0,this.scrollOnTheRight=le.scrollWidth===le.scrollLeft+le.clientWidth}.bind(this))},handleMouseIn:function(w,F){if(!this.disabledHover){var H=F?this.getDataByRowKey(F):this.objData[w];H._isHover||(H._isHover=!0)}},handleMouseOut:function(w,F){if(!this.disabledHover){var H=F?this.getDataByRowKey(F):this.objData[w];H._isHover=!1}},handleCurrentRow:function(w,F,H){var te=H?this.getDataByRowKey(H):this.objData[F],ie=null,ue=-1;for(var ee in this.objData)if(this.objData[ee]._isHighlight){ue=parseInt(ee),this.objData[ee]._isHighlight=!1;break}else if(this.objData[ee].children&&this.objData[ee].children.length){var he=this.handleResetChildrenRow(this.objData[ee]);he&&(ie=JSON.parse((0,o.default)(he)))}w==="highlight"&&(te._isHighlight=!0),ue>=0&&(ie=JSON.parse((0,o.default)(this.cloneData[ue])));var ae=w==="highlight"?H?JSON.parse((0,o.default)(this.getBaseDataByRowKey(H))):JSON.parse((0,o.default)(this.cloneData[F])):null;this.$emit("on-current-change",ae,ie)},handleResetChildrenRow:function(w){var F=null;if(w.children&&w.children.length)for(var H=0;H-1&&(ue=ue.concat(ee)),ee.children&&ee.children.length&&H.length&&(ue=ue.concat(this.getSelectionChildren(ee,ue,H)))}.bind(this)),ue=[].concat((0,n.default)(new e.default(ue))),JSON.parse((0,o.default)(ue))},getSelectionChildrenRowKeys:function(w,F){var H=this;return w.children&&w.children.length&&w.children.forEach(function(te){(0,u.default)(this,H),te._isChecked&&F.push(te._rowKey),te.children&&te.children.length&&(F=F.concat(this.getSelectionChildrenRowKeys(te,F)))}.bind(this)),F},getSelectionChildren:function(w,F,H){var te=this;return w.children&&w.children.length&&w.children.forEach(function(ie){(0,u.default)(this,te),H.indexOf(ie[this.rowKey])>-1&&(F=F.concat(ie)),ie.children&&ie.children.length&&(F=F.concat(this.getSelectionChildren(ie,F,H)))}.bind(this)),F},toggleSelect:function(w,F){var H={};if(F)H=this.getDataByRowKey(F);else for(var te in this.objData)if(parseInt(te)===w){H=this.objData[te];break}var ie=!H._isChecked;H._isChecked=ie;var ue=this.getSelection(),ee=F?this.getBaseDataByRowKey(F,this.data):this.data[w];this.$emit(ie?"on-select":"on-select-cancel",ue,JSON.parse((0,o.default)(ee))),this.$emit("on-selection-change",ue)},toggleExpand:function(w){var F=this,H={};for(var te in this.objData)if(parseInt(te)===w){H=this.objData[te];break}var ie=!H._isExpanded;this.objData[w]._isExpanded=ie,this.$emit("on-expand",JSON.parse((0,o.default)(this.cloneData[w])),ie),(this.height||this.maxHeight)&&this.$nextTick(function(){return(0,u.default)(this,F),this.fixedBody()}.bind(this))},toggleTree:function(w){var F=this,H=this.getDataByRowKey(w);if(!("_loading"in H&&H._loading)){if("_loading"in H&&!H._loading&&H.children.length===0){var te=this.getBaseDataByRowKey(w,this.data);this.$set(te,"_loading",!0),this.loadData(te,function(ie){(0,u.default)(this,F),this.$set(te,"_loading",!1),ie.length&&(this.$set(te,"children",ie),this.$nextTick(function(){(0,u.default)(this,F);var ue=this.getDataByRowKey(w);ue._isShowChildren=!ue._isShowChildren,this.updateDataStatus(w,"_showChildren",ue._isShowChildren)}.bind(this)))}.bind(this));return}H._isShowChildren=!H._isShowChildren,this.updateShowChildren&&this.updateDataStatus(w,"_showChildren",H._isShowChildren),this.$emit("on-expand-tree",w,H._isShowChildren)}},updateDataStatus:function(w,F,H){var te=this.getBaseDataByRowKey(w,this.data);this.$set(te,F,H)},getDataByRowKey:function(w){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.objData,H=null;for(var te in F){var ie=F[te];if(ie._rowKey===w){H=ie;break}else if(ie.children&&ie.children.length&&(H=this.getChildrenByRowKey(w,ie),H))break}return H},getChildrenByRowKey:function(w,F){var H=null;if(F.children&&F.children.length)for(var te=0;te1&&arguments[1]!==void 0?arguments[1]:this.cloneData,H=null,te=0;te0&&te.scrollHeight-te.clientHeight>ie&&w.preventDefault();var ue=0,ee=setInterval(function(){(0,u.default)(this,F),ue+=5,H>0?te.scrollTop+=2:te.scrollTop-=2,ue>=Math.abs(H)&&clearInterval(ee)}.bind(this),5)}},handleMouseWheel:function(w){var F=w.deltaX,H=this.$refs.body;F>0?H.scrollLeft=H.scrollLeft+10:H.scrollLeft=H.scrollLeft-10},sortData:function(w,F,H){var te=this,ie=this.cloneColumns[H].key;w.sort(function(ee,he){if((0,u.default)(this,te),this.cloneColumns[H].sortMethod)return this.cloneColumns[H].sortMethod(ee[ie],he[ie],F);if(F==="asc")return ee[ie]>he[ie]?1:-1;if(F==="desc")return ee[ie]1;return O?this.fixed?this.fixedColumnRows:this.columnRows:[this.columns]},isSelectDisabled:function(){var O=!0;if(this.data.length)for(var A in this.objData){var T=this.objData[A];T._isDisabled?T.children&&T.children.length&&(O=this.isChildrenDisabled(T,O)):O=!1}return O}},methods:{cellClasses:function(O){var A;return[String(this.prefixCls)+"-cell",(A={},(0,e.default)(A,String(this.prefixCls)+"-hidden",!this.fixed&&O.fixed&&(O.fixed==="left"||O.fixed==="right")),(0,e.default)(A,String(this.prefixCls)+"-cell-with-selection",O.type==="selection"),A)]},scrollBarCellClass:function(){var O=!1;for(var A in this.headRows)for(var T in this.headRows[A]){if(this.headRows[A][T].fixed==="right"){O=!0;break}if(O)break}return[(0,e.default)({},String(this.prefixCls)+"-hidden",O)]},itemClasses:function(O,A){return[String(this.prefixCls)+"-filter-select-item",(0,e.default)({},String(this.prefixCls)+"-filter-select-item-selected",O._filterChecked[0]===A.value)]},itemAllClasses:function(O){return[String(this.prefixCls)+"-filter-select-item",(0,e.default)({},String(this.prefixCls)+"-filter-select-item-selected",!O._filterChecked.length)]},selectAll:function(){var O=!this.isSelectAll;this.$parent.selectAll(O)},handleSort:function(O,A){var T=this,B=this.columns.find(function(q){return(0,a.default)(this,T),q._index===O}.bind(this)),j=B._index;B._sortType===A&&(A="normal"),this.$parent.handleSort(j,A)},handleSortByHead:function(O){var A=this,T=this.columns.find(function(j){return(0,a.default)(this,A),j._index===O}.bind(this));if(T.sortable){var B=T._sortType;B==="normal"?this.handleSort(O,"asc"):B==="asc"?this.handleSort(O,"desc"):this.handleSort(O,"normal")}},handleFilter:function(O){this.$parent.handleFilter(O)},handleSelect:function(O,A){this.$parent.handleFilterSelect(O,A)},handleReset:function(O){this.$parent.handleFilterReset(O)},handleFilterHide:function(O){this.$parent.handleFilterHide(O)},getColumn:function(O,A){var T=this,B=this.columnRows.length>1;if(B){var j=this.headRows[O][A].__id;return this.columns.filter(function(q){return(0,a.default)(this,T),q.__id===j}.bind(this))[0]}else return this.headRows[O][A]},handleMouseDown:function(O,A){var T=this;if(!this.$isServer&&this.draggingColumn){this.dragging=!0;var B=this.$parent,j=B.$el,q=j.getBoundingClientRect().left,U=this.$el.querySelector("th.ivu-table-column-"+String(O.__id)),R=U.getBoundingClientRect(),V=R.left-q+30;B.showResizeLine=!0,this.dragState={startMouseLeft:A.clientX,startLeft:R.right-q,startColumnLeft:R.left-q,tableLeft:q};var E=B.$refs.resizeLine;E.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var k=function(z){(0,a.default)(this,T);var Z=z.clientX-this.dragState.startMouseLeft,re=this.dragState.startLeft+Z;E.style.left=Math.max(V,re)+"px"}.bind(this),G=function(){if((0,a.default)(this,T),this.dragging){var z=this.dragState,Z=z.startColumnLeft,re=z.startLeft,J=parseInt(E.style.left,10),N=J-Z,Y=B.columns.find(function(w){return(0,a.default)(this,T),w.__id===O.__id}.bind(this));Y&&(Y.width=N),B.$emit("on-column-width-resize",Y.width,re-Z,O,A),document.body.style.cursor="",this.dragging=!1,this.draggingColumn=null,this.dragState={},B.showResizeLine=!1}document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",G),document.onselectstart=null,document.ondragstart=null}.bind(this);document.addEventListener("mousemove",k),document.addEventListener("mouseup",G)}},handleMouseMove:function(O,A){for(var T=A.target;T&&T.tagName!=="TH";)T=T.parentNode;if(!(!O||!O.resizable)&&!this.dragging){var B=T.getBoundingClientRect(),j=document.body.style;B.width>12&&B.right-A.pageX<8?(j.cursor="col-resize",this.draggingColumn=O):this.dragging||(j.cursor="",this.draggingColumn=null)}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},isChildrenSelected:function(O,A){var T=this,B=A;return O.children&&O.children.length&&O.children.forEach(function(j){(0,a.default)(this,T),!j._isChecked&&!j._isDisabled?B=!1:j.children&&j.children.length&&(B=this.isChildrenSelected(j,B))}.bind(this)),B},isChildrenAllDisabledAndUnSelected:function(O,A){var T=this,B=A;return O.children&&O.children.length&&O.children.forEach(function(j){(0,a.default)(this,T),j._isDisabled&&!j._isChecked?j.children&&j.children.length&&(B=this.isChildrenAllDisabledAndUnSelected(j,B)):B=!1}.bind(this)),B},isChildrenDisabled:function(O,A){var T=this,B=A;return O.children&&O.children.length&&O.children.forEach(function(j){(0,a.default)(this,T),j._isDisabled?j.children&&j.children.length&&(B=this.isChildrenDisabled(j,B)):B=!1}.bind(this)),B}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=h(s),d=t(1),e=h(d),l=t(18),n=h(l),i=t(573),o=h(i),c=t(575),u=h(c),f=t(241),y=h(f),m=t(95),_=h(m);function h(g){return g&&g.__esModule?g:{default:g}}r.default={name:"TableBody",mixins:[_.default],components:{TableCell:u.default,Expand:y.default,TableTr:o.default},props:{prefixCls:String,styleObject:Object,columns:Array,data:Array,objData:Object,columnsWidth:Object,fixed:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1},rowKey:{type:[Boolean,String],default:!1}},computed:{expandRender:function(){for(var b=function(){return""},x=0;xh.offsetWidth,g=null},handleToggleTree:function(){this.$parent.$parent.$parent.toggleTree(this.row._rowKey)}},created:function(){this.column.type==="index"?this.renderType="index":this.column.type==="selection"?this.renderType="selection":this.column.type==="html"?this.renderType="html":this.column.type==="expand"?this.renderType="expand":this.column.render?this.renderType="render":this.column.slot?this.renderType="slot":this.renderType="normal"}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"TableExpand",functional:!0,props:{row:Object,render:Function,index:Number,column:{type:Object,default:null}},render:function(l,n){(0,a.default)(void 0,void 0);var i={row:n.props.row,index:n.props.index};return n.props.column&&(i.column=n.props.column),n.props.render(l,i)}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=l(s),d=t(95),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"TableSummary",mixins:[e.default],props:{prefixCls:String,styleObject:Object,columns:Array,data:Object,columnsWidth:Object,fixed:{type:[Boolean,String],default:!1}},methods:{cellCls:function(i){return[(0,a.default)({},"ivu-table-hidden",this.fixed==="left"&&i.fixed!=="left"||this.fixed==="right"&&i.fixed!=="right"||!this.fixed&&i.fixed&&(i.fixed==="left"||i.fixed==="right"))]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=A(s),d=t(18),e=A(d),l=t(2),n=A(l),i=t(45),o=A(i),c=t(1),u=A(c),f=t(8),y=A(f),m=t(216),_=A(m),h=t(61),g=A(h),b=t(62),x=A(b),C=t(3),p=t(4),S=A(p),P=t(94),O=A(P);function A(U){return U&&U.__esModule?U:{default:U}}var T="ivu-tabs",B=300,j=function(U,R,V,E){(0,u.default)(void 0,void 0);var k=U.findIndex(function(Z){return(0,u.default)(void 0,void 0),Z.name===R}.bind(void 0)),G=(k+V+U.length)%U.length,z=U[G];return z.disabled?j(U,z.name,V,E):z}.bind(void 0),q=function(U,R){(0,u.default)(void 0,void 0);try{U.focus()}catch{}if(document.activeElement==U&&U!==R)return!0;var V=U.children,E=!0,k=!1,G=void 0;try{for(var z=(0,o.default)(V),Z;!(E=(Z=z.next()).done);E=!0){var re=Z.value;if(q(re,R))return!0}}catch(J){k=!0,G=J}finally{try{!E&&z.return&&z.return()}finally{if(k)throw G}}return!1}.bind(void 0);r.default={name:"Tabs",mixins:[S.default],components:{Icon:y.default,Render:_.default,Dropdown:g.default,DropdownMenu:x.default},provide:function(){return{TabsInstance:this}},props:{value:{type:[String,Number]},type:{validator:function(R){return(0,C.oneOf)(R,["line","card"])},default:"line"},size:{validator:function(R){return(0,C.oneOf)(R,["small","default"])},default:"default"},animated:{type:Boolean,default:!0},captureFocus:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},beforeRemove:Function,name:{type:String},draggable:{type:Boolean,default:!1},contextMenuClassName:{type:String,default:""}},data:function(){return{prefixCls:T,navList:[],barWidth:0,barOffset:0,activeKey:this.value,focusedKey:this.value,showSlot:!1,transformX:"",scrollable:!1,transitioning:!1,contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},isSliding:!1,lastPosition:0}},computed:{navStyle:function(){return{transform:this.transformX,transition:"transform .2s cubic-bezier(.34,.69,.1,1)"}},classes:function(){var R;return[""+T,(R={},(0,n.default)(R,T+"-card",this.type==="card"),(0,n.default)(R,T+"-mini",this.size==="small"&&this.type==="line"),(0,n.default)(R,T+"-no-animation",!this.animated),R)]},contentClasses:function(){return[T+"-content",(0,n.default)({},T+"-content-animated",this.animated)]},barClasses:function(){return[T+"-ink-bar",(0,n.default)({},T+"-ink-bar-animated",this.animated)]},contentStyle:function(){var R=this.getTabIndex(this.activeKey),V=R===0?"0%":"-"+String(R)+"00%",E={};return R>-1&&(E={transform:"translateX("+V+") translateZ(0px)"}),E},barStyle:function(){var R={visibility:"hidden",width:String(this.barWidth)+"px"};return this.type==="line"&&(R.visibility="visible"),this.animated?R.transform="translate3d("+String(this.barOffset)+"px, 0px, 0px)":R.left=String(this.barOffset)+"px",R},arrowType:function(){var R="ios-close";return this.$IVIEW&&(this.$IVIEW.tabs.customCloseIcon?R="":this.$IVIEW.tabs.closeIcon&&(R=this.$IVIEW.tabs.closeIcon)),R},customArrowType:function(){var R="";return this.$IVIEW&&this.$IVIEW.tabs.customCloseIcon&&(R=this.$IVIEW.tabs.customCloseIcon),R},arrowSize:function(){var R="";return this.$IVIEW&&this.$IVIEW.tabs.closeIconSize&&(R=this.$IVIEW.tabs.closeIconSize),R}},methods:{getTabs:function(){var R=this,V=(0,C.findComponentsDownward)(this,"TabPane"),E=[];return V.forEach(function(k){(0,u.default)(this,R),k.tab&&this.name?k.tab===this.name&&E.push(k):E.push(k)}.bind(this)),E.sort(function(k,G){if((0,u.default)(this,R),k.index&&G.index)return k.index>G.index?1:-1}.bind(this)),E},updateNav:function(){var R=this;this.navList=[],this.getTabs().forEach(function(V,E){(0,u.default)(this,R),this.navList.push({labelType:(0,e.default)(V.label),label:V.label,icon:V.icon||"",name:V.currentName||E,disabled:V.disabled,closable:V.closable,contextMenu:V.contextMenu}),V.currentName||(V.currentName=E),E===0&&(this.activeKey||(this.activeKey=V.currentName||E))}.bind(this)),this.updateStatus(),this.updateBar()},updateBar:function(){var R=this;this.$nextTick(function(){(0,u.default)(this,R);var V=this.getTabIndex(this.activeKey);if(!!this.$refs.nav){var E=this.$refs.nav.querySelectorAll("."+T+"-tab"),k=E[V];if(this.barWidth=k?parseFloat(k.offsetWidth):0,V>0){for(var G=0,z=this.size==="small"?0:16,Z=0;Z0&&arguments[0]!==void 0?arguments[0]:!1;if(!R){var V=this.focusedKey||0,E=this.getTabIndex(V);this.handleChange(E)}},handleRemove:function(R){var V=this;if(!this.beforeRemove)return this.handleRemoveTab(R);var E=this.beforeRemove(R);E&&E.then?E.then(function(){(0,u.default)(this,V),this.handleRemoveTab(R)}.bind(this)):this.handleRemoveTab(R)},handleRemoveTab:function(R){var V=this,E=this.getTabs(),k=E[R];if(k.$destroy(),k.currentName===this.activeKey){var G=this.getTabs(),z=-1;if(G.length){var Z=E.filter(function(J,N){return(0,u.default)(this,V),!J.disabled&&NR}.bind(this));re.length?z=re[0].currentName:Z.length?z=Z[Z.length-1].currentName:z=G[0].currentName}this.activeKey=z,this.$emit("input",z)}this.$emit("on-tab-remove",k.currentName),this.updateNav()},showClose:function(R){return this.type==="card"?R.closable!==null?R.closable:this.closable:!1},onTouchstart:function(R){!this.scrollable||R instanceof TouchEvent&&(this.isSliding=!0,this.lastPosition=R.touches[0].clientX,document.documentElement.addEventListener("touchmove",this.onTouchmove,{passive:!1}),window.addEventListener("touchend",this.onTouchend,{passive:!1}))},onTouchmove:function(R){if(!!this.isSliding){R.cancelable&&R.preventDefault();var V=R.touches[0].clientX,E=V-this.lastPosition;if(E!==0){var k=this.$refs.nav.offsetWidth,G=this.$refs.navScroll.offsetWidth,z=this.getCurrentScrollOffset();if(E>0){if(!z)return}else if(k-z<=G)return;this.setOffset(Math.max(z-E,0)),this.lastPosition=V}}},onTouchend:function(){!this.isSliding||(this.isSliding=!1,document.documentElement.removeEventListener("touchmove",this.onTouchmove,!1),window.removeEventListener("touchend",this.onTouchend,!1))},scrollPrev:function(){var R=this.$refs.navScroll.offsetWidth,V=this.getCurrentScrollOffset();if(!!V){var E=V>R?V-R:0;this.setOffset(E)}},scrollNext:function(){var R=this.$refs.nav.offsetWidth,V=this.$refs.navScroll.offsetWidth,E=this.getCurrentScrollOffset();if(!(R-E<=V)){var k=R-E>V*2?E+V:R-V;this.setOffset(k)}},getCurrentScrollOffset:function(){var R=this.transformX;return R?Number(R.match(/translateX\(-(\d+(\.\d+)*)px\)/)[1]):0},getTabIndex:function(R){var V=this;return this.navList.findIndex(function(E){return(0,u.default)(this,V),E.name===R}.bind(this))},setOffset:function(R){this.transformX="translateX(-"+String(R)+"px)"},scrollToActiveTab:function(){if(!!this.scrollable){var R=this.$refs.nav,V=this.$el.querySelector("."+T+"-tab-active");if(!!V){var E=this.$refs.navScroll,k=V.getBoundingClientRect(),G=E.getBoundingClientRect(),z=R.getBoundingClientRect(),Z=this.getCurrentScrollOffset(),re=Z;z.rightG.right&&(re=Z+k.right-G.right),Z!==re&&this.setOffset(Math.max(re,0))}}},updateNavScroll:function(){var R=this.$refs.nav.offsetWidth,V=this.$refs.navScroll.offsetWidth,E=this.getCurrentScrollOffset();V0&&this.setOffset(0))},handleScroll:function(R){R.preventDefault(),R.stopPropagation();var V=R.type,E=0;(V==="DOMMouseScroll"||V==="mousewheel")&&(E=R.wheelDelta?R.wheelDelta:-(R.detail||0)*40),E>0?this.scrollPrev():this.scrollNext()},handleResize:function(){this.updateNavScroll()},isInsideHiddenElement:function(){for(var R=this.$el.parentNode;R&&R!==document.body;){if(R.style&&R.style.display==="none")return R;R=R.parentNode}return!1},updateVisibility:function(R){var V=this;[].concat((0,a.default)(this.$refs.panes.querySelectorAll("."+T+"-tabpane"))).forEach(function(E,k){(0,u.default)(this,V),R===k?([].concat((0,a.default)(E.children)).filter(function(G){return(0,u.default)(this,V),G.classList.contains(T+"-tabpane")}.bind(this)).forEach(function(G){return(0,u.default)(this,V),G.style.visibility="visible"}.bind(this)),this.captureFocus&&setTimeout(function(){return(0,u.default)(this,V),q(E,E)}.bind(this),B)):setTimeout(function(){(0,u.default)(this,V),[].concat((0,a.default)(E.children)).filter(function(G){return(0,u.default)(this,V),G.classList.contains(T+"-tabpane")}.bind(this)).forEach(function(G){return(0,u.default)(this,V),G.style.visibility="hidden"}.bind(this))}.bind(this),B)}.bind(this))},handleDrag:function(R,V){var E=this.navList[R];E&&V.dataTransfer.setData("tab-name",E.name)},handleDrop:function(R,V){var E=this,k=this.navList[R];if(k){var G=V.dataTransfer.getData("tab-name");V.preventDefault();var z=this.navList.map(function(J){return(0,u.default)(this,E),J.name}.bind(this)),Z=parseInt(z.findIndex(function(J){return(0,u.default)(this,E),J===G}.bind(this))),re=parseInt(z.findIndex(function(J){return(0,u.default)(this,E),J===k.name}.bind(this)));z.splice.apply(z,[re,1].concat((0,a.default)(z.splice(Z,1,z[re])))),this.$emit("on-drag-drop",G,k.name,Z,re,z)}}},watch:{value:function(R){this.activeKey=R,this.focusedKey=R},activeKey:function(R){var V=this;this.focusedKey=R,this.updateBar(),this.updateStatus(),this.broadcast("Table","on-visible-change",!0),this.$nextTick(function(){(0,u.default)(this,V),this.scrollToActiveTab()}.bind(this));var E=Math.max(this.getTabIndex(this.focusedKey),0);this.updateVisibility(E)}},mounted:function(){var R=this;this.showSlot=this.$slots.extra!==void 0,this.observer=(0,O.default)(),this.observer.listenTo(this.$refs.navWrap,this.handleResize);var V=this.isInsideHiddenElement();V&&(this.mutationObserver=new C.MutationObserver(function(){(0,u.default)(this,R),V.style.display!=="none"&&(this.updateBar(),this.mutationObserver.disconnect())}.bind(this)),this.mutationObserver.observe(V,{attributes:!0,childList:!0,characterData:!0,attributeFilter:["style"]})),this.handleTabKeyboardSelect(!0),this.updateVisibility(this.getTabIndex(this.activeKey))},beforeDestroy:function(){this.observer.removeListener(this.$refs.navWrap,this.handleResize),this.mutationObserver&&this.mutationObserver.disconnect()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s="ivu-tabs-tabpane";r.default={name:"TabPane",inject:["TabsInstance"],props:{name:{type:String},label:{type:[String,Function],default:""},icon:{type:String},disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:null},tab:{type:String},index:{type:Number},contextMenu:{type:Boolean,default:!1}},data:function(){return{prefixCls:s,show:!0,currentName:this.name}},computed:{contentStyle:function(){return{visibility:this.TabsInstance.activeKey!==this.currentName?"hidden":"visible"}}},methods:{updateNav:function(){this.TabsInstance.updateNav()}},watch:{name:function(d){this.currentName=d,this.updateNav()},label:function(){this.updateNav()},icon:function(){this.updateNav()},disabled:function(){this.updateNav()}},mounted:function(){this.updateNav()},destroyed:function(){this.updateNav()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=n(s),d=t(20),e=n(d),l=t(3);function n(u){return u&&u.__esModule?u:{default:u}}var i="ivu-tag",o=["default","primary","success","warning","error","blue","green","red","yellow","pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"],c=["pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"];r.default={name:"Tag",components:{Icon:e.default},props:{closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:!0},color:{type:String,default:"default"},type:{validator:function(f){return(0,l.oneOf)(f,["border","dot"])}},name:{type:[String,Number]},fade:{type:Boolean,default:!0},size:{validator:function(f){return(0,l.oneOf)(f,["default","medium","large"])},default:"default"}},data:function(){return{isChecked:this.checked}},computed:{classes:function(){var f;return[""+i,i+"-size-"+String(this.size),(f={},(0,a.default)(f,i+"-"+String(this.color),!!this.color&&(0,l.oneOf)(this.color,o)),(0,a.default)(f,i+"-"+String(this.type),!!this.type),(0,a.default)(f,i+"-closable",this.closable),(0,a.default)(f,i+"-checked",this.isChecked),f)]},wraperStyles:function(){return(0,l.oneOf)(this.color,o)?{}:{background:this.isChecked?this.defaultTypeColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:this.type!=="dot"&&this.type!=="border"&&this.isChecked?this.borderColor:this.lineColor,color:this.lineColor}},textClasses:function(){return[i+"-text",this.type==="border"&&(0,l.oneOf)(this.color,o)?i+"-color-"+String(this.color):"",this.type!=="dot"&&this.type!=="border"&&this.color!=="default"&&this.isChecked&&c.indexOf(this.color)<0?i+"-color-white":""]},dotClasses:function(){return i+"-dot-inner"},iconClass:function(){return this.type==="dot"?"":this.type==="border"?(0,l.oneOf)(this.color,o)?i+"-color-"+String(this.color):"":this.color!==void 0?this.color==="default"?"":"rgb(255, 255, 255)":""},showDot:function(){return!!this.type&&this.type==="dot"},lineColor:function(){return this.type==="dot"?"":this.type==="border"?this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:"":this.color!==void 0?this.color==="default"?"":"rgb(255, 255, 255)":""},borderColor:function(){return this.color!==void 0?this.color==="default"?"":this.color:""},dotColor:function(){return this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:""},textColorStyle:function(){return(0,l.oneOf)(this.color,o)?{}:this.type!=="dot"&&this.type!=="border"?this.isChecked?{color:this.lineColor}:{}:{color:this.lineColor}},bgColorStyle:function(){return(0,l.oneOf)(this.color,o)?{}:{background:this.dotColor}},defaultTypeColor:function(){return this.type!=="dot"&&this.type!=="border"&&this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:""}},methods:{close:function(f){this.name===void 0?this.$emit("on-close",f):this.$emit("on-close",f,this.name)},check:function(f){if(!this.checkable){this.$emit("on-click",f);return}var y=!this.isChecked;this.isChecked=y,this.name===void 0?this.$emit("on-change",y):this.$emit("on-change",y,this.name)}},watch:{checked:function(f){this.isChecked=f}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=_(s),d=t(18),e=_(d),l=t(2),n=_(l),i=t(17),o=_(i),c=t(3),u=t(6),f=_(u),y=t(594),m=_(y);function _(b){return b&&b.__esModule?b:{default:b}}var h=o.default.prototype.$isServer,g="ivu-time";r.default={name:"Time",mixins:[f.default],props:{time:{type:[Number,Date,String],required:!0},type:{type:String,validator:function(x){return(0,c.oneOf)(x,["relative","date","datetime"])},default:"relative"},hash:{type:String,default:""},interval:{type:Number,default:60}},data:function(){return{date:""}},computed:{classes:function(){return[""+g,(0,n.default)({},g+"-with-hash",this.hash)]}},watch:{time:function(){h||this.setTime()}},methods:{handleClick:function(){this.hash!==""&&(window.location.hash=this.hash)},setTime:function(){var x=(0,e.default)(this.time),C=void 0;if(x==="number"){var p=this.time.toString().length>10?this.time:this.time*1e3;C=new Date(p).getTime()}else x==="object"?C=this.time.getTime():x==="string"&&(C=new Date(this.time).getTime());if(this.type==="relative")this.date=(0,m.default)(C,this.t);else{var S=new Date(this.time),P=S.getFullYear(),O=S.getMonth()+1<10?"0"+(S.getMonth()+1):S.getMonth()+1,A=S.getDate()<10?"0"+S.getDate():S.getDate(),T=S.getHours()<10?"0"+S.getHours():S.getHours(),B=S.getMinutes()<10?"0"+S.getMinutes():S.getMinutes(),j=S.getSeconds()<10?"0"+S.getSeconds():S.getSeconds();this.type==="datetime"?this.date=String(P)+"-"+String(O)+"-"+String(A)+" "+String(T)+":"+String(B)+":"+String(j):this.type==="date"&&(this.date=String(P)+"-"+String(O)+"-"+String(A))}}},mounted:function(){var x=this;this.setTime(),!h&&(this.timer=setInterval(function(){(0,a.default)(this,x),this.setTime()}.bind(this),1e3*this.interval))},beforeDestroy:function(){this.timer&&clearInterval(this.timer)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-timeline";r.default={name:"Timeline",props:{pending:{type:Boolean,default:!1}},computed:{classes:function(){return[""+e,(0,a.default)({},e+"-pending",this.pending)]}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-timeline";r.default={name:"TimelineItem",props:{color:{type:String,default:"blue"}},data:function(){return{dot:!1}},mounted:function(){this.dot=!!this.$refs.dot.innerHTML.length},computed:{itemClasses:function(){return e+"-item"},tailClasses:function(){return e+"-item-tail"},headClasses:function(){var n;return[e+"-item-head",(n={},(0,a.default)(n,e+"-item-head-custom",this.dot),(0,a.default)(n,e+"-item-head-"+String(this.color),this.headColorShow),n)]},headColorShow:function(){return this.color=="blue"||this.color=="red"||this.color=="green"},customColor:function(){var n={};return this.color&&(this.headColorShow||(n={color:this.color,"border-color":this.color})),n},contentClasses:function(){return e+"-item-content"}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(15),a=m(s),d=t(1),e=m(d),l=t(606),n=m(l),i=t(610),o=m(i),c=t(6),u=m(c),f=t(4),y=m(f);function m(h){return h&&h.__esModule?h:{default:h}}var _="ivu-transfer";r.default={name:"Transfer",mixins:[y.default,u.default],render:function(g){var b=this;function x(S){var P=this,O=S.children&&S.children.map(function(T){return(0,e.default)(this,P),x(T)}.bind(this)),A=g(S.tag,S.data,O);return A.text=S.text,A.isComment=S.isComment,A.componentOptions=S.componentOptions,A.elm=S.elm,A.context=S.context,A.ns=S.ns,A.isStatic=S.isStatic,A.key=S.key,A}var C=this.$slots.default===void 0?[]:this.$slots.default,p=this.$slots.default===void 0?[]:C.map(function(S){return(0,e.default)(this,b),x(S)}.bind(this));return g("div",{class:this.classes},[g(n.default,{ref:"left",props:{prefixCls:this.prefixCls+"-list",data:this.leftData,renderFormat:this.renderFormat,checkedKeys:this.leftCheckedKeys,validKeysCount:this.leftValidKeysCount,listStyle:this.listStyle,title:this.localeTitles[0],filterable:this.filterable,filterPlaceholder:this.localeFilterPlaceholder,filterMethod:this.filterMethod,notFoundText:this.localeNotFoundText},on:{"on-checked-keys-change":this.handleLeftCheckedKeysChange}},C),g(o.default,{props:{prefixCls:this.prefixCls,operations:this.operations,leftActive:this.leftValidKeysCount>0,rightActive:this.rightValidKeysCount>0,reverseOperation:this.reverseOperation}}),g(n.default,{ref:"right",props:{prefixCls:this.prefixCls+"-list",data:this.rightData,renderFormat:this.renderFormat,checkedKeys:this.rightCheckedKeys,validKeysCount:this.rightValidKeysCount,listStyle:this.listStyle,title:this.localeTitles[1],filterable:this.filterable,filterPlaceholder:this.localeFilterPlaceholder,filterMethod:this.filterMethod,notFoundText:this.localeNotFoundText},on:{"on-checked-keys-change":this.handleRightCheckedKeysChange}},p)])},props:{data:{type:Array,default:function(){return[]}},renderFormat:{type:Function,default:function(g){return g.label||g.key}},targetKeys:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}},listStyle:{type:Object,default:function(){return{}}},titles:{type:Array},operations:{type:Array,default:function(){return[]}},filterable:{type:Boolean,default:!1},filterPlaceholder:{type:String},filterMethod:{type:Function,default:function(g,b){var x="label"in g?"label":"key";return g[x].indexOf(b)>-1}},notFoundText:{type:String},reverseOperation:{type:Boolean,default:!1}},data:function(){return{prefixCls:_,leftData:[],rightData:[],leftCheckedKeys:[],rightCheckedKeys:[]}},computed:{classes:function(){return[""+_]},leftValidKeysCount:function(){return this.getValidKeys("left").length},rightValidKeysCount:function(){return this.getValidKeys("right").length},localeFilterPlaceholder:function(){return this.filterPlaceholder===void 0?this.t("i.transfer.filterPlaceholder"):this.filterPlaceholder},localeNotFoundText:function(){return this.notFoundText===void 0?this.t("i.transfer.notFoundText"):this.notFoundText},localeTitles:function(){return this.titles===void 0?[this.t("i.transfer.titles.source"),this.t("i.transfer.titles.target")]:this.titles}},methods:{getValidKeys:function(g){var b=this;return this[String(g)+"Data"].filter(function(x){return(0,e.default)(this,b),!x.disabled&&this[String(g)+"CheckedKeys"].indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,b),x.key}.bind(this))},splitData:function(){var g=this,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.leftData=[].concat((0,a.default)(this.data)),this.rightData=[],this.targetKeys.length>0&&this.targetKeys.forEach(function(x){(0,e.default)(this,g);var C=this.leftData.filter(function(p,S){return(0,e.default)(this,g),p.key===x?(this.leftData.splice(S,1),!0):!1}.bind(this));C&&C.length>0&&this.rightData.push(C[0])}.bind(this)),b&&this.splitSelectedKey()},splitSelectedKey:function(){var g=this,b=this.selectedKeys;b.length>0&&(this.leftCheckedKeys=this.leftData.filter(function(x){return(0,e.default)(this,g),b.indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,g),x.key}.bind(this)),this.rightCheckedKeys=this.rightData.filter(function(x){return(0,e.default)(this,g),b.indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,g),x.key}.bind(this)))},moveTo:function(g){var b=this,x=this.targetKeys,C=g==="left"?"right":"left",p=this.getValidKeys(C),S=g==="right"?p.concat(x):x.filter(function(P){return(0,e.default)(this,b),!p.some(function(O){return(0,e.default)(this,b),P===O}.bind(this))}.bind(this));this.$refs[C].toggleSelectAll(!1),this.$emit("on-change",S,g,p),this.dispatch("FormItem","on-form-change",{tarketKeys:S,direction:g,moveKeys:p})},handleLeftCheckedKeysChange:function(g){this.leftCheckedKeys=g},handleRightCheckedKeysChange:function(g){this.rightCheckedKeys=g},handleCheckedKeys:function(){var g=this.getValidKeys("left"),b=this.getValidKeys("right");this.$emit("on-selected-change",g,b)}},watch:{targetKeys:function(){this.splitData(!1)},data:function(){this.splitData(!1)}},mounted:function(){this.splitData(!0)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=c(s),d=t(2),e=c(d),l=t(607),n=c(l),i=t(49),o=c(i);function c(u){return u&&u.__esModule?u:{default:u}}r.default={name:"TransferList",components:{Search:n.default,Checkbox:o.default},props:{prefixCls:String,data:Array,renderFormat:Function,checkedKeys:Array,listStyle:Object,title:[String,Number],filterable:Boolean,filterPlaceholder:String,filterMethod:Function,notFoundText:String,validKeysCount:Number},data:function(){return{showItems:[],query:"",showFooter:!0}},watch:{data:function(){this.updateFilteredData()}},computed:{classes:function(){return[""+String(this.prefixCls),(0,e.default)({},String(this.prefixCls)+"-with-footer",this.showFooter)]},bodyClasses:function(){var f;return[String(this.prefixCls)+"-body",(f={},(0,e.default)(f,String(this.prefixCls)+"-body-with-search",this.filterable),(0,e.default)(f,String(this.prefixCls)+"-body-with-footer",this.showFooter),f)]},count:function(){var f=this.validKeysCount;return(f>0?String(f)+"/":"")+(""+String(this.data.length))},checkedAll:function(){var f=this;return this.filterData.filter(function(y){return(0,a.default)(this,f),!y.disabled}.bind(this)).length===this.validKeysCount&&this.validKeysCount!==0},checkedAllDisabled:function(){var f=this;return this.filterData.filter(function(y){return(0,a.default)(this,f),!y.disabled}.bind(this)).length<=0},filterData:function(){var f=this;return this.showItems.filter(function(y){return(0,a.default)(this,f),this.filterMethod(y,this.query)}.bind(this))}},methods:{itemClasses:function(f){return[String(this.prefixCls)+"-content-item",(0,e.default)({},String(this.prefixCls)+"-content-item-disabled",f.disabled)]},showLabel:function(f){return this.renderFormat(f)},isCheck:function(f){var y=this;return this.checkedKeys.some(function(m){return(0,a.default)(this,y),m===f.key}.bind(this))},select:function(f){if(!f.disabled){var y=this.checkedKeys.indexOf(f.key);y>-1?this.checkedKeys.splice(y,1):this.checkedKeys.push(f.key),this.$parent.handleCheckedKeys()}},updateFilteredData:function(){this.showItems=this.data},toggleSelectAll:function(f){var y=this,m=f?this.filterData.filter(function(_){return(0,a.default)(this,y),!_.disabled||this.checkedKeys.indexOf(_.key)>-1}.bind(this)).map(function(_){return(0,a.default)(this,y),_.key}.bind(this)):this.filterData.filter(function(_){return(0,a.default)(this,y),_.disabled&&this.checkedKeys.indexOf(_.key)>-1}.bind(this)).map(function(_){return(0,a.default)(this,y),_.key}.bind(this));this.$emit("on-checked-keys-change",m)},handleQueryClear:function(){this.query=""},handleQueryChange:function(f){this.query=f}},created:function(){this.updateFilteredData()},mounted:function(){this.showFooter=this.$slots.default!==void 0}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(38),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"Search",components:{iInput:a.default},props:{prefixCls:String,placeholder:String,query:String},data:function(){return{currentQuery:this.query}},watch:{query:function(l){this.currentQuery=l},currentQuery:function(l){this.$emit("on-query-change",l)}},computed:{icon:function(){return this.query===""?"ios-search":"ios-close-circle"}},methods:{handleClick:function(){this.currentQuery!==""&&(this.currentQuery="",this.$emit("on-query-clear"))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(28),a=l(s),d=t(8),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}r.default={name:"Operation",components:{iButton:a.default,Icon:e.default},props:{prefixCls:String,operations:Array,leftActive:Boolean,rightActive:Boolean,reverseOperation:Boolean},methods:{moveToLeft:function(){this.$parent.moveTo("left")},moveToRight:function(){this.$parent.moveTo("right")}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=m(s),d=t(614),e=m(d),l=t(61),n=m(l),i=t(62),o=m(i),c=t(4),u=m(c),f=t(6),y=m(f);function m(h){return h&&h.__esModule?h:{default:h}}var _="ivu-tree";r.default={name:"Tree",mixins:[u.default,y.default],components:{TreeNode:e.default,Dropdown:n.default,DropdownMenu:o.default},provide:function(){return{TreeInstance:this}},props:{data:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},checkDirectly:{type:Boolean,default:!1},emptyText:{type:String},childrenKey:{type:String,default:"children"},loadData:{type:Function},render:{type:Function},selectNode:{type:Boolean,default:!0},expandNode:{type:Boolean,default:!1}},data:function(){return{prefixCls:_,stateTree:this.data,flatState:[],contextMenuVisible:!1,contextMenuStyles:{top:0,left:0}}},watch:{data:{deep:!0,handler:function(){this.stateTree=this.data,this.flatState=this.compileFlatState(),this.rebuildTree()}}},computed:{localeEmptyText:function(){return typeof this.emptyText=="undefined"?this.t("i.tree.emptyText"):this.emptyText}},methods:{compileFlatState:function(){var g=this,b=0,x=this.childrenKey,C=[];function p(S,P){var O=this;S.nodeKey=b++,C[S.nodeKey]={node:S,nodeKey:S.nodeKey},typeof P!="undefined"&&(C[S.nodeKey].parent=P.nodeKey,C[P.nodeKey][x].push(S.nodeKey)),S[x]&&(C[S.nodeKey][x]=[],S[x].forEach(function(A){return(0,a.default)(this,O),p(A,S)}.bind(this)))}return this.stateTree.forEach(function(S){(0,a.default)(this,g),p(S)}.bind(this)),C},updateTreeUp:function(g){var b=this,x=this.flatState[g].parent;if(!(typeof x=="undefined"||this.checkStrictly)){var C=this.flatState[g].node,p=this.flatState[x].node;C.checked==p.checked&&C.indeterminate==p.indeterminate||(C.checked==!0?(this.$set(p,"checked",p[this.childrenKey].every(function(S){return(0,a.default)(this,b),S.checked}.bind(this))),this.$set(p,"indeterminate",!p.checked)):(this.$set(p,"checked",!1),this.$set(p,"indeterminate",p[this.childrenKey].some(function(S){return(0,a.default)(this,b),S.checked||S.indeterminate}.bind(this)))),this.updateTreeUp(x))}},rebuildTree:function(){var g=this,b=this.getCheckedNodes();b.forEach(function(x){(0,a.default)(this,g),this.updateTreeDown(x,{checked:!0});var C=this.flatState[x.nodeKey].parent;if(!(!C&&C!==0)){var p=this.flatState[C].node,S=typeof x.checked!="undefined"&&x.checked;S&&p.checked!=x.checked&&this.updateTreeUp(x.nodeKey)}}.bind(this))},getSelectedNodes:function(){var g=this;return this.flatState.filter(function(b){return(0,a.default)(this,g),b.node.selected}.bind(this)).map(function(b){return(0,a.default)(this,g),b.node}.bind(this))},getCheckedNodes:function(){var g=this;return this.flatState.filter(function(b){return(0,a.default)(this,g),b.node.checked}.bind(this)).map(function(b){return(0,a.default)(this,g),b.node}.bind(this))},getCheckedAndIndeterminateNodes:function(){var g=this;return this.flatState.filter(function(b){return(0,a.default)(this,g),b.node.checked||b.node.indeterminate}.bind(this)).map(function(b){return(0,a.default)(this,g),b.node}.bind(this))},updateTreeDown:function(g){var b=this,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.checkStrictly){for(var C in x)this.$set(g,C,x[C]);g[this.childrenKey]&&g[this.childrenKey].forEach(function(p){(0,a.default)(this,b),this.updateTreeDown(p,x)}.bind(this))}},handleSelect:function(g){var b=this;if(!!this.flatState[g]){var x=this.flatState[g].node;if(!this.multiple){var C=this.flatState.findIndex(function(p){return(0,a.default)(this,b),p.node.selected}.bind(this));C>=0&&C!==g&&this.$set(this.flatState[C].node,"selected",!1)}this.$set(x,"selected",!x.selected),this.$emit("on-select-change",this.getSelectedNodes(),x)}},handleCheck:function(g){var b=g.checked,x=g.nodeKey;if(!!this.flatState[x]){var C=this.flatState[x].node;this.$set(C,"checked",b),this.$set(C,"indeterminate",!1),this.updateTreeUp(x),this.updateTreeDown(C,{checked:b,indeterminate:!1}),this.$emit("on-check-change",this.getCheckedNodes(),C)}},handleContextmenu:function(g){var b=this,x=g.data,C=g.event;this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(function(){(0,a.default)(this,b);var p=this.$refs.treeWrap,S=p.getBoundingClientRect(),P={left:C.clientX-S.left+"px",top:C.clientY-S.top+"px"};this.contextMenuStyles=P,this.contextMenuVisible=!0,this.$emit("on-contextmenu",x,C,P)}.bind(this))},handleClickContextMenuOutside:function(){this.contextMenuVisible=!1}},created:function(){this.flatState=this.compileFlatState(),this.rebuildTree()},mounted:function(){var g=this;this.$on("on-check",this.handleCheck),this.$on("on-selected",this.handleSelect),this.$on("toggle-expand",function(b){return(0,a.default)(this,g),this.$emit("on-toggle-expand",b)}.bind(this)),this.$on("contextmenu",this.handleContextmenu)}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=g(s),d=t(2),e=g(d),l=t(49),n=g(l),i=t(8),o=g(i),c=t(615),u=g(c),f=t(83),y=g(f),m=t(4),_=g(m),h=t(3);function g(x){return x&&x.__esModule?x:{default:x}}var b="ivu-tree";r.default={name:"TreeNode",mixins:[_.default],inject:["TreeInstance"],components:{Checkbox:n.default,Icon:o.default,CollapseTransition:y.default,Render:u.default},props:{data:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},childrenKey:{type:String,default:"children"},showCheckbox:{type:Boolean,default:!1},appear:{type:Boolean,default:!1}},data:function(){return{prefixCls:b,appearByClickArrow:!1}},computed:{classes:function(){return[b+"-children"]},selectedCls:function(){return[(0,e.default)({},b+"-node-selected",this.data.selected)]},arrowClasses:function(){var C;return[b+"-arrow",(C={},(0,e.default)(C,b+"-arrow-disabled",this.data.disabled),(0,e.default)(C,b+"-arrow-open",this.data.expand),C)]},titleClasses:function(){return[b+"-title",(0,e.default)({},b+"-title-selected",this.data.selected)]},showArrow:function(){return this.data[this.childrenKey]&&this.data[this.childrenKey].length||"loading"in this.data&&!this.data.loading},showLoading:function(){return"loading"in this.data&&this.data.loading},isParentRender:function(){var C=(0,h.findComponentUpward)(this,"Tree");return C&&C.render},parentRender:function(){var C=(0,h.findComponentUpward)(this,"Tree");return C&&C.render?C.render:null},node:function(){var C=this,p=(0,h.findComponentUpward)(this,"Tree");return p?[p.flatState,p.flatState.find(function(S){return(0,a.default)(this,C),S.nodeKey===this.data.nodeKey}.bind(this))]:[]},children:function(){return this.data[this.childrenKey]},arrowType:function(){var C="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.tree.customArrow?C="":this.$IVIEW.tree.arrow&&(C=this.$IVIEW.tree.arrow)),C},customArrowType:function(){var C="";return this.$IVIEW&&this.$IVIEW.tree.customArrow&&(C=this.$IVIEW.tree.customArrow),C},arrowSize:function(){var C="";return this.$IVIEW&&this.$IVIEW.tree.arrowSize&&(C=this.$IVIEW.tree.arrowSize),C}},methods:{handleExpand:function(){var C=this,p=this.data;if(this.appearByClickArrow=!0,p[this.childrenKey].length===0){var S=(0,h.findComponentUpward)(this,"Tree");if(S&&S.loadData){this.$set(this.data,"loading",!0),S.loadData(p,function(P){(0,a.default)(this,C),this.$set(this.data,"loading",!1),P.length&&(this.$set(this.data,this.childrenKey,P),this.$nextTick(function(){return(0,a.default)(this,C),this.handleExpand()}.bind(this)))}.bind(this));return}}p[this.childrenKey]&&p[this.childrenKey].length&&(this.$set(this.data,"expand",!this.data.expand),this.dispatch("Tree","toggle-expand",this.data))},handleClickNode:function(){this.TreeInstance.expandNode?this.showArrow&&this.handleExpand():this.TreeInstance.selectNode&&this.handleSelect()},handleSelect:function(){this.data.disabled||(this.TreeInstance.showCheckbox&&this.TreeInstance.checkDirectly?this.handleCheck():this.dispatch("Tree","on-selected",this.data.nodeKey))},handleCheck:function(){if(!this.data.disabled){var C={checked:!this.data.checked&&!this.data.indeterminate,nodeKey:this.data.nodeKey};this.dispatch("Tree","on-check",C)}},handleContextmenu:function(C,p){C.contextmenu&&(p.preventDefault(),this.dispatch("Tree","contextmenu",{data:C,event:p}))},handlePreventSelect:function(C,p){C.contextmenu&&p.preventDefault()}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=x(s),d=t(1),e=x(d),l=t(18),n=x(l),i=t(2),o=x(i),c=t(620),u=x(c),f=t(622),y=x(f),m=t(3),_=t(4),h=x(_),g=t(11),b=x(g);function x(p){return p&&p.__esModule?p:{default:p}}var C="ivu-upload";r.default={name:"Upload",mixins:[h.default,b.default],components:{UploadList:u.default},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},data:{type:Object},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showUploadList:{type:Boolean,default:!0},type:{type:String,validator:function(S){return(0,m.oneOf)(S,["select","drag"])},default:"select"},format:{type:Array,default:function(){return[]}},accept:{type:String},maxSize:{type:Number},beforeUpload:Function,onProgress:{type:Function,default:function(){return{}}},onSuccess:{type:Function,default:function(){return{}}},onError:{type:Function,default:function(){return{}}},onRemove:{type:Function,default:function(){return{}}},onPreview:{type:Function,default:function(){return{}}},onExceededSize:{type:Function,default:function(){return{}}},onFormatError:{type:Function,default:function(){return{}}},defaultFileList:{type:Array,default:function(){return[]}},paste:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},webkitdirectory:{type:Boolean,default:!1}},data:function(){return{prefixCls:C,dragOver:!1,fileList:[],ajaxList:[],tempIndex:1}},computed:{classes:function(){var S;return[""+C,(S={},(0,o.default)(S,C+"-select",this.type==="select"),(0,o.default)(S,C+"-drag",this.type==="drag"),(0,o.default)(S,C+"-dragOver",this.type==="drag"&&this.dragOver),S)]}},methods:{isJson:function(S){return(typeof S=="undefined"?"undefined":(0,n.default)(S))=="object"&&Object.prototype.toString.call(S).toLowerCase()==="[object object]"&&typeof S.length=="undefined"},handleClick:function(){this.itemDisabled||this.$refs.input.click()},handleChange:function(S){var P=S.target.files;!P||(this.uploadFiles(P),this.$refs.input.value=null)},onDrop:function(S){this.dragOver=!1,!this.itemDisabled&&this.uploadFiles(S.dataTransfer.files)},handlePaste:function(S){this.itemDisabled||this.paste&&this.uploadFiles(S.clipboardData.files)},uploadFiles:function(S){var P=this,O=Array.prototype.slice.call(S);this.multiple||(O=O.slice(0,1)),O.length!==0&&O.forEach(function(A){(0,e.default)(this,P),this.upload(A)}.bind(this))},upload:function(S){var P=this;if(!this.beforeUpload)return this.post(S);var O=this.beforeUpload(S);O&&O.then?O.then(function(A){(0,e.default)(this,P),Object.prototype.toString.call(A)==="[object File]"?this.post(A):this.post(S)}.bind(this),function(){(0,e.default)(this,P)}.bind(this)):O!==!1&&this.post(S)},cancel:function(S){var P=this,O=0;return this.ajaxList.forEach(function(A){(0,e.default)(this,P),A.uid===S&&(O++,A.request&&A.request.abort())}.bind(this)),O>0&&(this.ajaxList=this.ajaxList.filter(function(A){return(0,e.default)(this,P),A.uid!==S}.bind(this))),O},post:function(S){var P=this;if(this.format.length){var O=S.name.split(".").pop().toLocaleLowerCase(),A=this.format.some(function(j){return(0,e.default)(this,P),j.toLocaleLowerCase()===O}.bind(this));if(!A)return this.onFormatError(S,this.fileList),!1}if(this.maxSize&&S.size>this.maxSize*1024)return this.onExceededSize(S,this.fileList),!1;this.handleStart(S);var T=new FormData;T.append(this.name,S);var B=(0,a.default)({},this.data);this.webkitdirectory&&(this.isJson(B)||(B={}),B.webkitRelativePath=S.webkitRelativePath),this.isJson(S.ajaxExtraData)&&(this.isJson(B)||(B={}),B=(0,a.default)(B,S.ajaxExtraData)),this.ajaxList.push({uid:S.uid,request:(0,y.default)({headers:this.headers,withCredentials:this.withCredentials,file:S,data:B,filename:this.name,action:this.action,onProgress:function(q){(0,e.default)(this,P),this.handleProgress(q,S)}.bind(this),onSuccess:function(q){(0,e.default)(this,P),this.handleSuccess(q,S),this.ajaxList=this.ajaxList.filter(function(U){var R=U.uid;return(0,e.default)(this,P),R!==S.uid}.bind(this))}.bind(this),onError:function(q,U){(0,e.default)(this,P),this.handleError(q,U,S),this.ajaxList=this.ajaxList.filter(function(R){var V=R.uid;return(0,e.default)(this,P),V!==S.uid}.bind(this))}.bind(this)})})},handleStart:function(S){S.uid=Date.now()+this.tempIndex++;var P={status:"uploading",name:S.name,size:S.size,percentage:0,uid:S.uid,showProgress:!0};this.fileList.push(P)},getFile:function(S){var P=this,O=this.fileList,A=void 0;return O.every(function(T){return(0,e.default)(this,P),A=S.uid===T.uid?T:null,!A}.bind(this)),A},handleProgress:function(S,P){var O=this.getFile(P);this.onProgress(S,O,this.fileList),O.percentage=S.percent||0},handleSuccess:function(S,P){var O=this,A=this.getFile(P);A&&(A.status="finished",A.response=S,this.onSuccess(S,A,this.fileList),this.dispatch("FormItem","on-form-change",A),setTimeout(function(){(0,e.default)(this,O),A.showProgress=!1}.bind(this),1e3))},handleError:function(S,P,O){var A=this.getFile(O),T=this.fileList;A.status="fail",T.splice(T.indexOf(A),1),this.onError(S,P,O)},handleRemove:function(S){var P=this.fileList;P.splice(P.indexOf(S),1),this.onRemove(S,P)},handlePreview:function(S){S.status==="finished"&&this.onPreview(S)},clearFiles:function(){this.fileList=[]}},watch:{defaultFileList:{immediate:!0,handler:function(S){var P=this;this.fileList=S.map(function(O){return(0,e.default)(this,P),O.status="finished",O.percentage=100,O.uid=Date.now()+this.tempIndex++,O}.bind(this))}}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(2),a=i(s),d=t(8),e=i(d),l=t(223),n=i(l);function i(c){return c&&c.__esModule?c:{default:c}}var o="ivu-upload";r.default={name:"UploadList",components:{Icon:e.default,iProgress:n.default},props:{files:{type:Array,default:function(){return[]}}},data:function(){return{prefixCls:o}},methods:{fileCls:function(u){return[o+"-list-file",(0,a.default)({},o+"-list-file-finish",u.status==="finished")]},handleClick:function(u){this.$emit("on-file-click",u)},handlePreview:function(u){this.$emit("on-file-preview",u)},handleRemove:function(u){this.$emit("on-file-remove",u)},format:function(u){var f=u.name.split(".").pop().toLocaleLowerCase()||"",y="ios-document-outline";return["gif","jpg","jpeg","png","bmp","webp"].indexOf(f)>-1&&(y="ios-image"),["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"].indexOf(f)>-1&&(y="ios-film"),["mp3","wav","wma","ogg","aac","flac"].indexOf(f)>-1&&(y="ios-musical-notes"),["doc","txt","docx","pages","epub","pdf"].indexOf(f)>-1&&(y="md-document"),["numbers","csv","xls","xlsx"].indexOf(f)>-1&&(y="ios-stats"),["keynote","ppt","pptx"].indexOf(f)>-1&&(y="ios-videocam"),y},parsePercentage:function(u){return parseInt(u,10)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(2),e=n(d),l=t(3);function n(o){return o&&o.__esModule?o:{default:o}}var i="ivu-row";r.default={name:"Row",props:{type:{validator:function(c){return(0,l.oneOf)(c,["flex"])}},align:{validator:function(c){return(0,l.oneOf)(c,["top","middle","bottom"])}},justify:{validator:function(c){return(0,l.oneOf)(c,["start","end","center","space-around","space-between"])}},gutter:{type:Number,default:0},className:String,wrap:{type:Boolean,default:!0}},computed:{classes:function(){var c;return[""+i,(c={},(0,e.default)(c,i+"-"+String(this.type),!!this.type),(0,e.default)(c,i+"-"+String(this.type)+"-"+String(this.align),!!this.align&&this.type),(0,e.default)(c,i+"-"+String(this.type)+"-"+String(this.justify),!!this.justify&&this.type),(0,e.default)(c,i+"-"+String(this.align),!!this.align),(0,e.default)(c,i+"-"+String(this.justify),!!this.justify),(0,e.default)(c,""+String(this.className),!!this.className),(0,e.default)(c,i+"-no-wrap",!this.wrap),c)]},styles:function(){var c={};return this.gutter!==0&&(c={marginLeft:this.gutter/-2+"px",marginRight:this.gutter/-2+"px"}),c}},methods:{updateGutter:function(c){var u=this,f=(0,l.findComponentDownward)(this,"iCol"),y=(0,l.findBrothersComponents)(f,"iCol",!1);y.length&&y.forEach(function(m){(0,a.default)(this,u),c!==0&&(m.gutter=c)}.bind(this))}},watch:{gutter:function(c){this.updateGutter(c)}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=u(s),d=t(18),e=u(d),l=t(1),n=u(l),i=t(2),o=u(i),c=t(3);function u(m){return m&&m.__esModule?m:{default:m}}var f="ivu-col";function y(m){return typeof m=="number"?m+" "+m+" auto":/^\d+(\.\d+)?(px|em|rem|%)$/.test(m)?"0 0 "+String(m):m}r.default={name:"iCol",props:{span:[Number,String],order:[Number,String],offset:[Number,String],push:[Number,String],pull:[Number,String],className:String,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object],xxl:[Number,Object],flex:{type:[Number,String],default:""}},data:function(){return{gutter:0}},computed:{classes:function(){var _,h=this,g=[""+f,(_={},(0,o.default)(_,f+"-span-"+String(this.span),this.span),(0,o.default)(_,f+"-order-"+String(this.order),this.order),(0,o.default)(_,f+"-offset-"+String(this.offset),this.offset),(0,o.default)(_,f+"-push-"+String(this.push),this.push),(0,o.default)(_,f+"-pull-"+String(this.pull),this.pull),(0,o.default)(_,""+String(this.className),!!this.className),_)];return["xs","sm","md","lg","xl","xxl"].forEach(function(b){if((0,n.default)(this,h),typeof this[b]=="number")g.push(f+"-span-"+String(b)+"-"+String(this[b]));else if((0,e.default)(this[b])==="object"){var x=this[b];(0,a.default)(x).forEach(function(C){(0,n.default)(this,h),g.push(C!=="span"?f+"-"+String(b)+"-"+String(C)+"-"+String(x[C]):f+"-span-"+String(b)+"-"+String(x[C]))}.bind(this))}}.bind(this)),g},styles:function(){var _={};return this.gutter!==0&&(_={paddingLeft:this.gutter/2+"px",paddingRight:this.gutter/2+"px"}),this.flex&&(_.flex=y(this.flex)),_}},methods:{updateGutter:function(){var _=(0,c.findComponentUpward)(this,"Row");_&&_.updateGutter(_.gutter)}},mounted:function(){this.updateGutter()},beforeDestroy:function(){this.updateGutter()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e="ivu-select-group";r.default={name:"OptionGroup",props:{label:{type:String,default:""}},data:function(){return{prefixCls:e,hidden:!1}},methods:{queryChange:function(){var n=this;this.$nextTick(function(){(0,a.default)(this,n);for(var i=this.$refs.options.querySelectorAll(".ivu-select-item"),o=!1,c=0;c1&&arguments[1]!==void 0?arguments[1]:{};Ze.installed||(tt.default.use(ve.locale),tt.default.i18n(ve.i18n),(0,e.default)(ft).forEach(function(vt){(0,a.default)(this,At),Xe.component(vt,ft[vt])}.bind(this)),Xe.prototype.$IVIEW={size:ve.size||"",transfer:"transfer"in ve?ve.transfer:"",capture:"capture"in ve?ve.capture:!0,select:{arrow:ve.select&&ve.select.arrow?ve.select.arrow:"",customArrow:ve.select&&ve.select.customArrow?ve.select.customArrow:"",arrowSize:ve.select&&ve.select.arrowSize?ve.select.arrowSize:""},cell:{arrow:ve.cell&&ve.cell.arrow?ve.cell.arrow:"",customArrow:ve.cell&&ve.cell.customArrow?ve.cell.customArrow:"",arrowSize:ve.cell&&ve.cell.arrowSize?ve.cell.arrowSize:""},menu:{arrow:ve.menu&&ve.menu.arrow?ve.menu.arrow:"",customArrow:ve.menu&&ve.menu.customArrow?ve.menu.customArrow:"",arrowSize:ve.menu&&ve.menu.arrowSize?ve.menu.arrowSize:""},tree:{arrow:ve.tree&&ve.tree.arrow?ve.tree.arrow:"",customArrow:ve.tree&&ve.tree.customArrow?ve.tree.customArrow:"",arrowSize:ve.tree&&ve.tree.arrowSize?ve.tree.arrowSize:""},cascader:{arrow:ve.cascader&&ve.cascader.arrow?ve.cascader.arrow:"",customArrow:ve.cascader&&ve.cascader.customArrow?ve.cascader.customArrow:"",arrowSize:ve.cascader&&ve.cascader.arrowSize?ve.cascader.arrowSize:"",itemArrow:ve.cascader&&ve.cascader.itemArrow?ve.cascader.itemArrow:"",customItemArrow:ve.cascader&&ve.cascader.customItemArrow?ve.cascader.customItemArrow:"",itemArrowSize:ve.cascader&&ve.cascader.itemArrowSize?ve.cascader.itemArrowSize:""},colorPicker:{arrow:ve.colorPicker&&ve.colorPicker.arrow?ve.colorPicker.arrow:"",customArrow:ve.colorPicker&&ve.colorPicker.customArrow?ve.colorPicker.customArrow:"",arrowSize:ve.colorPicker&&ve.colorPicker.arrowSize?ve.colorPicker.arrowSize:""},datePicker:{icon:ve.datePicker&&ve.datePicker.icon?ve.datePicker.icon:"",customIcon:ve.datePicker&&ve.datePicker.customIcon?ve.datePicker.customIcon:"",iconSize:ve.datePicker&&ve.datePicker.iconSize?ve.datePicker.iconSize:""},timePicker:{icon:ve.timePicker&&ve.timePicker.icon?ve.timePicker.icon:"",customIcon:ve.timePicker&&ve.timePicker.customIcon?ve.timePicker.customIcon:"",iconSize:ve.timePicker&&ve.timePicker.iconSize?ve.timePicker.iconSize:""},tabs:{closeIcon:ve.tabs&&ve.tabs.closeIcon?ve.tabs.closeIcon:"",customCloseIcon:ve.tabs&&ve.tabs.customCloseIcon?ve.tabs.customCloseIcon:"",closeIconSize:ve.tabs&&ve.tabs.closeIconSize?ve.tabs.closeIconSize:""},modal:{maskClosable:ve.modal&&"maskClosable"in ve.modal?ve.modal.maskClosable:"",checkEscClose:ve.modal&&"checkEscClose"in ve.modal?ve.modal.checkEscClose:""}},Xe.prototype.$Loading=We.default,Xe.prototype.$Message=Ye.default,Xe.prototype.$Modal=qe.default,Xe.prototype.$Notice=L.default,Xe.prototype.$Spin=ze.default)};typeof window!="undefined"&&window.Vue&&ct(window.Vue);var ht=(0,n.default)({version:"4.7.0-58",locale:tt.default.use,i18n:tt.default.i18n,install:ct,Circle:J.default,Switch:nt.default},dt);ht.lang=function(Ze){(0,a.default)(void 0,void 0);var Xe=window["iview/locale"].default;Ze===Xe.i.locale?tt.default.use(Xe):console.log("The "+String(Ze)+" language pack is not loaded.")}.bind(void 0),v.exports.default=v.exports=ht},function(v,r,t){t(262),v.exports=t(5).Object.keys},function(v,r,t){var s=t(29),a=t(40);t(97)("keys",function(){return function(e){return a(s(e))}})},function(v,r,t){var s=t(34),a=t(52),d=t(264);v.exports=function(e){return function(l,n,i){var o=s(l),c=a(o.length),u=d(i,c),f;if(e&&n!=n){for(;c>u;)if(f=o[u++],f!=f)return!0}else for(;c>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}}},function(v,r,t){var s=t(65),a=Math.max,d=Math.min;v.exports=function(e,l){return e=s(e),e<0?a(e+l,0):d(e,l)}},function(v,r,t){t(266),v.exports=t(5).Object.assign},function(v,r,t){var s=t(7);s(s.S+s.F,"Object",{assign:t(267)})},function(v,r,t){var s=t(13),a=t(40),d=t(71),e=t(54),l=t(29),n=t(64),i=Object.assign;v.exports=!i||t(31)(function(){var o={},c={},u=Symbol(),f="abcdefghijklmnopqrst";return o[u]=7,f.split("").forEach(function(y){c[y]=y}),i({},o)[u]!=7||Object.keys(i({},c)).join("")!=f})?function(c,u){for(var f=l(c),y=arguments.length,m=1,_=d.f,h=e.f;y>m;)for(var g=n(arguments[m++]),b=_?a(g).concat(_(g)):a(g),x=b.length,C=0,p;x>C;)p=b[C++],(!s||h.call(g,p))&&(f[p]=g[p]);return f}:i},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(269),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(99),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(273);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(271),__esModule:!0}},function(v,r,t){t(272);var s=t(5).Object;v.exports=function(d,e,l){return s.defineProperty(d,e,l)}},function(v,r,t){var s=t(7);s(s.S+s.F*!t(13),"Object",{defineProperty:t(16).f})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",[n("div",{ref:"point",class:e.classes,style:e.styles},[e._t("default")],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.slot,expression:"slot"}],style:e.slotStyle})])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(275),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(100),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(283);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("i",{class:e.classes,style:e.styles,on:{click:e.handleClick}})},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){t(46),t(36),v.exports=t(282)},function(v,r,t){var s=t(279),a=t(102),d=t(35),e=t(34);v.exports=t(72)(Array,"Array",function(l,n){this._t=e(l),this._i=0,this._k=n},function(){var l=this._t,n=this._k,i=this._i++;return!l||i>=l.length?(this._t=void 0,a(1)):n=="keys"?a(0,i):n=="values"?a(0,l[i]):a(0,[i,l[i]])},"values"),d.Arguments=d.Array,s("keys"),s("values"),s("entries")},function(v,r){v.exports=function(){}},function(v,r,t){var s=t(55),a=t(44),d=t(47),e={};t(26)(e,t(10)("iterator"),function(){return this}),v.exports=function(l,n,i){l.prototype=s(e,{next:a(1,i)}),d(l,n+" Iterator")}},function(v,r,t){var s=t(65),a=t(63);v.exports=function(d){return function(e,l){var n=String(a(e)),i=s(l),o=n.length,c,u;return i<0||i>=o?d?"":void 0:(c=n.charCodeAt(i),c<55296||c>56319||i+1===o||(u=n.charCodeAt(i+1))<56320||u>57343?d?n.charAt(i):c:d?n.slice(i,i+2):(c-55296<<10)+(u-56320)+65536)}}},function(v,r,t){var s=t(23),a=t(73);v.exports=t(5).getIterator=function(d){var e=a(d);if(typeof e!="function")throw TypeError(d+" is not iterable!");return s(e.call(d))}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.fade?"fade":""}},[e.closed?e._e():n("div",{class:e.wrapClasses},[e.showIcon?n("span",{class:e.iconClasses},[e._t("icon",function(){return[n("Icon",{attrs:{type:e.iconType}})]})],2):e._e(),e._v(" "),n("span",{class:e.messageClasses},[e._t("default")],2),e._v(" "),n("span",{class:e.descClasses},[e._t("desc")],2),e._v(" "),e.closable?n("a",{class:e.closeClasses,on:{click:e.close}},[e._t("close",function(){return[n("Icon",{attrs:{type:"ios-close"}})]})],2):e._e()])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(285),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(107),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(286);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.wrapperComponent,{tag:"component",attrs:{"offset-top":e.offsetTop,"offset-bottom":e.offsetBottom},on:{"on-change":e.handleAffixStateChange}},[n("div",{class:e.prefix+"-wrapper",style:e.wrapperStyle},[n("div",{class:""+e.prefix},[n("div",{class:e.prefix+"-ink"},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showInk,expression:"showInk"}],class:e.prefix+"-ink-ball",style:{top:e.inkTop+"px"}})]),e._v(" "),e._t("default")],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(288),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(108),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(289);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.anchorLinkClasses},[n("a",{class:e.linkTitleClasses,attrs:{href:e.href,"data-scroll-offset":e.scrollOffset,"data-href":e.href,title:e.title},on:{click:function(o){return o.preventDefault(),e.goAnchor.apply(null,arguments)}}},[e._v(e._s(e.title))]),e._v(" "),e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(291),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(109),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(341);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(293),__esModule:!0}},function(v,r,t){t(46),t(36),v.exports=t(294)},function(v,r,t){var s=t(56),a=t(10)("iterator"),d=t(35);v.exports=t(5).isIterable=function(e){var l=Object(e);return l[a]!==void 0||"@@iterator"in l||d.hasOwnProperty(s(l))}},function(v,r,t){t(296),v.exports=t(5).Number.isFinite},function(v,r,t){var s=t(7),a=t(9).isFinite;s(s.S,"Number",{isFinite:function(e){return typeof e=="number"&&a(e)}})},function(v,r,t){v.exports={default:t(298),__esModule:!0}},function(v,r,t){t(36),t(46),v.exports=t(76).f("iterator")},function(v,r,t){v.exports={default:t(300),__esModule:!0}},function(v,r,t){t(301),t(79),t(305),t(306),v.exports=t(5).Symbol},function(v,r,t){var s=t(9),a=t(30),d=t(13),e=t(7),l=t(103),n=t(77).KEY,i=t(31),o=t(67),c=t(47),u=t(53),f=t(10),y=t(76),m=t(78),_=t(302),h=t(111),g=t(23),b=t(19),x=t(29),C=t(34),p=t(70),S=t(44),P=t(55),O=t(303),A=t(304),T=t(71),B=t(16),j=t(40),q=A.f,U=B.f,R=O.f,V=s.Symbol,E=s.JSON,k=E&&E.stringify,G="prototype",z=f("_hidden"),Z=f("toPrimitive"),re={}.propertyIsEnumerable,J=o("symbol-registry"),N=o("symbols"),Y=o("op-symbols"),w=Object[G],F=typeof V=="function"&&!!T.f,H=s.QObject,te=!H||!H[G]||!H[G].findChild,ie=d&&i(function(){return P(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a!=7})?function(me,pe,ge){var Me=q(w,pe);Me&&delete w[pe],U(me,pe,ge),Me&&me!==w&&U(w,pe,Me)}:U,ue=function(me){var pe=N[me]=P(V[G]);return pe._k=me,pe},ee=F&&typeof V.iterator=="symbol"?function(me){return typeof me=="symbol"}:function(me){return me instanceof V},he=function(pe,ge,Me){return pe===w&&he(Y,ge,Me),g(pe),ge=p(ge,!0),g(Me),a(N,ge)?(Me.enumerable?(a(pe,z)&&pe[z][ge]&&(pe[z][ge]=!1),Me=P(Me,{enumerable:S(0,!1)})):(a(pe,z)||U(pe,z,S(1,{})),pe[z][ge]=!0),ie(pe,ge,Me)):U(pe,ge,Me)},ae=function(pe,ge){g(pe);for(var Me=_(ge=C(ge)),we=0,Le=Me.length,Ee;Le>we;)he(pe,Ee=Me[we++],ge[Ee]);return pe},M=function(pe,ge){return ge===void 0?P(pe):ae(P(pe),ge)},W=function(pe){var ge=re.call(this,pe=p(pe,!0));return this===w&&a(N,pe)&&!a(Y,pe)?!1:ge||!a(this,pe)||!a(N,pe)||a(this,z)&&this[z][pe]?ge:!0},$=function(pe,ge){if(pe=C(pe),ge=p(ge,!0),!(pe===w&&a(N,ge)&&!a(Y,ge))){var Me=q(pe,ge);return Me&&a(N,ge)&&!(a(pe,z)&&pe[z][ge])&&(Me.enumerable=!0),Me}},D=function(pe){for(var ge=R(C(pe)),Me=[],we=0,Le;ge.length>we;)!a(N,Le=ge[we++])&&Le!=z&&Le!=n&&Me.push(Le);return Me},I=function(pe){for(var ge=pe===w,Me=R(ge?Y:C(pe)),we=[],Le=0,Ee;Me.length>Le;)a(N,Ee=Me[Le++])&&(ge?a(w,Ee):!0)&&we.push(N[Ee]);return we};F||(V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor!");var pe=u(arguments.length>0?arguments[0]:void 0),ge=function(Me){this===w&&ge.call(Y,Me),a(this,z)&&a(this[z],pe)&&(this[z][pe]=!1),ie(this,pe,S(1,Me))};return d&&te&&ie(w,pe,{configurable:!0,set:ge}),ue(pe)},l(V[G],"toString",function(){return this._k}),A.f=$,B.f=he,t(112).f=O.f=D,t(54).f=W,T.f=I,d&&!t(42)&&l(w,"propertyIsEnumerable",W,!0),y.f=function(me){return ue(f(me))}),e(e.G+e.W+e.F*!F,{Symbol:V});for(var K="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),X=0;K.length>X;)f(K[X++]);for(var se=j(f.store),le=0;se.length>le;)m(se[le++]);e(e.S+e.F*!F,"Symbol",{for:function(me){return a(J,me+="")?J[me]:J[me]=V(me)},keyFor:function(pe){if(!ee(pe))throw TypeError(pe+" is not a symbol!");for(var ge in J)if(J[ge]===pe)return ge},useSetter:function(){te=!0},useSimple:function(){te=!1}}),e(e.S+e.F*!F,"Object",{create:M,defineProperty:he,defineProperties:ae,getOwnPropertyDescriptor:$,getOwnPropertyNames:D,getOwnPropertySymbols:I});var fe=i(function(){T.f(1)});e(e.S+e.F*fe,"Object",{getOwnPropertySymbols:function(pe){return T.f(x(pe))}}),E&&e(e.S+e.F*(!F||i(function(){var me=V();return k([me])!="[null]"||k({a:me})!="{}"||k(Object(me))!="{}"})),"JSON",{stringify:function(pe){for(var ge=[pe],Me=1,we,Le;arguments.length>Me;)ge.push(arguments[Me++]);if(Le=we=ge[1],!(!b(we)&&pe===void 0||ee(pe)))return h(we)||(we=function(Ee,$e){if(typeof Le=="function"&&($e=Le.call(this,Ee,$e)),!ee($e))return $e}),ge[1]=we,k.apply(E,ge)}}),V[G][Z]||t(26)(V[G],Z,V[G].valueOf),c(V,"Symbol"),c(Math,"Math",!0),c(s.JSON,"JSON",!0)},function(v,r,t){var s=t(40),a=t(71),d=t(54);v.exports=function(e){var l=s(e),n=a.f;if(n)for(var i=n(e),o=d.f,c=0,u;i.length>c;)o.call(e,u=i[c++])&&l.push(u);return l}},function(v,r,t){var s=t(34),a=t(112).f,d={}.toString,e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(n){try{return a(n)}catch{return e.slice()}};v.exports.f=function(i){return e&&d.call(i)=="[object Window]"?l(i):a(s(i))}},function(v,r,t){var s=t(54),a=t(44),d=t(34),e=t(70),l=t(30),n=t(98),i=Object.getOwnPropertyDescriptor;r.f=t(13)?i:function(c,u){if(c=d(c),u=e(u,!0),n)try{return i(c,u)}catch{}if(l(c,u))return a(!s.f.call(c,u),c[u])}},function(v,r,t){t(78)("asyncIterator")},function(v,r,t){t(78)("observable")},function(v,r,t){var s=t(5),a=s.JSON||(s.JSON={stringify:JSON.stringify});v.exports=function(e){return a.stringify.apply(a,arguments)}},function(v,r,t){t(36),t(309),v.exports=t(5).Array.from},function(v,r,t){var s=t(25),a=t(7),d=t(29),e=t(114),l=t(115),n=t(52),i=t(310),o=t(73);a(a.S+a.F*!t(116)(function(c){Array.from(c)}),"Array",{from:function(u){var f=d(u),y=typeof this=="function"?this:Array,m=arguments.length,_=m>1?arguments[1]:void 0,h=_!==void 0,g=0,b=o(f),x,C,p,S;if(h&&(_=s(_,m>2?arguments[2]:void 0,2)),b!=null&&!(y==Array&&l(b)))for(S=b.call(f),C=new y;!(p=S.next()).done;g++)i(C,g,h?e(S,_,[p.value,g],!0):p.value);else for(x=n(f.length),C=new y(x);x>g;g++)i(C,g,h?_(f[g],g):f[g]);return C.length=g,C}})},function(v,r,t){var s=t(16),a=t(44);v.exports=function(d,e,l){e in d?s.f(d,e,a(0,l)):d[e]=l}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-select-dropdown",class:e.className,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){v.exports={default:t(313),__esModule:!0}},function(v,r,t){t(314);var s=t(5).Object;v.exports=function(d,e){return s.defineProperties(d,e)}},function(v,r,t){var s=t(7);s(s.S+s.F*!t(13),"Object",{defineProperties:t(104)})},function(v,r,t){v.exports={default:t(316),__esModule:!0}},function(v,r,t){t(317);var s=t(5).Object;v.exports=function(d,e){return s.create(d,e)}},function(v,r,t){var s=t(7);s(s.S,"Object",{create:t(55)})},function(v,r,t){v.exports={default:t(319),__esModule:!0}},function(v,r,t){t(320),v.exports=t(5).Object.getPrototypeOf},function(v,r,t){var s=t(29),a=t(106);t(97)("getPrototypeOf",function(){return function(e){return a(s(e))}})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(322),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u6761",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"}}};(0,a.default)(e),r.default=e},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(l){e||typeof window.iview!="undefined"&&("langs"in iview||(iview.langs={}),iview.langs[l.i.locale]=l)};var s=t(17),a=d(s);function d(l){return l&&l.__esModule?l:{default:l}}var e=a.default.prototype.$isServer},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(_){return a(_)&&!d(_)};function a(m){return!!m&&typeof m=="object"}function d(m){var _=Object.prototype.toString.call(m);return _==="[object RegExp]"||_==="[object Date]"||n(m)}var e=typeof Symbol=="function"&&Symbol.for,l=e?Symbol.for("react.element"):60103;function n(m){return m.$$typeof===l}function i(m){return Array.isArray(m)?[]:{}}function o(m,_){return _.clone!==!1&&_.isMergeableObject(m)?f(i(m),m,_):m}function c(m,_,h){return m.concat(_).map(function(g){return o(g,h)})}function u(m,_,h){var g={};return h.isMergeableObject(m)&&Object.keys(m).forEach(function(b){g[b]=o(m[b],h)}),Object.keys(_).forEach(function(b){!h.isMergeableObject(_[b])||!m[b]?g[b]=o(_[b],h):g[b]=f(m[b],_[b],h)}),g}function f(m,_,h){h=h||{},h.arrayMerge=h.arrayMerge||c,h.isMergeableObject=h.isMergeableObject||s;var g=Array.isArray(_),b=Array.isArray(m),x=g===b;return x?g?h.arrayMerge(m,_,h):u(m,_,h):o(_,h)}f.all=function(_,h){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(g,b){return f(g,b,h)},{})};var y=f;r.default=y},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(18),e=l(d);r.default=function(){function i(c,u){return Object.prototype.hasOwnProperty.call(c,u)}function o(c){for(var u=this,f=arguments.length,y=Array(f>1?f-1:0),m=1;me.maxTagCount?n("div",{staticClass:"ivu-tag ivu-tag-checked"},[n("span",{staticClass:"ivu-tag-text ivu-select-max-tag"},[e.maxTagPlaceholder?[e._v(e._s(e.maxTagPlaceholder(e.selectedMultiple.length-e.maxTagCount)))]:[e._v("+ "+e._s(e.selectedMultiple.length-e.maxTagCount)+"...")]],2)]):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.singleDisplayValue,expression:"singleDisplayValue"}],class:e.singleDisplayClasses},[e._v(e._s(e.singleDisplayValue))]),e._v(" "),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"},{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],ref:"input",class:[e.prefixCls+"-input"],style:e.inputStyle,attrs:{id:e.inputElementId,type:"text",readonly:e.searchInOption,disabled:e.disabled,placeholder:e.showPlaceholder?e.localePlaceholder:"",autocomplete:"off",spellcheck:"false"},domProps:{value:e.query},on:{keydown:[e.resetInputState,function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"delete",[8,46],i.key,["Backspace","Delete","Del"])?null:e.handleInputDelete.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleInputEnter.apply(null,arguments)}],focus:e.onInputFocus,blur:e.onInputBlur,input:function(o){o.target.composing||(e.query=o.target.value)}}}):e._e(),e._v(" "),e.resetSelect?n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:"ios-close-circle"},nativeOn:{click:function(o){return o.stopPropagation(),e.onClear.apply(null,arguments)}}}):e._e(),e._v(" "),!e.resetSelect&&!e.remote?n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(122),a=t.n(s);for(var d in s)d!=="default"&&function(y){t.d(r,y,function(){return s[y]})}(d);var e=t(0),l,n,i=!1,o=null,c=null,u=null,f=Object(e.a)(a.a,l,n,i,o,c,u);r.default=f.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside:[capture]",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture},{name:"click-outside",rawName:"v-click-outside:[capture].mousedown",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture,modifiers:{mousedown:!0}},{name:"click-outside",rawName:"v-click-outside:[capture].touchstart",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture,modifiers:{touchstart:!0}}],class:e.classes},[n("div",{ref:"reference",class:e.selectionCls,attrs:{tabindex:e.selectTabindex},on:{blur:e.toggleHeaderFocus,focus:e.toggleHeaderFocus,click:e.toggleMenu,keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:e.handleKeydown.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleKeydown.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),e.handleKeydown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),e.handleKeydown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"tab",9,i.key,"Tab")?null:e.handleKeydown.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"delete",[8,46],i.key,["Backspace","Delete","Del"])?null:e.handleKeydown.apply(null,arguments)}],mouseenter:function(o){e.hasMouseHoverHead=!0},mouseleave:function(o){e.hasMouseHoverHead=!1}}},[e._t("input",function(){return[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.publicValue}}),e._v(" "),n("select-head",{attrs:{filterable:e.filterable,multiple:e.multiple,multipleUncancelable:e.multipleUncancelable,searchInOption:e.searchInOption,values:e.values,clearable:e.canBeCleared,prefix:e.prefix,disabled:e.itemDisabled,remote:e.remote,"input-element-id":e.elementId,"initial-label":e.initialLabel,placeholder:e.placeholder,"query-prop":e.query,"max-tag-count":e.maxTagCount,"max-tag-placeholder":e.maxTagPlaceholder,"allow-create":e.allowCreate,"show-create-item":e.showCreateItem},on:{"on-query-change":e.onQueryChange,"on-input-focus":function(o){e.isFocused=!0},"on-input-blur":function(o){e.isFocused=!1},"on-clear":e.clearSingleSelect,"on-enter":e.handleCreateItem}},[e._t("prefix",null,{slot:"prefix"})],2)]})],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.dropVisible,expression:"dropVisible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"dropdown",class:e.dropdownCls,attrs:{placement:e.placement,"data-transfer":e.transfer,transfer:e.transfer,eventsEnabled:e.eventsEnabled}},[e._t("drop-prepend"),e._v(" "),e.searchInOption?n("div",{ref:"searchInOption",class:e.prefixCls+"-search-in-option"},[n("Input",{attrs:{placeholder:e.localePlaceholder},model:{value:e.query,callback:function(o){e.query=o},expression:"query"}})],1):e._e(),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showNotFoundLabel&&!e.allowCreate,expression:"showNotFoundLabel && !allowCreate"}],class:[e.prefixCls+"-not-found"]},[n("li",[e._v(e._s(e.localeNotFoundText))])]),e._v(" "),!e.remote||e.remote&&!e.loading?n("functional-options",{class:e.prefixCls+"-dropdown-list",attrs:{options:e.selectOptions,"slot-update-hook":e.updateSlotOptions,"slot-options":e.slotOptions}},[e.showCreateItem?n("li",{class:e.prefixCls+"-item",on:{click:e.handleCreateItem}},[e._v(` `+e._s(e.query)+` `),n("Icon",{class:e.prefixCls+"-item-enter",attrs:{type:"md-return-left"}})],1):e._e()]):n("ul",{class:e.prefixCls+"-dropdown-list"},[e.showCreateItem?n("li",{class:e.prefixCls+"-item",on:{click:e.handleCreateItem}},[e._v(` `+e._s(e.query)+` @@ -39,9 +39,9 @@ import{c as Lt,g as $t}from"./@babel.49d8906a.js";import{r as Bt}from"./vue.c448 z-index:-1000 !important; top:0 !important; right:0 !important -`,c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],u={},f=void 0;function y(_){var h=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=_.getAttribute("id")||_.getAttribute("data-reactid")||_.getAttribute("name");if(g&&u[b])return u[b];var x=window.getComputedStyle(_),C=x.getPropertyValue("box-sizing")||x.getPropertyValue("-moz-box-sizing")||x.getPropertyValue("-webkit-box-sizing"),p=parseFloat(x.getPropertyValue("padding-bottom"))+parseFloat(x.getPropertyValue("padding-top")),S=parseFloat(x.getPropertyValue("border-bottom-width"))+parseFloat(x.getPropertyValue("border-top-width")),P=c.map(function(R){return(0,n.default)(this,h),String(R)+":"+String(x.getPropertyValue(R))}.bind(this)).join(";"),O={sizingStyle:P,paddingSize:p,borderSize:S,boxSizing:C};return g&&b&&(u[b]=O),O}function m(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;f||(f=document.createElement("textarea"),document.body.appendChild(f)),_.getAttribute("wrap")?f.setAttribute("wrap",_.getAttribute("wrap")):f.removeAttribute("wrap");var x=y(_,b),C=x.paddingSize,p=x.borderSize,S=x.boxSizing,P=x.sizingStyle;f.setAttribute("style",String(P)+";"+o),f.value=_.value||_.placeholder||"";var O=e.default,R=a.default,T=f.scrollHeight,B=void 0;if(S==="border-box"?T=T+p:S==="content-box"&&(T=T-C),h!==null||g!==null){f.value=" ";var j=f.scrollHeight-C;h!==null&&(O=j*h,S==="border-box"&&(O=O+C+p),T=Math.max(O,T)),g!==null&&(R=j*g,S==="border-box"&&(R=R+C+p),B=T>R?"":"hidden",T=Math.min(R,T))}return g||(B="hidden"),{height:String(T)+"px",minHeight:String(O)+"px",maxHeight:String(R)+"px",overflowY:B}}},function(v,r,t){v.exports={default:t(335),__esModule:!0}},function(v,r,t){t(336),v.exports=9007199254740991},function(v,r,t){var s=t(7);s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(v,r,t){v.exports={default:t(338),__esModule:!0}},function(v,r,t){t(339),v.exports=-9007199254740991},function(v,r,t){var s=t(7);s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e.type!=="textarea"?[e.prepend?n("div",{directives:[{name:"show",rawName:"v-show",value:e.slotReady,expression:"slotReady"}],class:[e.prefixCls+"-group-prepend"]},[e._t("prepend")],2):e._e(),e._v(" "),e.clearable&&e.currentValue&&!e.itemDisabled?n("i",{staticClass:"ivu-icon",class:["ivu-icon-ios-close-circle",e.prefixCls+"-icon",e.prefixCls+"-icon-clear",e.prefixCls+"-icon-normal"],style:e.clearableStyles,on:{click:e.handleClear}}):e.icon?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.icon,e.prefixCls+"-icon",e.prefixCls+"-icon-normal"],on:{click:e.handleIconClick}}):e.search&&e.enterButton===!1?n("i",{staticClass:"ivu-icon ivu-icon-ios-search",class:[e.prefixCls+"-icon",e.prefixCls+"-icon-normal",e.prefixCls+"-search-icon"],on:{click:e.handleSearch}}):e.showSuffix?n("span",{staticClass:"ivu-input-suffix"},[e._t("suffix",function(){return[e.suffix?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.suffix]}):e._e()]})],2):e.showWordLimit?n("span",{staticClass:"ivu-input-word-count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e.password?n("span",{staticClass:"ivu-input-suffix",on:{click:e.handleToggleShowPassword}},[e.showPassword?n("i",{staticClass:"ivu-icon ivu-icon-ios-eye-outline"}):n("i",{staticClass:"ivu-icon ivu-icon-ios-eye-off-outline"})]):e._e(),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.icon?e._e():n("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop",class:[e.prefixCls+"-icon",e.prefixCls+"-icon-validate"]})]),e._v(" "),n("input",{ref:"input",class:e.inputClasses,attrs:{id:e.elementId,autocomplete:e.autocomplete,spellcheck:e.spellcheck,type:e.currentType,placeholder:e.placeholder,disabled:e.itemDisabled,maxlength:e.maxlength,readonly:e.readonly,name:e.name,number:e.number,autofocus:e.autofocus,enterkeyhint:e.enterkeyhint},domProps:{value:e.currentValue},on:{keyup:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleEnter.apply(null,arguments)},e.handleKeyup],keypress:e.handleKeypress,keydown:e.handleKeydown,focus:e.handleFocus,blur:e.handleBlur,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:e.handleInput,change:e.handleChange}}),e._v(" "),e.append?n("div",{directives:[{name:"show",rawName:"v-show",value:e.slotReady,expression:"slotReady"}],class:[e.prefixCls+"-group-append"]},[e._t("append")],2):e.search&&e.enterButton?n("div",{class:[e.prefixCls+"-group-append",e.prefixCls+"-search"],on:{click:e.handleSearch}},[e.enterButton===!0?n("i",{staticClass:"ivu-icon ivu-icon-ios-search"}):[e._v(e._s(e.enterButton))]],2):e.showPrefix?n("span",{staticClass:"ivu-input-prefix"},[e._t("prefix",function(){return[e.prefix?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.prefix]}):e._e()]})],2):e._e()]:[n("textarea",{ref:"textarea",class:e.textareaClasses,style:e.textareaStyles,attrs:{id:e.elementId,wrap:e.wrap,autocomplete:e.autocomplete,spellcheck:e.spellcheck,placeholder:e.placeholder,disabled:e.itemDisabled,rows:e.rows,maxlength:e.maxlength,readonly:e.readonly,name:e.name,autofocus:e.autofocus,enterkeyhint:e.enterkeyhint},domProps:{value:e.currentValue},on:{keyup:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleEnter.apply(null,arguments)},e.handleKeyup],keypress:e.handleKeypress,keydown:e.handleKeydown,focus:e.handleFocus,blur:e.handleBlur,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:e.handleInput}}),e._v(" "),e.showWordLimit?n("span",{staticClass:"ivu-input-word-count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()]],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("i-select",{ref:"select",staticClass:"ivu-auto-complete",attrs:{label:e.label,disabled:e.itemDisabled,clearable:e.clearable,placeholder:e.placeholder,size:e.size,placement:e.placement,value:e.currentValue,"transfer-class-name":e.transferClassName,filterable:"",remote:"","auto-complete":"","remote-method":e.remoteMethod,transfer:e.transfer,capture:e.capture,eventsEnabled:e.eventsEnabled},on:{"on-select":e.handleSelect,"on-clickoutside":e.handleClickOutside}},[e._t("input",function(){return[n("i-input",{ref:"input",attrs:{slot:"input","element-id":e.elementId,name:e.name,placeholder:e.placeholder,disabled:e.itemDisabled,size:e.size,icon:e.inputIcon},on:{"on-click":e.handleClear,"on-focus":e.handleFocus,"on-blur":e.handleBlur},slot:"input",model:{value:e.currentValue,callback:function(o){e.currentValue=o},expression:"currentValue"}})]}),e._v(" "),e._t("default",function(){return e._l(e.filteredData,function(i){return n("i-option",{key:i,attrs:{value:i}},[e._v(e._s(i))])})})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(125),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.classes,style:e.styles},[e.src?n("img",{attrs:{src:e.src},on:{error:e.handleError}}):e.icon||e.customIcon?n("Icon",{attrs:{type:e.icon,custom:e.customIcon}}):n("span",{ref:"children",class:[e.prefixCls+"-string"],style:e.childrenStyle},[e._t("default")],2)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(345),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(127),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(346);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.styles,on:{click:e.back}},[e._t("default",function(){return[n("div",{class:e.innerClasses},[n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-up"})])]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(348),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(128),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(349);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.dot?n("span",{ref:"badge",class:e.classes},[e._t("default"),e._v(" "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.badge,expression:"badge"}],class:e.dotClasses,style:e.styles})],2):e.status||e.color?n("span",{ref:"badge",staticClass:"ivu-badge-status",class:e.classes},[n("span",{class:e.statusClasses,style:e.statusStyles}),e._v(" "),n("span",{staticClass:"ivu-badge-status-text"},[e._t("text",function(){return[e._v(e._s(e.text))]})],2)]):n("span",{ref:"badge",class:e.classes},[e._t("default"),e._v(" "),e.$slots.count?n("sup",{class:e.customCountClasses,style:e.styles},[e._t("count")],2):e.hasCount?n("sup",{directives:[{name:"show",rawName:"v-show",value:e.badge,expression:"badge"}],class:e.countClasses,style:e.styles},[e._t("text",function(){return[e._v(e._s(e.finalCount))]})],2):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(351),a=l(s),d=t(353),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(129),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(352);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(130),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(354);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.to?n("a",{class:e.linkClasses,attrs:{href:e.linkUrl,target:e.target},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.handleCheckClick(i,!1)},function(i){return i.ctrlKey?e.handleCheckClick(i,!0):null},function(i){return i.metaKey?e.handleCheckClick(i,!0):null}]}},[e._t("default")],2):n("span",{class:e.linkClasses},[e._t("default")],2),e._v(" "),e.showSeparator?n("span",{class:e.separatorClasses},[e._t("separator")],2):n("span",{class:e.separatorClasses,domProps:{innerHTML:e._s(e.separator)}})])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(28),a=l(s),d=t(357),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tagName,e._b({tag:"component",class:e.classes,attrs:{disabled:e.itemDisabled},on:{click:e.handleClickLink}},"component",e.tagProps,!1),[e.loading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e._e(),e._v(" "),(e.icon||e.customIcon)&&!e.loading?n("Icon",{attrs:{type:e.icon,custom:e.customIcon}}):e._e(),e._v(" "),e.showSlot?n("span",{ref:"slot"},[e._t("default")],2):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(132),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(358);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(360),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(133),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(361);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tagName,e._b({tag:"component",class:e.classes,on:{click:e.handleClickLink}},"component",e.tagProps,!1),[e.showHead?n("div",{class:e.headClasses},[e._t("title",function(){return[e.title?n("p",[e.icon?n("Icon",{attrs:{type:e.icon}}):e._e(),e._v(" "),n("span",[e._v(e._s(e.title))])],1):e._e()]})],2):e._e(),e._v(" "),e.showExtra?n("div",{class:e.extraClasses},[e._t("extra")],2):e._e(),e._v(" "),n("div",{class:e.bodyClasses,style:e.bodyStyles},[e._t("default")],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(363),a=l(s),d=t(365),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(134),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(364);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("button",{staticClass:"left",class:e.arrowClasses,attrs:{type:"button"},on:{click:function(o){return e.arrowEvent(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),n("div",{class:[e.prefixCls+"-list"]},[n("div",{ref:"originTrack",class:[e.prefixCls+"-track",e.showCopyTrack?"":"higher"],style:e.trackStyles,on:{click:function(o){return e.handleClick("currentIndex")}}},[e._t("default")],2),e._v(" "),e.loop?n("div",{ref:"copyTrack",class:[e.prefixCls+"-track",e.showCopyTrack?"higher":""],style:e.copyTrackStyles,on:{click:function(o){return e.handleClick("copyTrackIndex")}}}):e._e()]),e._v(" "),n("button",{staticClass:"right",class:e.arrowClasses,attrs:{type:"button"},on:{click:function(o){return e.arrowEvent(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),n("ul",{class:e.dotsClasses},[e._l(e.slides.length,function(i){return[n("li",{class:[i-1===e.currentIndex?e.prefixCls+"-active":""],on:{click:function(c){return e.dotsEvent("click",i-1)},mouseover:function(c){return e.dotsEvent("hover",i-1)}}},[n("button",{class:[e.radiusDot?"radius":""],attrs:{type:"button"}})])]})],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(135),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(366);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(368),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(136),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(373);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(137),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(372);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(138),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(371);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes},[e._v(` +`,c=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],u={},f=void 0;function y(_){var h=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=_.getAttribute("id")||_.getAttribute("data-reactid")||_.getAttribute("name");if(g&&u[b])return u[b];var x=window.getComputedStyle(_),C=x.getPropertyValue("box-sizing")||x.getPropertyValue("-moz-box-sizing")||x.getPropertyValue("-webkit-box-sizing"),p=parseFloat(x.getPropertyValue("padding-bottom"))+parseFloat(x.getPropertyValue("padding-top")),S=parseFloat(x.getPropertyValue("border-bottom-width"))+parseFloat(x.getPropertyValue("border-top-width")),P=c.map(function(A){return(0,n.default)(this,h),String(A)+":"+String(x.getPropertyValue(A))}.bind(this)).join(";"),O={sizingStyle:P,paddingSize:p,borderSize:S,boxSizing:C};return g&&b&&(u[b]=O),O}function m(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;f||(f=document.createElement("textarea"),document.body.appendChild(f)),_.getAttribute("wrap")?f.setAttribute("wrap",_.getAttribute("wrap")):f.removeAttribute("wrap");var x=y(_,b),C=x.paddingSize,p=x.borderSize,S=x.boxSizing,P=x.sizingStyle;f.setAttribute("style",String(P)+";"+o),f.value=_.value||_.placeholder||"";var O=e.default,A=a.default,T=f.scrollHeight,B=void 0;if(S==="border-box"?T=T+p:S==="content-box"&&(T=T-C),h!==null||g!==null){f.value=" ";var j=f.scrollHeight-C;h!==null&&(O=j*h,S==="border-box"&&(O=O+C+p),T=Math.max(O,T)),g!==null&&(A=j*g,S==="border-box"&&(A=A+C+p),B=T>A?"":"hidden",T=Math.min(A,T))}return g||(B="hidden"),{height:String(T)+"px",minHeight:String(O)+"px",maxHeight:String(A)+"px",overflowY:B}}},function(v,r,t){v.exports={default:t(335),__esModule:!0}},function(v,r,t){t(336),v.exports=9007199254740991},function(v,r,t){var s=t(7);s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(v,r,t){v.exports={default:t(338),__esModule:!0}},function(v,r,t){t(339),v.exports=-9007199254740991},function(v,r,t){var s=t(7);s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e.type!=="textarea"?[e.prepend?n("div",{directives:[{name:"show",rawName:"v-show",value:e.slotReady,expression:"slotReady"}],class:[e.prefixCls+"-group-prepend"]},[e._t("prepend")],2):e._e(),e._v(" "),e.clearable&&e.currentValue&&!e.itemDisabled?n("i",{staticClass:"ivu-icon",class:["ivu-icon-ios-close-circle",e.prefixCls+"-icon",e.prefixCls+"-icon-clear",e.prefixCls+"-icon-normal"],style:e.clearableStyles,on:{click:e.handleClear}}):e.icon?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.icon,e.prefixCls+"-icon",e.prefixCls+"-icon-normal"],on:{click:e.handleIconClick}}):e.search&&e.enterButton===!1?n("i",{staticClass:"ivu-icon ivu-icon-ios-search",class:[e.prefixCls+"-icon",e.prefixCls+"-icon-normal",e.prefixCls+"-search-icon"],on:{click:e.handleSearch}}):e.showSuffix?n("span",{staticClass:"ivu-input-suffix"},[e._t("suffix",function(){return[e.suffix?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.suffix]}):e._e()]})],2):e.showWordLimit?n("span",{staticClass:"ivu-input-word-count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e.password?n("span",{staticClass:"ivu-input-suffix",on:{click:e.handleToggleShowPassword}},[e.showPassword?n("i",{staticClass:"ivu-icon ivu-icon-ios-eye-outline"}):n("i",{staticClass:"ivu-icon ivu-icon-ios-eye-off-outline"})]):e._e(),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.icon?e._e():n("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop",class:[e.prefixCls+"-icon",e.prefixCls+"-icon-validate"]})]),e._v(" "),n("input",{ref:"input",class:e.inputClasses,attrs:{id:e.elementId,autocomplete:e.autocomplete,spellcheck:e.spellcheck,type:e.currentType,placeholder:e.placeholder,disabled:e.itemDisabled,maxlength:e.maxlength,readonly:e.readonly,name:e.name,number:e.number,autofocus:e.autofocus,enterkeyhint:e.enterkeyhint},domProps:{value:e.currentValue},on:{keyup:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleEnter.apply(null,arguments)},e.handleKeyup],keypress:e.handleKeypress,keydown:e.handleKeydown,focus:e.handleFocus,blur:e.handleBlur,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:e.handleInput,change:e.handleChange}}),e._v(" "),e.append?n("div",{directives:[{name:"show",rawName:"v-show",value:e.slotReady,expression:"slotReady"}],class:[e.prefixCls+"-group-append"]},[e._t("append")],2):e.search&&e.enterButton?n("div",{class:[e.prefixCls+"-group-append",e.prefixCls+"-search"],on:{click:e.handleSearch}},[e.enterButton===!0?n("i",{staticClass:"ivu-icon ivu-icon-ios-search"}):[e._v(e._s(e.enterButton))]],2):e.showPrefix?n("span",{staticClass:"ivu-input-prefix"},[e._t("prefix",function(){return[e.prefix?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.prefix]}):e._e()]})],2):e._e()]:[n("textarea",{ref:"textarea",class:e.textareaClasses,style:e.textareaStyles,attrs:{id:e.elementId,wrap:e.wrap,autocomplete:e.autocomplete,spellcheck:e.spellcheck,placeholder:e.placeholder,disabled:e.itemDisabled,rows:e.rows,maxlength:e.maxlength,readonly:e.readonly,name:e.name,autofocus:e.autofocus,enterkeyhint:e.enterkeyhint},domProps:{value:e.currentValue},on:{keyup:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleEnter.apply(null,arguments)},e.handleKeyup],keypress:e.handleKeypress,keydown:e.handleKeydown,focus:e.handleFocus,blur:e.handleBlur,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:e.handleInput}}),e._v(" "),e.showWordLimit?n("span",{staticClass:"ivu-input-word-count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()]],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("i-select",{ref:"select",staticClass:"ivu-auto-complete",attrs:{label:e.label,disabled:e.itemDisabled,clearable:e.clearable,placeholder:e.placeholder,size:e.size,placement:e.placement,value:e.currentValue,"transfer-class-name":e.transferClassName,filterable:"",remote:"","auto-complete":"","remote-method":e.remoteMethod,transfer:e.transfer,capture:e.capture,eventsEnabled:e.eventsEnabled},on:{"on-select":e.handleSelect,"on-clickoutside":e.handleClickOutside}},[e._t("input",function(){return[n("i-input",{ref:"input",attrs:{slot:"input","element-id":e.elementId,name:e.name,placeholder:e.placeholder,disabled:e.itemDisabled,size:e.size,icon:e.inputIcon},on:{"on-click":e.handleClear,"on-focus":e.handleFocus,"on-blur":e.handleBlur},slot:"input",model:{value:e.currentValue,callback:function(o){e.currentValue=o},expression:"currentValue"}})]}),e._v(" "),e._t("default",function(){return e._l(e.filteredData,function(i){return n("i-option",{key:i,attrs:{value:i}},[e._v(e._s(i))])})})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(125),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.classes,style:e.styles},[e.src?n("img",{attrs:{src:e.src},on:{error:e.handleError}}):e.icon||e.customIcon?n("Icon",{attrs:{type:e.icon,custom:e.customIcon}}):n("span",{ref:"children",class:[e.prefixCls+"-string"],style:e.childrenStyle},[e._t("default")],2)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(345),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(127),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(346);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.styles,on:{click:e.back}},[e._t("default",function(){return[n("div",{class:e.innerClasses},[n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-up"})])]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(348),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(128),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(349);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.dot?n("span",{ref:"badge",class:e.classes},[e._t("default"),e._v(" "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.badge,expression:"badge"}],class:e.dotClasses,style:e.styles})],2):e.status||e.color?n("span",{ref:"badge",staticClass:"ivu-badge-status",class:e.classes},[n("span",{class:e.statusClasses,style:e.statusStyles}),e._v(" "),n("span",{staticClass:"ivu-badge-status-text"},[e._t("text",function(){return[e._v(e._s(e.text))]})],2)]):n("span",{ref:"badge",class:e.classes},[e._t("default"),e._v(" "),e.$slots.count?n("sup",{class:e.customCountClasses,style:e.styles},[e._t("count")],2):e.hasCount?n("sup",{directives:[{name:"show",rawName:"v-show",value:e.badge,expression:"badge"}],class:e.countClasses,style:e.styles},[e._t("text",function(){return[e._v(e._s(e.finalCount))]})],2):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(351),a=l(s),d=t(353),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(129),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(352);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(130),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(354);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.to?n("a",{class:e.linkClasses,attrs:{href:e.linkUrl,target:e.target},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.handleCheckClick(i,!1)},function(i){return i.ctrlKey?e.handleCheckClick(i,!0):null},function(i){return i.metaKey?e.handleCheckClick(i,!0):null}]}},[e._t("default")],2):n("span",{class:e.linkClasses},[e._t("default")],2),e._v(" "),e.showSeparator?n("span",{class:e.separatorClasses},[e._t("separator")],2):n("span",{class:e.separatorClasses,domProps:{innerHTML:e._s(e.separator)}})])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(28),a=l(s),d=t(357),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tagName,e._b({tag:"component",class:e.classes,attrs:{disabled:e.itemDisabled},on:{click:e.handleClickLink}},"component",e.tagProps,!1),[e.loading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e._e(),e._v(" "),(e.icon||e.customIcon)&&!e.loading?n("Icon",{attrs:{type:e.icon,custom:e.customIcon}}):e._e(),e._v(" "),e.showSlot?n("span",{ref:"slot"},[e._t("default")],2):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(132),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(358);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(360),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(133),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(361);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tagName,e._b({tag:"component",class:e.classes,on:{click:e.handleClickLink}},"component",e.tagProps,!1),[e.showHead?n("div",{class:e.headClasses},[e._t("title",function(){return[e.title?n("p",[e.icon?n("Icon",{attrs:{type:e.icon}}):e._e(),e._v(" "),n("span",[e._v(e._s(e.title))])],1):e._e()]})],2):e._e(),e._v(" "),e.showExtra?n("div",{class:e.extraClasses},[e._t("extra")],2):e._e(),e._v(" "),n("div",{class:e.bodyClasses,style:e.bodyStyles},[e._t("default")],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(363),a=l(s),d=t(365),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(134),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(364);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("button",{staticClass:"left",class:e.arrowClasses,attrs:{type:"button"},on:{click:function(o){return e.arrowEvent(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),n("div",{class:[e.prefixCls+"-list"]},[n("div",{ref:"originTrack",class:[e.prefixCls+"-track",e.showCopyTrack?"":"higher"],style:e.trackStyles,on:{click:function(o){return e.handleClick("currentIndex")}}},[e._t("default")],2),e._v(" "),e.loop?n("div",{ref:"copyTrack",class:[e.prefixCls+"-track",e.showCopyTrack?"higher":""],style:e.copyTrackStyles,on:{click:function(o){return e.handleClick("copyTrackIndex")}}}):e._e()]),e._v(" "),n("button",{staticClass:"right",class:e.arrowClasses,attrs:{type:"button"},on:{click:function(o){return e.arrowEvent(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),n("ul",{class:e.dotsClasses},[e._l(e.slides.length,function(i){return[n("li",{class:[i-1===e.currentIndex?e.prefixCls+"-active":""],on:{click:function(c){return e.dotsEvent("click",i-1)},mouseover:function(c){return e.dotsEvent("hover",i-1)}}},[n("button",{class:[e.radiusDot?"radius":""],attrs:{type:"button"}})])]})],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(135),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(366);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(368),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(136),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(373);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(137),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(372);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(138),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(371);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes},[e._v(` `+e._s(e.data.label)+` - `),e.showArrow?n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e(),e._v(" "),e.showLoading?n("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-cascader-menu-item-loading"}):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.data&&e.data.length?n("ul",{class:[e.prefixCls+"-menu"]},e._l(e.data,function(i){return n("Casitem",{key:e.getKey(),class:i.class||"",style:i.style||{},attrs:{"prefix-cls":e.prefixCls,data:i,"tmp-item":e.tmpItem},nativeOn:{click:function(c){return c.stopPropagation(),e.handleClickItem(i)},mouseenter:function(c){return c.stopPropagation(),e.handleHoverItem(i)}}})}),1):e._e(),e.sublist&&e.sublist.length?n("Caspanel",{attrs:{"prefix-cls":e.prefixCls,data:e.sublist,disabled:e.disabled,trigger:e.trigger,"change-on-select":e.changeOnSelect}}):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}],class:e.classes},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"],on:{click:e.toggleOpen}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),e._t("default",function(){return[n("i-input",{ref:"input",attrs:{"element-id":e.elementId,readonly:!e.filterable,disabled:e.itemDisabled,value:e.displayInputRender,size:e.size,placeholder:e.inputPlaceholder},on:{"on-change":e.handleInput}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query==="",expression:"filterable && query === ''"}],class:[e.prefixCls+"-label"],on:{click:e.handleFocus}},[e._v(e._s(e.displayRender))]),e._v(" "),n("Icon",{directives:[{name:"show",rawName:"v-show",value:e.showCloseIcon,expression:"showCloseIcon"}],class:[e.prefixCls+"-arrow"],attrs:{type:"ios-close-circle"},nativeOn:{click:function(o){return o.stopPropagation(),e.clearSelect.apply(null,arguments)}}}),e._v(" "),n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})]})],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,attrs:{eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer}},[n("div",[n("Caspanel",{directives:[{name:"show",rawName:"v-show",value:!e.filterable||e.filterable&&e.query==="",expression:"!filterable || (filterable && query === '')"}],ref:"caspanel",attrs:{"prefix-cls":e.prefixCls,data:e.data,disabled:e.itemDisabled,"change-on-select":e.changeOnSelect,trigger:e.trigger}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query!==""&&e.querySelections.length,expression:"filterable && query !== '' && querySelections.length"}],class:[e.prefixCls+"-dropdown"]},[n("ul",{class:[e.selectPrefixCls+"-dropdown-list"]},e._l(e.querySelections,function(i,o){var c;return n("li",{class:[e.selectPrefixCls+"-item",(c={},c[e.selectPrefixCls+"-item-disabled"]=i.disabled,c)],domProps:{innerHTML:e._s(i.display)},on:{click:function(f){return e.handleSelectItem(o)}}})}),0)]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query!==""&&!e.querySelections.length||!e.data.length,expression:"(filterable && query !== '' && !querySelections.length) || !data.length"}],class:[e.prefixCls+"-not-found-tip"]},[n("li",[e._v(e._s(e.localeNotFoundText))])])],1)])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(375),a=l(s),d=t(379),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(139),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(378);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(140),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(377);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-cell-item"},[n("div",{staticClass:"ivu-cell-icon"},[e._t("icon")],2),e._v(" "),n("div",{staticClass:"ivu-cell-main"},[n("div",{staticClass:"ivu-cell-title"},[e._t("default",function(){return[e._v(e._s(e.title))]})],2),e._v(" "),n("div",{staticClass:"ivu-cell-label"},[e._t("label",function(){return[e._v(e._s(e.label))]})],2)]),e._v(" "),n("div",{staticClass:"ivu-cell-footer"},[n("span",{staticClass:"ivu-cell-extra"},[e._t("extra",function(){return[e._v(e._s(e.extra))]})],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.to?n("a",{staticClass:"ivu-cell-link",attrs:{href:e.linkUrl,target:e.target},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.handleClickItem(i,!1)},function(i){return i.ctrlKey?e.handleClickItem(i,!0):null},function(i){return i.metaKey?e.handleClickItem(i,!0):null}]}},[n("CellItem",{attrs:{title:e.title,label:e.label,extra:e.extra}},[e._t("icon",null,{slot:"icon"}),e._v(" "),e._t("default",null,{slot:"default"}),e._v(" "),e._t("extra",null,{slot:"extra"}),e._v(" "),e._t("label",null,{slot:"label"})],2)],1):n("div",{staticClass:"ivu-cell-link",on:{click:e.handleClickItem}},[n("CellItem",{attrs:{title:e.title,label:e.label,extra:e.extra}},[e._t("icon",null,{slot:"icon"}),e._v(" "),e._t("default",null,{slot:"default"}),e._v(" "),e._t("extra",null,{slot:"extra"}),e._v(" "),e._t("label",null,{slot:"label"})],2)],1),e._v(" "),e.to?n("div",{staticClass:"ivu-cell-arrow"},[e._t("arrow",function(){return[n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})]})],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(141),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(380);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-cell-group"},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(49),a=l(s),d=t(143),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{class:e.wrapClasses},[n("span",{class:e.checkboxClasses},[n("span",{class:e.innerClasses}),e._v(" "),e.group?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],class:e.inputClasses,attrs:{type:"checkbox",disabled:e.itemDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(i){var o=e.model,c=i.target,u=!!c.checked;if(Array.isArray(o)){var f=e.label,y=e._i(o,f);c.checked?y<0&&(e.model=o.concat([f])):y>-1&&(e.model=o.slice(0,y).concat(o.slice(y+1)))}else e.model=u},e.change],focus:e.onFocus,blur:e.onBlur}}):n("input",{class:e.inputClasses,attrs:{type:"checkbox",disabled:e.itemDisabled,name:e.name},domProps:{checked:e.currentValue},on:{change:e.change,focus:e.onFocus,blur:e.onBlur}})]),e._v(" "),e._t("default",function(){return[e.showSlot?n("span",[e._v(e._s(e.label))]):e._e()]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(385),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(145),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(387);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){for(var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:32,a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",d=a.length,e="",l=0;l3?0:(p-p%10!==10)*p%10]}};var b={D:function(p){return p.getDay()},DD:function(p){return y(p.getDay())},Do:function(p,S){return S.DoFn(p.getDate())},d:function(p){return p.getDate()},dd:function(p){return y(p.getDate())},ddd:function(p,S){return S.dayNamesShort[p.getDay()]},dddd:function(p,S){return S.dayNames[p.getDay()]},M:function(p){return p.getMonth()+1},MM:function(p){return y(p.getMonth()+1)},MMM:function(p,S){return S.monthNamesShort[p.getMonth()]},MMMM:function(p,S){return S.monthNames[p.getMonth()]},yy:function(p){return String(p.getFullYear()).substr(2)},yyyy:function(p){return p.getFullYear()},h:function(p){return p.getHours()%12||12},hh:function(p){return y(p.getHours()%12||12)},H:function(p){return p.getHours()},HH:function(p){return y(p.getHours())},m:function(p){return p.getMinutes()},mm:function(p){return y(p.getMinutes())},s:function(p){return p.getSeconds()},ss:function(p){return y(p.getSeconds())},S:function(p){return Math.round(p.getMilliseconds()/100)},SS:function(p){return y(Math.round(p.getMilliseconds()/10),2)},SSS:function(p){return y(p.getMilliseconds(),3)},a:function(p,S){return p.getHours()<12?S.amPm[0]:S.amPm[1]},A:function(p,S){return p.getHours()<12?S.amPm[0].toUpperCase():S.amPm[1].toUpperCase()},ZZ:function(p){var S=p.getTimezoneOffset();return(S>0?"-":"+")+y(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4)}},x={d:[l,function(C,p){C.day=p}],M:[l,function(C,p){C.month=p-1}],yy:[l,function(C,p){var S=new Date,P=+(""+S.getFullYear()).substr(0,2);C.year=""+(p>68?P-1:P)+p}],h:[l,function(C,p){C.hour=p}],m:[l,function(C,p){C.minute=p}],s:[l,function(C,p){C.second=p}],yyyy:[i,function(C,p){C.year=p}],S:[/\d/,function(C,p){C.millisecond=p*100}],SS:[/\d{2}/,function(C,p){C.millisecond=p*10}],SSS:[n,function(C,p){C.millisecond=p}],D:[l,c],ddd:[o,c],MMM:[o,f("monthNamesShort")],MMMM:[o,f("monthNames")],a:[o,function(C,p,S){var P=p.toLowerCase();P===S.amPm[0]?C.isPm=!1:P===S.amPm[1]&&(C.isPm=!0)}],ZZ:[/[\+\-]\d\d:?\d\d/,function(C,p){var S=(p+"").match(/([\+\-]|\d\d)/gi),P;S&&(P=+(S[1]*60)+parseInt(S[2],10),C.timezoneOffset=S[0]==="+"?P:-P)}]};x.DD=x.DD,x.dddd=x.ddd,x.Do=x.dd=x.d,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,d.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"},d.format=function(C,p,S){var P=S||d.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");return p=d.masks[p]||p||d.masks.default,p.replace(e,function(O){return O in b?b[O](C,P):O.slice(1,O.length-1)})},d.parse=function(C,p,S){var P=S||d.i18n;if(typeof p!="string")throw new Error("Invalid format in fecha.parse");if(p=d.masks[p]||p,C.length>1e3)return!1;var O=!0,R={};if(p.replace(e,function(j){if(x[j]){var q=x[j],U=C.search(q[0]);~U?C.replace(q[0],function(A){return q[1](R,A,P),C=C.substr(U+A.length),A}):O=!1}return x[j]?"":j.slice(1,j.length-1)}),!O)return!1;var T=new Date;R.isPm===!0&&R.hour!=null&&+R.hour!=12?R.hour=+R.hour+12:R.isPm===!1&&+R.hour==12&&(R.hour=0);var B;return R.timezoneOffset!=null?(R.minute=+(R.minute||0)-+R.timezoneOffset,B=new Date(Date.UTC(R.year||T.getFullYear(),R.month||0,R.day||1,R.hour||0,R.minute||0,R.second||0,R.millisecond||0))):B=new Date(R.year||T.getFullYear(),R.month||0,R.day||1,R.hour||0,R.minute||0,R.second||0,R.millisecond||0),B},typeof v!="undefined"&&v.exports?v.exports=d:(s=function(){return d}.call(r,t,r,v),s!==void 0&&(v.exports=s))})()},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside:[capture].mousedown",value:e.handleClose,expression:"handleClose",arg:e.capture,modifiers:{mousedown:!0}},{name:"click-outside",rawName:"v-click-outside:[capture].touchstart",value:e.handleClose,expression:"handleClose",arg:e.capture,modifiers:{touchstart:!0}},{name:"click-outside",rawName:"v-click-outside:[capture]",value:e.handleClose,expression:"handleClose",arg:e.capture}],class:e.wrapperClasses},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"]},[e._t("default",function(){return[n("i-input",{key:e.forceInputRerender,ref:"input",class:[e.prefixCls+"-editor"],attrs:{"element-id":e.elementId,readonly:!e.editable||e.readonly,disabled:e.itemDisabled,size:e.size,placeholder:e.placeholder,value:e.visualValue,name:e.name},on:{"on-input-change":e.handleInputChange,"on-focus":e.handleFocus,"on-blur":e.handleBlur},nativeOn:{click:function(o){return e.handleFocus.apply(null,arguments)},keydown:function(o){return e.handleKeydown.apply(null,arguments)},mouseenter:function(o){return e.handleInputMouseenter.apply(null,arguments)},mouseleave:function(o){return e.handleInputMouseleave.apply(null,arguments)}}},[n("Icon",{attrs:{slot:"suffix",type:e.arrowType,custom:e.customArrowType,size:e.arrowSize},on:{click:e.handleIconClick},slot:"suffix"})],1)]})],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,style:e.dropdownStyle,attrs:{placement:e.placement,eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer},nativeOn:{click:function(o){return e.handleTransferClick.apply(null,arguments)}}},[n("div",[n(e.panel,e._b({ref:"pickerPanel",tag:"component",attrs:{visible:e.visible,showTime:e.type==="datetime"||e.type==="datetimerange",confirm:e.isConfirm,selectionMode:e.selectionMode,steps:e.steps,format:e.format,value:e.internalValue,"start-date":e.startDate,"split-panels":e.splitPanels,"show-week-numbers":e.showWeekNumbers,"picker-type":e.type,multiple:e.multiple,"focused-date":e.focusedDate,"time-picker-options":e.timePickerOptions},on:{"on-pick":e.onPick,"on-pick-clear":e.handleClear,"on-pick-success":e.onPickSuccess,"on-pick-click":function(o){e.disableClickOutSide=!0},"on-selection-mode-change":e.onSelectionModeChange}},"component",e.ownPickerProps,!1))],1)])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(159),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(422);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={Generator:t(412),addLabels:t(413)}},function(v,r){var t=864e5;function s(l,n){return new Date(l,n+1,0).getDate()}function a(l,n,i){return n===0&&i>50?l-1:n===11&&i<10?l+1:l}function d(l,n,i,o){n>11&&(n=0,l++);var c=new Date(l,n,i);o&&c.setDate(c.getDate()+4-(c.getDay()||7));var u=o?c.getFullYear():l,f=new Date(u,0,1),y=1+Math.round((c-f)/t);o||(y+=f.getDay());var m=Math.ceil(y/7);if(!o){var _=new Date(l,n,i),h=new Date(l+1,0,1),g=h.getDay();_.getTime()>=h.getTime()-t*g&&(m=1)}return m}function e(l,n,i){for(var o=this.lang||"en",c=this.onlyDays,u=typeof this.weekStart=="undefined"?1:this.weekStart,f=u===1,y=[],m=new Date(l,n,1),_=m.getDay()||(f?7:0),h=u-_,g=d(l,n,1,f),b=s(l,n),x=s(l,n-1),C,p,S,P=a(l,n,g),O={month:n,year:l,daysInMonth:b},R=0;R<7;R++){S=h;for(var T=0;T<8;T++){R>0&&T>0&&h++,h>b||h<1?(p=h>b?h-b:x+h,C=h>b?n+1:n-1):(p=h,C=n);var B=function(){return T===0?"weekLabel":R===0?"dayLabel":h<1?"prevMonth":h>b?"nextMonth":"monthDay"}(),j=S!==h&&R>0,q={desc:j?p:g,week:g,type:B,format:f?"ISO 8601":"US",date:j?new Date(Date.UTC(l,C,p)):!1,year:P,index:y.length};i&&(typeof i=="function"?q=i.call(O,q,o):i.forEach(function(U){q=U.call(O,q,o)})),c&&j?y.push(q):c||y.push(q)}R>0&&(g=d(l,C,p+1,f)),P=a(l,n,g)}return O.cells=y,O}v.exports=function(l){return e.bind(l)}},function(v,r,t){var s=t(414);function a(l){return l==null?!1:l.constructor===Array||l.constructor===Object}function d(l,n){for(var i in l)n[i]?a(l[i])&&d(l[i],n[i]):n[i]=l[i]}function e(l,n){var i=[s.classes[l.type]];return l.class?l.class=(typeof l.class=="string"?[l.class]:l.class).concat(i):l.class=i,l.type.indexOf("Label")>0&&(l.index==0&&s.weekPlaceholder?l.desc=s.weekPlaceholder:l.index<8?l.desc=s.columnNames[n][l.index]:l.index%8==0&&(l.desc=l.week)),l.date&&(l.monthName=s.monthNames[n][l.date.getMonth()]),this.monthName||(this.monthName=s.monthNames[n][this.month]),this.labels||(this.labels={monthNames:s.monthNames[n],columnNames:s.columnNames[n],classes:s.classes}),l}e.setLabels=function(l){d(l,s)},v.exports=e},function(v,r){v.exports={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"m\xE5ndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"l\xF6rdag",7:"s\xF6ndag"},pt:{0:"s",1:"segunda",2:"ter\xE7a",3:"quarta",4:"quinta",5:"sexta",6:"s\xE1bado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{class:[e.prefixCls+"-header"]},e._l(e.headerDays,function(i){return n("span",{key:i},[e._v(` + `),e.showArrow?n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e(),e._v(" "),e.showLoading?n("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-cascader-menu-item-loading"}):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.data&&e.data.length?n("ul",{class:[e.prefixCls+"-menu"]},e._l(e.data,function(i){return n("Casitem",{key:e.getKey(),class:i.class||"",style:i.style||{},attrs:{"prefix-cls":e.prefixCls,data:i,"tmp-item":e.tmpItem},nativeOn:{click:function(c){return c.stopPropagation(),e.handleClickItem(i)},mouseenter:function(c){return c.stopPropagation(),e.handleHoverItem(i)}}})}),1):e._e(),e.sublist&&e.sublist.length?n("Caspanel",{attrs:{"prefix-cls":e.prefixCls,data:e.sublist,disabled:e.disabled,trigger:e.trigger,"change-on-select":e.changeOnSelect}}):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}],class:e.classes},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"],on:{click:e.toggleOpen}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),e._t("default",function(){return[n("i-input",{ref:"input",attrs:{"element-id":e.elementId,readonly:!e.filterable,disabled:e.itemDisabled,value:e.displayInputRender,size:e.size,placeholder:e.inputPlaceholder},on:{"on-change":e.handleInput}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query==="",expression:"filterable && query === ''"}],class:[e.prefixCls+"-label"],on:{click:e.handleFocus}},[e._v(e._s(e.displayRender))]),e._v(" "),n("Icon",{directives:[{name:"show",rawName:"v-show",value:e.showCloseIcon,expression:"showCloseIcon"}],class:[e.prefixCls+"-arrow"],attrs:{type:"ios-close-circle"},nativeOn:{click:function(o){return o.stopPropagation(),e.clearSelect.apply(null,arguments)}}}),e._v(" "),n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})]})],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,attrs:{eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer}},[n("div",[n("Caspanel",{directives:[{name:"show",rawName:"v-show",value:!e.filterable||e.filterable&&e.query==="",expression:"!filterable || (filterable && query === '')"}],ref:"caspanel",attrs:{"prefix-cls":e.prefixCls,data:e.data,disabled:e.itemDisabled,"change-on-select":e.changeOnSelect,trigger:e.trigger}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query!==""&&e.querySelections.length,expression:"filterable && query !== '' && querySelections.length"}],class:[e.prefixCls+"-dropdown"]},[n("ul",{class:[e.selectPrefixCls+"-dropdown-list"]},e._l(e.querySelections,function(i,o){var c;return n("li",{class:[e.selectPrefixCls+"-item",(c={},c[e.selectPrefixCls+"-item-disabled"]=i.disabled,c)],domProps:{innerHTML:e._s(i.display)},on:{click:function(f){return e.handleSelectItem(o)}}})}),0)]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query!==""&&!e.querySelections.length||!e.data.length,expression:"(filterable && query !== '' && !querySelections.length) || !data.length"}],class:[e.prefixCls+"-not-found-tip"]},[n("li",[e._v(e._s(e.localeNotFoundText))])])],1)])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(375),a=l(s),d=t(379),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(139),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(378);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(140),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(377);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-cell-item"},[n("div",{staticClass:"ivu-cell-icon"},[e._t("icon")],2),e._v(" "),n("div",{staticClass:"ivu-cell-main"},[n("div",{staticClass:"ivu-cell-title"},[e._t("default",function(){return[e._v(e._s(e.title))]})],2),e._v(" "),n("div",{staticClass:"ivu-cell-label"},[e._t("label",function(){return[e._v(e._s(e.label))]})],2)]),e._v(" "),n("div",{staticClass:"ivu-cell-footer"},[n("span",{staticClass:"ivu-cell-extra"},[e._t("extra",function(){return[e._v(e._s(e.extra))]})],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.to?n("a",{staticClass:"ivu-cell-link",attrs:{href:e.linkUrl,target:e.target},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.handleClickItem(i,!1)},function(i){return i.ctrlKey?e.handleClickItem(i,!0):null},function(i){return i.metaKey?e.handleClickItem(i,!0):null}]}},[n("CellItem",{attrs:{title:e.title,label:e.label,extra:e.extra}},[e._t("icon",null,{slot:"icon"}),e._v(" "),e._t("default",null,{slot:"default"}),e._v(" "),e._t("extra",null,{slot:"extra"}),e._v(" "),e._t("label",null,{slot:"label"})],2)],1):n("div",{staticClass:"ivu-cell-link",on:{click:e.handleClickItem}},[n("CellItem",{attrs:{title:e.title,label:e.label,extra:e.extra}},[e._t("icon",null,{slot:"icon"}),e._v(" "),e._t("default",null,{slot:"default"}),e._v(" "),e._t("extra",null,{slot:"extra"}),e._v(" "),e._t("label",null,{slot:"label"})],2)],1),e._v(" "),e.to?n("div",{staticClass:"ivu-cell-arrow"},[e._t("arrow",function(){return[n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})]})],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(141),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(380);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-cell-group"},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(49),a=l(s),d=t(143),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{class:e.wrapClasses},[n("span",{class:e.checkboxClasses},[n("span",{class:e.innerClasses}),e._v(" "),e.group?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],class:e.inputClasses,attrs:{type:"checkbox",disabled:e.itemDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(i){var o=e.model,c=i.target,u=!!c.checked;if(Array.isArray(o)){var f=e.label,y=e._i(o,f);c.checked?y<0&&(e.model=o.concat([f])):y>-1&&(e.model=o.slice(0,y).concat(o.slice(y+1)))}else e.model=u},e.change],focus:e.onFocus,blur:e.onBlur}}):n("input",{class:e.inputClasses,attrs:{type:"checkbox",disabled:e.itemDisabled,name:e.name},domProps:{checked:e.currentValue},on:{change:e.change,focus:e.onFocus,blur:e.onBlur}})]),e._v(" "),e._t("default",function(){return[e.showSlot?n("span",[e._v(e._s(e.label))]):e._e()]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(385),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(145),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(387);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){for(var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:32,a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",d=a.length,e="",l=0;l3?0:(p-p%10!==10)*p%10]}};var b={D:function(p){return p.getDay()},DD:function(p){return y(p.getDay())},Do:function(p,S){return S.DoFn(p.getDate())},d:function(p){return p.getDate()},dd:function(p){return y(p.getDate())},ddd:function(p,S){return S.dayNamesShort[p.getDay()]},dddd:function(p,S){return S.dayNames[p.getDay()]},M:function(p){return p.getMonth()+1},MM:function(p){return y(p.getMonth()+1)},MMM:function(p,S){return S.monthNamesShort[p.getMonth()]},MMMM:function(p,S){return S.monthNames[p.getMonth()]},yy:function(p){return String(p.getFullYear()).substr(2)},yyyy:function(p){return p.getFullYear()},h:function(p){return p.getHours()%12||12},hh:function(p){return y(p.getHours()%12||12)},H:function(p){return p.getHours()},HH:function(p){return y(p.getHours())},m:function(p){return p.getMinutes()},mm:function(p){return y(p.getMinutes())},s:function(p){return p.getSeconds()},ss:function(p){return y(p.getSeconds())},S:function(p){return Math.round(p.getMilliseconds()/100)},SS:function(p){return y(Math.round(p.getMilliseconds()/10),2)},SSS:function(p){return y(p.getMilliseconds(),3)},a:function(p,S){return p.getHours()<12?S.amPm[0]:S.amPm[1]},A:function(p,S){return p.getHours()<12?S.amPm[0].toUpperCase():S.amPm[1].toUpperCase()},ZZ:function(p){var S=p.getTimezoneOffset();return(S>0?"-":"+")+y(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4)}},x={d:[l,function(C,p){C.day=p}],M:[l,function(C,p){C.month=p-1}],yy:[l,function(C,p){var S=new Date,P=+(""+S.getFullYear()).substr(0,2);C.year=""+(p>68?P-1:P)+p}],h:[l,function(C,p){C.hour=p}],m:[l,function(C,p){C.minute=p}],s:[l,function(C,p){C.second=p}],yyyy:[i,function(C,p){C.year=p}],S:[/\d/,function(C,p){C.millisecond=p*100}],SS:[/\d{2}/,function(C,p){C.millisecond=p*10}],SSS:[n,function(C,p){C.millisecond=p}],D:[l,c],ddd:[o,c],MMM:[o,f("monthNamesShort")],MMMM:[o,f("monthNames")],a:[o,function(C,p,S){var P=p.toLowerCase();P===S.amPm[0]?C.isPm=!1:P===S.amPm[1]&&(C.isPm=!0)}],ZZ:[/[\+\-]\d\d:?\d\d/,function(C,p){var S=(p+"").match(/([\+\-]|\d\d)/gi),P;S&&(P=+(S[1]*60)+parseInt(S[2],10),C.timezoneOffset=S[0]==="+"?P:-P)}]};x.DD=x.DD,x.dddd=x.ddd,x.Do=x.dd=x.d,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,d.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"},d.format=function(C,p,S){var P=S||d.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");return p=d.masks[p]||p||d.masks.default,p.replace(e,function(O){return O in b?b[O](C,P):O.slice(1,O.length-1)})},d.parse=function(C,p,S){var P=S||d.i18n;if(typeof p!="string")throw new Error("Invalid format in fecha.parse");if(p=d.masks[p]||p,C.length>1e3)return!1;var O=!0,A={};if(p.replace(e,function(j){if(x[j]){var q=x[j],U=C.search(q[0]);~U?C.replace(q[0],function(R){return q[1](A,R,P),C=C.substr(U+R.length),R}):O=!1}return x[j]?"":j.slice(1,j.length-1)}),!O)return!1;var T=new Date;A.isPm===!0&&A.hour!=null&&+A.hour!=12?A.hour=+A.hour+12:A.isPm===!1&&+A.hour==12&&(A.hour=0);var B;return A.timezoneOffset!=null?(A.minute=+(A.minute||0)-+A.timezoneOffset,B=new Date(Date.UTC(A.year||T.getFullYear(),A.month||0,A.day||1,A.hour||0,A.minute||0,A.second||0,A.millisecond||0))):B=new Date(A.year||T.getFullYear(),A.month||0,A.day||1,A.hour||0,A.minute||0,A.second||0,A.millisecond||0),B},typeof v!="undefined"&&v.exports?v.exports=d:(s=function(){return d}.call(r,t,r,v),s!==void 0&&(v.exports=s))})()},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside:[capture].mousedown",value:e.handleClose,expression:"handleClose",arg:e.capture,modifiers:{mousedown:!0}},{name:"click-outside",rawName:"v-click-outside:[capture].touchstart",value:e.handleClose,expression:"handleClose",arg:e.capture,modifiers:{touchstart:!0}},{name:"click-outside",rawName:"v-click-outside:[capture]",value:e.handleClose,expression:"handleClose",arg:e.capture}],class:e.wrapperClasses},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"]},[e._t("default",function(){return[n("i-input",{key:e.forceInputRerender,ref:"input",class:[e.prefixCls+"-editor"],attrs:{"element-id":e.elementId,readonly:!e.editable||e.readonly,disabled:e.itemDisabled,size:e.size,placeholder:e.placeholder,value:e.visualValue,name:e.name},on:{"on-input-change":e.handleInputChange,"on-focus":e.handleFocus,"on-blur":e.handleBlur},nativeOn:{click:function(o){return e.handleFocus.apply(null,arguments)},keydown:function(o){return e.handleKeydown.apply(null,arguments)},mouseenter:function(o){return e.handleInputMouseenter.apply(null,arguments)},mouseleave:function(o){return e.handleInputMouseleave.apply(null,arguments)}}},[n("Icon",{attrs:{slot:"suffix",type:e.arrowType,custom:e.customArrowType,size:e.arrowSize},on:{click:e.handleIconClick},slot:"suffix"})],1)]})],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,style:e.dropdownStyle,attrs:{placement:e.placement,eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer},nativeOn:{click:function(o){return e.handleTransferClick.apply(null,arguments)}}},[n("div",[n(e.panel,e._b({ref:"pickerPanel",tag:"component",attrs:{visible:e.visible,showTime:e.type==="datetime"||e.type==="datetimerange",confirm:e.isConfirm,selectionMode:e.selectionMode,steps:e.steps,format:e.format,value:e.internalValue,"start-date":e.startDate,"split-panels":e.splitPanels,"show-week-numbers":e.showWeekNumbers,"picker-type":e.type,multiple:e.multiple,"focused-date":e.focusedDate,"time-picker-options":e.timePickerOptions},on:{"on-pick":e.onPick,"on-pick-clear":e.handleClear,"on-pick-success":e.onPickSuccess,"on-pick-click":function(o){e.disableClickOutSide=!0},"on-selection-mode-change":e.onSelectionModeChange}},"component",e.ownPickerProps,!1))],1)])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(159),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(422);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={Generator:t(412),addLabels:t(413)}},function(v,r){var t=864e5;function s(l,n){return new Date(l,n+1,0).getDate()}function a(l,n,i){return n===0&&i>50?l-1:n===11&&i<10?l+1:l}function d(l,n,i,o){n>11&&(n=0,l++);var c=new Date(l,n,i);o&&c.setDate(c.getDate()+4-(c.getDay()||7));var u=o?c.getFullYear():l,f=new Date(u,0,1),y=1+Math.round((c-f)/t);o||(y+=f.getDay());var m=Math.ceil(y/7);if(!o){var _=new Date(l,n,i),h=new Date(l+1,0,1),g=h.getDay();_.getTime()>=h.getTime()-t*g&&(m=1)}return m}function e(l,n,i){for(var o=this.lang||"en",c=this.onlyDays,u=typeof this.weekStart=="undefined"?1:this.weekStart,f=u===1,y=[],m=new Date(l,n,1),_=m.getDay()||(f?7:0),h=u-_,g=d(l,n,1,f),b=s(l,n),x=s(l,n-1),C,p,S,P=a(l,n,g),O={month:n,year:l,daysInMonth:b},A=0;A<7;A++){S=h;for(var T=0;T<8;T++){A>0&&T>0&&h++,h>b||h<1?(p=h>b?h-b:x+h,C=h>b?n+1:n-1):(p=h,C=n);var B=function(){return T===0?"weekLabel":A===0?"dayLabel":h<1?"prevMonth":h>b?"nextMonth":"monthDay"}(),j=S!==h&&A>0,q={desc:j?p:g,week:g,type:B,format:f?"ISO 8601":"US",date:j?new Date(Date.UTC(l,C,p)):!1,year:P,index:y.length};i&&(typeof i=="function"?q=i.call(O,q,o):i.forEach(function(U){q=U.call(O,q,o)})),c&&j?y.push(q):c||y.push(q)}A>0&&(g=d(l,C,p+1,f)),P=a(l,n,g)}return O.cells=y,O}v.exports=function(l){return e.bind(l)}},function(v,r,t){var s=t(414);function a(l){return l==null?!1:l.constructor===Array||l.constructor===Object}function d(l,n){for(var i in l)n[i]?a(l[i])&&d(l[i],n[i]):n[i]=l[i]}function e(l,n){var i=[s.classes[l.type]];return l.class?l.class=(typeof l.class=="string"?[l.class]:l.class).concat(i):l.class=i,l.type.indexOf("Label")>0&&(l.index==0&&s.weekPlaceholder?l.desc=s.weekPlaceholder:l.index<8?l.desc=s.columnNames[n][l.index]:l.index%8==0&&(l.desc=l.week)),l.date&&(l.monthName=s.monthNames[n][l.date.getMonth()]),this.monthName||(this.monthName=s.monthNames[n][this.month]),this.labels||(this.labels={monthNames:s.monthNames[n],columnNames:s.columnNames[n],classes:s.classes}),l}e.setLabels=function(l){d(l,s)},v.exports=e},function(v,r){v.exports={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"m\xE5ndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"l\xF6rdag",7:"s\xF6ndag"},pt:{0:"s",1:"segunda",2:"ter\xE7a",3:"quarta",4:"quinta",5:"sexta",6:"s\xE1bado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{class:[e.prefixCls+"-header"]},e._l(e.headerDays,function(i){return n("span",{key:i},[e._v(` `+e._s(i)+` `)])}),0),e._v(" "),e._l(e.cells,function(i,o){return n("span",{key:String(i.date)+o,class:e.getCellCls(i),on:{click:function(u){return e.handleClick(i,u)},mouseenter:function(u){return e.handleMouseMove(i)}}},[n("em",[e._v(e._s(i.desc))])])})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},e._l(e.cells,function(i){return n("span",{class:e.getCellCls(i),on:{click:function(c){return e.handleClick(i,c)},mouseenter:function(c){return e.handleMouseMove(i)}}},[n("em",[e._v(e._s(i.date.getFullYear()))])])}),0)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},e._l(e.cells,function(i){return n("span",{class:e.getCellCls(i),on:{click:function(c){return e.handleClick(i,c)},mouseenter:function(c){return e.handleMouseMove(i)}}},[n("em",[e._v(e._s(i.text))])])}),0)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{ref:"hours",class:[e.prefixCls+"-list"]},[n("ul",{class:[e.prefixCls+"-ul"]},e._l(e.hoursList,function(i){return n("li",{directives:[{name:"show",rawName:"v-show",value:!i.hide,expression:"!item.hide"}],class:e.getCellCls(i),on:{click:function(c){return e.handleClick("hours",i)}}},[e._v(e._s(e.formatTime(i.text)))])}),0)]),e._v(" "),n("div",{ref:"minutes",class:[e.prefixCls+"-list"]},[n("ul",{class:[e.prefixCls+"-ul"]},e._l(e.minutesList,function(i){return n("li",{directives:[{name:"show",rawName:"v-show",value:!i.hide,expression:"!item.hide"}],class:e.getCellCls(i),on:{click:function(c){return e.handleClick("minutes",i)}}},[e._v(e._s(e.formatTime(i.text)))])}),0)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",class:[e.prefixCls+"-list"]},[n("ul",{class:[e.prefixCls+"-ul"]},e._l(e.secondsList,function(i){return n("li",{directives:[{name:"show",rawName:"v-show",value:!i.hide,expression:"!item.hide"}],class:e.getCellCls(i),on:{click:function(c){return e.handleClick("seconds",i)}}},[e._v(e._s(e.formatTime(i.text)))])}),0)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-confirm"],on:{"!keydown":function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"tab",9,o.key,"Tab")?null:e.handleTab.apply(null,arguments)}}},[e.showTime?n("i-button",{class:e.timeClasses,attrs:{size:"small",type:"text",disabled:e.timeDisabled},on:{click:e.handleToggleTime}},[e._v(` `+e._s(e.labels.time)+` @@ -49,17 +49,17 @@ import{c as Lt,g as $t}from"./@babel.49d8906a.js";import{r as Bt}from"./vue.c448 `+e._s(e.labels.clear)+` `)]),e._v(" "),n("i-button",{attrs:{size:"small",type:"primary"},nativeOn:{click:function(o){return e.handleSuccess.apply(null,arguments)},keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleSuccess.apply(null,arguments)}}},[e._v(` `+e._s(e.labels.ok)+` - `)])],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-body-wrapper"],on:{mousedown:function(o){o.preventDefault()}}},[n("div",{class:[e.prefixCls+"-body"]},[e.showDate?n("div",{class:[e.timePrefixCls+"-header"]},[e._v(e._s(e.visibleDate))]):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-content"]},[n("time-spinner",{ref:"timeSpinner",attrs:{"show-seconds":e.showSeconds,steps:e.steps,hours:e.timeSlots[0],minutes:e.timeSlots[1],seconds:e.timeSlots[2],"disabled-hours":e.disabledHMS.disabledHours,"disabled-minutes":e.disabledHMS.disabledMinutes,"disabled-seconds":e.disabledHMS.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),e.confirm?n("Confirm",{on:{"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.datePanelLabel?n("span",{directives:[{name:"show",rawName:"v-show",value:e.datePanelLabel.labels[0].type==="year"||e.currentView==="date",expression:"datePanelLabel.labels[0].type === 'year' || currentView === 'date'"}],class:[e.datePrefixCls+"-header-label"],on:{click:e.datePanelLabel.labels[0].handler}},[e._v(e._s(e.datePanelLabel.labels[0].label))]):e._e(),e._v(" "),e.datePanelLabel&&e.currentView==="date"?[e._v(e._s(e.datePanelLabel.separator))]:e._e(),e._v(" "),e.datePanelLabel?n("span",{directives:[{name:"show",rawName:"v-show",value:e.datePanelLabel.labels[1].type==="year"||e.currentView==="date",expression:"datePanelLabel.labels[1].type === 'year' || currentView === 'date'"}],class:[e.datePrefixCls+"-header-label"],on:{click:e.datePanelLabel.labels[1].handler}},[e._v(e._s(e.datePanelLabel.labels[1].label))]):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[e.shortcuts.length?n("div",{class:[e.prefixCls+"-sidebar"]},e._l(e.shortcuts,function(i){return n("div",{class:[e.prefixCls+"-shortcut"],on:{click:function(c){return e.handleShortcutClick(i)}}},[e._v(e._s(i.text))])}),0):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.changeYear(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),e.pickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.changeMonth(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.datePanelLabel,"current-view":e.pickerTable.split("-").shift(),"date-prefix-cls":e.datePrefixCls}}),e._v(" "),n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.changeYear(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),e.pickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.changeMonth(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),n("div",{class:[e.prefixCls+"-content"]},[e.currentView!=="time"?n(e.pickerTable,{ref:"pickerTable",tag:"component",attrs:{"table-date":e.panelDate,"show-week-numbers":e.showWeekNumbers,value:e.dates,"selection-mode":e.selectionMode,"disabled-date":e.disabledDate,"focused-date":e.focusedDate},on:{"on-pick":e.panelPickerHandlers,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isTime,expression:"isTime"}],class:[e.prefixCls+"-content"]},[e.currentView==="time"?n("time-picker",e._b({ref:"timePicker",attrs:{value:e.dates,format:e.format,"time-disabled":e.timeDisabled,"disabled-date":e.disabledDate,"focused-date":e.focusedDate},on:{"on-pick":e.handlePick,"on-pick-click":e.handlePickClick,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess,"on-pick-toggle-time":e.handleToggleTime}},"time-picker",e.timePickerOptions,!1)):e._e()],1),e._v(" "),e.confirm?n("Confirm",{attrs:{"show-time":e.showTime,"is-time":e.isTime},on:{"on-pick-toggle-time":e.handleToggleTime,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(174),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(425);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[n("div",{class:[e.prefixCls+"-body"]},[n("div",{class:[e.prefixCls+"-content",e.prefixCls+"-content-left"]},[n("div",{class:[e.timePrefixCls+"-header"]},[e.showDate?[e._v(e._s(e.leftDatePanelLabel))]:[e._v(e._s(e.t("i.datepicker.startTime")))]],2),e._v(" "),n("time-spinner",{ref:"timeSpinner",attrs:{steps:e.steps,"show-seconds":e.showSeconds,hours:e.value[0]&&e.dateStart.getHours(),minutes:e.value[0]&&e.dateStart.getMinutes(),seconds:e.value[0]&&e.dateStart.getSeconds(),"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleStartChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),n("div",{class:[e.prefixCls+"-content",e.prefixCls+"-content-right"]},[n("div",{class:[e.timePrefixCls+"-header"]},[e.showDate?[e._v(e._s(e.rightDatePanelLabel))]:[e._v(e._s(e.t("i.datepicker.endTime")))]],2),e._v(" "),n("time-spinner",{ref:"timeSpinnerEnd",attrs:{steps:e.steps,"show-seconds":e.showSeconds,hours:e.value[1]&&e.dateEnd.getHours(),minutes:e.value[1]&&e.dateEnd.getMinutes(),seconds:e.value[1]&&e.dateEnd.getSeconds(),"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleEndChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),e.confirm?n("Confirm",{on:{"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[e.shortcuts.length?n("div",{class:[e.prefixCls+"-sidebar"]},e._l(e.shortcuts,function(i){return n("div",{class:[e.prefixCls+"-shortcut"],on:{click:function(c){return e.handleShortcutClick(i)}}},[e._v(e._s(i.text))])}),0):e._e(),e._v(" "),n("div",{class:e.panelBodyClasses},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isTime,expression:"!isTime"}],class:[e.prefixCls+"-content",e.prefixCls+"-content-left"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.prevYear("left")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),e.leftPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.prevMonth("left")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.leftDatePanelLabel,"current-view":e.leftDatePanelView,"date-prefix-cls":e.datePrefixCls}}),e._v(" "),e.splitPanels||e.leftPickerTable!=="date-table"?n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.nextYear("left")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e(),e._v(" "),e.splitPanels&&e.leftPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.nextMonth("left")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),e.currentView!=="time"?n(e.leftPickerTable,{ref:"leftYearTable",tag:"component",attrs:{"table-date":e.leftPanelDate,"selection-mode":"range","disabled-date":e.disabledDate,"range-state":e.rangeState,"show-week-numbers":e.showWeekNumbers,value:e.preSelecting.left?[e.dates[0]]:e.dates,"focused-date":e.focusedDate},on:{"on-change-range":e.handleChangeRange,"on-pick":e.panelPickerHandlers.left,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isTime,expression:"!isTime"}],class:[e.prefixCls+"-content",e.prefixCls+"-content-right"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[e.splitPanels||e.rightPickerTable!=="date-table"?n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.prevYear("right")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),e.splitPanels&&e.rightPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.prevMonth("right")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.rightDatePanelLabel,"current-view":e.rightDatePanelView,"date-prefix-cls":e.datePrefixCls}}),e._v(" "),n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.nextYear("right")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),e.rightPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.nextMonth("right")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),e.currentView!=="time"?n(e.rightPickerTable,{ref:"rightYearTable",tag:"component",attrs:{"table-date":e.rightPanelDate,"selection-mode":"range","range-state":e.rangeState,"disabled-date":e.disabledDate,"show-week-numbers":e.showWeekNumbers,value:e.preSelecting.right?[e.dates[e.dates.length-1]]:e.dates,"focused-date":e.focusedDate},on:{"on-change-range":e.handleChangeRange,"on-pick":e.panelPickerHandlers.right,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isTime,expression:"isTime"}],class:[e.prefixCls+"-content"]},[e.currentView==="time"?n("time-picker",e._b({ref:"timePicker",attrs:{value:e.dates,format:e.format,"time-disabled":e.timeDisabled},on:{"on-pick":e.handleRangePick,"on-pick-click":e.handlePickClick,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess,"on-pick-toggle-time":e.handleToggleTime}},"time-picker",e.timePickerOptions,!1)):e._e()],1),e._v(" "),e.confirm?n("Confirm",{attrs:{"show-time":e.showTime,"is-time":e.isTime,"time-disabled":e.timeDisabled},on:{"on-pick-toggle-time":e.handleToggleTime,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(427),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(177),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(428);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.hasSlot?n("span",{class:e.slotClasses},[e._t("default")],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(430),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(178),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(431);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":e.transfer}},[n("transition",{attrs:{name:"fade"}},[e.mask?n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.maskClasses,style:e.maskStyle,on:{click:e.handleMask}}):e._e()]),e._v(" "),n("div",{class:e.wrapClasses,on:{click:e.handleWrapClick}},[n("transition",{attrs:{name:e.transitionName}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.mainStyles},[n("div",{ref:"content",class:e.contentClasses},[e.closable?n("a",{staticClass:"ivu-drawer-close",on:{click:e.close}},[e._t("close",function(){return[n("Icon",{attrs:{type:"ios-close"}})]})],2):e._e(),e._v(" "),e.showHead?n("div",{class:[e.prefixCls+"-header"]},[e._t("header",function(){return[n("div",{class:[e.prefixCls+"-header-inner"]},[e._v(e._s(e.title))])]})],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"],style:e.styles},[e._t("default")],2)]),e._v(" "),e.draggable&&(e.placement==="left"||e.placement==="right")?n("div",{staticClass:"ivu-drawer-drag",class:"ivu-drawer-drag-"+e.placement,on:{mousedown:e.handleTriggerMousedown}},[e._t("trigger",function(){return[n("div",{staticClass:"ivu-drawer-drag-move-trigger"},[n("div",{staticClass:"ivu-drawer-drag-move-trigger-point"},[n("i"),n("i"),n("i"),n("i"),n("i")])])]})],2):e._e()])])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(61),a=i(s),d=t(62),e=i(d),l=t(435),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}a.default.Menu=e.default,a.default.Item=n.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickoutside,expression:"onClickoutside"}],class:[e.prefixCls],on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:e.relClasses,on:{click:e.handleClick,contextmenu:function(o){return o.preventDefault(),e.handleRightClick.apply(null,arguments)}}},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.currentVisible,expression:"currentVisible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,attrs:{placement:e.placement,eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer},nativeOn:{mouseenter:function(o){return e.handleMouseenter.apply(null,arguments)},mouseleave:function(o){return e.handleMouseleave.apply(null,arguments)}}},[e._t("list")],2)],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{staticClass:"ivu-dropdown-menu"},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(181),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(436);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes,on:{click:e.handleClick}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(182),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(440),a=l(s),d=t(449),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(184),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(448);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){t(79),t(36),t(46),t(442),t(446),t(447),v.exports=t(5).Promise},function(v,r,t){var s=t(42),a=t(9),d=t(25),e=t(56),l=t(7),n=t(19),i=t(43),o=t(88),c=t(51),u=t(186),f=t(187).set,y=t(444)(),m=t(89),_=t(188),h=t(445),g=t(189),b="Promise",x=a.TypeError,C=a.process,p=C&&C.versions,S=p&&p.v8||"",P=a[b],O=e(C)=="process",R=function(){},T,B,j,q,U=B=m.f,A=!!function(){try{var X=P.resolve(1),N=(X.constructor={})[t(10)("species")]=function(Y){Y(R,R)};return(O||typeof PromiseRejectionEvent=="function")&&X.then(R)instanceof N&&S.indexOf("6.6")!==0&&h.indexOf("Chrome/66")===-1}catch{}}(),V=function(X){var N;return n(X)&&typeof(N=X.then)=="function"?N:!1},E=function(X,N){if(!X._n){X._n=!0;var Y=X._c;y(function(){for(var w=X._v,F=X._s==1,H=0,te=function(ie){var ue=F?ie.ok:ie.fail,ee=ie.resolve,he=ie.reject,ae=ie.domain,M,k,$;try{ue?(F||(X._h==2&&z(X),X._h=1),ue===!0?M=w:(ae&&ae.enter(),M=ue(w),ae&&(ae.exit(),$=!0)),M===ie.promise?he(x("Promise-chain cycle")):(k=V(M))?k.call(M,ee,he):ee(M)):he(w)}catch(D){ae&&!$&&ae.exit(),he(D)}};Y.length>H;)te(Y[H++]);X._c=[],X._n=!1,N&&!X._h&&W(X)})}},W=function(X){f.call(a,function(){var N=X._v,Y=G(X),w,F,H;if(Y&&(w=_(function(){O?C.emit("unhandledRejection",N,X):(F=a.onunhandledrejection)?F({promise:X,reason:N}):(H=a.console)&&H.error&&H.error("Unhandled promise rejection",N)}),X._h=O||G(X)?2:1),X._a=void 0,Y&&w.e)throw w.v})},G=function(X){return X._h!==1&&(X._a||X._c).length===0},z=function(X){f.call(a,function(){var N;O?C.emit("rejectionHandled",X):(N=a.onrejectionhandled)&&N({promise:X,reason:X._v})})},Z=function(X){var N=this;N._d||(N._d=!0,N=N._w||N,N._v=X,N._s=2,N._a||(N._a=N._c.slice()),E(N,!0))},re=function(X){var N=this,Y;if(!N._d){N._d=!0,N=N._w||N;try{if(N===X)throw x("Promise can't be resolved itself");(Y=V(X))?y(function(){var w={_w:N,_d:!1};try{Y.call(X,d(re,w,1),d(Z,w,1))}catch(F){Z.call(w,F)}}):(N._v=X,N._s=1,E(N,!1))}catch(w){Z.call({_w:N,_d:!1},w)}}};A||(P=function(N){o(this,P,b,"_h"),i(N),T.call(this);try{N(d(re,this,1),d(Z,this,1))}catch(Y){Z.call(this,Y)}},T=function(N){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},T.prototype=t(90)(P.prototype,{then:function(N,Y){var w=U(u(this,P));return w.ok=typeof N=="function"?N:!0,w.fail=typeof Y=="function"&&Y,w.domain=O?C.domain:void 0,this._c.push(w),this._a&&this._a.push(w),this._s&&E(this,!1),w.promise},catch:function(X){return this.then(void 0,X)}}),j=function(){var X=new T;this.promise=X,this.resolve=d(re,X,1),this.reject=d(Z,X,1)},m.f=U=function(X){return X===P||X===q?new j(X):B(X)}),l(l.G+l.W+l.F*!A,{Promise:P}),t(47)(P,b),t(190)(b),q=t(5)[b],l(l.S+l.F*!A,b,{reject:function(N){var Y=U(this),w=Y.reject;return w(N),Y.promise}}),l(l.S+l.F*(s||!A),b,{resolve:function(N){return g(s&&this===q?P:this,N)}}),l(l.S+l.F*!(A&&t(116)(function(X){P.all(X).catch(R)})),b,{all:function(N){var Y=this,w=U(Y),F=w.resolve,H=w.reject,te=_(function(){var ie=[],ue=0,ee=1;c(N,!1,function(he){var ae=ue++,M=!1;ie.push(void 0),ee++,Y.resolve(he).then(function(k){M||(M=!0,ie[ae]=k,--ee||F(ie))},H)}),--ee||F(ie)});return te.e&&H(te.v),w.promise},race:function(N){var Y=this,w=U(Y),F=w.reject,H=_(function(){c(N,!1,function(te){Y.resolve(te).then(w.resolve,F)})});return H.e&&F(H.v),w.promise}})},function(v,r){v.exports=function(t,s,a){var d=a===void 0;switch(s.length){case 0:return d?t():t.call(a);case 1:return d?t(s[0]):t.call(a,s[0]);case 2:return d?t(s[0],s[1]):t.call(a,s[0],s[1]);case 3:return d?t(s[0],s[1],s[2]):t.call(a,s[0],s[1],s[2]);case 4:return d?t(s[0],s[1],s[2],s[3]):t.call(a,s[0],s[1],s[2],s[3])}return t.apply(a,s)}},function(v,r,t){var s=t(9),a=t(187).set,d=s.MutationObserver||s.WebKitMutationObserver,e=s.process,l=s.Promise,n=t(41)(e)=="process";v.exports=function(){var i,o,c,u=function(){var _,h;for(n&&(_=e.domain)&&_.exit();i;){h=i.fn,i=i.next;try{h()}catch(g){throw i?c():o=void 0,g}}o=void 0,_&&_.enter()};if(n)c=function(){e.nextTick(u)};else if(d&&!(s.navigator&&s.navigator.standalone)){var f=!0,y=document.createTextNode("");new d(u).observe(y,{characterData:!0}),c=function(){y.data=f=!f}}else if(l&&l.resolve){var m=l.resolve(void 0);c=function(){m.then(u)}}else c=function(){a.call(s,u)};return function(_){var h={fn:_,next:void 0};o&&(o.next=h),i||(i=h,c()),o=h}}},function(v,r,t){var s=t(9),a=s.navigator;v.exports=a&&a.userAgent||""},function(v,r,t){var s=t(7),a=t(5),d=t(9),e=t(186),l=t(189);s(s.P+s.R,"Promise",{finally:function(n){var i=e(this,a.Promise||d.Promise),o=typeof n=="function";return this.then(o?function(c){return l(i,n()).then(function(){return c})}:n,o?function(c){return l(i,n()).then(function(){throw c})}:n)}})},function(v,r,t){var s=t(7),a=t(89),d=t(188);s(s.S,"Promise",{try:function(e){var l=a.f(this),n=d(e);return(n.e?l.reject:l.resolve)(n.v),l.promise}})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("form",{class:e.classes,attrs:{autocomplete:e.autocomplete}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(191),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(453);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),function(s){function a(){return a=Object.assign||function(D){for(var I=1;I=le)return me;switch(me){case"%s":return String(I[J++]);case"%d":return Number(I[J++]);case"%j":try{return JSON.stringify(I[J++])}catch{return"[Circular]"}break;default:return me}});return fe}return se}function _(D){return D==="string"||D==="url"||D==="hex"||D==="email"||D==="date"||D==="pattern"}function h(D,I){return!!(D==null||I==="array"&&Array.isArray(D)&&!D.length||_(I)&&typeof D=="string"&&!D)}function g(D,I,K){var J=[],se=0,le=D.length;function fe(me){J.push.apply(J,me),se++,se===le&&K(J)}D.forEach(function(me){I(me,fe)})}function b(D,I,K){var J=0,se=D.length;function le(fe){if(fe&&fe.length){K(fe);return}var me=J;J=J+1,me()\[\]\\.,;:\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},B={integer:function(I){return B.number(I)&&parseInt(I,10)===I},float:function(I){return B.number(I)&&!B.integer(I)},array:function(I){return Array.isArray(I)},regexp:function(I){if(I instanceof RegExp)return!0;try{return!!new RegExp(I)}catch{return!1}},date:function(I){return typeof I.getTime=="function"&&typeof I.getMonth=="function"&&typeof I.getYear=="function"&&!isNaN(I.getTime())},number:function(I){return isNaN(I)?!1:typeof I=="number"},object:function(I){return typeof I=="object"&&!B.array(I)},method:function(I){return typeof I=="function"},email:function(I){return typeof I=="string"&&!!I.match(T.email)&&I.length<255},url:function(I){return typeof I=="string"&&!!I.match(T.url)},hex:function(I){return typeof I=="string"&&!!I.match(T.hex)}};function j(D,I,K,J,se){if(D.required&&I===void 0){O(D,I,K,J,se);return}var le=["integer","float","array","regexp","object","method","email","number","date","url","hex"],fe=D.type;le.indexOf(fe)>-1?B[fe](I)||J.push(m(se.messages.types[fe],D.fullField,D.type)):fe&&typeof I!==D.type&&J.push(m(se.messages.types[fe],D.fullField,D.type))}function q(D,I,K,J,se){var le=typeof D.len=="number",fe=typeof D.min=="number",me=typeof D.max=="number",pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ge=I,Me=null,we=typeof I=="number",Le=typeof I=="string",Ee=Array.isArray(I);if(we?Me="number":Le?Me="string":Ee&&(Me="array"),!Me)return!1;Ee&&(ge=I.length),Le&&(ge=I.replace(pe,"_").length),le?ge!==D.len&&J.push(m(se.messages[Me].len,D.fullField,D.len)):fe&&!me&&geD.max?J.push(m(se.messages[Me].max,D.fullField,D.max)):fe&&me&&(geD.max)&&J.push(m(se.messages[Me].range,D.fullField,D.min,D.max))}var U="enum";function A(D,I,K,J,se){D[U]=Array.isArray(D[U])?D[U]:[],D[U].indexOf(I)===-1&&J.push(m(se.messages[U],D.fullField,D[U].join(", ")))}function V(D,I,K,J,se){if(D.pattern){if(D.pattern instanceof RegExp)D.pattern.lastIndex=0,D.pattern.test(I)||J.push(m(se.messages.pattern.mismatch,D.fullField,I,D.pattern));else if(typeof D.pattern=="string"){var le=new RegExp(D.pattern);le.test(I)||J.push(m(se.messages.pattern.mismatch,D.fullField,I,D.pattern))}}}var E={required:O,whitespace:R,type:j,range:q,enum:A,pattern:V};function W(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I,"string")&&!D.required)return K();E.required(D,I,J,le,se,"string"),h(I,"string")||(E.type(D,I,J,le,se),E.range(D,I,J,le,se),E.pattern(D,I,J,le,se),D.whitespace===!0&&E.whitespace(D,I,J,le,se))}K(le)}function G(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se),I!==void 0&&E.type(D,I,J,le,se)}K(le)}function z(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(I===""&&(I=void 0),h(I)&&!D.required)return K();E.required(D,I,J,le,se),I!==void 0&&(E.type(D,I,J,le,se),E.range(D,I,J,le,se))}K(le)}function Z(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se),I!==void 0&&E.type(D,I,J,le,se)}K(le)}function re(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se),h(I)||E.type(D,I,J,le,se)}K(le)}function X(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se),I!==void 0&&(E.type(D,I,J,le,se),E.range(D,I,J,le,se))}K(le)}function N(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se),I!==void 0&&(E.type(D,I,J,le,se),E.range(D,I,J,le,se))}K(le)}function Y(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(I==null&&!D.required)return K();E.required(D,I,J,le,se,"array"),I!=null&&(E.type(D,I,J,le,se),E.range(D,I,J,le,se))}K(le)}function w(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se),I!==void 0&&E.type(D,I,J,le,se)}K(le)}var F="enum";function H(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se),I!==void 0&&E[F](D,I,J,le,se)}K(le)}function te(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I,"string")&&!D.required)return K();E.required(D,I,J,le,se),h(I,"string")||E.pattern(D,I,J,le,se)}K(le)}function ie(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I,"date")&&!D.required)return K();if(E.required(D,I,J,le,se),!h(I,"date")){var me;I instanceof Date?me=I:me=new Date(I),E.type(D,me,J,le,se),me&&E.range(D,me.getTime(),J,le,se)}}K(le)}function ue(D,I,K,J,se){var le=[],fe=Array.isArray(I)?"array":typeof I;E.required(D,I,J,le,se,fe),K(le)}function ee(D,I,K,J,se){var le=D.type,fe=[],me=D.required||!D.required&&J.hasOwnProperty(D.field);if(me){if(h(I,le)&&!D.required)return K();E.required(D,I,J,fe,se,le),h(I,le)||E.type(D,I,J,fe,se)}K(fe)}function he(D,I,K,J,se){var le=[],fe=D.required||!D.required&&J.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,J,le,se)}K(le)}var ae={string:W,method:G,number:z,boolean:Z,regexp:re,integer:X,float:N,array:Y,object:w,enum:H,pattern:te,date:ie,url:ee,hex:ee,email:ee,required:ue,any:he};function M(){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 I=JSON.parse(JSON.stringify(this));return I.clone=this.clone,I}}}var k=M();function $(D){this.rules=null,this._messages=k,this.define(D)}$.prototype={messages:function(I){return I&&(this._messages=P(M(),I)),this._messages},define:function(I){if(!I)throw new Error("Cannot configure a schema with no rules");if(typeof I!="object"||Array.isArray(I))throw new Error("Rules must be an object");this.rules={};var K,J;for(K in I)I.hasOwnProperty(K)&&(J=I[K],this.rules[K]=Array.isArray(J)?J:[J])},validate:function(I,K,J){var se=this;K===void 0&&(K={}),J===void 0&&(J=function(){});var le=I,fe=K,me=J;if(typeof fe=="function"&&(me=fe,fe={}),!this.rules||Object.keys(this.rules).length===0)return me&&me(),Promise.resolve();function pe(Ce){var Ae,Se=[],Ve={};function Ke(We){if(Array.isArray(We)){var ke;Se=(ke=Se).concat.apply(ke,We)}else Se.push(We)}for(Ae=0;Ae1)for(var b=1;b=T||ee<0||z&&he>=U}function w(){var ue=b();if(Y(ue))return F(ue);V=setTimeout(w,N(ue))}function F(ue){return V=void 0,Z&&j?re(ue):(j=q=void 0,A)}function H(){V!==void 0&&clearTimeout(V),W=0,j=E=q=V=void 0}function te(){return V===void 0?A:F(b())}function ie(){var ue=b(),ee=Y(ue);if(j=arguments,q=this,E=ue,ee){if(V===void 0)return X(E);if(z)return V=setTimeout(w,T),re(E)}return V===void 0&&(V=setTimeout(w,T)),A}return ie.cancel=H,ie.flush=te,ie}function C(R,T,B){var j=!0,q=!0;if(typeof R!="function")throw new TypeError(a);return p(B)&&(j="leading"in B?!!B.leading:j,q="trailing"in B?!!B.trailing:q),x(R,T,{leading:j,maxWait:T,trailing:q})}function p(R){var T=typeof R;return!!R&&(T=="object"||T=="function")}function S(R){return!!R&&typeof R=="object"}function P(R){return typeof R=="symbol"||S(R)&&_.call(R)==e}function O(R){if(typeof R=="number")return R;if(P(R))return d;if(p(R)){var T=typeof R.valueOf=="function"?R.valueOf():R;R=p(T)?T+"":T}if(typeof R!="string")return R===0?R:+R;R=R.replace(l,"");var B=i.test(R);return B||o.test(R)?c(R.slice(2),B?2:8):n.test(R)?d:+R}v.exports=C}).call(r,t(119))},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(198),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(468);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:"fade"}},[e.fullscreenVisible?n("div",{class:e.classes},[n("div",{class:e.mainClasses},[n("span",{class:e.dotClasses}),e._v(" "),n("div",{class:e.textClasses},[e._t("default")],2)])]):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapperClasses},[n("div",{class:e.spinnerClasses},[n("Spin",{attrs:{fix:""}},[n("Icon",{class:e.iconClasses,attrs:{type:"ios-loading",size:"18"}}),e._v(" "),e.text?n("div",{class:e.textClasses},[e._v(e._s(e.text))]):e._e()],1)],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses,staticStyle:{"touch-action":"none"}},[n("div",{ref:"scrollContainer",class:e.scrollContainerClasses,style:{height:e.height+"px"},on:{scroll:e.handleScroll,wheel:e.onWheel,touchstart:e.onPointerDown}},[n("div",{ref:"toploader",class:e.loaderClasses,style:{paddingTop:e.wrapperPadding.paddingTop}},[n("loader",{attrs:{text:e.localeLoadingText,active:e.showTopLoader}})],1),e._v(" "),n("div",{ref:"scrollContent",class:e.slotContainerClasses},[e._t("default")],2),e._v(" "),n("div",{ref:"bottomLoader",class:e.loaderClasses,style:{paddingBottom:e.wrapperPadding.paddingBottom}},[n("loader",{attrs:{text:e.localeLoadingText,active:e.showBottomLoader}})],1)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(471),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(200),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(474);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(201),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(473);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{class:e.barConClasses},e._m(0),0)])},a=[function(){var d=this,e=d.$createElement,l=d._self._c||e;return d._l(8,function(n){return l("i",{key:"trigger-"+n,class:d.prefix+"-bar"})})}];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"outerWrapper",class:e.wrapperClasses},[e.isHorizontal?n("div",{class:e.prefix+"-horizontal"},[n("div",{staticClass:"left-pane",class:e.paneClasses,style:{right:e.anotherOffset+"%"}},[e._t("left")],2),e._v(" "),n("div",{class:e.prefix+"-trigger-con",style:{left:e.offset+"%"},on:{mousedown:e.handleMousedown}},[e._t("trigger",function(){return[n("trigger",{attrs:{mode:"vertical"}})]})],2),e._v(" "),n("div",{staticClass:"right-pane",class:e.paneClasses,style:{left:e.offset+"%"}},[e._t("right")],2)]):n("div",{class:e.prefix+"-vertical"},[n("div",{staticClass:"top-pane",class:e.paneClasses,style:{bottom:e.anotherOffset+"%"}},[e._t("top")],2),e._v(" "),n("div",{class:e.prefix+"-trigger-con",style:{top:e.offset+"%"},on:{mousedown:e.handleMousedown}},[e._t("trigger",function(){return[n("trigger",{attrs:{mode:"horizontal"}})]})],2),e._v(" "),n("div",{staticClass:"bottom-pane",class:e.paneClasses,style:{top:e.offset+"%"}},[e._t("bottom")],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(476),a=f(s),d=t(193),e=f(d),l=t(203),n=f(l),i=t(155),o=f(i),c=t(182),u=f(c);function f(y){return y&&y.__esModule?y:{default:y}}a.default.Header=e.default,a.default.Sider=n.default,a.default.Content=o.default,a.default.Footer=u.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(202),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(477);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses,style:e.wrapStyles},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showZeroTrigger,expression:"showZeroTrigger"}],class:e.zeroWidthTriggerClasses,on:{click:e.toggleCollapse}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-menu"})]),e._v(" "),n("div",{class:e.childClasses},[e._t("default")],2),e._v(" "),e._t("trigger",function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBottomTrigger,expression:"showBottomTrigger"}],class:e.triggerClasses,style:{width:e.siderWidth+"px"},on:{click:e.toggleCollapse}},[n("i",{class:e.triggerIconClasses})])]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(480),a=i(s),d=t(482),e=i(d),l=t(484),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}a.default.Item=e.default,a.default.Item.Meta=n.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(205),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(481);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.header||e.$slots.header?n("div",{staticClass:"ivu-list-header"},[e._t("header",function(){return[e._v(e._s(e.header))]})],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-container"},[n("ul",{staticClass:"ivu-list-items"},[e._t("default")],2)]),e._v(" "),e.loading?n("Spin",{attrs:{fix:"",size:"large"}},[e._t("spin")],2):e._e(),e._v(" "),e.footer||e.$slots.footer?n("div",{staticClass:"ivu-list-footer"},[e._t("footer",function(){return[e._v(e._s(e.footer))]})],2):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(206),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(483);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{staticClass:"ivu-list-item",class:e.classes},[e.itemLayout==="vertical"&&e.$slots.extra?[n("div",{staticClass:"ivu-list-item-main"},[e._t("default"),e._v(" "),e.$slots.action?n("ul",{staticClass:"ivu-list-item-action"},[e._t("action")],2):e._e()],2),e._v(" "),n("div",{staticClass:"ivu-list-item-extra"},[e._t("extra")],2)]:[e._t("default"),e._v(" "),e.$slots.action?n("ul",{staticClass:"ivu-list-item-action"},[e._t("action")],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-item-extra"},[e._t("extra")],2)]],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(207),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(485);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-list-item-meta"},[e.avatar||e.$slots.avatar?n("div",{staticClass:"ivu-list-item-meta-avatar"},[e._t("avatar",function(){return[n("Avatar",{attrs:{src:e.avatar}})]})],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-item-meta-content"},[e.title||e.$slots.title?n("div",{staticClass:"ivu-list-item-meta-title"},[e._t("title",function(){return[e._v(e._s(e.title))]})],2):e._e(),e._v(" "),e.description||e.$slots.description?n("div",{staticClass:"ivu-list-item-meta-description"},[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e()])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(487),e=l(d);function l(g){return g&&g.__esModule?g:{default:g}}var n=void 0,i="primary",o=800,c="error",u=2,f=void 0;function y(){return n=n||e.default.newInstance({color:i,failedColor:c,height:u}),n}function m(g){var b=y();b.update(g)}function _(){var g=this;setTimeout(function(){(0,a.default)(this,g),m({show:!1}),setTimeout(function(){(0,a.default)(this,g),m({percent:0})}.bind(this),200)}.bind(this),o)}function h(){f&&(clearInterval(f),f=null)}r.default={start:function(){var b=this;if(!f){var x=0;m({percent:x,status:"success",show:!0}),f=setInterval(function(){(0,a.default)(this,b),x+=Math.floor(Math.random()*3+1),x>95&&h(),m({percent:x,status:"success",show:!0})}.bind(this),200)}},update:function(b){h(),m({percent:b,status:"success",show:!0})},finish:function(){h(),m({percent:100,status:"success",show:!0}),_()},error:function(){h(),m({percent:100,status:"error",show:!0}),_()},config:function(b){b.color&&(i=b.color),b.duration&&(o=b.duration),b.failedColor&&(c=b.failedColor),b.height&&(u=b.height)},destroy:function(){h();var b=y();n=null,b.destroy()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(488),e=i(d),l=t(17),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}e.default.newInstance=function(o){(0,a.default)(void 0,void 0);var c=o||{},u=new n.default({data:c,render:function(_){return _(e.default,{props:c})}}),f=u.$mount();document.body.appendChild(f.$el);var y=u.$children[0];return{update:function(_){"percent"in _&&(y.percent=_.percent),_.status&&(y.status=_.status),"show"in _&&(y.show=_.show)},component:y,destroy:function(){document.body.removeChild(document.getElementsByClassName("ivu-loading-bar")[0])}}}.bind(void 0),r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(208),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(489);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],class:e.classes,style:e.outerStyles},[n("div",{class:e.innerClasses,style:e.styles})])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(491),a=c(s),d=t(493),e=c(d),l=t(495),n=c(l),i=t(497),o=c(i);function c(u){return u&&u.__esModule?u:{default:u}}a.default.Group=e.default,a.default.Item=n.default,a.default.Sub=o.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(209),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(492);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:e.classes,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(210),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(494);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:[e.prefixCls+"-item-group"]},[n("div",{class:[e.prefixCls+"-item-group-title"],style:e.groupStyle},[e._v(e._s(e.title))]),e._v(" "),n("ul",[e._t("default")],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(211),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(496);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.to?n("a",{class:e.classes,style:e.itemStyle,attrs:{href:e.linkUrl,target:e.target},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.handleClickItem(i,!1)},function(i){return i.ctrlKey?e.handleClickItem(i,!0):null},function(i){return i.metaKey?e.handleClickItem(i,!0):null}]}},[e._t("default")],2):n("li",{class:e.classes,style:e.itemStyle,on:{click:function(o){return o.stopPropagation(),e.handleClickItem.apply(null,arguments)}}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(212),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(498);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes,on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:[e.prefixCls+"-submenu-title"],style:e.titleStyle,on:{click:function(o){return o.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._t("title"),e._v(" "),n("Icon",{class:[e.prefixCls+"-submenu-title-icon"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})],2),e._v(" "),e.mode==="vertical"?n("collapse-transition",[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"}],class:[e.prefixCls]},[e._t("default")],2)]):n("transition",{attrs:{name:"slide-up"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"}],ref:"drop",style:e.dropStyle,attrs:{placement:"bottom"}},[n("ul",{class:[e.prefixCls+"-drop-list"]},[e._t("default")],2)])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(213),a=d(s);function d(m){return m&&m.__esModule?m:{default:m}}var e="ivu-message",l="ivu-icon",n="ivu_message_key_",i={top:24,duration:1.5,followScrollY:!0},o=void 0,c=1,u={info:"ios-information-circle",success:"ios-checkmark-circle",warning:"ios-alert",error:"ios-close-circle",loading:"ios-loading"};function f(){return o=o||a.default.newInstance({prefixCls:e,styles:{top:String(i.top)+"px"},followScrollY:i.followScrollY}),o}function y(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.duration,h=arguments[2],g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:function(){},C=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,p=u[h],S=h==="loading"?" ivu-load-loop":"",P=f();return P.notice({name:""+n+c,duration:_,styles:{},transitionName:"move-up",content:` + `)])],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-body-wrapper"],on:{mousedown:function(o){o.preventDefault()}}},[n("div",{class:[e.prefixCls+"-body"]},[e.showDate?n("div",{class:[e.timePrefixCls+"-header"]},[e._v(e._s(e.visibleDate))]):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-content"]},[n("time-spinner",{ref:"timeSpinner",attrs:{"show-seconds":e.showSeconds,steps:e.steps,hours:e.timeSlots[0],minutes:e.timeSlots[1],seconds:e.timeSlots[2],"disabled-hours":e.disabledHMS.disabledHours,"disabled-minutes":e.disabledHMS.disabledMinutes,"disabled-seconds":e.disabledHMS.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),e.confirm?n("Confirm",{on:{"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.datePanelLabel?n("span",{directives:[{name:"show",rawName:"v-show",value:e.datePanelLabel.labels[0].type==="year"||e.currentView==="date",expression:"datePanelLabel.labels[0].type === 'year' || currentView === 'date'"}],class:[e.datePrefixCls+"-header-label"],on:{click:e.datePanelLabel.labels[0].handler}},[e._v(e._s(e.datePanelLabel.labels[0].label))]):e._e(),e._v(" "),e.datePanelLabel&&e.currentView==="date"?[e._v(e._s(e.datePanelLabel.separator))]:e._e(),e._v(" "),e.datePanelLabel?n("span",{directives:[{name:"show",rawName:"v-show",value:e.datePanelLabel.labels[1].type==="year"||e.currentView==="date",expression:"datePanelLabel.labels[1].type === 'year' || currentView === 'date'"}],class:[e.datePrefixCls+"-header-label"],on:{click:e.datePanelLabel.labels[1].handler}},[e._v(e._s(e.datePanelLabel.labels[1].label))]):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[e.shortcuts.length?n("div",{class:[e.prefixCls+"-sidebar"]},e._l(e.shortcuts,function(i){return n("div",{class:[e.prefixCls+"-shortcut"],on:{click:function(c){return e.handleShortcutClick(i)}}},[e._v(e._s(i.text))])}),0):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.changeYear(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),e.pickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.changeMonth(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.datePanelLabel,"current-view":e.pickerTable.split("-").shift(),"date-prefix-cls":e.datePrefixCls}}),e._v(" "),n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.changeYear(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),e.pickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.changeMonth(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),n("div",{class:[e.prefixCls+"-content"]},[e.currentView!=="time"?n(e.pickerTable,{ref:"pickerTable",tag:"component",attrs:{"table-date":e.panelDate,"show-week-numbers":e.showWeekNumbers,value:e.dates,"selection-mode":e.selectionMode,"disabled-date":e.disabledDate,"focused-date":e.focusedDate},on:{"on-pick":e.panelPickerHandlers,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isTime,expression:"isTime"}],class:[e.prefixCls+"-content"]},[e.currentView==="time"?n("time-picker",e._b({ref:"timePicker",attrs:{value:e.dates,format:e.format,"time-disabled":e.timeDisabled,"disabled-date":e.disabledDate,"focused-date":e.focusedDate},on:{"on-pick":e.handlePick,"on-pick-click":e.handlePickClick,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess,"on-pick-toggle-time":e.handleToggleTime}},"time-picker",e.timePickerOptions,!1)):e._e()],1),e._v(" "),e.confirm?n("Confirm",{attrs:{"show-time":e.showTime,"is-time":e.isTime},on:{"on-pick-toggle-time":e.handleToggleTime,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(174),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(425);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[n("div",{class:[e.prefixCls+"-body"]},[n("div",{class:[e.prefixCls+"-content",e.prefixCls+"-content-left"]},[n("div",{class:[e.timePrefixCls+"-header"]},[e.showDate?[e._v(e._s(e.leftDatePanelLabel))]:[e._v(e._s(e.t("i.datepicker.startTime")))]],2),e._v(" "),n("time-spinner",{ref:"timeSpinner",attrs:{steps:e.steps,"show-seconds":e.showSeconds,hours:e.value[0]&&e.dateStart.getHours(),minutes:e.value[0]&&e.dateStart.getMinutes(),seconds:e.value[0]&&e.dateStart.getSeconds(),"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleStartChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),n("div",{class:[e.prefixCls+"-content",e.prefixCls+"-content-right"]},[n("div",{class:[e.timePrefixCls+"-header"]},[e.showDate?[e._v(e._s(e.rightDatePanelLabel))]:[e._v(e._s(e.t("i.datepicker.endTime")))]],2),e._v(" "),n("time-spinner",{ref:"timeSpinnerEnd",attrs:{steps:e.steps,"show-seconds":e.showSeconds,hours:e.value[1]&&e.dateEnd.getHours(),minutes:e.value[1]&&e.dateEnd.getMinutes(),seconds:e.value[1]&&e.dateEnd.getSeconds(),"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleEndChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),e.confirm?n("Confirm",{on:{"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[e.shortcuts.length?n("div",{class:[e.prefixCls+"-sidebar"]},e._l(e.shortcuts,function(i){return n("div",{class:[e.prefixCls+"-shortcut"],on:{click:function(c){return e.handleShortcutClick(i)}}},[e._v(e._s(i.text))])}),0):e._e(),e._v(" "),n("div",{class:e.panelBodyClasses},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isTime,expression:"!isTime"}],class:[e.prefixCls+"-content",e.prefixCls+"-content-left"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.prevYear("left")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),e.leftPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.prevMonth("left")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.leftDatePanelLabel,"current-view":e.leftDatePanelView,"date-prefix-cls":e.datePrefixCls}}),e._v(" "),e.splitPanels||e.leftPickerTable!=="date-table"?n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.nextYear("left")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e(),e._v(" "),e.splitPanels&&e.leftPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.nextMonth("left")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),e.currentView!=="time"?n(e.leftPickerTable,{ref:"leftYearTable",tag:"component",attrs:{"table-date":e.leftPanelDate,"selection-mode":"range","disabled-date":e.disabledDate,"range-state":e.rangeState,"show-week-numbers":e.showWeekNumbers,value:e.preSelecting.left?[e.dates[0]]:e.dates,"focused-date":e.focusedDate},on:{"on-change-range":e.handleChangeRange,"on-pick":e.panelPickerHandlers.left,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isTime,expression:"!isTime"}],class:[e.prefixCls+"-content",e.prefixCls+"-content-right"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[e.splitPanels||e.rightPickerTable!=="date-table"?n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.prevYear("right")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),e.splitPanels&&e.rightPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.prevMonth("right")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.rightDatePanelLabel,"current-view":e.rightDatePanelView,"date-prefix-cls":e.datePrefixCls}}),e._v(" "),n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.nextYear("right")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),e.rightPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.nextMonth("right")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),e.currentView!=="time"?n(e.rightPickerTable,{ref:"rightYearTable",tag:"component",attrs:{"table-date":e.rightPanelDate,"selection-mode":"range","range-state":e.rangeState,"disabled-date":e.disabledDate,"show-week-numbers":e.showWeekNumbers,value:e.preSelecting.right?[e.dates[e.dates.length-1]]:e.dates,"focused-date":e.focusedDate},on:{"on-change-range":e.handleChangeRange,"on-pick":e.panelPickerHandlers.right,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isTime,expression:"isTime"}],class:[e.prefixCls+"-content"]},[e.currentView==="time"?n("time-picker",e._b({ref:"timePicker",attrs:{value:e.dates,format:e.format,"time-disabled":e.timeDisabled},on:{"on-pick":e.handleRangePick,"on-pick-click":e.handlePickClick,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess,"on-pick-toggle-time":e.handleToggleTime}},"time-picker",e.timePickerOptions,!1)):e._e()],1),e._v(" "),e.confirm?n("Confirm",{attrs:{"show-time":e.showTime,"is-time":e.isTime,"time-disabled":e.timeDisabled},on:{"on-pick-toggle-time":e.handleToggleTime,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(427),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(177),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(428);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.hasSlot?n("span",{class:e.slotClasses},[e._t("default")],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(430),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(178),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(431);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":e.transfer}},[n("transition",{attrs:{name:"fade"}},[e.mask?n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.maskClasses,style:e.maskStyle,on:{click:e.handleMask}}):e._e()]),e._v(" "),n("div",{class:e.wrapClasses,on:{click:e.handleWrapClick}},[n("transition",{attrs:{name:e.transitionName}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.mainStyles},[n("div",{ref:"content",class:e.contentClasses},[e.closable?n("a",{staticClass:"ivu-drawer-close",on:{click:e.close}},[e._t("close",function(){return[n("Icon",{attrs:{type:"ios-close"}})]})],2):e._e(),e._v(" "),e.showHead?n("div",{class:[e.prefixCls+"-header"]},[e._t("header",function(){return[n("div",{class:[e.prefixCls+"-header-inner"]},[e._v(e._s(e.title))])]})],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"],style:e.styles},[e._t("default")],2)]),e._v(" "),e.draggable&&(e.placement==="left"||e.placement==="right")?n("div",{staticClass:"ivu-drawer-drag",class:"ivu-drawer-drag-"+e.placement,on:{mousedown:e.handleTriggerMousedown}},[e._t("trigger",function(){return[n("div",{staticClass:"ivu-drawer-drag-move-trigger"},[n("div",{staticClass:"ivu-drawer-drag-move-trigger-point"},[n("i"),n("i"),n("i"),n("i"),n("i")])])]})],2):e._e()])])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(61),a=i(s),d=t(62),e=i(d),l=t(435),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}a.default.Menu=e.default,a.default.Item=n.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickoutside,expression:"onClickoutside"}],class:[e.prefixCls],on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:e.relClasses,on:{click:e.handleClick,contextmenu:function(o){return o.preventDefault(),e.handleRightClick.apply(null,arguments)}}},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.currentVisible,expression:"currentVisible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,attrs:{placement:e.placement,eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer},nativeOn:{mouseenter:function(o){return e.handleMouseenter.apply(null,arguments)},mouseleave:function(o){return e.handleMouseleave.apply(null,arguments)}}},[e._t("list")],2)],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{staticClass:"ivu-dropdown-menu"},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(181),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(436);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes,on:{click:e.handleClick}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(182),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(440),a=l(s),d=t(449),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(184),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(448);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){t(79),t(36),t(46),t(442),t(446),t(447),v.exports=t(5).Promise},function(v,r,t){var s=t(42),a=t(9),d=t(25),e=t(56),l=t(7),n=t(19),i=t(43),o=t(88),c=t(51),u=t(186),f=t(187).set,y=t(444)(),m=t(89),_=t(188),h=t(445),g=t(189),b="Promise",x=a.TypeError,C=a.process,p=C&&C.versions,S=p&&p.v8||"",P=a[b],O=e(C)=="process",A=function(){},T,B,j,q,U=B=m.f,R=!!function(){try{var J=P.resolve(1),N=(J.constructor={})[t(10)("species")]=function(Y){Y(A,A)};return(O||typeof PromiseRejectionEvent=="function")&&J.then(A)instanceof N&&S.indexOf("6.6")!==0&&h.indexOf("Chrome/66")===-1}catch{}}(),V=function(J){var N;return n(J)&&typeof(N=J.then)=="function"?N:!1},E=function(J,N){if(!J._n){J._n=!0;var Y=J._c;y(function(){for(var w=J._v,F=J._s==1,H=0,te=function(ie){var ue=F?ie.ok:ie.fail,ee=ie.resolve,he=ie.reject,ae=ie.domain,M,W,$;try{ue?(F||(J._h==2&&z(J),J._h=1),ue===!0?M=w:(ae&&ae.enter(),M=ue(w),ae&&(ae.exit(),$=!0)),M===ie.promise?he(x("Promise-chain cycle")):(W=V(M))?W.call(M,ee,he):ee(M)):he(w)}catch(D){ae&&!$&&ae.exit(),he(D)}};Y.length>H;)te(Y[H++]);J._c=[],J._n=!1,N&&!J._h&&k(J)})}},k=function(J){f.call(a,function(){var N=J._v,Y=G(J),w,F,H;if(Y&&(w=_(function(){O?C.emit("unhandledRejection",N,J):(F=a.onunhandledrejection)?F({promise:J,reason:N}):(H=a.console)&&H.error&&H.error("Unhandled promise rejection",N)}),J._h=O||G(J)?2:1),J._a=void 0,Y&&w.e)throw w.v})},G=function(J){return J._h!==1&&(J._a||J._c).length===0},z=function(J){f.call(a,function(){var N;O?C.emit("rejectionHandled",J):(N=a.onrejectionhandled)&&N({promise:J,reason:J._v})})},Z=function(J){var N=this;N._d||(N._d=!0,N=N._w||N,N._v=J,N._s=2,N._a||(N._a=N._c.slice()),E(N,!0))},re=function(J){var N=this,Y;if(!N._d){N._d=!0,N=N._w||N;try{if(N===J)throw x("Promise can't be resolved itself");(Y=V(J))?y(function(){var w={_w:N,_d:!1};try{Y.call(J,d(re,w,1),d(Z,w,1))}catch(F){Z.call(w,F)}}):(N._v=J,N._s=1,E(N,!1))}catch(w){Z.call({_w:N,_d:!1},w)}}};R||(P=function(N){o(this,P,b,"_h"),i(N),T.call(this);try{N(d(re,this,1),d(Z,this,1))}catch(Y){Z.call(this,Y)}},T=function(N){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},T.prototype=t(90)(P.prototype,{then:function(N,Y){var w=U(u(this,P));return w.ok=typeof N=="function"?N:!0,w.fail=typeof Y=="function"&&Y,w.domain=O?C.domain:void 0,this._c.push(w),this._a&&this._a.push(w),this._s&&E(this,!1),w.promise},catch:function(J){return this.then(void 0,J)}}),j=function(){var J=new T;this.promise=J,this.resolve=d(re,J,1),this.reject=d(Z,J,1)},m.f=U=function(J){return J===P||J===q?new j(J):B(J)}),l(l.G+l.W+l.F*!R,{Promise:P}),t(47)(P,b),t(190)(b),q=t(5)[b],l(l.S+l.F*!R,b,{reject:function(N){var Y=U(this),w=Y.reject;return w(N),Y.promise}}),l(l.S+l.F*(s||!R),b,{resolve:function(N){return g(s&&this===q?P:this,N)}}),l(l.S+l.F*!(R&&t(116)(function(J){P.all(J).catch(A)})),b,{all:function(N){var Y=this,w=U(Y),F=w.resolve,H=w.reject,te=_(function(){var ie=[],ue=0,ee=1;c(N,!1,function(he){var ae=ue++,M=!1;ie.push(void 0),ee++,Y.resolve(he).then(function(W){M||(M=!0,ie[ae]=W,--ee||F(ie))},H)}),--ee||F(ie)});return te.e&&H(te.v),w.promise},race:function(N){var Y=this,w=U(Y),F=w.reject,H=_(function(){c(N,!1,function(te){Y.resolve(te).then(w.resolve,F)})});return H.e&&F(H.v),w.promise}})},function(v,r){v.exports=function(t,s,a){var d=a===void 0;switch(s.length){case 0:return d?t():t.call(a);case 1:return d?t(s[0]):t.call(a,s[0]);case 2:return d?t(s[0],s[1]):t.call(a,s[0],s[1]);case 3:return d?t(s[0],s[1],s[2]):t.call(a,s[0],s[1],s[2]);case 4:return d?t(s[0],s[1],s[2],s[3]):t.call(a,s[0],s[1],s[2],s[3])}return t.apply(a,s)}},function(v,r,t){var s=t(9),a=t(187).set,d=s.MutationObserver||s.WebKitMutationObserver,e=s.process,l=s.Promise,n=t(41)(e)=="process";v.exports=function(){var i,o,c,u=function(){var _,h;for(n&&(_=e.domain)&&_.exit();i;){h=i.fn,i=i.next;try{h()}catch(g){throw i?c():o=void 0,g}}o=void 0,_&&_.enter()};if(n)c=function(){e.nextTick(u)};else if(d&&!(s.navigator&&s.navigator.standalone)){var f=!0,y=document.createTextNode("");new d(u).observe(y,{characterData:!0}),c=function(){y.data=f=!f}}else if(l&&l.resolve){var m=l.resolve(void 0);c=function(){m.then(u)}}else c=function(){a.call(s,u)};return function(_){var h={fn:_,next:void 0};o&&(o.next=h),i||(i=h,c()),o=h}}},function(v,r,t){var s=t(9),a=s.navigator;v.exports=a&&a.userAgent||""},function(v,r,t){var s=t(7),a=t(5),d=t(9),e=t(186),l=t(189);s(s.P+s.R,"Promise",{finally:function(n){var i=e(this,a.Promise||d.Promise),o=typeof n=="function";return this.then(o?function(c){return l(i,n()).then(function(){return c})}:n,o?function(c){return l(i,n()).then(function(){throw c})}:n)}})},function(v,r,t){var s=t(7),a=t(89),d=t(188);s(s.S,"Promise",{try:function(e){var l=a.f(this),n=d(e);return(n.e?l.reject:l.resolve)(n.v),l.promise}})},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("form",{class:e.classes,attrs:{autocomplete:e.autocomplete}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(191),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(453);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),function(s){function a(){return a=Object.assign||function(D){for(var I=1;I=le)return me;switch(me){case"%s":return String(I[X++]);case"%d":return Number(I[X++]);case"%j":try{return JSON.stringify(I[X++])}catch{return"[Circular]"}break;default:return me}});return fe}return se}function _(D){return D==="string"||D==="url"||D==="hex"||D==="email"||D==="date"||D==="pattern"}function h(D,I){return!!(D==null||I==="array"&&Array.isArray(D)&&!D.length||_(I)&&typeof D=="string"&&!D)}function g(D,I,K){var X=[],se=0,le=D.length;function fe(me){X.push.apply(X,me),se++,se===le&&K(X)}D.forEach(function(me){I(me,fe)})}function b(D,I,K){var X=0,se=D.length;function le(fe){if(fe&&fe.length){K(fe);return}var me=X;X=X+1,me()\[\]\\.,;:\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},B={integer:function(I){return B.number(I)&&parseInt(I,10)===I},float:function(I){return B.number(I)&&!B.integer(I)},array:function(I){return Array.isArray(I)},regexp:function(I){if(I instanceof RegExp)return!0;try{return!!new RegExp(I)}catch{return!1}},date:function(I){return typeof I.getTime=="function"&&typeof I.getMonth=="function"&&typeof I.getYear=="function"&&!isNaN(I.getTime())},number:function(I){return isNaN(I)?!1:typeof I=="number"},object:function(I){return typeof I=="object"&&!B.array(I)},method:function(I){return typeof I=="function"},email:function(I){return typeof I=="string"&&!!I.match(T.email)&&I.length<255},url:function(I){return typeof I=="string"&&!!I.match(T.url)},hex:function(I){return typeof I=="string"&&!!I.match(T.hex)}};function j(D,I,K,X,se){if(D.required&&I===void 0){O(D,I,K,X,se);return}var le=["integer","float","array","regexp","object","method","email","number","date","url","hex"],fe=D.type;le.indexOf(fe)>-1?B[fe](I)||X.push(m(se.messages.types[fe],D.fullField,D.type)):fe&&typeof I!==D.type&&X.push(m(se.messages.types[fe],D.fullField,D.type))}function q(D,I,K,X,se){var le=typeof D.len=="number",fe=typeof D.min=="number",me=typeof D.max=="number",pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ge=I,Me=null,we=typeof I=="number",Le=typeof I=="string",Ee=Array.isArray(I);if(we?Me="number":Le?Me="string":Ee&&(Me="array"),!Me)return!1;Ee&&(ge=I.length),Le&&(ge=I.replace(pe,"_").length),le?ge!==D.len&&X.push(m(se.messages[Me].len,D.fullField,D.len)):fe&&!me&&geD.max?X.push(m(se.messages[Me].max,D.fullField,D.max)):fe&&me&&(geD.max)&&X.push(m(se.messages[Me].range,D.fullField,D.min,D.max))}var U="enum";function R(D,I,K,X,se){D[U]=Array.isArray(D[U])?D[U]:[],D[U].indexOf(I)===-1&&X.push(m(se.messages[U],D.fullField,D[U].join(", ")))}function V(D,I,K,X,se){if(D.pattern){if(D.pattern instanceof RegExp)D.pattern.lastIndex=0,D.pattern.test(I)||X.push(m(se.messages.pattern.mismatch,D.fullField,I,D.pattern));else if(typeof D.pattern=="string"){var le=new RegExp(D.pattern);le.test(I)||X.push(m(se.messages.pattern.mismatch,D.fullField,I,D.pattern))}}}var E={required:O,whitespace:A,type:j,range:q,enum:R,pattern:V};function k(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I,"string")&&!D.required)return K();E.required(D,I,X,le,se,"string"),h(I,"string")||(E.type(D,I,X,le,se),E.range(D,I,X,le,se),E.pattern(D,I,X,le,se),D.whitespace===!0&&E.whitespace(D,I,X,le,se))}K(le)}function G(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se),I!==void 0&&E.type(D,I,X,le,se)}K(le)}function z(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(I===""&&(I=void 0),h(I)&&!D.required)return K();E.required(D,I,X,le,se),I!==void 0&&(E.type(D,I,X,le,se),E.range(D,I,X,le,se))}K(le)}function Z(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se),I!==void 0&&E.type(D,I,X,le,se)}K(le)}function re(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se),h(I)||E.type(D,I,X,le,se)}K(le)}function J(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se),I!==void 0&&(E.type(D,I,X,le,se),E.range(D,I,X,le,se))}K(le)}function N(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se),I!==void 0&&(E.type(D,I,X,le,se),E.range(D,I,X,le,se))}K(le)}function Y(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(I==null&&!D.required)return K();E.required(D,I,X,le,se,"array"),I!=null&&(E.type(D,I,X,le,se),E.range(D,I,X,le,se))}K(le)}function w(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se),I!==void 0&&E.type(D,I,X,le,se)}K(le)}var F="enum";function H(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se),I!==void 0&&E[F](D,I,X,le,se)}K(le)}function te(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I,"string")&&!D.required)return K();E.required(D,I,X,le,se),h(I,"string")||E.pattern(D,I,X,le,se)}K(le)}function ie(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I,"date")&&!D.required)return K();if(E.required(D,I,X,le,se),!h(I,"date")){var me;I instanceof Date?me=I:me=new Date(I),E.type(D,me,X,le,se),me&&E.range(D,me.getTime(),X,le,se)}}K(le)}function ue(D,I,K,X,se){var le=[],fe=Array.isArray(I)?"array":typeof I;E.required(D,I,X,le,se,fe),K(le)}function ee(D,I,K,X,se){var le=D.type,fe=[],me=D.required||!D.required&&X.hasOwnProperty(D.field);if(me){if(h(I,le)&&!D.required)return K();E.required(D,I,X,fe,se,le),h(I,le)||E.type(D,I,X,fe,se)}K(fe)}function he(D,I,K,X,se){var le=[],fe=D.required||!D.required&&X.hasOwnProperty(D.field);if(fe){if(h(I)&&!D.required)return K();E.required(D,I,X,le,se)}K(le)}var ae={string:k,method:G,number:z,boolean:Z,regexp:re,integer:J,float:N,array:Y,object:w,enum:H,pattern:te,date:ie,url:ee,hex:ee,email:ee,required:ue,any:he};function M(){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 I=JSON.parse(JSON.stringify(this));return I.clone=this.clone,I}}}var W=M();function $(D){this.rules=null,this._messages=W,this.define(D)}$.prototype={messages:function(I){return I&&(this._messages=P(M(),I)),this._messages},define:function(I){if(!I)throw new Error("Cannot configure a schema with no rules");if(typeof I!="object"||Array.isArray(I))throw new Error("Rules must be an object");this.rules={};var K,X;for(K in I)I.hasOwnProperty(K)&&(X=I[K],this.rules[K]=Array.isArray(X)?X:[X])},validate:function(I,K,X){var se=this;K===void 0&&(K={}),X===void 0&&(X=function(){});var le=I,fe=K,me=X;if(typeof fe=="function"&&(me=fe,fe={}),!this.rules||Object.keys(this.rules).length===0)return me&&me(),Promise.resolve();function pe(Ce){var Ae,Se=[],Ve={};function Ke(ke){if(Array.isArray(ke)){var We;Se=(We=Se).concat.apply(We,ke)}else Se.push(ke)}for(Ae=0;Ae1)for(var b=1;b=T||ee<0||z&&he>=U}function w(){var ue=b();if(Y(ue))return F(ue);V=setTimeout(w,N(ue))}function F(ue){return V=void 0,Z&&j?re(ue):(j=q=void 0,R)}function H(){V!==void 0&&clearTimeout(V),k=0,j=E=q=V=void 0}function te(){return V===void 0?R:F(b())}function ie(){var ue=b(),ee=Y(ue);if(j=arguments,q=this,E=ue,ee){if(V===void 0)return J(E);if(z)return V=setTimeout(w,T),re(E)}return V===void 0&&(V=setTimeout(w,T)),R}return ie.cancel=H,ie.flush=te,ie}function C(A,T,B){var j=!0,q=!0;if(typeof A!="function")throw new TypeError(a);return p(B)&&(j="leading"in B?!!B.leading:j,q="trailing"in B?!!B.trailing:q),x(A,T,{leading:j,maxWait:T,trailing:q})}function p(A){var T=typeof A;return!!A&&(T=="object"||T=="function")}function S(A){return!!A&&typeof A=="object"}function P(A){return typeof A=="symbol"||S(A)&&_.call(A)==e}function O(A){if(typeof A=="number")return A;if(P(A))return d;if(p(A)){var T=typeof A.valueOf=="function"?A.valueOf():A;A=p(T)?T+"":T}if(typeof A!="string")return A===0?A:+A;A=A.replace(l,"");var B=i.test(A);return B||o.test(A)?c(A.slice(2),B?2:8):n.test(A)?d:+A}v.exports=C}).call(r,t(119))},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(198),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(468);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:"fade"}},[e.fullscreenVisible?n("div",{class:e.classes},[n("div",{class:e.mainClasses},[n("span",{class:e.dotClasses}),e._v(" "),n("div",{class:e.textClasses},[e._t("default")],2)])]):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapperClasses},[n("div",{class:e.spinnerClasses},[n("Spin",{attrs:{fix:""}},[n("Icon",{class:e.iconClasses,attrs:{type:"ios-loading",size:"18"}}),e._v(" "),e.text?n("div",{class:e.textClasses},[e._v(e._s(e.text))]):e._e()],1)],1)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses,staticStyle:{"touch-action":"none"}},[n("div",{ref:"scrollContainer",class:e.scrollContainerClasses,style:{height:e.height+"px"},on:{scroll:e.handleScroll,wheel:e.onWheel,touchstart:e.onPointerDown}},[n("div",{ref:"toploader",class:e.loaderClasses,style:{paddingTop:e.wrapperPadding.paddingTop}},[n("loader",{attrs:{text:e.localeLoadingText,active:e.showTopLoader}})],1),e._v(" "),n("div",{ref:"scrollContent",class:e.slotContainerClasses},[e._t("default")],2),e._v(" "),n("div",{ref:"bottomLoader",class:e.loaderClasses,style:{paddingBottom:e.wrapperPadding.paddingBottom}},[n("loader",{attrs:{text:e.localeLoadingText,active:e.showBottomLoader}})],1)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(471),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(200),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(474);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(201),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(473);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{class:e.barConClasses},e._m(0),0)])},a=[function(){var d=this,e=d.$createElement,l=d._self._c||e;return d._l(8,function(n){return l("i",{key:"trigger-"+n,class:d.prefix+"-bar"})})}];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"outerWrapper",class:e.wrapperClasses},[e.isHorizontal?n("div",{class:e.prefix+"-horizontal"},[n("div",{staticClass:"left-pane",class:e.paneClasses,style:{right:e.anotherOffset+"%"}},[e._t("left")],2),e._v(" "),n("div",{class:e.prefix+"-trigger-con",style:{left:e.offset+"%"},on:{mousedown:e.handleMousedown}},[e._t("trigger",function(){return[n("trigger",{attrs:{mode:"vertical"}})]})],2),e._v(" "),n("div",{staticClass:"right-pane",class:e.paneClasses,style:{left:e.offset+"%"}},[e._t("right")],2)]):n("div",{class:e.prefix+"-vertical"},[n("div",{staticClass:"top-pane",class:e.paneClasses,style:{bottom:e.anotherOffset+"%"}},[e._t("top")],2),e._v(" "),n("div",{class:e.prefix+"-trigger-con",style:{top:e.offset+"%"},on:{mousedown:e.handleMousedown}},[e._t("trigger",function(){return[n("trigger",{attrs:{mode:"horizontal"}})]})],2),e._v(" "),n("div",{staticClass:"bottom-pane",class:e.paneClasses,style:{top:e.offset+"%"}},[e._t("bottom")],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(476),a=f(s),d=t(193),e=f(d),l=t(203),n=f(l),i=t(155),o=f(i),c=t(182),u=f(c);function f(y){return y&&y.__esModule?y:{default:y}}a.default.Header=e.default,a.default.Sider=n.default,a.default.Content=o.default,a.default.Footer=u.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(202),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(477);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses,style:e.wrapStyles},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showZeroTrigger,expression:"showZeroTrigger"}],class:e.zeroWidthTriggerClasses,on:{click:e.toggleCollapse}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-menu"})]),e._v(" "),n("div",{class:e.childClasses},[e._t("default")],2),e._v(" "),e._t("trigger",function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBottomTrigger,expression:"showBottomTrigger"}],class:e.triggerClasses,style:{width:e.siderWidth+"px"},on:{click:e.toggleCollapse}},[n("i",{class:e.triggerIconClasses})])]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(480),a=i(s),d=t(482),e=i(d),l=t(484),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}a.default.Item=e.default,a.default.Item.Meta=n.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(205),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(481);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.header||e.$slots.header?n("div",{staticClass:"ivu-list-header"},[e._t("header",function(){return[e._v(e._s(e.header))]})],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-container"},[n("ul",{staticClass:"ivu-list-items"},[e._t("default")],2)]),e._v(" "),e.loading?n("Spin",{attrs:{fix:"",size:"large"}},[e._t("spin")],2):e._e(),e._v(" "),e.footer||e.$slots.footer?n("div",{staticClass:"ivu-list-footer"},[e._t("footer",function(){return[e._v(e._s(e.footer))]})],2):e._e()],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(206),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(483);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{staticClass:"ivu-list-item",class:e.classes},[e.itemLayout==="vertical"&&e.$slots.extra?[n("div",{staticClass:"ivu-list-item-main"},[e._t("default"),e._v(" "),e.$slots.action?n("ul",{staticClass:"ivu-list-item-action"},[e._t("action")],2):e._e()],2),e._v(" "),n("div",{staticClass:"ivu-list-item-extra"},[e._t("extra")],2)]:[e._t("default"),e._v(" "),e.$slots.action?n("ul",{staticClass:"ivu-list-item-action"},[e._t("action")],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-item-extra"},[e._t("extra")],2)]],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(207),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(485);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-list-item-meta"},[e.avatar||e.$slots.avatar?n("div",{staticClass:"ivu-list-item-meta-avatar"},[e._t("avatar",function(){return[n("Avatar",{attrs:{src:e.avatar}})]})],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-item-meta-content"},[e.title||e.$slots.title?n("div",{staticClass:"ivu-list-item-meta-title"},[e._t("title",function(){return[e._v(e._s(e.title))]})],2):e._e(),e._v(" "),e.description||e.$slots.description?n("div",{staticClass:"ivu-list-item-meta-description"},[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e()])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(487),e=l(d);function l(g){return g&&g.__esModule?g:{default:g}}var n=void 0,i="primary",o=800,c="error",u=2,f=void 0;function y(){return n=n||e.default.newInstance({color:i,failedColor:c,height:u}),n}function m(g){var b=y();b.update(g)}function _(){var g=this;setTimeout(function(){(0,a.default)(this,g),m({show:!1}),setTimeout(function(){(0,a.default)(this,g),m({percent:0})}.bind(this),200)}.bind(this),o)}function h(){f&&(clearInterval(f),f=null)}r.default={start:function(){var b=this;if(!f){var x=0;m({percent:x,status:"success",show:!0}),f=setInterval(function(){(0,a.default)(this,b),x+=Math.floor(Math.random()*3+1),x>95&&h(),m({percent:x,status:"success",show:!0})}.bind(this),200)}},update:function(b){h(),m({percent:b,status:"success",show:!0})},finish:function(){h(),m({percent:100,status:"success",show:!0}),_()},error:function(){h(),m({percent:100,status:"error",show:!0}),_()},config:function(b){b.color&&(i=b.color),b.duration&&(o=b.duration),b.failedColor&&(c=b.failedColor),b.height&&(u=b.height)},destroy:function(){h();var b=y();n=null,b.destroy()}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=i(s),d=t(488),e=i(d),l=t(17),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}e.default.newInstance=function(o){(0,a.default)(void 0,void 0);var c=o||{},u=new n.default({data:c,render:function(_){return _(e.default,{props:c})}}),f=u.$mount();document.body.appendChild(f.$el);var y=u.$children[0];return{update:function(_){"percent"in _&&(y.percent=_.percent),_.status&&(y.status=_.status),"show"in _&&(y.show=_.show)},component:y,destroy:function(){document.body.removeChild(document.getElementsByClassName("ivu-loading-bar")[0])}}}.bind(void 0),r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(208),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(489);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],class:e.classes,style:e.outerStyles},[n("div",{class:e.innerClasses,style:e.styles})])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(491),a=c(s),d=t(493),e=c(d),l=t(495),n=c(l),i=t(497),o=c(i);function c(u){return u&&u.__esModule?u:{default:u}}a.default.Group=e.default,a.default.Item=n.default,a.default.Sub=o.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(209),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(492);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:e.classes,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(210),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(494);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:[e.prefixCls+"-item-group"]},[n("div",{class:[e.prefixCls+"-item-group-title"],style:e.groupStyle},[e._v(e._s(e.title))]),e._v(" "),n("ul",[e._t("default")],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(211),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(496);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.to?n("a",{class:e.classes,style:e.itemStyle,attrs:{href:e.linkUrl,target:e.target},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.handleClickItem(i,!1)},function(i){return i.ctrlKey?e.handleClickItem(i,!0):null},function(i){return i.metaKey?e.handleClickItem(i,!0):null}]}},[e._t("default")],2):n("li",{class:e.classes,style:e.itemStyle,on:{click:function(o){return o.stopPropagation(),e.handleClickItem.apply(null,arguments)}}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(212),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(498);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes,on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:[e.prefixCls+"-submenu-title"],style:e.titleStyle,on:{click:function(o){return o.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._t("title"),e._v(" "),n("Icon",{class:[e.prefixCls+"-submenu-title-icon"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})],2),e._v(" "),e.mode==="vertical"?n("collapse-transition",[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"}],class:[e.prefixCls]},[e._t("default")],2)]):n("transition",{attrs:{name:"slide-up"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"}],ref:"drop",style:e.dropStyle,attrs:{placement:"bottom"}},[n("ul",{class:[e.prefixCls+"-drop-list"]},[e._t("default")],2)])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(213),a=d(s);function d(m){return m&&m.__esModule?m:{default:m}}var e="ivu-message",l="ivu-icon",n="ivu_message_key_",i={top:24,duration:1.5,followScrollY:!0},o=void 0,c=1,u={info:"ios-information-circle",success:"ios-checkmark-circle",warning:"ios-alert",error:"ios-close-circle",loading:"ios-loading"};function f(){return o=o||a.default.newInstance({prefixCls:e,styles:{top:String(i.top)+"px"},followScrollY:i.followScrollY}),o}function y(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.duration,h=arguments[2],g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:function(){},C=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,p=u[h],S=h==="loading"?" ivu-load-loop":"",P=f();return P.notice({name:""+n+c,duration:_,styles:{},transitionName:"move-up",content:`
    `+String(m)+`
    - `,render:x,onClose:g,closable:b,type:"message",msgType:h,background:C}),function(){var O=c++;return function(){P.remove(""+n+O)}}()}r.default={name:"Message",info:function(_){return this.message("info",_)},success:function(_){return this.message("success",_)},warning:function(_){return this.message("warning",_)},error:function(_){return this.message("error",_)},loading:function(_){return this.message("loading",_)},message:function(_,h){return typeof h=="string"&&(h={content:h}),y(h.content,h.duration,_,h.onClose,h.closable,h.render,h.background)},config:function(_){(_.top||_.top===0)&&(i.top=_.top),(_.duration||_.duration===0)&&(i.duration=_.duration),typeof _.followScrollY=="boolean"&&(i.followScrollY=_.followScrollY)},destroy:function(){var _=f();o=null,_.destroy("ivu-message")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(214),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(503);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(215),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(502);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.transitionName,appear:""},on:{enter:e.handleEnter,leave:e.handleLeave}},[n("div",{class:e.classes,style:e.styles},[e.type==="notice"?[n("div",{ref:"content",class:e.contentClasses,domProps:{innerHTML:e._s(e.content)}}),e._v(" "),n("div",{class:e.contentWithIcon},[n("render-cell",{attrs:{render:e.renderFunc}})],1),e._v(" "),e.closable?n("a",{class:[e.baseClass+"-close"],on:{click:e.close}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]):e._e()]:e._e(),e._v(" "),e.type==="message"?[n("div",{ref:"content",class:e.messageContentClasses},[n("div",{class:[e.baseClass+"-content-text"],domProps:{innerHTML:e._s(e.content)}}),e._v(" "),n("div",{class:[e.baseClass+"-content-text"]},[n("render-cell",{attrs:{render:e.renderFunc}})],1),e._v(" "),e.closable?n("a",{class:[e.baseClass+"-close"],on:{click:e.close}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]):e._e()])]:e._e()],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.wrapStyles},e._l(e.notices,function(i){return n("Notice",{key:i.name,attrs:{"prefix-cls":e.prefixCls,styles:i.styles,type:i.type,content:i.content,duration:i.duration,render:i.render,"has-title":i.hasTitle,withIcon:i.withIcon,closable:i.closable,name:i.name,"transition-name":i.transitionName,background:i.background,"msg-type":i.msgType,"on-close":i.onClose}})}),1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(505),e=n(d),l=t(33);function n(u){return u&&u.__esModule?u:{default:u}}var i=void 0;function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return i=i||e.default.newInstance({closable:!1,maskClosable:!1,footerHide:!0,render:u,append:y,lockScroll:f}),i}function c(u){var f=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(u.wait===!0&&(delete u.wait,l.modalConfirmGroup.load>0)){l.modalConfirmGroup.list.push({options:u,again:y});return}var m="render"in u?u.render:void 0,_="lockScroll"in u?u.lockScroll:!0,h="append"in u?u.append:void 0,g=o(m,_,h);if((g.component.$parent.closing||g.component.$parent.okIng)&&y!==!0){setTimeout(function(){return(0,a.default)(this,f),c(u,!0)}.bind(this),g.component.$parent.okIng?350:300);return}l.modalConfirmGroup.load++,u.onRemove=function(){i=null,l.modalConfirmGroup.load--;var b=l.modalConfirmGroup.list.shift();b&&c(b.options,b.again)},g.show(u)}e.default.info=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="info",u.showCancel=!1,c(u)},e.default.success=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="success",u.showCancel=!1,c(u)},e.default.warning=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="warning",u.showCancel=!1,c(u)},e.default.error=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="error",u.showCancel=!1,c(u)},e.default.confirm=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof u.icon=="undefined"&&(u.icon="confirm"),typeof u.showCancel=="undefined"&&(u.showCancel=!0),c(u)},e.default.next=function(){var u=l.modalVisibleWaitList.shift();return u?c(u):null},e.default.remove=function(){if(!i)return!1;var u=o();u.remove()},e.default.resetIndex=function(){(0,l.resetIncrease)()},e.default.visibles=function(){return(0,l.onModalVisibleClear)(),l.modalVisibleAggregate},e.default.removeLast=function(){var u=this,f=l.modalVisibleAggregate.filter(function(m){return(0,a.default)(this,u),!m.$props.ignoreRemoveLast}.bind(this));if(f.length===0)return!1;if((0,l.onModalVisibleClear)(),!(0,l.onModalVisibleClosing)())return!0;var y=f.sort(function(m,_){return(0,a.default)(this,u),m.$data.modalIndex<_.$data.modalIndex?1:-1}.bind(this))[0];return y?(y.cancel(),!0):!1},r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(18),a=h(s),d=t(14),e=h(d),l=t(1),n=h(l),i=t(17),o=h(i),c=t(506),u=h(c),f=t(28),y=h(f),m=t(6),_=h(m);function h(b){return b&&b.__esModule?b:{default:b}}var g="ivu-modal-confirm";u.default.newInstance=function(b){(0,n.default)(void 0,void 0);var x=b||{},C=new o.default({mixins:[_.default],data:(0,e.default)({},x,{visible:!1,width:416,title:"",body:"",iconType:"",iconName:"",okText:void 0,cancelText:void 0,okType:null,cancelType:null,showCancel:!1,loading:!1,buttonLoading:!1,scrollable:!1,closable:!1,closing:!1,okIng:!1,enterOk:!1}),render:function(O){var R=this,T=[];this.showCancel&&T.push(O(y.default,{props:{type:this.cancelType||"text"},on:{click:function(){(0,n.default)(this,R),this.cancel(!0)}.bind(this)}},this.localeCancelText)),T.push(O(y.default,{props:{type:this.okType||"primary",loading:this.buttonLoading},on:{click:this.ok}},this.localeOkText));var B=void 0;this.render?B=O("div",{attrs:{class:g+"-body "+g+"-body-render"}},[this.render(O)]):B=O("div",{attrs:{class:g+"-body"}},[O("div",{domProps:{innerHTML:this.body}})]);var j=void 0;return this.title&&(j=O("div",{attrs:{class:g+"-head"}},[O("div",{class:this.iconTypeCls},[O("i",{class:this.iconNameCls})]),O("div",{attrs:{class:g+"-head-title"},domProps:{innerHTML:this.title}})])),O(u.default,{props:(0,e.default)({},x,{width:this.width,scrollable:this.scrollable,closable:this.closable,enterOk:this.enterOk}),domProps:{value:this.visible},on:{input:function(U){(0,n.default)(this,R),this.visible=U}.bind(this),"on-cancel":this.cancel}},[O("div",{attrs:{class:g}},[j,B,O("div",{attrs:{class:g+"-footer"}},T)])])},computed:{iconTypeCls:function(){return[g+"-head-icon",g+"-head-icon-"+String(this.iconType)]},iconNameCls:function(){return["ivu-icon","ivu-icon-"+String(this.iconName)]},localeOkText:function(){return this.okText?this.okText:this.t("i.modal.okText")},localeCancelText:function(){return this.cancelText?this.cancelText:this.t("i.modal.cancelText")}},methods:{cancel:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.closing||(this.$children[0].visible=!1,this.buttonLoading=!1,this.onCancel(O),this.remove())},ok:function(){var O=this;if(!this.closing){this.loading?this.buttonLoading=!0:(this.$children[0].visible=!1,this.remove()),this.okIng=!0;var R=this.onOk();R&&R.then?R.then(function(){(0,n.default)(this,O),this.$children[0].visible=!1,this.remove()}.bind(this)).catch(function(){(0,n.default)(this,O),this.buttonLoading=!1}.bind(this)).finally(function(T){(0,n.default)(this,O),this.okIng=!1}.bind(this)):this.okIng=!1}},remove:function(){var O=this;this.closing=!0,setTimeout(function(){(0,n.default)(this,O),this.closing=!1,this.destroy()}.bind(this),300)},destroy:function(){if(this.$destroy(),this.$el)try{this.append&&(0,a.default)(this.append)==="object"?this.append.removeChild(this.$el):document.body.removeChild(this.$el)}catch{}this.onRemove()},onOk:function(){},onCancel:function(){},onRemove:function(){}}}),p=C.$mount();x.append&&(0,a.default)(x.append)==="object"?x.append.appendChild(p.$el):document.body.appendChild(p.$el);var S=C.$children[0];return{show:function(O){switch(S.$parent.showCancel=O.showCancel,S.$parent.iconType=O.icon,O.icon){case"info":S.$parent.iconName="ios-information-circle";break;case"success":S.$parent.iconName="ios-checkmark-circle";break;case"warning":S.$parent.iconName="ios-alert";break;case"error":S.$parent.iconName="ios-close-circle";break;case"confirm":S.$parent.iconName="ios-help-circle";break}"width"in O&&(S.$parent.width=O.width),"closable"in O&&(S.$parent.closable=O.closable),"title"in O&&(S.$parent.title=O.title),"content"in O&&(S.$parent.body=O.content),"okText"in O&&(S.$parent.okText=O.okText),"cancelText"in O&&(S.$parent.cancelText=O.cancelText),"okType"in O&&(S.$parent.okType=O.okType),"cancelType"in O&&(S.$parent.cancelType=O.cancelType),"onCancel"in O&&(S.$parent.onCancel=O.onCancel),"onOk"in O&&(S.$parent.onOk=O.onOk),"loading"in O&&(S.$parent.loading=O.loading),"scrollable"in O&&(S.$parent.scrollable=O.scrollable),"enterOk"in O&&(S.$parent.enterOk=O.enterOk),S.$parent.onRemove=O.onRemove,S.visible=!0},remove:function(){S.visible=!1,S.$parent.buttonLoading=!1,S.$parent.remove()},component:S}}.bind(void 0),r.default=u.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(217),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(507);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":e.transfer}},[n("transition",{attrs:{name:e.transitionNames[1]}},[e.visible&&e.showMask?n("div",{class:e.maskClasses,style:e.wrapStyles,on:{click:e.handleMask}}):e._e()]),e._v(" "),n("div",{class:e.wrapClasses,style:e.wrapStyles,on:{click:e.handleWrapClick}},[n("transition",{attrs:{name:e.transitionNames[0]},on:{"after-leave":e.animationFinish}},[e.visible?n("div",{class:e.classes,style:e.mainStyles,on:{mousedown:e.handleMousedown}},[n("div",{ref:"content",class:e.contentClasses,style:e.contentStyles,on:{click:e.handleClickModal}},[e.closable?n("a",{class:[e.prefixCls+"-close"],on:{click:e.close}},[e._t("close",function(){return[n("Icon",{attrs:{type:"ios-close"}})]})],2):e._e(),e._v(" "),e.showHead?n("div",{class:[e.prefixCls+"-header"],on:{mousedown:e.handleMoveStart}},[e._t("header",function(){return[n("div",{class:[e.prefixCls+"-header-inner"]},[e._v(e._s(e.title))])]})],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"]},[e._t("default")],2),e._v(" "),e.footerHide?e._e():n("div",{class:[e.prefixCls+"-footer"]},[e._t("footer",function(){return[n("i-button",{attrs:{type:"text"},nativeOn:{click:function(o){return e.cancel.apply(null,arguments)}}},[e._v(e._s(e.localeCancelText))]),e._v(" "),n("i-button",{attrs:{type:"primary",loading:e.buttonLoading},nativeOn:{click:function(o){return e.ok.apply(null,arguments)}}},[e._v(e._s(e.localeOkText))])]})],2)])]):e._e()])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(213),a=d(s);function d(_){return _&&_.__esModule?_:{default:_}}var e="ivu-notice",l="ivu-icon",n="ivu_notice_key_",i=24,o=4.5,c=void 0,u=1,f={info:"ios-information-circle",success:"ios-checkmark-circle",warning:"ios-alert",error:"ios-close-circle"};function y(){return c=c||a.default.newInstance({prefixCls:e,styles:{top:i+"px",right:0}}),c}function m(_,h){var g=h.title||"",b=h.desc||"",x=h.name||""+n+u,C=h.onClose||function(){},p=h.render,S=h.duration===0?0:h.duration||o;u++;var P=y(),O=void 0,R=void 0,T=h.render&&!g?"":b||h.render?" "+e+"-with-desc":"";if(_=="normal")R=!1,O=` + `,render:x,onClose:g,closable:b,type:"message",msgType:h,background:C}),function(){var O=c++;return function(){P.remove(""+n+O)}}()}r.default={name:"Message",info:function(_){return this.message("info",_)},success:function(_){return this.message("success",_)},warning:function(_){return this.message("warning",_)},error:function(_){return this.message("error",_)},loading:function(_){return this.message("loading",_)},message:function(_,h){return typeof h=="string"&&(h={content:h}),y(h.content,h.duration,_,h.onClose,h.closable,h.render,h.background)},config:function(_){(_.top||_.top===0)&&(i.top=_.top),(_.duration||_.duration===0)&&(i.duration=_.duration),typeof _.followScrollY=="boolean"&&(i.followScrollY=_.followScrollY)},destroy:function(){var _=f();o=null,_.destroy("ivu-message")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(214),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(503);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(215),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(502);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.transitionName,appear:""},on:{enter:e.handleEnter,leave:e.handleLeave}},[n("div",{class:e.classes,style:e.styles},[e.type==="notice"?[n("div",{ref:"content",class:e.contentClasses,domProps:{innerHTML:e._s(e.content)}}),e._v(" "),n("div",{class:e.contentWithIcon},[n("render-cell",{attrs:{render:e.renderFunc}})],1),e._v(" "),e.closable?n("a",{class:[e.baseClass+"-close"],on:{click:e.close}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]):e._e()]:e._e(),e._v(" "),e.type==="message"?[n("div",{ref:"content",class:e.messageContentClasses},[n("div",{class:[e.baseClass+"-content-text"],domProps:{innerHTML:e._s(e.content)}}),e._v(" "),n("div",{class:[e.baseClass+"-content-text"]},[n("render-cell",{attrs:{render:e.renderFunc}})],1),e._v(" "),e.closable?n("a",{class:[e.baseClass+"-close"],on:{click:e.close}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]):e._e()])]:e._e()],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.wrapStyles},e._l(e.notices,function(i){return n("Notice",{key:i.name,attrs:{"prefix-cls":e.prefixCls,styles:i.styles,type:i.type,content:i.content,duration:i.duration,render:i.render,"has-title":i.hasTitle,withIcon:i.withIcon,closable:i.closable,name:i.name,"transition-name":i.transitionName,background:i.background,"msg-type":i.msgType,"on-close":i.onClose}})}),1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=n(s),d=t(505),e=n(d),l=t(33);function n(u){return u&&u.__esModule?u:{default:u}}var i=void 0;function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return i=i||e.default.newInstance({closable:!1,maskClosable:!1,footerHide:!0,render:u,append:y,lockScroll:f}),i}function c(u){var f=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(u.wait===!0&&(delete u.wait,l.modalConfirmGroup.load>0)){l.modalConfirmGroup.list.push({options:u,again:y});return}var m="render"in u?u.render:void 0,_="lockScroll"in u?u.lockScroll:!0,h="append"in u?u.append:void 0,g=o(m,_,h);if((g.component.$parent.closing||g.component.$parent.okIng)&&y!==!0){setTimeout(function(){return(0,a.default)(this,f),c(u,!0)}.bind(this),g.component.$parent.okIng?350:300);return}l.modalConfirmGroup.load++,u.onRemove=function(){i=null,l.modalConfirmGroup.load--;var b=l.modalConfirmGroup.list.shift();b&&c(b.options,b.again)},g.show(u)}e.default.info=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="info",u.showCancel=!1,c(u)},e.default.success=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="success",u.showCancel=!1,c(u)},e.default.warning=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="warning",u.showCancel=!1,c(u)},e.default.error=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return u.icon="error",u.showCancel=!1,c(u)},e.default.confirm=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof u.icon=="undefined"&&(u.icon="confirm"),typeof u.showCancel=="undefined"&&(u.showCancel=!0),c(u)},e.default.next=function(){var u=l.modalVisibleWaitList.shift();return u?c(u):null},e.default.remove=function(){if(!i)return!1;var u=o();u.remove()},e.default.resetIndex=function(){(0,l.resetIncrease)()},e.default.visibles=function(){return(0,l.onModalVisibleClear)(),l.modalVisibleAggregate},e.default.removeLast=function(){var u=this,f=l.modalVisibleAggregate.filter(function(m){return(0,a.default)(this,u),!m.$props.ignoreRemoveLast}.bind(this));if(f.length===0)return!1;if((0,l.onModalVisibleClear)(),!(0,l.onModalVisibleClosing)())return!0;var y=f.sort(function(m,_){return(0,a.default)(this,u),m.$data.modalIndex<_.$data.modalIndex?1:-1}.bind(this))[0];return y?(y.cancel(),!0):!1},r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(18),a=h(s),d=t(14),e=h(d),l=t(1),n=h(l),i=t(17),o=h(i),c=t(506),u=h(c),f=t(28),y=h(f),m=t(6),_=h(m);function h(b){return b&&b.__esModule?b:{default:b}}var g="ivu-modal-confirm";u.default.newInstance=function(b){(0,n.default)(void 0,void 0);var x=b||{},C=new o.default({mixins:[_.default],data:(0,e.default)({},x,{visible:!1,width:416,title:"",body:"",iconType:"",iconName:"",okText:void 0,cancelText:void 0,okType:null,cancelType:null,showCancel:!1,loading:!1,buttonLoading:!1,scrollable:!1,closable:!1,closing:!1,okIng:!1,enterOk:!1}),render:function(O){var A=this,T=[];this.showCancel&&T.push(O(y.default,{props:{type:this.cancelType||"text"},on:{click:function(){(0,n.default)(this,A),this.cancel(!0)}.bind(this)}},this.localeCancelText)),T.push(O(y.default,{props:{type:this.okType||"primary",loading:this.buttonLoading},on:{click:this.ok}},this.localeOkText));var B=void 0;this.render?B=O("div",{attrs:{class:g+"-body "+g+"-body-render"}},[this.render(O)]):B=O("div",{attrs:{class:g+"-body"}},[O("div",{domProps:{innerHTML:this.body}})]);var j=void 0;return this.title&&(j=O("div",{attrs:{class:g+"-head"}},[O("div",{class:this.iconTypeCls},[O("i",{class:this.iconNameCls})]),O("div",{attrs:{class:g+"-head-title"},domProps:{innerHTML:this.title}})])),O(u.default,{props:(0,e.default)({},x,{width:this.width,scrollable:this.scrollable,closable:this.closable,enterOk:this.enterOk}),domProps:{value:this.visible},on:{input:function(U){(0,n.default)(this,A),this.visible=U}.bind(this),"on-cancel":this.cancel}},[O("div",{attrs:{class:g}},[j,B,O("div",{attrs:{class:g+"-footer"}},T)])])},computed:{iconTypeCls:function(){return[g+"-head-icon",g+"-head-icon-"+String(this.iconType)]},iconNameCls:function(){return["ivu-icon","ivu-icon-"+String(this.iconName)]},localeOkText:function(){return this.okText?this.okText:this.t("i.modal.okText")},localeCancelText:function(){return this.cancelText?this.cancelText:this.t("i.modal.cancelText")}},methods:{cancel:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.closing||(this.$children[0].visible=!1,this.buttonLoading=!1,this.onCancel(O),this.remove())},ok:function(){var O=this;if(!this.closing){this.loading?this.buttonLoading=!0:(this.$children[0].visible=!1,this.remove()),this.okIng=!0;var A=this.onOk();A&&A.then?A.then(function(){(0,n.default)(this,O),this.$children[0].visible=!1,this.remove()}.bind(this)).catch(function(){(0,n.default)(this,O),this.buttonLoading=!1}.bind(this)).finally(function(T){(0,n.default)(this,O),this.okIng=!1}.bind(this)):this.okIng=!1}},remove:function(){var O=this;this.closing=!0,setTimeout(function(){(0,n.default)(this,O),this.closing=!1,this.destroy()}.bind(this),300)},destroy:function(){if(this.$destroy(),this.$el)try{this.append&&(0,a.default)(this.append)==="object"?this.append.removeChild(this.$el):document.body.removeChild(this.$el)}catch{}this.onRemove()},onOk:function(){},onCancel:function(){},onRemove:function(){}}}),p=C.$mount();x.append&&(0,a.default)(x.append)==="object"?x.append.appendChild(p.$el):document.body.appendChild(p.$el);var S=C.$children[0];return{show:function(O){switch(S.$parent.showCancel=O.showCancel,S.$parent.iconType=O.icon,O.icon){case"info":S.$parent.iconName="ios-information-circle";break;case"success":S.$parent.iconName="ios-checkmark-circle";break;case"warning":S.$parent.iconName="ios-alert";break;case"error":S.$parent.iconName="ios-close-circle";break;case"confirm":S.$parent.iconName="ios-help-circle";break}"width"in O&&(S.$parent.width=O.width),"closable"in O&&(S.$parent.closable=O.closable),"title"in O&&(S.$parent.title=O.title),"content"in O&&(S.$parent.body=O.content),"okText"in O&&(S.$parent.okText=O.okText),"cancelText"in O&&(S.$parent.cancelText=O.cancelText),"okType"in O&&(S.$parent.okType=O.okType),"cancelType"in O&&(S.$parent.cancelType=O.cancelType),"onCancel"in O&&(S.$parent.onCancel=O.onCancel),"onOk"in O&&(S.$parent.onOk=O.onOk),"loading"in O&&(S.$parent.loading=O.loading),"scrollable"in O&&(S.$parent.scrollable=O.scrollable),"enterOk"in O&&(S.$parent.enterOk=O.enterOk),S.$parent.onRemove=O.onRemove,S.visible=!0},remove:function(){S.visible=!1,S.$parent.buttonLoading=!1,S.$parent.remove()},component:S}}.bind(void 0),r.default=u.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(217),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(507);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":e.transfer}},[n("transition",{attrs:{name:e.transitionNames[1]}},[e.visible&&e.showMask?n("div",{class:e.maskClasses,style:e.wrapStyles,on:{click:e.handleMask}}):e._e()]),e._v(" "),n("div",{class:e.wrapClasses,style:e.wrapStyles,on:{click:e.handleWrapClick}},[n("transition",{attrs:{name:e.transitionNames[0]},on:{"after-leave":e.animationFinish}},[e.visible?n("div",{class:e.classes,style:e.mainStyles,on:{mousedown:e.handleMousedown}},[n("div",{ref:"content",class:e.contentClasses,style:e.contentStyles,on:{click:e.handleClickModal}},[e.closable?n("a",{class:[e.prefixCls+"-close"],on:{click:e.close}},[e._t("close",function(){return[n("Icon",{attrs:{type:"ios-close"}})]})],2):e._e(),e._v(" "),e.showHead?n("div",{class:[e.prefixCls+"-header"],on:{mousedown:e.handleMoveStart}},[e._t("header",function(){return[n("div",{class:[e.prefixCls+"-header-inner"]},[e._v(e._s(e.title))])]})],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"]},[e._t("default")],2),e._v(" "),e.footerHide?e._e():n("div",{class:[e.prefixCls+"-footer"]},[e._t("footer",function(){return[n("i-button",{attrs:{type:"text"},nativeOn:{click:function(o){return e.cancel.apply(null,arguments)}}},[e._v(e._s(e.localeCancelText))]),e._v(" "),n("i-button",{attrs:{type:"primary",loading:e.buttonLoading},nativeOn:{click:function(o){return e.ok.apply(null,arguments)}}},[e._v(e._s(e.localeOkText))])]})],2)])]):e._e()])],1)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(213),a=d(s);function d(_){return _&&_.__esModule?_:{default:_}}var e="ivu-notice",l="ivu-icon",n="ivu_notice_key_",i=24,o=4.5,c=void 0,u=1,f={info:"ios-information-circle",success:"ios-checkmark-circle",warning:"ios-alert",error:"ios-close-circle"};function y(){return c=c||a.default.newInstance({prefixCls:e,styles:{top:i+"px",right:0}}),c}function m(_,h){var g=h.title||"",b=h.desc||"",x=h.name||""+n+u,C=h.onClose||function(){},p=h.render,S=h.duration===0?0:h.duration||o;u++;var P=y(),O=void 0,A=void 0,T=h.render&&!g?"":b||h.render?" "+e+"-with-desc":"";if(_=="normal")A=!1,O=`
    '+String(g)+`
    '+String(b)+`
    - `;else{var B=f[_],j=T===""?"":"-outline";R=!0,O=` + `;else{var B=f[_],j=T===""?"":"-outline";A=!0,O=`
    @@ -67,7 +67,7 @@ import{c as Lt,g as $t}from"./@babel.49d8906a.js";import{r as Bt}from"./vue.c448
    '+String(g)+`
    '+String(b)+`
    - `}P.notice({name:x.toString(),duration:S,styles:{},transitionName:"move-notice",content:O,withIcon:R,render:p,hasTitle:!!g,onClose:C,closable:!0,type:"notice"})}r.default={open:function(h){return m("normal",h)},info:function(h){return m("info",h)},success:function(h){return m("success",h)},warning:function(h){return m("warning",h)},error:function(h){return m("error",h)},config:function(h){h.top&&(i=h.top),(h.duration||h.duration===0)&&(o=h.duration)},close:function(h){if(h)h=h.toString(),c&&c.remove(h);else return!1},destroy:function(){var h=y();c=null,h.destroy("ivu-notice")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(510),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(218),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(513);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(219),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(512);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.showSizer||e.showElevator?n("div",{class:e.optsClasses},[e.showSizer?n("div",{class:e.sizerClasses},[n("i-select",{attrs:{size:e.size,placement:e.placement,transfer:e.transfer,disabled:e.disabled,eventsEnabled:e.eventsEnabled},on:{"on-change":e.changeSize},model:{value:e.currentPageSize,callback:function(o){e.currentPageSize=o},expression:"currentPageSize"}},e._l(e.pageSizeOpts,function(i){return n("i-option",{key:i,staticStyle:{"text-align":"center"},attrs:{value:i}},[e._v(e._s(i)+" "+e._s(e.t("i.page.page")))])}),1)],1):e._e(),e._v(" "),e.showElevator?n("div",{class:e.ElevatorClasses},[e._v(` + `}P.notice({name:x.toString(),duration:S,styles:{},transitionName:"move-notice",content:O,withIcon:A,render:p,hasTitle:!!g,onClose:C,closable:!0,type:"notice"})}r.default={open:function(h){return m("normal",h)},info:function(h){return m("info",h)},success:function(h){return m("success",h)},warning:function(h){return m("warning",h)},error:function(h){return m("error",h)},config:function(h){h.top&&(i=h.top),(h.duration||h.duration===0)&&(o=h.duration)},close:function(h){if(h)h=h.toString(),c&&c.remove(h);else return!1},destroy:function(){var h=y();c=null,h.destroy("ivu-notice")}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(510),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(218),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(513);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(219),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(512);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.showSizer||e.showElevator?n("div",{class:e.optsClasses},[e.showSizer?n("div",{class:e.sizerClasses},[n("i-select",{attrs:{size:e.size,placement:e.placement,transfer:e.transfer,disabled:e.disabled,eventsEnabled:e.eventsEnabled},on:{"on-change":e.changeSize},model:{value:e.currentPageSize,callback:function(o){e.currentPageSize=o},expression:"currentPageSize"}},e._l(e.pageSizeOpts,function(i){return n("i-option",{key:i,staticStyle:{"text-align":"center"},attrs:{value:i}},[e._v(e._s(i)+" "+e._s(e.t("i.page.page")))])}),1)],1):e._e(),e._v(" "),e.showElevator?n("div",{class:e.ElevatorClasses},[e._v(` `+e._s(e.t("i.page.goto"))+` `),n("input",{attrs:{type:"text",autocomplete:"off",spellcheck:"false",disabled:e.disabled},domProps:{value:e._current},on:{keyup:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.changePage.apply(null,arguments)}}}),e._v(` `+e._s(e.t("i.page.p"))+` @@ -75,11 +75,11 @@ import{c as Lt,g as $t}from"./@babel.49d8906a.js";import{r as Bt}from"./vue.c448 `+e._s(e.allPages)+` `)]),e._v(" "),n("li",{class:e.nextClasses,attrs:{title:e.t("i.page.next")},on:{click:e.next}},[e._m(1)])]):n("ul",{class:e.wrapClasses,style:e.styles},[e.showTotal?n("span",{class:[e.prefixCls+"-total"]},[e._t("default",function(){return[e._v(e._s(e.t("i.page.total"))+" "+e._s(e.total)+" "),e.total<=1?[e._v(e._s(e.t("i.page.item")))]:[e._v(e._s(e.t("i.page.items")))]]})],2):e._e(),e._v(" "),n("li",{class:e.prevClasses,attrs:{title:e.t("i.page.prev")},on:{click:e.prev}},[n("a",[e.prevText!==""?[e._v(e._s(e.prevText))]:n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-back"})],2)]),e._v(" "),n("li",{class:e.firstPageClasses,attrs:{title:"1"},on:{click:function(o){return e.changePage(1)}}},[n("a",[e._v("1")])]),e._v(" "),e.currentPage>5?n("li",{class:[e.prefixCls+"-item-jump-prev"],attrs:{title:e.t("i.page.prev5")},on:{click:e.fastPrev}},[e._m(2)]):e._e(),e._v(" "),e.currentPage===5?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage-3},on:{click:function(o){return e.changePage(e.currentPage-3)}}},[n("a",[e._v(e._s(e.currentPage-3))])]):e._e(),e._v(" "),e.currentPage-2>1?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage-2},on:{click:function(o){return e.changePage(e.currentPage-2)}}},[n("a",[e._v(e._s(e.currentPage-2))])]):e._e(),e._v(" "),e.currentPage-1>1?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage-1},on:{click:function(o){return e.changePage(e.currentPage-1)}}},[n("a",[e._v(e._s(e.currentPage-1))])]):e._e(),e._v(" "),e.currentPage!=1&&e.currentPage!=e.allPages?n("li",{class:[e.prefixCls+"-item",e.prefixCls+"-item-active"],attrs:{title:e.currentPage}},[n("a",[e._v(e._s(e.currentPage))])]):e._e(),e._v(" "),e.currentPage+1=5?n("li",{class:[e.prefixCls+"-item-jump-next"],attrs:{title:e.t("i.page.next5")},on:{click:e.fastNext}},[e._m(3)]):e._e(),e._v(" "),e.allPages>1?n("li",{class:e.lastPageClasses,attrs:{title:e.allPages},on:{click:function(o){return e.changePage(e.allPages)}}},[n("a",[e._v(e._s(e.allPages))])]):e._e(),e._v(" "),n("li",{class:e.nextClasses,attrs:{title:e.t("i.page.next")},on:{click:e.next}},[n("a",[e.nextText!==""?[e._v(e._s(e.nextText))]:n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-forward"})],2)]),e._v(" "),n("Options",{attrs:{"show-sizer":e.showSizer,"page-size":e.currentPageSize,"page-size-opts":e.pageSizeOpts,placement:e.placement,transfer:e.transfer,"show-elevator":e.showElevator,_current:e.currentPage,current:e.currentPage,disabled:e.disabled,"all-pages":e.allPages,"is-small":e.isSmall,eventsEnabled:e.eventsEnabled},on:{"on-size":e.onSize,"on-page":e.onPage}})],1)},a=[function(){var d=this,e=d.$createElement,l=d._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-back"})])},function(){var d=this,e=d.$createElement,l=d._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-forward"})])},function(){var d=this,e=d.$createElement,l=d._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-back"}),l("i",{staticClass:"ivu-icon ivu-icon-ios-more"})])},function(){var d=this,e=d.$createElement,l=d._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-forward"}),l("i",{staticClass:"ivu-icon ivu-icon-ios-more"})])}];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(220),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}],class:e.classes,on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"],on:{click:e.handleClick,mousedown:function(o){return e.handleFocus(!1)},mouseup:function(o){return e.handleBlur(!1)}}},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"popper",class:e.popperClasses,style:e.styles,attrs:{"data-transfer":e.transfer},on:{click:e.handleTransferClick,mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{class:[e.prefixCls+"-content"]},[n("div",{class:[e.prefixCls+"-arrow"]}),e._v(" "),e.confirm?n("div",{class:[e.prefixCls+"-inner"]},[n("div",{class:[e.prefixCls+"-body"]},[n("i",{staticClass:"ivu-icon ivu-icon-ios-help-circle"}),e._v(" "),n("div",{class:[e.prefixCls+"-body-message"]},[e._t("title",function(){return[e._v(e._s(e.title))]})],2)]),e._v(" "),n("div",{class:[e.prefixCls+"-footer"]},[n("i-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(o){return e.cancel.apply(null,arguments)}}},[e._v(e._s(e.localeCancelText))]),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small"},nativeOn:{click:function(o){return e.ok.apply(null,arguments)}}},[e._v(e._s(e.localeOkText))])],1)]):e._e(),e._v(" "),e.confirm?e._e():n("div",{class:[e.prefixCls+"-inner"]},[e.showTitle?n("div",{ref:"title",class:[e.prefixCls+"-title"],style:e.contentPaddingStyle},[e._t("title",function(){return[n("div",{class:[e.prefixCls+"-title-inner"]},[e._v(e._s(e.title))])]})],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"],style:e.contentPaddingStyle},[n("div",{class:e.contentClasses},[e._t("content",function(){return[n("div",{class:[e.prefixCls+"-body-content-inner"]},[e._v(e._s(e.content))])]})],2)])])])])])],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(223),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[n("div",{class:e.outerClasses},[n("div",{class:e.innerClasses},[n("div",{class:e.bgClasses,style:e.bgStyle},[e.textInside?n("div",{staticClass:"ivu-progress-inner-text"},[e._v(e._s(e.percent)+"%")]):e._e()]),n("div",{class:e.successBgClasses,style:e.successBgStyle})])]),e._v(" "),!e.hideInfo&&!e.textInside?n("span",{class:e.textClasses},[e._t("default",function(){return[e.isStatus?n("span",{class:e.textInnerClasses},[n("Icon",{attrs:{type:e.statusIcon}})],1):n("span",{class:e.textInnerClasses},[e._v(` `+e._s(e.percent)+`% - `)])]})],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(519),a=l(s),d=t(521),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(225),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(520);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{class:e.wrapClasses},[n("span",{class:e.radioClasses},[n("span",{class:e.innerClasses}),e._v(" "),n("input",{class:e.inputClasses,attrs:{type:"radio",disabled:e.itemDisabled,name:e.groupName},domProps:{checked:e.currentValue},on:{change:e.change,focus:e.onFocus,blur:e.onBlur}})]),e._t("default",function(){return[e._v(e._s(e.label))]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(226),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(522);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,attrs:{name:e.name}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(524),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(227),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(525);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mouseleave:e.handleMouseleave}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),e._l(e.count,function(i){return n("div",{key:i,class:e.starCls(i),on:{mousemove:function(c){return e.handleMousemove(i,c)},click:function(c){return e.handleClick(i)}}},[e.showCharacter?[n("span",{class:[e.prefixCls+"-star-first"],attrs:{type:"half"}},[e.character!==""?[e._v(e._s(e.character))]:n("i",{class:e.iconClasses,attrs:{type:"half"}})],2),e._v(" "),n("span",{class:[e.prefixCls+"-star-second"]},[e.character!==""?[e._v(e._s(e.character))]:n("i",{class:e.iconClasses})],2)]:[n("span",{class:[e.prefixCls+"-star-content"],attrs:{type:"half"}})]],2)}),e._v(" "),e.showText?n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentValue>0,expression:"currentValue > 0"}],class:[e.prefixCls+"-text"]},[e._t("default",function(){return[n("span",[e._v(e._s(e.currentValue))]),e._v(" "),e.currentValue<=1?n("span",[e._v(e._s(e.t("i.rate.star")))]):n("span",[e._v(e._s(e.t("i.rate.stars")))])]})],2):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(203),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(528),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(228),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(541);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls],on:{mouseenter:e.handleShowPopper,mouseleave:e.handleClosePopper}},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"]},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.visible||e.always),expression:"!disabled && (visible || always)"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"popper",class:e.dropdownCls,style:e.dropStyles,attrs:{"data-transfer":e.transfer},on:{mouseenter:e.handleShowPopper,mouseleave:e.handleClosePopper}},[n("div",{class:[e.prefixCls+"-content"]},[n("div",{class:[e.prefixCls+"-arrow"]}),e._v(" "),n("div",{class:e.innerClasses,style:e.innerStyles},[e._t("content",function(){return[e._v(e._s(e.content))]})],2)])])])],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"SliderMarker",props:{mark:{type:[String,Object]}},render:function(a){var d=typeof this.mark=="string"?this.mark:[this.mark.label];return a("div",{class:"ivu-slider-marks-item",style:this.mark.style||{}},d)}}},function(v,r,t){v.exports=function(s){var a=s.stateHandler.getState;function d(i){var o=a(i);return o&&!!o.isDetectable}function e(i){a(i).isDetectable=!0}function l(i){return!!a(i).busy}function n(i,o){a(i).busy=!!o}return{isDetectable:d,markAsDetectable:e,isBusy:l,markBusy:n}}},function(v,r,t){v.exports=function(s){var a={};function d(i){var o=s.get(i);return o===void 0?[]:a[o]||[]}function e(i,o){var c=s.get(i);a[c]||(a[c]=[]),a[c].push(o)}function l(i,o){for(var c=d(i),u=0,f=c.length;ul?l=u:u div::-webkit-scrollbar { "+f(["display: none"])+` } + `)])]})],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(519),a=l(s),d=t(521),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Group=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(225),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(520);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{class:e.wrapClasses},[n("span",{class:e.radioClasses},[n("span",{class:e.innerClasses}),e._v(" "),n("input",{class:e.inputClasses,attrs:{type:"radio",disabled:e.itemDisabled,name:e.groupName},domProps:{checked:e.currentValue},on:{change:e.change,focus:e.onFocus,blur:e.onBlur}})]),e._t("default",function(){return[e._v(e._s(e.label))]})],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(226),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(522);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,attrs:{name:e.name}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(524),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(227),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(525);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mouseleave:e.handleMouseleave}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),e._l(e.count,function(i){return n("div",{key:i,class:e.starCls(i),on:{mousemove:function(c){return e.handleMousemove(i,c)},click:function(c){return e.handleClick(i)}}},[e.showCharacter?[n("span",{class:[e.prefixCls+"-star-first"],attrs:{type:"half"}},[e.character!==""?[e._v(e._s(e.character))]:n("i",{class:e.iconClasses,attrs:{type:"half"}})],2),e._v(" "),n("span",{class:[e.prefixCls+"-star-second"]},[e.character!==""?[e._v(e._s(e.character))]:n("i",{class:e.iconClasses})],2)]:[n("span",{class:[e.prefixCls+"-star-content"],attrs:{type:"half"}})]],2)}),e._v(" "),e.showText?n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentValue>0,expression:"currentValue > 0"}],class:[e.prefixCls+"-text"]},[e._t("default",function(){return[n("span",[e._v(e._s(e.currentValue))]),e._v(" "),e.currentValue<=1?n("span",[e._v(e._s(e.t("i.rate.star")))]):n("span",[e._v(e._s(e.t("i.rate.stars")))])]})],2):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(203),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(528),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(228),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(541);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls],on:{mouseenter:e.handleShowPopper,mouseleave:e.handleClosePopper}},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"]},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.visible||e.always),expression:"!disabled && (visible || always)"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"popper",class:e.dropdownCls,style:e.dropStyles,attrs:{"data-transfer":e.transfer},on:{mouseenter:e.handleShowPopper,mouseleave:e.handleClosePopper}},[n("div",{class:[e.prefixCls+"-content"]},[n("div",{class:[e.prefixCls+"-arrow"]}),e._v(" "),n("div",{class:e.innerClasses,style:e.innerStyles},[e._t("content",function(){return[e._v(e._s(e.content))]})],2)])])])],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"SliderMarker",props:{mark:{type:[String,Object]}},render:function(a){var d=typeof this.mark=="string"?this.mark:[this.mark.label];return a("div",{class:"ivu-slider-marks-item",style:this.mark.style||{}},d)}}},function(v,r,t){v.exports=function(s){var a=s.stateHandler.getState;function d(i){var o=a(i);return o&&!!o.isDetectable}function e(i){a(i).isDetectable=!0}function l(i){return!!a(i).busy}function n(i,o){a(i).busy=!!o}return{isDetectable:d,markAsDetectable:e,isBusy:l,markBusy:n}}},function(v,r,t){v.exports=function(s){var a={};function d(i){var o=s.get(i);return o===void 0?[]:a[o]||[]}function e(i,o){var c=s.get(i);a[c]||(a[c]=[]),a[c].push(o)}function l(i,o){for(var c=d(i),u=0,f=c.length;ul?l=u:u div::-webkit-scrollbar { "+f(["display: none"])+` } `,q+="."+j+" { "+f(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+B,"animation-name: "+B])+` } `,q+="@-webkit-keyframes "+B+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } -`,q+="@keyframes "+B+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",T(q)}}function _(P){P.className+=" "+c+"_animation_active"}function h(P,O,R){if(P.addEventListener)P.addEventListener(O,R);else if(P.attachEvent)P.attachEvent("on"+O,R);else return d.error("[scroll] Don't know how to add event listeners.")}function g(P,O,R){if(P.removeEventListener)P.removeEventListener(O,R);else if(P.detachEvent)P.detachEvent("on"+O,R);else return d.error("[scroll] Don't know how to remove event listeners.")}function b(P){return l(P).container.childNodes[0].childNodes[0].childNodes[0]}function x(P){return l(P).container.childNodes[0].childNodes[0].childNodes[1]}function C(P,O){var R=l(P).listeners;if(!R.push)throw new Error("Cannot add listener to an element that is not detectable.");l(P).listeners.push(O)}function p(P,O,R){R||(R=O,O=P,P=null),P=P||{};function T(){if(P.debug){var ee=Array.prototype.slice.call(arguments);if(ee.unshift(n.get(O),"Scroll: "),d.log.apply)d.log.apply(null,ee);else for(var he=0;he0?[e._l(e.markList,function(i,o){return n("div",{key:o,class:[e.prefixCls+"-stop"],style:{left:i.position+"%"},on:{click:function(u){return u.target!==u.currentTarget?null:e.sliderClick.apply(null,arguments)}}})}),e._v(" "),n("div",{staticClass:"ivu-slider-marks"},e._l(e.markList,function(i,o){return n("SliderMarker",{key:o,style:{left:i.position+"%"},attrs:{mark:i.mark},nativeOn:{click:function(u){return e.sliderClick.apply(null,arguments)}}})}),1)]:e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.minPosition+"%"},on:{touchstart:function(o){return e.onPointerDown(o,"min")},mousedown:function(o){return e.onPointerDown(o,"min")}}},[n("Tooltip",{ref:"minTooltip",attrs:{controlled:e.pointerDown==="min",placement:"top",content:e.tipFormat(e.exportValue[0]),disabled:e.tipDisabled,always:e.showTip==="always"}},[n("div",{class:e.minButtonClasses,attrs:{tabindex:"0"},on:{focus:function(o){return e.handleFocus("min")},blur:function(o){return e.handleBlur("min")},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.onKeyLeft(i,"min")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:e.onKeyLeft(i,"min")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.onKeyRight(i,"min")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:e.onKeyRight(i,"min")}]}})])],1),e._v(" "),e.range?n("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.maxPosition+"%"},on:{touchstart:function(o){return e.onPointerDown(o,"max")},mousedown:function(o){return e.onPointerDown(o,"max")}}},[n("Tooltip",{ref:"maxTooltip",attrs:{controlled:e.pointerDown==="max",placement:"top",content:e.tipFormat(e.exportValue[1]),disabled:e.tipDisabled,always:e.showTip==="always"}},[n("div",{class:e.maxButtonClasses,attrs:{tabindex:"0"},on:{focus:function(o){return e.handleFocus("max")},blur:function(o){return e.handleBlur("max")},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.onKeyLeft(i,"max")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:e.onKeyLeft(i,"max")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.onKeyRight(i,"max")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:e.onKeyRight(i,"max")}]}})])],1):e._e()],2)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(543),e=l(d);function l(c){return c&&c.__esModule?c:{default:c}}var n=void 0;function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return n=n||e.default.newInstance({render:c}),n}function o(c){var u="render"in c?c.render:void 0,f=i(u);f.show(c)}e.default.show=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return o(c)},e.default.hide=function(){var c=this;if(!n)return!1;var u=i();u.remove(function(){(0,a.default)(this,c),n=null}.bind(this))},r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=u(s),d=t(1),e=u(d),l=t(17),n=u(l),i=t(91),o=u(i),c=t(33);function u(m){return m&&m.__esModule?m:{default:m}}function f(){return(0,c.transferIncrease)(),(0,c.getTransferIndex)()}var y=f();o.default.newInstance=function(m){(0,e.default)(void 0,void 0);var _=m||{},h=new n.default({data:(0,a.default)({},_,{}),render:function(C){var p="";return this.render?p=C(o.default,{props:{fix:!0,fullscreen:!0}},[this.render(C)]):p=C(o.default,{props:{size:"large",fix:!0,fullscreen:!0}}),C("div",{class:"ivu-spin-fullscreen ivu-spin-fullscreen-wrapper",style:{"z-index":(0,c.hasTransferIndex)(y,2010+y)}},[p])}}),g=h.$mount();document.body.appendChild(g.$el);var b=h.$children[0];return{show:function(){b.visible=!0,y=f()},remove:function(C){b.visible=!1,setTimeout(function(){b.$parent.$destroy(),document.getElementsByClassName("ivu-spin-fullscreen")[0]!==void 0&&document.body.removeChild(document.getElementsByClassName("ivu-spin-fullscreen")[0]),C()},500)},component:b}}.bind(void 0),r.default=o.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(545),a=l(s),d=t(547),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Step=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(232),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(546);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(233),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(548);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[n("div",{class:[e.prefixCls+"-tail"]},[n("i")]),e._v(" "),n("div",{class:[e.prefixCls+"-head"]},[n("div",{class:[e.prefixCls+"-head-inner"]},[!e.icon&&!e.$slots.icon&&e.currentStatus!=="finish"&&e.currentStatus!=="error"?n("span",[e._v(e._s(e.stepNumber))]):e.$slots.icon?n("span",{staticClass:"ivu-steps-icon"},[e._t("icon")],2):n("span",{class:e.iconClasses})])]),e._v(" "),n("div",{class:[e.prefixCls+"-main"]},[n("div",{class:[e.prefixCls+"-title"]},[e._t("title",function(){return[e._v(e._s(e.title))]})],2),e._v(" "),e.content||e.$slots.content?n("div",{class:[e.prefixCls+"-content"]},[e._t("content",function(){return[e._v(e._s(e.content))]})],2):e._e()])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(550),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(234),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(551);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.wrapClasses,style:e.wrapStyles,attrs:{tabindex:"0"},on:{click:e.toggle,keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"space",32,o.key,[" ","Spacebar"])?null:e.toggle.apply(null,arguments)}}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),n("span",{class:e.innerClasses},[e.currentValue===e.trueValue?e._t("open"):e._e(),e._v(" "),e.currentValue===e.falseValue?e._t("close"):e._e()],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(553),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(235),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(583);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(555),__esModule:!0}},function(v,r,t){t(79),t(36),t(46),t(556),t(562),t(565),t(567),v.exports=t(5).Set},function(v,r,t){var s=t(557),a=t(236),d="Set";v.exports=t(558)(d,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(l){return s.def(a(this,d),l=l===0?0:l,l)}},s)},function(v,r,t){var s=t(16).f,a=t(55),d=t(90),e=t(25),l=t(88),n=t(51),i=t(72),o=t(102),c=t(190),u=t(13),f=t(77).fastKey,y=t(236),m=u?"_s":"size",_=function(h,g){var b=f(g),x;if(b!=="F")return h._i[b];for(x=h._f;x;x=x.n)if(x.k==g)return x};v.exports={getConstructor:function(h,g,b,x){var C=h(function(p,S){l(p,C,g,"_i"),p._t=g,p._i=a(null),p._f=void 0,p._l=void 0,p[m]=0,S!=null&&n(S,b,p[x],p)});return d(C.prototype,{clear:function(){for(var S=y(this,g),P=S._i,O=S._f;O;O=O.n)O.r=!0,O.p&&(O.p=O.p.n=void 0),delete P[O.i];S._f=S._l=void 0,S[m]=0},delete:function(p){var S=y(this,g),P=_(S,p);if(P){var O=P.n,R=P.p;delete S._i[P.i],P.r=!0,R&&(R.n=O),O&&(O.p=R),S._f==P&&(S._f=O),S._l==P&&(S._l=R),S[m]--}return!!P},forEach:function(S){y(this,g);for(var P=e(S,arguments.length>1?arguments[1]:void 0,3),O;O=O?O.n:this._f;)for(P(O.v,O.k,this);O&&O.r;)O=O.p},has:function(S){return!!_(y(this,g),S)}}),u&&s(C.prototype,"size",{get:function(){return y(this,g)[m]}}),C},def:function(h,g,b){var x=_(h,g),C,p;return x?x.v=b:(h._l=x={i:p=f(g,!0),k:g,v:b,p:C=h._l,n:void 0,r:!1},h._f||(h._f=x),C&&(C.n=x),h[m]++,p!=="F"&&(h._i[p]=x)),h},getEntry:_,setStrong:function(h,g,b){i(h,g,function(x,C){this._t=y(x,g),this._k=C,this._l=void 0},function(){for(var x=this,C=x._k,p=x._l;p&&p.r;)p=p.p;return!x._t||!(x._l=p=p?p.n:x._t._f)?(x._t=void 0,o(1)):C=="keys"?o(0,p.k):C=="values"?o(0,p.v):o(0,[p.k,p.v])},b?"entries":"values",!b,!0),c(g)}}},function(v,r,t){var s=t(9),a=t(7),d=t(77),e=t(31),l=t(26),n=t(90),i=t(51),o=t(88),c=t(19),u=t(47),f=t(16).f,y=t(559)(0),m=t(13);v.exports=function(_,h,g,b,x,C){var p=s[_],S=p,P=x?"set":"add",O=S&&S.prototype,R={};return!m||typeof S!="function"||!(C||O.forEach&&!e(function(){new S().entries().next()}))?(S=b.getConstructor(h,_,x,P),n(S.prototype,g),d.NEED=!0):(S=h(function(T,B){o(T,S,_,"_c"),T._c=new p,B!=null&&i(B,x,T[P],T)}),y("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(T){var B=T=="add"||T=="set";T in O&&!(C&&T=="clear")&&l(S.prototype,T,function(j,q){if(o(this,S,T),!B&&C&&!c(j))return T=="get"?void 0:!1;var U=this._c[T](j===0?0:j,q);return B?this:U})}),C||f(S.prototype,"size",{get:function(){return this._c.size}})),u(S,_),R[_]=S,a(a.G+a.W+a.F,R),C||b.setStrong(S,_,x),S}},function(v,r,t){var s=t(25),a=t(64),d=t(29),e=t(52),l=t(560);v.exports=function(n,i){var o=n==1,c=n==2,u=n==3,f=n==4,y=n==6,m=n==5||y,_=i||l;return function(h,g,b){for(var x=d(h),C=a(x),p=s(g,b,3),S=e(C.length),P=0,O=o?_(h,S):c?_(h,0):void 0,R,T;S>P;P++)if((m||P in C)&&(R=C[P],T=p(R,P,x),n)){if(o)O[P]=T;else if(T)switch(n){case 3:return!0;case 5:return R;case 6:return P;case 2:O.push(R)}else if(f)return!1}return y?-1:u||f?f:O}}},function(v,r,t){var s=t(561);v.exports=function(a,d){return new(s(a))(d)}},function(v,r,t){var s=t(19),a=t(111),d=t(10)("species");v.exports=function(e){var l;return a(e)&&(l=e.constructor,typeof l=="function"&&(l===Array||a(l.prototype))&&(l=void 0),s(l)&&(l=l[d],l===null&&(l=void 0))),l===void 0?Array:l}},function(v,r,t){var s=t(7);s(s.P+s.R,"Set",{toJSON:t(563)("Set")})},function(v,r,t){var s=t(56),a=t(564);v.exports=function(d){return function(){if(s(this)!=d)throw TypeError(d+"#toJSON isn't generic");return a(this)}}},function(v,r,t){var s=t(51);v.exports=function(a,d){var e=[];return s(a,!1,e.push,e,d),e}},function(v,r,t){t(566)("Set")},function(v,r,t){var s=t(7);v.exports=function(a){s(s.S,a,{of:function(){for(var e=arguments.length,l=new Array(e);e--;)l[e]=arguments[e];return new this(l)}})}},function(v,r,t){t(568)("Set")},function(v,r,t){var s=t(7),a=t(43),d=t(25),e=t(51);v.exports=function(l){s(s.S,l,{from:function(i){var o=arguments[1],c,u,f,y;return a(this),c=o!==void 0,c&&a(o),i==null?new this:(u=[],c?(f=0,y=d(o,arguments[2],2),e(i,!1,function(m){u.push(y(m,f++))})):e(i,!1,u.push,u),new this(u))}})}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(237),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(571);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"TableRenderHeader",functional:!0,props:{render:Function,column:Object,index:Number},render:function(l,n){(0,a.default)(void 0,void 0);var i={column:n.props.column,index:n.props.index};return n.props.render(l,i)}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("table",{style:e.styles,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("colgroup",[e._l(e.columns,function(i,o){return n("col",{attrs:{width:e.setCellWidth(i)}})}),e._v(" "),e.$parent.showVerticalScrollBar?n("col",{attrs:{width:e.$parent.scrollBarWidth}}):e._e()],2),e._v(" "),n("thead",e._l(e.headRows,function(i,o){return n("tr",[e._l(i,function(c,u){var f;return n("th",{class:e.alignCls(c),attrs:{colspan:c.colSpan,rowspan:c.rowSpan}},[n("div",{class:e.cellClasses(c)},[c.type==="expand"?[c.renderHeader?n("render-header",{attrs:{render:c.renderHeader,column:c,index:u}}):n("span",[e._v(e._s(c.title||""))])]:c.type==="selection"?[c.hideSelectAll?e._e():n("Checkbox",{attrs:{value:e.isSelectAll,disabled:e.isSelectDisabled},on:{"on-change":e.selectAll}})]:[c.renderHeader?n("render-header",{attrs:{render:c.renderHeader,column:c,index:u}}):n("span",{class:(f={},f[e.prefixCls+"-cell-sort"]=c.sortable,f),on:{click:function(m){c.sortable&&e.handleSortByHead(e.getColumn(o,u)._index)}}},[e._v(e._s(c.title||"#"))]),e._v(" "),c.sortable?n("span",{class:[e.prefixCls+"-sort"]},[n("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropup",class:{on:e.getColumn(o,u)._sortType==="asc"},on:{click:function(m){e.handleSort(e.getColumn(o,u)._index,"asc")}}}),e._v(" "),n("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropdown",class:{on:e.getColumn(o,u)._sortType==="desc"},on:{click:function(m){e.handleSort(e.getColumn(o,u)._index,"desc")}}})]):e._e(),e._v(" "),e.isPopperShow(c)?n("Poptip",{attrs:{placement:"bottom","popper-class":"ivu-table-popper",transfer:"",capture:!1},on:{"on-popper-hide":function(m){e.handleFilterHide(e.getColumn(o,u)._index)}},model:{value:e.getColumn(o,u)._filterVisible,callback:function(m){e.$set(e.getColumn(o,u),"_filterVisible",m)},expression:"getColumn(rowIndex, index)._filterVisible"}},[n("span",{class:[e.prefixCls+"-filter"]},[n("i",{staticClass:"ivu-icon ivu-icon-ios-funnel",class:{on:e.getColumn(o,u)._isFiltered}})]),e._v(" "),e.getColumn(o,u)._filterMultiple?n("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[n("div",{class:[e.prefixCls+"-filter-list-item"]},[n("checkbox-group",{model:{value:e.getColumn(o,u)._filterChecked,callback:function(m){e.$set(e.getColumn(o,u),"_filterChecked",m)},expression:"getColumn(rowIndex, index)._filterChecked"}},e._l(c.filters,function(y,m){return n("checkbox",{key:m,attrs:{label:y.value}},[e._v(e._s(y.label))])}),1)],1),e._v(" "),n("div",{class:[e.prefixCls+"-filter-footer"]},[n("i-button",{attrs:{type:"text",size:"small",disabled:!e.getColumn(o,u)._filterChecked.length},nativeOn:{click:function(m){e.handleFilter(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.confirmFilter")))]),e._v(" "),n("i-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(m){e.handleReset(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.resetFilter")))])],1)]):n("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[n("ul",{class:[e.prefixCls+"-filter-list-single"]},[n("li",{class:e.itemAllClasses(e.getColumn(o,u)),on:{click:function(m){e.handleReset(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.clearFilter")))]),e._v(" "),e._l(c.filters,function(y){return n("li",{class:e.itemClasses(e.getColumn(o,u),y),on:{click:function(_){e.handleSelect(e.getColumn(o,u)._index,y.value)}}},[e._v(e._s(y.label))])})],2)])]):e._e()]],2),e._v(" "),c.resizable?n("div",{staticClass:"ivu-table-header-resizable",on:{mousedown:function(m){return e.handleMouseDown(c,m)},mousemove:function(m){return e.handleMouseMove(c,m)},mouseout:e.handleMouseOut}}):e._e()])}),e._v(" "),e.$parent.showVerticalScrollBar&&o===0?n("th",{class:e.scrollBarCellClass(),attrs:{rowspan:e.headRows.length}}):e._e()],2)}),0)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(238),a=t.n(s);for(var d in s)d!=="default"&&function(y){t.d(r,y,function(){return s[y]})}(d);var e=t(0),l,n,i=!1,o=null,c=null,u=null,f=Object(e.a)(a.a,l,n,i,o,c,u);r.default=f.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(239),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(574);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.draggable?n("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:e.draggable},on:{dragstart:function(o){return e.onDrag(o,e.row._index)},drop:function(o){return e.onDrop(o,e.row._index)},dragover:function(o){return e.allowDrop(o)}}},[e._t("default")],2):n("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:!1}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(240),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(577);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"TableSlot",functional:!0,inject:["tableRoot"],props:{row:Object,index:Number,column:{type:Object,default:null},display:{type:String,default:"block"}},render:function(l,n){return(0,a.default)(void 0,void 0),l("div",{class:{"ivu-table-cell-slot":!0,"ivu-table-cell-slot-inline":n.props.display==="inline","ivu-table-cell-slot-inline-block":n.props.display==="inline-block"}},n.injections.tableRoot.$scopedSlots[n.props.column.slot]({row:n.props.row,column:n.props.column,index:n.props.index}))}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"cell",class:e.classes},[e.renderType==="index"?[n("span",[e._v(e._s(e.column.indexMethod?e.column.indexMethod(e.row,e.naturalIndex):e.naturalIndex+1))])]:e._e(),e._v(" "),e.renderType==="selection"?[n("Checkbox",{attrs:{value:e.checked,disabled:e.disabled},on:{"on-change":e.toggleSelect},nativeOn:{click:function(o){return o.stopPropagation(),e.handleClick.apply(null,arguments)}}})]:e._e(),e._v(" "),e.showLevel?n("div",{staticClass:"ivu-table-cell-tree-level",style:e.treeLevelStyle}):e._e(),e._v(" "),e.showChildren?n("div",{staticClass:"ivu-table-cell-tree",class:{"ivu-table-cell-tree-loading":e.childrenLoading},on:{click:function(o){return o.preventDefault(),o.stopPropagation(),e.handleToggleTree.apply(null,arguments)}}},[e.childrenLoading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e.childrenExpand?n("Icon",{attrs:{type:"ios-remove"}}):n("Icon",{attrs:{type:"ios-add"}})],1):e.showTreeNode?n("div",{staticClass:"ivu-table-cell-tree ivu-table-cell-tree-empty"}):e._e(),e._v(" "),e.renderType==="html"?[n("span",{domProps:{innerHTML:e._s(e.row[e.column.key])}})]:e._e(),e._v(" "),e.renderType==="normal"?[e.column.tooltip?[n("Tooltip",{staticClass:"ivu-table-cell-tooltip",attrs:{transfer:"",content:e.row[e.column.key],theme:e.column.tooltipTheme?e.column.tooltipTheme:e.tableRoot.tooltipTheme,disabled:!e.showTooltip,"max-width":e.column.tooltipMaxWidth?e.column.tooltipMaxWidth:e.tableRoot.tooltipMaxWidth}},[n("span",{ref:"content",staticClass:"ivu-table-cell-tooltip-content",on:{mouseenter:e.handleTooltipIn}},[e._v(e._s(e.row[e.column.key]))])])]:n("span",[e._v(e._s(e.row[e.column.key]))])]:e._e(),e._v(" "),e.renderType==="expand"&&!e.row._disableExpand?[n("div",{class:e.expandCls,on:{click:e.toggleExpand}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]:e._e(),e._v(" "),e.renderType==="render"?n("table-expand",{attrs:{row:e.row,column:e.column,index:e.index,render:e.column.render}}):e._e(),e._v(" "),e.renderType==="slot"?n("table-slot",{attrs:{row:e.row,column:e.column,display:e.column.display||"block",index:e.index}}):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(242),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(579);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticStyle:{overflow:"hidden"}},[n("table",{staticClass:"ivu-table-summary",style:e.styleObject,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("colgroup",e._l(e.columns,function(i,o){return n("col",{attrs:{width:e.setCellWidth(i)}})}),0),e._v(" "),n("tbody",{class:[e.prefixCls+"-tbody"]},[n("tr",{staticClass:"ivu-table-row"},e._l(e.columns,function(i,o){return n("td",{class:e.alignCls(i)},[n("div",{staticClass:"ivu-table-cell",class:e.cellCls(i)},[n("span",[e._v(e._s(e.data[i.key].value))])])])}),0)])])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=i(s),d=t(14),e=i(d),l=t(1),n=i(l);r.default=f;function i(y){return y&&y.__esModule?y:{default:y}}var o=`\r -`,c=function(y,m,_){var h=_.separator,g=_.quoted;(0,n.default)(void 0,void 0);var b=m.map(function(x){return(0,n.default)(void 0,void 0),g?(x=typeof x=="string"?x.replace(/"/g,'"'):x,'"'+String(x)+'"'):x}.bind(void 0));y.push(b.join(h))}.bind(void 0),u={separator:",",quoted:!1};function f(y,m,_){var h=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;_=(0,e.default)({},u,_);var b=void 0,x=[],C=[];return y?(b=y.map(function(p){return(0,n.default)(this,h),typeof p=="string"?p:(g||C.push(typeof p.title!="undefined"?p.title:p.key),p.key)}.bind(this)),C.length>0&&c(x,C,_)):(b=[],m.forEach(function(p){(0,n.default)(this,h),Array.isArray(p)||(b=b.concat((0,a.default)(p)))}.bind(this)),b.length>0&&(b=b.filter(function(p,S,P){return(0,n.default)(this,h),P.indexOf(p)===S}.bind(this)),g||c(x,b,_))),Array.isArray(m)&&m.forEach(function(p){(0,n.default)(this,h),Array.isArray(p)||(p=b.map(function(S){return(0,n.default)(this,h),typeof p[S]!="undefined"?p[S]:""}.bind(this))),c(x,p,_)}.bind(this)),x.join(o)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});function s(d){var e=navigator.userAgent;if(d==="ie"){var l=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1;if(l){var n=new RegExp("MSIE (\\d+\\.\\d+);");return n.test(e),parseFloat(RegExp.$1)}else return!1}else return e.indexOf(d)>-1}var a={_isIE11:function(){var e=0,l=/MSIE (\d+\.\d+);/.test(navigator.userAgent),n=!!navigator.userAgent.match(/Trident\/7.0/),i=navigator.userAgent.indexOf("rv:11.0");return l&&(e=Number(RegExp.$1)),navigator.appVersion.indexOf("MSIE 10")!==-1&&(e=10),n&&i!==-1&&(e=11),e===11},_isEdge:function(){return/Edge/.test(navigator.userAgent)},_getDownloadUrl:function(e){var l="\uFEFF";if(window.Blob&&window.URL&&window.URL.createObjectURL){var n=new Blob([l+e],{type:"text/csv"});return URL.createObjectURL(n)}else return"data:attachment/csv;charset=utf-8,"+l+encodeURIComponent(e)},download:function(e,l){if(s("ie")&&s("ie")<10){var n=window.top.open("about:blank","_blank");n.document.charset="utf-8",n.document.write(l),n.document.close(),n.document.execCommand("SaveAs",e),n.close()}else if(s("ie")===10||this._isIE11()||this._isEdge()){var i="\uFEFF",o=new Blob([i+l],{type:"text/csv"});navigator.msSaveBlob(o,e)}else{var c=document.createElement("a");c.download=e,c.href=this._getDownloadUrl(l),document.body.appendChild(c),c.click(),document.body.removeChild(c)}}};r.default=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.getRandomStr=r.convertToRows=r.getAllColumns=r.convertColumnOrder=void 0;var s=t(1),a=e(s),d=t(3);function e(c){return c&&c.__esModule?c:{default:c}}var l=function(c,u){(0,a.default)(void 0,void 0);var f=[],y=[];return c.forEach(function(m){(0,a.default)(void 0,void 0),m.fixed&&m.fixed===u?f.push(m):y.push(m)}.bind(void 0)),f.concat(y)}.bind(void 0);r.convertColumnOrder=l;var n=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,a.default)(void 0,void 0);var f=(0,d.deepCopy)(c),y=[];return f.forEach(function(m){(0,a.default)(void 0,void 0),m.children?(u&&y.push(m),y.push.apply(y,n(m.children,u))):y.push(m)}.bind(void 0)),y}.bind(void 0);r.getAllColumns=n;var i=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,a.default)(void 0,void 0);var f=u?u==="left"?(0,d.deepCopy)(l(c,"left")):(0,d.deepCopy)(l(c,"right")):(0,d.deepCopy)(c),y=1,m=function(b,x){if((0,a.default)(void 0,void 0),x&&(b.level=x.level+1,y0&&arguments[0]!==void 0?arguments[0]:32,f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",y=f.length,m="",_=0;_=6e4&&y<36e5?m=Math.floor(y/6e4)+(c("i.time.minutes")||"\u5206\u949F")+_:y>=36e5&&y<864e5?m=Math.floor(y/36e5)+(c("i.time.hours")||"\u5C0F\u65F6")+_:y>=864e5&&y<262386e4?m=Math.floor(y/864e5)+(c("i.time.days")||"\u5929")+_:y>=262386e4&&y<=3156786e4&&f?m=n(o):m=n(o,"year"),m}.bind(void 0)},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.classes,on:{click:e.handleClick}},[e._v(e._s(e.date))])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(597),a=l(s),d=t(599),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(247),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(598);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(248),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(600);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.itemClasses},[n("div",{class:e.tailClasses}),e._v(" "),n("div",{ref:"dot",class:e.headClasses,style:e.customColor},[e._t("dot")],2),e._v(" "),n("div",{class:e.contentClasses},[e._t("default")],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(602),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=y(s),d=t(157),e=y(d),l=t(166),n=y(l),i=t(175),o=y(i),c=t(58),u=y(c),f=t(3);function y(m){return m&&m.__esModule?m:{default:m}}r.default={mixins:[e.default,u.default],components:{TimePickerPanel:n.default,RangeTimePickerPanel:o.default},props:{type:{validator:function(_){return(0,f.oneOf)(_,["time","timerange"])},default:"time"}},computed:{panel:function(){var _=this.type==="timerange";return _?"RangeTimePickerPanel":"TimePickerPanel"},ownPickerProps:function(){return{disabledHours:this.disabledHours,disabledMinutes:this.disabledMinutes,disabledSeconds:this.disabledSeconds,hideDisabledOptions:this.hideDisabledOptions}}},watch:{visible:function(_){var h=this;_&&this.$nextTick(function(){(0,a.default)(this,h);var g=(0,f.findComponentsDownward)(this,"TimeSpinner");g.forEach(function(b){return(0,a.default)(this,h),b.updateScroll()}.bind(this))}.bind(this))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(93),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(605),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(249),a=t.n(s);for(var d in s)d!=="default"&&function(y){t.d(r,y,function(){return s[y]})}(d);var e=t(0),l,n,i=!1,o=null,c=null,u=null,f=Object(e.a)(a.a,l,n,i,o,c,u);r.default=f.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(250),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(609);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(251),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(608);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls},[n("i-input",{attrs:{size:"small",icon:e.icon,placeholder:e.placeholder},on:{"on-click":e.handleClick},model:{value:e.currentQuery,callback:function(o){e.currentQuery=o},expression:"currentQuery"}})],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.listStyle},[n("div",{class:e.prefixCls+"-header"},[n("Checkbox",{attrs:{value:e.checkedAll,disabled:e.checkedAllDisabled},on:{"on-change":e.toggleSelectAll}}),e._v(" "),n("span",{class:e.prefixCls+"-header-title",on:{click:function(o){return e.toggleSelectAll(!e.checkedAll)}}},[e._v(e._s(e.title))]),e._v(" "),n("span",{class:e.prefixCls+"-header-count"},[e._v(e._s(e.count))])],1),e._v(" "),n("div",{class:e.bodyClasses},[e.filterable?n("div",{class:e.prefixCls+"-body-search-wrapper"},[n("Search",{attrs:{"prefix-cls":e.prefixCls+"-search",query:e.query,placeholder:e.filterPlaceholder},on:{"on-query-clear":e.handleQueryClear,"on-query-change":e.handleQueryChange}})],1):e._e(),e._v(" "),n("ul",{class:e.prefixCls+"-content"},[e._l(e.filterData,function(i){return n("li",{class:e.itemClasses(i),on:{click:function(c){return c.preventDefault(),e.select(i)}}},[n("Checkbox",{attrs:{value:e.isCheck(i),disabled:i.disabled}}),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.showLabel(i))}})],1)}),e._v(" "),n("li",{class:e.prefixCls+"-content-not-found"},[e._v(e._s(e.notFoundText))])],2)]),e._v(" "),e.showFooter?n("div",{class:e.prefixCls+"-footer"},[e._t("default")],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(252),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(611);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls+"-operation"},[e.reverseOperation?[n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(o){return e.moveToRight.apply(null,arguments)}}},[n("span",[e._v(e._s(e.operations[1]))]),e._v(" "),n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(o){return e.moveToLeft.apply(null,arguments)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),n("span",[e._v(e._s(e.operations[0]))])],1)]:[n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(o){return e.moveToLeft.apply(null,arguments)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),n("span",[e._v(e._s(e.operations[0]))])],1),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(o){return e.moveToRight.apply(null,arguments)}}},[n("span",[e._v(e._s(e.operations[1]))]),e._v(" "),n("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(613),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(253),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(617);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(254),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(616);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"RenderCell",functional:!0,props:{render:Function,data:Object,node:Array},render:function(l,n){(0,a.default)(void 0,void 0);var i={root:n.props.node[0],node:n.props.node[1],data:n.props.data};return n.props.render(l,i)}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("collapse-transition",{attrs:{appear:e.appear}},[n("ul",{class:e.classes},[n("li",{on:{contextmenu:function(o){return o.stopPropagation(),e.handleContextmenu(e.data,o)},selectstart:function(o){return o.stopPropagation(),e.handlePreventSelect(e.data,o)}}},[n("span",{class:e.arrowClasses,on:{click:e.handleExpand}},[e.showArrow?n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e(),e._v(" "),e.showLoading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e._e()],1),e._v(" "),e.showCheckbox?n("Checkbox",{attrs:{value:e.data.checked,indeterminate:e.data.indeterminate,disabled:e.data.disabled||e.data.disableCheckbox},nativeOn:{click:function(o){return o.preventDefault(),e.handleCheck.apply(null,arguments)}}}):e._e(),e._v(" "),n("span",{class:e.titleClasses,on:{click:e.handleClickNode}},[e.data.render?n("Render",{attrs:{render:e.data.render,data:e.data,node:e.node}}):e.isParentRender?n("Render",{attrs:{render:e.parentRender,data:e.data,node:e.node}}):[e._v(e._s(e.data.title))]],2),e._v(" "),e._l(e.children,function(i,o){return e.data.expand?n("Tree-node",{key:o,attrs:{appear:e.appearByClickArrow,data:i,multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}}):e._e()})],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"treeWrap",class:e.prefixCls},[e._l(e.stateTree,function(i,o){return n("Tree-node",{key:o,attrs:{data:i,visible:"",multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}})}),e._v(" "),e.stateTree.length?e._e():n("div",{class:[e.prefixCls+"-empty"]},[e._v(e._s(e.localeEmptyText))]),e._v(" "),n("div",{staticClass:"ivu-tree-context-menu",style:e.contextMenuStyles},[n("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,transfer:""},on:{"on-clickoutside":e.handleClickContextMenuOutside}},[n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e._t("contextMenu")],2)],1)],1)],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(619),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(255),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(623);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(256),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(621);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:[e.prefixCls+"-list"]},e._l(e.files,function(i){return n("li",{class:e.fileCls(i),on:{click:function(c){return e.handleClick(i)}}},[n("span",{on:{click:function(c){return e.handlePreview(i)}}},[n("Icon",{attrs:{type:e.format(i)}}),e._v(" "+e._s(i.name)+` +`,q+="@keyframes "+B+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",T(q)}}function _(P){P.className+=" "+c+"_animation_active"}function h(P,O,A){if(P.addEventListener)P.addEventListener(O,A);else if(P.attachEvent)P.attachEvent("on"+O,A);else return d.error("[scroll] Don't know how to add event listeners.")}function g(P,O,A){if(P.removeEventListener)P.removeEventListener(O,A);else if(P.detachEvent)P.detachEvent("on"+O,A);else return d.error("[scroll] Don't know how to remove event listeners.")}function b(P){return l(P).container.childNodes[0].childNodes[0].childNodes[0]}function x(P){return l(P).container.childNodes[0].childNodes[0].childNodes[1]}function C(P,O){var A=l(P).listeners;if(!A.push)throw new Error("Cannot add listener to an element that is not detectable.");l(P).listeners.push(O)}function p(P,O,A){A||(A=O,O=P,P=null),P=P||{};function T(){if(P.debug){var ee=Array.prototype.slice.call(arguments);if(ee.unshift(n.get(O),"Scroll: "),d.log.apply)d.log.apply(null,ee);else for(var he=0;he0?[e._l(e.markList,function(i,o){return n("div",{key:o,class:[e.prefixCls+"-stop"],style:{left:i.position+"%"},on:{click:function(u){return u.target!==u.currentTarget?null:e.sliderClick.apply(null,arguments)}}})}),e._v(" "),n("div",{staticClass:"ivu-slider-marks"},e._l(e.markList,function(i,o){return n("SliderMarker",{key:o,style:{left:i.position+"%"},attrs:{mark:i.mark},nativeOn:{click:function(u){return e.sliderClick.apply(null,arguments)}}})}),1)]:e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.minPosition+"%"},on:{touchstart:function(o){return e.onPointerDown(o,"min")},mousedown:function(o){return e.onPointerDown(o,"min")}}},[n("Tooltip",{ref:"minTooltip",attrs:{controlled:e.pointerDown==="min",placement:"top",content:e.tipFormat(e.exportValue[0]),disabled:e.tipDisabled,always:e.showTip==="always"}},[n("div",{class:e.minButtonClasses,attrs:{tabindex:"0"},on:{focus:function(o){return e.handleFocus("min")},blur:function(o){return e.handleBlur("min")},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.onKeyLeft(i,"min")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:e.onKeyLeft(i,"min")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.onKeyRight(i,"min")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:e.onKeyRight(i,"min")}]}})])],1),e._v(" "),e.range?n("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.maxPosition+"%"},on:{touchstart:function(o){return e.onPointerDown(o,"max")},mousedown:function(o){return e.onPointerDown(o,"max")}}},[n("Tooltip",{ref:"maxTooltip",attrs:{controlled:e.pointerDown==="max",placement:"top",content:e.tipFormat(e.exportValue[1]),disabled:e.tipDisabled,always:e.showTip==="always"}},[n("div",{class:e.maxButtonClasses,attrs:{tabindex:"0"},on:{focus:function(o){return e.handleFocus("max")},blur:function(o){return e.handleBlur("max")},keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.onKeyLeft(i,"max")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:e.onKeyLeft(i,"max")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.onKeyRight(i,"max")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:e.onKeyRight(i,"max")}]}})])],1):e._e()],2)],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(543),e=l(d);function l(c){return c&&c.__esModule?c:{default:c}}var n=void 0;function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return n=n||e.default.newInstance({render:c}),n}function o(c){var u="render"in c?c.render:void 0,f=i(u);f.show(c)}e.default.show=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return o(c)},e.default.hide=function(){var c=this;if(!n)return!1;var u=i();u.remove(function(){(0,a.default)(this,c),n=null}.bind(this))},r.default=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(14),a=u(s),d=t(1),e=u(d),l=t(17),n=u(l),i=t(91),o=u(i),c=t(33);function u(m){return m&&m.__esModule?m:{default:m}}function f(){return(0,c.transferIncrease)(),(0,c.getTransferIndex)()}var y=f();o.default.newInstance=function(m){(0,e.default)(void 0,void 0);var _=m||{},h=new n.default({data:(0,a.default)({},_,{}),render:function(C){var p="";return this.render?p=C(o.default,{props:{fix:!0,fullscreen:!0}},[this.render(C)]):p=C(o.default,{props:{size:"large",fix:!0,fullscreen:!0}}),C("div",{class:"ivu-spin-fullscreen ivu-spin-fullscreen-wrapper",style:{"z-index":(0,c.hasTransferIndex)(y,2010+y)}},[p])}}),g=h.$mount();document.body.appendChild(g.$el);var b=h.$children[0];return{show:function(){b.visible=!0,y=f()},remove:function(C){b.visible=!1,setTimeout(function(){b.$parent.$destroy(),document.getElementsByClassName("ivu-spin-fullscreen")[0]!==void 0&&document.body.removeChild(document.getElementsByClassName("ivu-spin-fullscreen")[0]),C()},500)},component:b}}.bind(void 0),r.default=o.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(545),a=l(s),d=t(547),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Step=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(232),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(546);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(233),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(548);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[n("div",{class:[e.prefixCls+"-tail"]},[n("i")]),e._v(" "),n("div",{class:[e.prefixCls+"-head"]},[n("div",{class:[e.prefixCls+"-head-inner"]},[!e.icon&&!e.$slots.icon&&e.currentStatus!=="finish"&&e.currentStatus!=="error"?n("span",[e._v(e._s(e.stepNumber))]):e.$slots.icon?n("span",{staticClass:"ivu-steps-icon"},[e._t("icon")],2):n("span",{class:e.iconClasses})])]),e._v(" "),n("div",{class:[e.prefixCls+"-main"]},[n("div",{class:[e.prefixCls+"-title"]},[e._t("title",function(){return[e._v(e._s(e.title))]})],2),e._v(" "),e.content||e.$slots.content?n("div",{class:[e.prefixCls+"-content"]},[e._t("content",function(){return[e._v(e._s(e.content))]})],2):e._e()])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(550),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(234),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(551);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.wrapClasses,style:e.wrapStyles,attrs:{tabindex:"0"},on:{click:e.toggle,keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"space",32,o.key,[" ","Spacebar"])?null:e.toggle.apply(null,arguments)}}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),n("span",{class:e.innerClasses},[e.currentValue===e.trueValue?e._t("open"):e._e(),e._v(" "),e.currentValue===e.falseValue?e._t("close"):e._e()],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(553),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(235),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(583);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){v.exports={default:t(555),__esModule:!0}},function(v,r,t){t(79),t(36),t(46),t(556),t(562),t(565),t(567),v.exports=t(5).Set},function(v,r,t){var s=t(557),a=t(236),d="Set";v.exports=t(558)(d,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(l){return s.def(a(this,d),l=l===0?0:l,l)}},s)},function(v,r,t){var s=t(16).f,a=t(55),d=t(90),e=t(25),l=t(88),n=t(51),i=t(72),o=t(102),c=t(190),u=t(13),f=t(77).fastKey,y=t(236),m=u?"_s":"size",_=function(h,g){var b=f(g),x;if(b!=="F")return h._i[b];for(x=h._f;x;x=x.n)if(x.k==g)return x};v.exports={getConstructor:function(h,g,b,x){var C=h(function(p,S){l(p,C,g,"_i"),p._t=g,p._i=a(null),p._f=void 0,p._l=void 0,p[m]=0,S!=null&&n(S,b,p[x],p)});return d(C.prototype,{clear:function(){for(var S=y(this,g),P=S._i,O=S._f;O;O=O.n)O.r=!0,O.p&&(O.p=O.p.n=void 0),delete P[O.i];S._f=S._l=void 0,S[m]=0},delete:function(p){var S=y(this,g),P=_(S,p);if(P){var O=P.n,A=P.p;delete S._i[P.i],P.r=!0,A&&(A.n=O),O&&(O.p=A),S._f==P&&(S._f=O),S._l==P&&(S._l=A),S[m]--}return!!P},forEach:function(S){y(this,g);for(var P=e(S,arguments.length>1?arguments[1]:void 0,3),O;O=O?O.n:this._f;)for(P(O.v,O.k,this);O&&O.r;)O=O.p},has:function(S){return!!_(y(this,g),S)}}),u&&s(C.prototype,"size",{get:function(){return y(this,g)[m]}}),C},def:function(h,g,b){var x=_(h,g),C,p;return x?x.v=b:(h._l=x={i:p=f(g,!0),k:g,v:b,p:C=h._l,n:void 0,r:!1},h._f||(h._f=x),C&&(C.n=x),h[m]++,p!=="F"&&(h._i[p]=x)),h},getEntry:_,setStrong:function(h,g,b){i(h,g,function(x,C){this._t=y(x,g),this._k=C,this._l=void 0},function(){for(var x=this,C=x._k,p=x._l;p&&p.r;)p=p.p;return!x._t||!(x._l=p=p?p.n:x._t._f)?(x._t=void 0,o(1)):C=="keys"?o(0,p.k):C=="values"?o(0,p.v):o(0,[p.k,p.v])},b?"entries":"values",!b,!0),c(g)}}},function(v,r,t){var s=t(9),a=t(7),d=t(77),e=t(31),l=t(26),n=t(90),i=t(51),o=t(88),c=t(19),u=t(47),f=t(16).f,y=t(559)(0),m=t(13);v.exports=function(_,h,g,b,x,C){var p=s[_],S=p,P=x?"set":"add",O=S&&S.prototype,A={};return!m||typeof S!="function"||!(C||O.forEach&&!e(function(){new S().entries().next()}))?(S=b.getConstructor(h,_,x,P),n(S.prototype,g),d.NEED=!0):(S=h(function(T,B){o(T,S,_,"_c"),T._c=new p,B!=null&&i(B,x,T[P],T)}),y("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(T){var B=T=="add"||T=="set";T in O&&!(C&&T=="clear")&&l(S.prototype,T,function(j,q){if(o(this,S,T),!B&&C&&!c(j))return T=="get"?void 0:!1;var U=this._c[T](j===0?0:j,q);return B?this:U})}),C||f(S.prototype,"size",{get:function(){return this._c.size}})),u(S,_),A[_]=S,a(a.G+a.W+a.F,A),C||b.setStrong(S,_,x),S}},function(v,r,t){var s=t(25),a=t(64),d=t(29),e=t(52),l=t(560);v.exports=function(n,i){var o=n==1,c=n==2,u=n==3,f=n==4,y=n==6,m=n==5||y,_=i||l;return function(h,g,b){for(var x=d(h),C=a(x),p=s(g,b,3),S=e(C.length),P=0,O=o?_(h,S):c?_(h,0):void 0,A,T;S>P;P++)if((m||P in C)&&(A=C[P],T=p(A,P,x),n)){if(o)O[P]=T;else if(T)switch(n){case 3:return!0;case 5:return A;case 6:return P;case 2:O.push(A)}else if(f)return!1}return y?-1:u||f?f:O}}},function(v,r,t){var s=t(561);v.exports=function(a,d){return new(s(a))(d)}},function(v,r,t){var s=t(19),a=t(111),d=t(10)("species");v.exports=function(e){var l;return a(e)&&(l=e.constructor,typeof l=="function"&&(l===Array||a(l.prototype))&&(l=void 0),s(l)&&(l=l[d],l===null&&(l=void 0))),l===void 0?Array:l}},function(v,r,t){var s=t(7);s(s.P+s.R,"Set",{toJSON:t(563)("Set")})},function(v,r,t){var s=t(56),a=t(564);v.exports=function(d){return function(){if(s(this)!=d)throw TypeError(d+"#toJSON isn't generic");return a(this)}}},function(v,r,t){var s=t(51);v.exports=function(a,d){var e=[];return s(a,!1,e.push,e,d),e}},function(v,r,t){t(566)("Set")},function(v,r,t){var s=t(7);v.exports=function(a){s(s.S,a,{of:function(){for(var e=arguments.length,l=new Array(e);e--;)l[e]=arguments[e];return new this(l)}})}},function(v,r,t){t(568)("Set")},function(v,r,t){var s=t(7),a=t(43),d=t(25),e=t(51);v.exports=function(l){s(s.S,l,{from:function(i){var o=arguments[1],c,u,f,y;return a(this),c=o!==void 0,c&&a(o),i==null?new this:(u=[],c?(f=0,y=d(o,arguments[2],2),e(i,!1,function(m){u.push(y(m,f++))})):e(i,!1,u.push,u),new this(u))}})}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(237),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(571);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"TableRenderHeader",functional:!0,props:{render:Function,column:Object,index:Number},render:function(l,n){(0,a.default)(void 0,void 0);var i={column:n.props.column,index:n.props.index};return n.props.render(l,i)}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("table",{style:e.styles,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("colgroup",[e._l(e.columns,function(i,o){return n("col",{attrs:{width:e.setCellWidth(i)}})}),e._v(" "),e.$parent.showVerticalScrollBar?n("col",{attrs:{width:e.$parent.scrollBarWidth}}):e._e()],2),e._v(" "),n("thead",e._l(e.headRows,function(i,o){return n("tr",[e._l(i,function(c,u){var f;return n("th",{class:e.alignCls(c),attrs:{colspan:c.colSpan,rowspan:c.rowSpan}},[n("div",{class:e.cellClasses(c)},[c.type==="expand"?[c.renderHeader?n("render-header",{attrs:{render:c.renderHeader,column:c,index:u}}):n("span",[e._v(e._s(c.title||""))])]:c.type==="selection"?[c.hideSelectAll?e._e():n("Checkbox",{attrs:{value:e.isSelectAll,disabled:e.isSelectDisabled},on:{"on-change":e.selectAll}})]:[c.renderHeader?n("render-header",{attrs:{render:c.renderHeader,column:c,index:u}}):n("span",{class:(f={},f[e.prefixCls+"-cell-sort"]=c.sortable,f),on:{click:function(m){c.sortable&&e.handleSortByHead(e.getColumn(o,u)._index)}}},[e._v(e._s(c.title||"#"))]),e._v(" "),c.sortable?n("span",{class:[e.prefixCls+"-sort"]},[n("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropup",class:{on:e.getColumn(o,u)._sortType==="asc"},on:{click:function(m){e.handleSort(e.getColumn(o,u)._index,"asc")}}}),e._v(" "),n("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropdown",class:{on:e.getColumn(o,u)._sortType==="desc"},on:{click:function(m){e.handleSort(e.getColumn(o,u)._index,"desc")}}})]):e._e(),e._v(" "),e.isPopperShow(c)?n("Poptip",{attrs:{placement:"bottom","popper-class":"ivu-table-popper",transfer:"",capture:!1},on:{"on-popper-hide":function(m){e.handleFilterHide(e.getColumn(o,u)._index)}},model:{value:e.getColumn(o,u)._filterVisible,callback:function(m){e.$set(e.getColumn(o,u),"_filterVisible",m)},expression:"getColumn(rowIndex, index)._filterVisible"}},[n("span",{class:[e.prefixCls+"-filter"]},[n("i",{staticClass:"ivu-icon ivu-icon-ios-funnel",class:{on:e.getColumn(o,u)._isFiltered}})]),e._v(" "),e.getColumn(o,u)._filterMultiple?n("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[n("div",{class:[e.prefixCls+"-filter-list-item"]},[n("checkbox-group",{model:{value:e.getColumn(o,u)._filterChecked,callback:function(m){e.$set(e.getColumn(o,u),"_filterChecked",m)},expression:"getColumn(rowIndex, index)._filterChecked"}},e._l(c.filters,function(y,m){return n("checkbox",{key:m,attrs:{label:y.value}},[e._v(e._s(y.label))])}),1)],1),e._v(" "),n("div",{class:[e.prefixCls+"-filter-footer"]},[n("i-button",{attrs:{type:"text",size:"small",disabled:!e.getColumn(o,u)._filterChecked.length},nativeOn:{click:function(m){e.handleFilter(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.confirmFilter")))]),e._v(" "),n("i-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(m){e.handleReset(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.resetFilter")))])],1)]):n("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[n("ul",{class:[e.prefixCls+"-filter-list-single"]},[n("li",{class:e.itemAllClasses(e.getColumn(o,u)),on:{click:function(m){e.handleReset(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.clearFilter")))]),e._v(" "),e._l(c.filters,function(y){return n("li",{class:e.itemClasses(e.getColumn(o,u),y),on:{click:function(_){e.handleSelect(e.getColumn(o,u)._index,y.value)}}},[e._v(e._s(y.label))])})],2)])]):e._e()]],2),e._v(" "),c.resizable?n("div",{staticClass:"ivu-table-header-resizable",on:{mousedown:function(m){return e.handleMouseDown(c,m)},mousemove:function(m){return e.handleMouseMove(c,m)},mouseout:e.handleMouseOut}}):e._e()])}),e._v(" "),e.$parent.showVerticalScrollBar&&o===0?n("th",{class:e.scrollBarCellClass(),attrs:{rowspan:e.headRows.length}}):e._e()],2)}),0)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(238),a=t.n(s);for(var d in s)d!=="default"&&function(y){t.d(r,y,function(){return s[y]})}(d);var e=t(0),l,n,i=!1,o=null,c=null,u=null,f=Object(e.a)(a.a,l,n,i,o,c,u);r.default=f.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(239),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(574);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.draggable?n("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:e.draggable},on:{dragstart:function(o){return e.onDrag(o,e.row._index)},drop:function(o){return e.onDrop(o,e.row._index)},dragover:function(o){return e.allowDrop(o)}}},[e._t("default")],2):n("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:!1}},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(240),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(577);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"TableSlot",functional:!0,inject:["tableRoot"],props:{row:Object,index:Number,column:{type:Object,default:null},display:{type:String,default:"block"}},render:function(l,n){return(0,a.default)(void 0,void 0),l("div",{class:{"ivu-table-cell-slot":!0,"ivu-table-cell-slot-inline":n.props.display==="inline","ivu-table-cell-slot-inline-block":n.props.display==="inline-block"}},n.injections.tableRoot.$scopedSlots[n.props.column.slot]({row:n.props.row,column:n.props.column,index:n.props.index}))}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"cell",class:e.classes},[e.renderType==="index"?[n("span",[e._v(e._s(e.column.indexMethod?e.column.indexMethod(e.row,e.naturalIndex):e.naturalIndex+1))])]:e._e(),e._v(" "),e.renderType==="selection"?[n("Checkbox",{attrs:{value:e.checked,disabled:e.disabled},on:{"on-change":e.toggleSelect},nativeOn:{click:function(o){return o.stopPropagation(),e.handleClick.apply(null,arguments)}}})]:e._e(),e._v(" "),e.showLevel?n("div",{staticClass:"ivu-table-cell-tree-level",style:e.treeLevelStyle}):e._e(),e._v(" "),e.showChildren?n("div",{staticClass:"ivu-table-cell-tree",class:{"ivu-table-cell-tree-loading":e.childrenLoading},on:{click:function(o){return o.preventDefault(),o.stopPropagation(),e.handleToggleTree.apply(null,arguments)}}},[e.childrenLoading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e.childrenExpand?n("Icon",{attrs:{type:"ios-remove"}}):n("Icon",{attrs:{type:"ios-add"}})],1):e.showTreeNode?n("div",{staticClass:"ivu-table-cell-tree ivu-table-cell-tree-empty"}):e._e(),e._v(" "),e.renderType==="html"?[n("span",{domProps:{innerHTML:e._s(e.row[e.column.key])}})]:e._e(),e._v(" "),e.renderType==="normal"?[e.column.tooltip?[n("Tooltip",{staticClass:"ivu-table-cell-tooltip",attrs:{transfer:"",content:e.row[e.column.key],theme:e.column.tooltipTheme?e.column.tooltipTheme:e.tableRoot.tooltipTheme,disabled:!e.showTooltip,"max-width":e.column.tooltipMaxWidth?e.column.tooltipMaxWidth:e.tableRoot.tooltipMaxWidth}},[n("span",{ref:"content",staticClass:"ivu-table-cell-tooltip-content",on:{mouseenter:e.handleTooltipIn}},[e._v(e._s(e.row[e.column.key]))])])]:n("span",[e._v(e._s(e.row[e.column.key]))])]:e._e(),e._v(" "),e.renderType==="expand"&&!e.row._disableExpand?[n("div",{class:e.expandCls,on:{click:e.toggleExpand}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]:e._e(),e._v(" "),e.renderType==="render"?n("table-expand",{attrs:{row:e.row,column:e.column,index:e.index,render:e.column.render}}):e._e(),e._v(" "),e.renderType==="slot"?n("table-slot",{attrs:{row:e.row,column:e.column,display:e.column.display||"block",index:e.index}}):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(242),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(579);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticStyle:{overflow:"hidden"}},[n("table",{staticClass:"ivu-table-summary",style:e.styleObject,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("colgroup",e._l(e.columns,function(i,o){return n("col",{attrs:{width:e.setCellWidth(i)}})}),0),e._v(" "),n("tbody",{class:[e.prefixCls+"-tbody"]},[n("tr",{staticClass:"ivu-table-row"},e._l(e.columns,function(i,o){return n("td",{class:e.alignCls(i)},[n("div",{staticClass:"ivu-table-cell",class:e.cellCls(i)},[n("span",[e._v(e._s(e.data[i.key].value))])])])}),0)])])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(22),a=i(s),d=t(14),e=i(d),l=t(1),n=i(l);r.default=f;function i(y){return y&&y.__esModule?y:{default:y}}var o=`\r +`,c=function(y,m,_){var h=_.separator,g=_.quoted;(0,n.default)(void 0,void 0);var b=m.map(function(x){return(0,n.default)(void 0,void 0),g?(x=typeof x=="string"?x.replace(/"/g,'"'):x,'"'+String(x)+'"'):x}.bind(void 0));y.push(b.join(h))}.bind(void 0),u={separator:",",quoted:!1};function f(y,m,_){var h=this,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;_=(0,e.default)({},u,_);var b=void 0,x=[],C=[];return y?(b=y.map(function(p){return(0,n.default)(this,h),typeof p=="string"?p:(g||C.push(typeof p.title!="undefined"?p.title:p.key),p.key)}.bind(this)),C.length>0&&c(x,C,_)):(b=[],m.forEach(function(p){(0,n.default)(this,h),Array.isArray(p)||(b=b.concat((0,a.default)(p)))}.bind(this)),b.length>0&&(b=b.filter(function(p,S,P){return(0,n.default)(this,h),P.indexOf(p)===S}.bind(this)),g||c(x,b,_))),Array.isArray(m)&&m.forEach(function(p){(0,n.default)(this,h),Array.isArray(p)||(p=b.map(function(S){return(0,n.default)(this,h),typeof p[S]!="undefined"?p[S]:""}.bind(this))),c(x,p,_)}.bind(this)),x.join(o)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});function s(d){var e=navigator.userAgent;if(d==="ie"){var l=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1;if(l){var n=new RegExp("MSIE (\\d+\\.\\d+);");return n.test(e),parseFloat(RegExp.$1)}else return!1}else return e.indexOf(d)>-1}var a={_isIE11:function(){var e=0,l=/MSIE (\d+\.\d+);/.test(navigator.userAgent),n=!!navigator.userAgent.match(/Trident\/7.0/),i=navigator.userAgent.indexOf("rv:11.0");return l&&(e=Number(RegExp.$1)),navigator.appVersion.indexOf("MSIE 10")!==-1&&(e=10),n&&i!==-1&&(e=11),e===11},_isEdge:function(){return/Edge/.test(navigator.userAgent)},_getDownloadUrl:function(e){var l="\uFEFF";if(window.Blob&&window.URL&&window.URL.createObjectURL){var n=new Blob([l+e],{type:"text/csv"});return URL.createObjectURL(n)}else return"data:attachment/csv;charset=utf-8,"+l+encodeURIComponent(e)},download:function(e,l){if(s("ie")&&s("ie")<10){var n=window.top.open("about:blank","_blank");n.document.charset="utf-8",n.document.write(l),n.document.close(),n.document.execCommand("SaveAs",e),n.close()}else if(s("ie")===10||this._isIE11()||this._isEdge()){var i="\uFEFF",o=new Blob([i+l],{type:"text/csv"});navigator.msSaveBlob(o,e)}else{var c=document.createElement("a");c.download=e,c.href=this._getDownloadUrl(l),document.body.appendChild(c),c.click(),document.body.removeChild(c)}}};r.default=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.getRandomStr=r.convertToRows=r.getAllColumns=r.convertColumnOrder=void 0;var s=t(1),a=e(s),d=t(3);function e(c){return c&&c.__esModule?c:{default:c}}var l=function(c,u){(0,a.default)(void 0,void 0);var f=[],y=[];return c.forEach(function(m){(0,a.default)(void 0,void 0),m.fixed&&m.fixed===u?f.push(m):y.push(m)}.bind(void 0)),f.concat(y)}.bind(void 0);r.convertColumnOrder=l;var n=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,a.default)(void 0,void 0);var f=(0,d.deepCopy)(c),y=[];return f.forEach(function(m){(0,a.default)(void 0,void 0),m.children?(u&&y.push(m),y.push.apply(y,n(m.children,u))):y.push(m)}.bind(void 0)),y}.bind(void 0);r.getAllColumns=n;var i=function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,a.default)(void 0,void 0);var f=u?u==="left"?(0,d.deepCopy)(l(c,"left")):(0,d.deepCopy)(l(c,"right")):(0,d.deepCopy)(c),y=1,m=function(b,x){if((0,a.default)(void 0,void 0),x&&(b.level=x.level+1,y0&&arguments[0]!==void 0?arguments[0]:32,f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",y=f.length,m="",_=0;_=6e4&&y<36e5?m=Math.floor(y/6e4)+(c("i.time.minutes")||"\u5206\u949F")+_:y>=36e5&&y<864e5?m=Math.floor(y/36e5)+(c("i.time.hours")||"\u5C0F\u65F6")+_:y>=864e5&&y<262386e4?m=Math.floor(y/864e5)+(c("i.time.days")||"\u5929")+_:y>=262386e4&&y<=3156786e4&&f?m=n(o):m=n(o,"year"),m}.bind(void 0)},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.classes,on:{click:e.handleClick}},[e._v(e._s(e.date))])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(597),a=l(s),d=t(599),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}a.default.Item=e.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(247),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(598);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:e.classes},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(248),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(600);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.itemClasses},[n("div",{class:e.tailClasses}),e._v(" "),n("div",{ref:"dot",class:e.headClasses,style:e.customColor},[e._t("dot")],2),e._v(" "),n("div",{class:e.contentClasses},[e._t("default")],2)])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(602),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=y(s),d=t(157),e=y(d),l=t(166),n=y(l),i=t(175),o=y(i),c=t(58),u=y(c),f=t(3);function y(m){return m&&m.__esModule?m:{default:m}}r.default={mixins:[e.default,u.default],components:{TimePickerPanel:n.default,RangeTimePickerPanel:o.default},props:{type:{validator:function(_){return(0,f.oneOf)(_,["time","timerange"])},default:"time"}},computed:{panel:function(){var _=this.type==="timerange";return _?"RangeTimePickerPanel":"TimePickerPanel"},ownPickerProps:function(){return{disabledHours:this.disabledHours,disabledMinutes:this.disabledMinutes,disabledSeconds:this.disabledSeconds,hideDisabledOptions:this.hideDisabledOptions}}},watch:{visible:function(_){var h=this;_&&this.$nextTick(function(){(0,a.default)(this,h);var g=(0,f.findComponentsDownward)(this,"TimeSpinner");g.forEach(function(b){return(0,a.default)(this,h),b.updateScroll()}.bind(this))}.bind(this))}}}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(93),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(605),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(249),a=t.n(s);for(var d in s)d!=="default"&&function(y){t.d(r,y,function(){return s[y]})}(d);var e=t(0),l,n,i=!1,o=null,c=null,u=null,f=Object(e.a)(a.a,l,n,i,o,c,u);r.default=f.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(250),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(609);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(251),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(608);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls},[n("i-input",{attrs:{size:"small",icon:e.icon,placeholder:e.placeholder},on:{"on-click":e.handleClick},model:{value:e.currentQuery,callback:function(o){e.currentQuery=o},expression:"currentQuery"}})],1)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.listStyle},[n("div",{class:e.prefixCls+"-header"},[n("Checkbox",{attrs:{value:e.checkedAll,disabled:e.checkedAllDisabled},on:{"on-change":e.toggleSelectAll}}),e._v(" "),n("span",{class:e.prefixCls+"-header-title",on:{click:function(o){return e.toggleSelectAll(!e.checkedAll)}}},[e._v(e._s(e.title))]),e._v(" "),n("span",{class:e.prefixCls+"-header-count"},[e._v(e._s(e.count))])],1),e._v(" "),n("div",{class:e.bodyClasses},[e.filterable?n("div",{class:e.prefixCls+"-body-search-wrapper"},[n("Search",{attrs:{"prefix-cls":e.prefixCls+"-search",query:e.query,placeholder:e.filterPlaceholder},on:{"on-query-clear":e.handleQueryClear,"on-query-change":e.handleQueryChange}})],1):e._e(),e._v(" "),n("ul",{class:e.prefixCls+"-content"},[e._l(e.filterData,function(i){return n("li",{class:e.itemClasses(i),on:{click:function(c){return c.preventDefault(),e.select(i)}}},[n("Checkbox",{attrs:{value:e.isCheck(i),disabled:i.disabled}}),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.showLabel(i))}})],1)}),e._v(" "),n("li",{class:e.prefixCls+"-content-not-found"},[e._v(e._s(e.notFoundText))])],2)]),e._v(" "),e.showFooter?n("div",{class:e.prefixCls+"-footer"},[e._t("default")],2):e._e()])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(252),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(611);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls+"-operation"},[e.reverseOperation?[n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(o){return e.moveToRight.apply(null,arguments)}}},[n("span",[e._v(e._s(e.operations[1]))]),e._v(" "),n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(o){return e.moveToLeft.apply(null,arguments)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),n("span",[e._v(e._s(e.operations[0]))])],1)]:[n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(o){return e.moveToLeft.apply(null,arguments)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),n("span",[e._v(e._s(e.operations[0]))])],1),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(o){return e.moveToRight.apply(null,arguments)}}},[n("span",[e._v(e._s(e.operations[1]))]),e._v(" "),n("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(613),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(253),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(617);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(254),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(616);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default={name:"RenderCell",functional:!0,props:{render:Function,data:Object,node:Array},render:function(l,n){(0,a.default)(void 0,void 0);var i={root:n.props.node[0],node:n.props.node[1],data:n.props.data};return n.props.render(l,i)}.bind(void 0)}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("collapse-transition",{attrs:{appear:e.appear}},[n("ul",{class:e.classes},[n("li",{on:{contextmenu:function(o){return o.stopPropagation(),e.handleContextmenu(e.data,o)},selectstart:function(o){return o.stopPropagation(),e.handlePreventSelect(e.data,o)}}},[n("span",{class:e.arrowClasses,on:{click:e.handleExpand}},[e.showArrow?n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e(),e._v(" "),e.showLoading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e._e()],1),e._v(" "),e.showCheckbox?n("Checkbox",{attrs:{value:e.data.checked,indeterminate:e.data.indeterminate,disabled:e.data.disabled||e.data.disableCheckbox},nativeOn:{click:function(o){return o.preventDefault(),e.handleCheck.apply(null,arguments)}}}):e._e(),e._v(" "),n("span",{class:e.titleClasses,on:{click:e.handleClickNode}},[e.data.render?n("Render",{attrs:{render:e.data.render,data:e.data,node:e.node}}):e.isParentRender?n("Render",{attrs:{render:e.parentRender,data:e.data,node:e.node}}):[e._v(e._s(e.data.title))]],2),e._v(" "),e._l(e.children,function(i,o){return e.data.expand?n("Tree-node",{key:o,attrs:{appear:e.appearByClickArrow,data:i,multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}}):e._e()})],2)])])},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"treeWrap",class:e.prefixCls},[e._l(e.stateTree,function(i,o){return n("Tree-node",{key:o,attrs:{data:i,visible:"",multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}})}),e._v(" "),e.stateTree.length?e._e():n("div",{class:[e.prefixCls+"-empty"]},[e._v(e._s(e.localeEmptyText))]),e._v(" "),n("div",{staticClass:"ivu-tree-context-menu",style:e.contextMenuStyles},[n("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,transfer:""},on:{"on-clickoutside":e.handleClickContextMenuOutside}},[n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e._t("contextMenu")],2)],1)],1)],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(619),a=d(s);function d(e){return e&&e.__esModule?e:{default:e}}r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(255),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(623);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(256),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(621);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:[e.prefixCls+"-list"]},e._l(e.files,function(i){return n("li",{class:e.fileCls(i),on:{click:function(c){return e.handleClick(i)}}},[n("span",{on:{click:function(c){return e.handlePreview(i)}}},[n("Icon",{attrs:{type:e.format(i)}}),e._v(" "+e._s(i.name)+` `)],1),e._v(" "),n("Icon",{directives:[{name:"show",rawName:"v-show",value:i.status==="finished",expression:"file.status === 'finished'"}],class:[e.prefixCls+"-list-remove"],attrs:{type:"ios-close"},nativeOn:{click:function(c){return e.handleRemove(i)}}}),e._v(" "),n("transition",{attrs:{name:"fade"}},[i.showProgress?n("i-progress",{attrs:{"stroke-width":2,percent:e.parsePercentage(i.percentage),status:i.status==="finished"&&i.showProgress?"success":"normal"}}):e._e()],1)],1)}),0)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(1),a=l(s),d=t(22),e=l(d);r.default=o;function l(c){return c&&c.__esModule?c:{default:c}}function n(c,u,f){var y="fail to post "+String(c)+" "+String(f.status)+"'",m=new Error(y);return m.status=f.status,m.method="post",m.url=c,m}function i(c){var u=c.responseText||c.response;if(!u)return u;try{return JSON.parse(u)}catch{return u}}function o(c){var u=this;if(typeof XMLHttpRequest=="undefined")return null;var f=new XMLHttpRequest,y=c.action;f.upload&&(f.upload.onprogress=function(b){b.total>0&&(b.percent=b.loaded/b.total*100),c.onProgress(b)});var m=new FormData;c.data&&(0,e.default)(c.data).map(function(g){(0,a.default)(this,u),m.append(g,c.data[g])}.bind(this)),m.append(c.filename,c.file),f.onerror=function(b){c.onError(b)},f.onload=function(){if(f.status<200||f.status>=300)return c.onError(n(y,c,f),i(f));c.onSuccess(i(f))},f.open("post",y,!0),c.withCredentials&&"withCredentials"in f&&(f.withCredentials=!0);var _=c.headers||{};for(var h in _)_.hasOwnProperty(h)&&_[h]!==null&&f.setRequestHeader(h,_[h]);return f.send(m),f}},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls]},[n("div",{class:e.classes,on:{click:e.handleClick,drop:function(o){return o.preventDefault(),e.onDrop.apply(null,arguments)},paste:e.handlePaste,dragover:function(o){o.preventDefault(),e.dragOver=!0},dragleave:function(o){o.preventDefault(),e.dragOver=!1}}},[n("input",{ref:"input",class:[e.prefixCls+"-input"],attrs:{type:"file",multiple:e.multiple,webkitdirectory:e.webkitdirectory,accept:e.accept},on:{change:e.handleChange}}),e._v(" "),e._t("default")],2),e._v(" "),e._t("tip"),e._v(" "),e.showUploadList?n("upload-list",{attrs:{files:e.fileList},on:{"on-file-remove":e.handleRemove,"on-file-preview":e.handlePreview}}):e._e()],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.Col=r.Row=void 0;var s=t(625),a=l(s),d=t(627),e=l(d);function l(n){return n&&n.__esModule?n:{default:n}}r.Row=a.default,r.Col=e.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(257),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(626);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(258),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(628);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},a=[];r.render=s,r.staticRenderFns=a},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.OptionGroup=r.Option=r.Select=void 0;var s=t(74),a=i(s),d=t(81),e=i(d),l=t(630),n=i(l);function i(o){return o&&o.__esModule?o:{default:o}}r.Select=a.default,r.Option=e.default,r.OptionGroup=n.default,r.default=a.default},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=t(259),a=t.n(s);for(var d in s)d!=="default"&&function(f){t.d(r,f,function(){return s[f]})}(d);var e=t(631);t.n(e);var l=t(0),n=!1,i=null,o=null,c=null,u=Object(l.a)(a.a,e.render,e.staticRenderFns,n,i,o,c);r.default=u.exports},function(v,r,t){Object.defineProperty(r,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!hidden"}],class:[e.prefixCls+"-wrap"]},[n("div",{class:[e.prefixCls+"-title"]},[e._v(e._s(e.label))]),e._v(" "),n("ul",[n("li",{ref:"options",class:[e.prefixCls]},[e._t("default")],2)])])},a=[];r.render=s,r.staticRenderFns=a}])})})(_t);var Vt=$t(_t.exports);export{Vt as V,_t as i}; diff --git a/public/js/build/view.a0b20db3.js b/public/js/build/view.d343368a.js similarity index 95% rename from public/js/build/view.a0b20db3.js rename to public/js/build/view.d343368a.js index b863cf9b8..0412eb8a4 100644 --- a/public/js/build/view.a0b20db3.js +++ b/public/js/build/view.d343368a.js @@ -1 +1 @@ -import{i as h,r as c,o as r,a as l}from"./element-sea.e89b014c.js";import{n as u}from"./app.d8851986.js";import"./vue.c448ed56.js";import"./@babel.49d8906a.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.a7761dd9.js";import"./dayjs.93c58ba1.js";import"./localforage.81c5d73d.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.563cfadb.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";var f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{ref:"view",staticClass:"common-preview-image"},[e("div",{staticClass:"common-preview-view no-dark-content"},[t.isSingle?t._e():[e("div",{staticClass:"preview-view-prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]),e("div",{staticClass:"preview-view-next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])])],e("div",{staticClass:"preview-view-actions"},[e("div",{staticClass:"actions-inner"},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomOut")}}},[t._v("\uE7A2")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomIn")}}},[t._v("\uE79F")]),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.mode.icon)},on:{click:t.toggleMode}}),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("anticlocelise")}}},[t._v("\uE7A7")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("clocelise")}}},[t._v("\uE7A6")])])]),e("div",{staticClass:"preview-view-canvas"},t._l(t.urlList,function(n,o){return o===t.index?e("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()}),0)],2)])},p=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},d=h()?"DOMMouseScroll":"mousewheel",v={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let t=this.urlList[this.index];return $A.isJson(t)&&(t=t.src),$A.thumbRestore(t)},imgStyle(){const{scale:t,deg:s,offsetX:e,offsetY:n,enableTransition:o}=this.transform,i={transform:`scale(${t}) rotate(${s}deg)`,transition:o?"transform .3s":"","margin-left":`${e}px`,"margin-top":`${n}px`};return this.mode===a.CONTAIN&&(i.maxWidth=i.maxHeight="100%"),i}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},initialIndex(t){this.index=t},currentImg(){this.$nextTick(t=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=t=>{switch(t.stopPropagation(),t.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=c(t=>{(t.wheelDelta?t.wheelDelta:-t.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,d,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,d,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(t){this.loading=!1},handleImgError(t){this.loading=!1,t.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(t){if(this.loading||t.button!==0)return;const{offsetX:s,offsetY:e}=this.transform,n=t.pageX,o=t.pageY;this._dragHandler=c(i=>{this.transform.offsetX=s+i.pageX-n,this.transform.offsetY=e+i.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",i=>{l(document,"mousemove",this._dragHandler)}),t.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const t=Object.keys(a),n=(Object.values(a).indexOf(this.mode)+1)%t.length;this.mode=a[t[n]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index-1+t)%t},next(){if(this.isLast&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index+1)%t},handleActions(t,s={}){if(this.loading)return;const{zoomRate:e,rotateDeg:n,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...s},{transform:i}=this;switch(t){case"zoomOut":i.scale>.2&&(i.scale=parseFloat((i.scale-e).toFixed(3)));break;case"zoomIn":i.scale=parseFloat((i.scale+e).toFixed(3));break;case"clocelise":i.deg+=n;break;case"anticlocelise":i.deg-=n;break}i.enableTransition=o}}},m={};var g=u(v,f,p,!1,_,"383760f6",null,null);function _(t){for(let s in m)this[s]=m[s]}var et=function(){return g.exports}();export{et as default}; +import{i as h,r as c,o as r,a as l}from"./element-sea.e89b014c.js";import{n as u}from"./app.879f8ead.js";import"./vue.c448ed56.js";import"./@babel.49d8906a.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.9f685ce8.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.5f40db32.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";import"./@micro-zoe.c2e1472d.js";import"./jquery.8b0d6caa.js";import"./dayjs.b7f7bb8e.js";import"./localforage.ec5c12b8.js";import"./markdown-it.f48c10fc.js";import"./entities.797c3e49.js";import"./uc.micro.39573202.js";import"./mdurl.2f66c031.js";import"./linkify-it.3ecfda1e.js";import"./punycode.c1b51344.js";import"./highlight.js.24fdca15.js";import"./markdown-it-link-attributes.e1d5d151.js";import"./@traptitech.b5c819e2.js";import"./vuex.cc7cb26e.js";import"./openpgp_hi.15f91b1d.js";import"./axios.6ec123f8.js";import"./le5le-store.b40f9152.js";import"./vue-router.2d566cd7.js";import"./vue-clipboard2.6e355525.js";import"./clipboard.7eddb2ef.js";import"./view-design-hi.d2045547.js";import"./vuedraggable.dbf1607a.js";import"./sortablejs.20b8ddfe.js";import"./vue-resize-observer.452c7636.js";var f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{ref:"view",staticClass:"common-preview-image"},[e("div",{staticClass:"common-preview-view no-dark-content"},[t.isSingle?t._e():[e("div",{staticClass:"preview-view-prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[e("i",{staticClass:"taskfont"},[t._v("\uE72D")])]),e("div",{staticClass:"preview-view-next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[e("i",{staticClass:"taskfont"},[t._v("\uE733")])])],e("div",{staticClass:"preview-view-actions"},[e("div",{staticClass:"actions-inner"},[e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomOut")}}},[t._v("\uE7A2")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("zoomIn")}}},[t._v("\uE79F")]),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.mode.icon)},on:{click:t.toggleMode}}),e("i",{staticClass:"actions-divider"}),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("anticlocelise")}}},[t._v("\uE7A7")]),e("i",{staticClass:"taskfont",on:{click:function(n){return t.handleActions("clocelise")}}},[t._v("\uE7A6")])])]),e("div",{staticClass:"preview-view-canvas"},t._l(t.urlList,function(n,o){return o===t.index?e("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()}),0)],2)])},p=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},d=h()?"DOMMouseScroll":"mousewheel",v={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let t=this.urlList[this.index];return $A.isJson(t)&&(t=t.src),$A.thumbRestore(t)},imgStyle(){const{scale:t,deg:s,offsetX:e,offsetY:n,enableTransition:o}=this.transform,i={transform:`scale(${t}) rotate(${s}deg)`,transition:o?"transform .3s":"","margin-left":`${e}px`,"margin-top":`${n}px`};return this.mode===a.CONTAIN&&(i.maxWidth=i.maxHeight="100%"),i}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},initialIndex(t){this.index=t},currentImg(){this.$nextTick(t=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=t=>{switch(t.stopPropagation(),t.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=c(t=>{(t.wheelDelta?t.wheelDelta:-t.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,d,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,d,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(t){this.loading=!1},handleImgError(t){this.loading=!1,t.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(t){if(this.loading||t.button!==0)return;const{offsetX:s,offsetY:e}=this.transform,n=t.pageX,o=t.pageY;this._dragHandler=c(i=>{this.transform.offsetX=s+i.pageX-n,this.transform.offsetY=e+i.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",i=>{l(document,"mousemove",this._dragHandler)}),t.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const t=Object.keys(a),n=(Object.values(a).indexOf(this.mode)+1)%t.length;this.mode=a[t[n]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index-1+t)%t},next(){if(this.isLast&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index+1)%t},handleActions(t,s={}){if(this.loading)return;const{zoomRate:e,rotateDeg:n,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...s},{transform:i}=this;switch(t){case"zoomOut":i.scale>.2&&(i.scale=parseFloat((i.scale-e).toFixed(3)));break;case"zoomIn":i.scale=parseFloat((i.scale+e).toFixed(3));break;case"clocelise":i.deg+=n;break;case"anticlocelise":i.deg-=n;break}i.enableTransition=o}}},m={};var g=u(v,f,p,!1,_,"383760f6",null,null);function _(t){for(let s in m)this[s]=m[s]}var et=function(){return g.exports}();export{et as default}; diff --git a/public/manifest.json b/public/manifest.json index 16066aebe..fb0330949 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,13 +1,13 @@ { "resources/assets/js/app.js": { - "file": "js/build/app.d8851986.js", + "file": "js/build/app.879f8ead.js", "src": "resources/assets/js/app.js", "isEntry": true, "imports": [ "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_highlight.js.24fdca15.js", "_markdown-it-link-attributes.e1d5d151.js", @@ -19,7 +19,7 @@ "_le5le-store.b40f9152.js", "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_vue-resize-observer.452c7636.js", "_element-sea.e89b014c.js", @@ -84,7 +84,7 @@ "resources/assets/js/pages/404.vue" ], "css": [ - "js/build/app.3d8c6f80.css" + "js/build/app.5c885db1.css" ], "assets": [ "js/build/other.0cd5a04c.svg", @@ -126,7 +126,7 @@ "js/build/file.aa23b4ce.svg", "js/build/ldap.6937bf6c.svg", "js/build/mail.8f60e67c.svg", - "js/build/meeting-create.41663ea5.svg", + "js/build/meeting.41663ea5.svg", "js/build/meeting-join.ebeac42f.svg", "js/build/okr.3e2b21c4.svg", "js/build/okr-analyze.90c08797.svg", @@ -237,8 +237,8 @@ "_core-js.314b4a1d.js": { "file": "js/build/core-js.314b4a1d.js" }, - "_dayjs.93c58ba1.js": { - "file": "js/build/dayjs.93c58ba1.js", + "_dayjs.b7f7bb8e.js": { + "file": "js/build/dayjs.b7f7bb8e.js", "imports": [ "_@babel.49d8906a.js" ] @@ -270,8 +270,8 @@ "_highlight.js.24fdca15.js": { "file": "js/build/highlight.js.24fdca15.js" }, - "_jquery.a7761dd9.js": { - "file": "js/build/jquery.a7761dd9.js", + "_jquery.8b0d6caa.js": { + "file": "js/build/jquery.8b0d6caa.js", "imports": [ "_@babel.49d8906a.js" ] @@ -285,8 +285,8 @@ "_uc.micro.39573202.js" ] }, - "_localforage.81c5d73d.js": { - "file": "js/build/localforage.81c5d73d.js", + "_localforage.ec5c12b8.js": { + "file": "js/build/localforage.ec5c12b8.js", "imports": [ "_@babel.49d8906a.js" ] @@ -442,8 +442,8 @@ "_uc.micro.39573202.js": { "file": "js/build/uc.micro.39573202.js" }, - "_view-design-hi.563cfadb.js": { - "file": "js/build/view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js": { + "file": "js/build/view-design-hi.d2045547.js", "imports": [ "_@babel.49d8906a.js", "_vue.c448ed56.js" @@ -491,16 +491,16 @@ "file": "js/build/vuex.cc7cb26e.js" }, "resources/assets/js/pages/index.vue": { - "file": "js/build/index.85658b60.js", + "file": "js/build/index.b3e6cf03.js", "src": "resources/assets/js/pages/index.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -518,7 +518,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -534,16 +534,16 @@ ] }, "resources/assets/js/pages/pro.vue": { - "file": "js/build/pro.41ac22dd.js", + "file": "js/build/pro.0b202f1c.js", "src": "resources/assets/js/pages/pro.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -561,7 +561,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -577,19 +577,19 @@ ] }, "resources/assets/js/pages/meeting.vue": { - "file": "js/build/meeting.7dcf9ac9.js", + "file": "js/build/meeting.a6ab8619.js", "src": "resources/assets/js/pages/meeting.vue", "isDynamicEntry": true, "imports": [ - "_MeetingManager.4530bc3f.js", + "_MeetingManager.107c56ad.js", "resources/assets/js/app.js", "_le5le-store.b40f9152.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -605,7 +605,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -620,8 +620,8 @@ "_core-js.314b4a1d.js" ] }, - "_MeetingManager.4530bc3f.js": { - "file": "js/build/MeetingManager.4530bc3f.js", + "_MeetingManager.107c56ad.js": { + "file": "js/build/MeetingManager.107c56ad.js", "imports": [ "_le5le-store.b40f9152.js", "_vuex.cc7cb26e.js", @@ -629,31 +629,31 @@ ] }, "resources/assets/js/pages/manage.vue": { - "file": "js/build/manage.fc78f152.js", + "file": "js/build/manage.3363eb6c.js", "src": "resources/assets/js/pages/manage.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", - "_CheckinExport.1b4423b3.js", - "_index.4892e747.js", + "_CheckinExport.9ac164be.js", + "_index.e6513292.js", "_le5le-store.b40f9152.js", - "_TaskDetail.75c13dec.js", + "_TaskDetail.4cdae640.js", "_@micro-zoe.c2e1472d.js", - "_MeetingManager.4530bc3f.js", + "_MeetingManager.107c56ad.js", "_longpress.5305f240.js", - "_DialogWrapper.86de099a.js", - "_details.2a18916c.js", - "_MicroApps.bd23f92f.js", + "_DialogWrapper.df01caa2.js", + "_details.9590a689.js", + "_MicroApps.d5179821.js", "_notification-koro1.99b93615.js", "_markdown-it.f48c10fc.js", "_markdown-it-link-attributes.e1d5d151.js", "_@traptitech.b5c819e2.js", - "_ImgUpload.52758ba6.js", - "_jquery.a7761dd9.js", + "_ImgUpload.cc22c426.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_highlight.js.24fdca15.js", "_vue.c448ed56.js", "_openpgp_hi.15f91b1d.js", @@ -661,7 +661,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -679,10 +679,10 @@ "_mdurl.2f66c031.js", "_linkify-it.3ecfda1e.js", "_punycode.c1b51344.js", - "_tip.7b94707c.js", - "_ReportEdit.22763e0c.js", - "_ReportDetail.1ea08cae.js", - "_ProjectLog.d652e5c8.js", + "_tip.434a62e4.js", + "_ReportEdit.8be7d715.js", + "_ReportDetail.b39ad266.js", + "_ProjectLog.12dff91b.js", "resources/assets/js/components/TEditor.vue", "_tinymce.46b8e261.js", "_quill-hi.b7c37d93.js", @@ -700,23 +700,23 @@ "js/build/manage.5dc9aad0.css" ] }, - "_CheckinExport.1b4423b3.js": { - "file": "js/build/CheckinExport.1b4423b3.js", + "_CheckinExport.9ac164be.js": { + "file": "js/build/CheckinExport.9ac164be.js", "imports": [ "resources/assets/js/app.js", - "_tip.7b94707c.js", - "_ImgUpload.52758ba6.js", + "_tip.434a62e4.js", + "_ImgUpload.cc22c426.js", "_vuex.cc7cb26e.js", - "_ReportEdit.22763e0c.js", - "_ReportDetail.1ea08cae.js", - "_index.4892e747.js" + "_ReportEdit.8be7d715.js", + "_ReportDetail.b39ad266.js", + "_index.e6513292.js" ], "css": [ "js/build/CheckinExport.68b4950e.css" ] }, - "_index.4892e747.js": { - "file": "js/build/index.4892e747.js", + "_index.e6513292.js": { + "file": "js/build/index.e6513292.js", "imports": [ "resources/assets/js/app.js" ] @@ -724,47 +724,47 @@ "_longpress.5305f240.js": { "file": "js/build/longpress.5305f240.js" }, - "_details.2a18916c.js": { - "file": "js/build/details.2a18916c.js", + "_details.9590a689.js": { + "file": "js/build/details.9590a689.js", "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", - "_ImgUpload.52758ba6.js" + "_ImgUpload.cc22c426.js" ], "css": [ "js/build/CheckinExport.68b4950e.css" ] }, - "_MicroApps.bd23f92f.js": { - "file": "js/build/MicroApps.bd23f92f.js", + "_MicroApps.d5179821.js": { + "file": "js/build/MicroApps.d5179821.js", "imports": [ "_vue.c448ed56.js", "resources/assets/js/app.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_DialogWrapper.86de099a.js", - "_view-design-hi.563cfadb.js" + "_DialogWrapper.df01caa2.js", + "_view-design-hi.d2045547.js" ] }, - "_ImgUpload.52758ba6.js": { - "file": "js/build/ImgUpload.52758ba6.js", + "_ImgUpload.cc22c426.js": { + "file": "js/build/ImgUpload.cc22c426.js", "imports": [ "resources/assets/js/app.js" ] }, - "_tip.7b94707c.js": { - "file": "js/build/tip.7b94707c.js", + "_tip.434a62e4.js": { + "file": "js/build/tip.434a62e4.js", "imports": [ "resources/assets/js/app.js" ] }, - "_TaskDetail.75c13dec.js": { - "file": "js/build/TaskDetail.75c13dec.js", + "_TaskDetail.4cdae640.js": { + "file": "js/build/TaskDetail.4cdae640.js", "imports": [ "_vuex.cc7cb26e.js", - "_ProjectLog.d652e5c8.js", + "_ProjectLog.12dff91b.js", "resources/assets/js/app.js", - "_DialogWrapper.86de099a.js", + "_DialogWrapper.df01caa2.js", "_le5le-store.b40f9152.js", "resources/assets/js/components/TEditor.vue" ], @@ -772,8 +772,8 @@ "js/build/TaskDetail.d1ade037.css" ] }, - "_ReportEdit.22763e0c.js": { - "file": "js/build/ReportEdit.22763e0c.js", + "_ReportEdit.8be7d715.js": { + "file": "js/build/ReportEdit.8be7d715.js", "imports": [ "_openpgp_hi.15f91b1d.js", "resources/assets/js/app.js", @@ -783,47 +783,47 @@ "resources/assets/js/components/TEditor.vue" ] }, - "_ReportDetail.1ea08cae.js": { - "file": "js/build/ReportDetail.1ea08cae.js", + "_ReportDetail.b39ad266.js": { + "file": "js/build/ReportDetail.b39ad266.js", "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js" ] }, - "_DialogWrapper.86de099a.js": { - "file": "js/build/DialogWrapper.86de099a.js", + "_DialogWrapper.df01caa2.js": { + "file": "js/build/DialogWrapper.df01caa2.js", "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_le5le-store.b40f9152.js", "_longpress.5305f240.js", - "_index.4892e747.js", + "_index.e6513292.js", "_quill-hi.b7c37d93.js", "_quill-mention-hi.f348056f.js", "_vue.c448ed56.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vue-virtual-scroll-list-hi.3a8a6077.js", - "_ImgUpload.52758ba6.js", - "_tip.7b94707c.js" + "_ImgUpload.cc22c426.js", + "_tip.434a62e4.js" ], "css": [ "js/build/DialogWrapper.bc3239e2.css" ] }, "resources/assets/js/components/TEditor.vue": { - "file": "js/build/TEditor.8a7b6b4c.js", + "file": "js/build/TEditor.dfcd2131.js", "src": "resources/assets/js/components/TEditor.vue", "isDynamicEntry": true, "imports": [ "_tinymce.46b8e261.js", - "_ImgUpload.52758ba6.js", + "_ImgUpload.cc22c426.js", "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@babel.49d8906a.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -840,7 +840,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -855,25 +855,25 @@ "_core-js.314b4a1d.js" ] }, - "_ProjectLog.d652e5c8.js": { - "file": "js/build/ProjectLog.d652e5c8.js", + "_ProjectLog.12dff91b.js": { + "file": "js/build/ProjectLog.12dff91b.js", "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js" ] }, "resources/assets/js/pages/manage/dashboard.vue": { - "file": "js/build/dashboard.69c4962d.js", + "file": "js/build/dashboard.f387e55c.js", "src": "resources/assets/js/pages/manage/dashboard.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -890,7 +890,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -906,7 +906,7 @@ ] }, "resources/assets/js/pages/manage/calendar.vue": { - "file": "js/build/calendar.81f10c67.js", + "file": "js/build/calendar.b5bd8891.js", "src": "resources/assets/js/pages/manage/calendar.vue", "isDynamicEntry": true, "imports": [ @@ -919,9 +919,9 @@ "_@babel.49d8906a.js", "_tui-code-snippet.cdaa497b.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -937,7 +937,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -953,16 +953,16 @@ ] }, "resources/assets/js/pages/manage/messenger.vue": { - "file": "js/build/messenger.69561392.js", + "file": "js/build/messenger.68ae7176.js", "src": "resources/assets/js/pages/manage/messenger.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", - "_DialogWrapper.86de099a.js", + "_DialogWrapper.df01caa2.js", "_longpress.5305f240.js", "_le5le-store.b40f9152.js", "resources/assets/js/app.js", - "_index.4892e747.js", + "_index.e6513292.js", "_quill-hi.b7c37d93.js", "_parchment.d5c5924e.js", "_quill-delta.4f4718f3.js", @@ -974,14 +974,14 @@ "_lodash-es.df04b444.js", "_quill-mention-hi.f348056f.js", "_vue.c448ed56.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vue-virtual-scroll-list-hi.3a8a6077.js", - "_ImgUpload.52758ba6.js", - "_tip.7b94707c.js", + "_ImgUpload.cc22c426.js", + "_tip.434a62e4.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1011,21 +1011,21 @@ ] }, "resources/assets/js/pages/manage/approve/index.vue": { - "file": "js/build/index.dca7e577.js", + "file": "js/build/index.897b0294.js", "src": "resources/assets/js/pages/manage/approve/index.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_details.2a18916c.js", - "_index.4892e747.js", - "_ImgUpload.52758ba6.js", + "_details.9590a689.js", + "_index.e6513292.js", + "_ImgUpload.cc22c426.js", "_vuex.cc7cb26e.js", "_le5le-store.b40f9152.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1041,7 +1041,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1060,20 +1060,20 @@ ] }, "resources/assets/js/pages/manage/apps.vue": { - "file": "js/build/apps.3ff16850.js", + "file": "js/build/apps.5ae2dacb.js", "src": "resources/assets/js/pages/manage/apps.vue", "isDynamicEntry": true, "imports": [ - "_MicroApps.bd23f92f.js", + "_MicroApps.d5179821.js", "resources/assets/js/app.js", "_vue.c448ed56.js", "_@babel.49d8906a.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_DialogWrapper.86de099a.js", + "_DialogWrapper.df01caa2.js", "_le5le-store.b40f9152.js", "_longpress.5305f240.js", - "_index.4892e747.js", + "_index.e6513292.js", "_quill-hi.b7c37d93.js", "_parchment.d5c5924e.js", "_quill-delta.4f4718f3.js", @@ -1083,13 +1083,13 @@ "_eventemitter3.78b735ad.js", "_lodash-es.df04b444.js", "_quill-mention-hi.f348056f.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vue-virtual-scroll-list-hi.3a8a6077.js", - "_ImgUpload.52758ba6.js", - "_tip.7b94707c.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_ImgUpload.cc22c426.js", + "_tip.434a62e4.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1119,7 +1119,7 @@ ] }, "resources/assets/js/pages/manage/setting/index.vue": { - "file": "js/build/index.a335cdfc.js", + "file": "js/build/index.0466af7c.js", "src": "resources/assets/js/pages/manage/setting/index.vue", "isDynamicEntry": true, "imports": [ @@ -1128,10 +1128,10 @@ "_axios.6ec123f8.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1146,7 +1146,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1165,18 +1165,18 @@ ] }, "resources/assets/js/pages/manage/setting/personal.vue": { - "file": "js/build/personal.a06001ae.js", + "file": "js/build/personal.7fc2a145.js", "src": "resources/assets/js/pages/manage/setting/personal.vue", "isDynamicEntry": true, "imports": [ - "_ImgUpload.52758ba6.js", + "_ImgUpload.cc22c426.js", "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1193,7 +1193,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1209,17 +1209,17 @@ ] }, "resources/assets/js/pages/manage/setting/checkin.vue": { - "file": "js/build/checkin.e2b8615d.js", + "file": "js/build/checkin.7a773382.js", "src": "resources/assets/js/pages/manage/setting/checkin.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ImgUpload.52758ba6.js", + "_ImgUpload.cc22c426.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1237,7 +1237,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1256,17 +1256,17 @@ ] }, "resources/assets/js/pages/manage/setting/language.vue": { - "file": "js/build/language.8a3413b9.js", + "file": "js/build/language.7a53dc5c.js", "src": "resources/assets/js/pages/manage/setting/language.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1283,7 +1283,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1299,17 +1299,17 @@ ] }, "resources/assets/js/pages/manage/setting/theme.vue": { - "file": "js/build/theme.0b3233cd.js", + "file": "js/build/theme.8768a33d.js", "src": "resources/assets/js/pages/manage/setting/theme.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1326,7 +1326,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1342,16 +1342,16 @@ ] }, "resources/assets/js/pages/manage/setting/keyboard.vue": { - "file": "js/build/keyboard.03852454.js", + "file": "js/build/keyboard.780c3ff4.js", "src": "resources/assets/js/pages/manage/setting/keyboard.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1369,7 +1369,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1388,17 +1388,17 @@ ] }, "resources/assets/js/pages/manage/setting/license.vue": { - "file": "js/build/license.a4049017.js", + "file": "js/build/license.8aaddb7c.js", "src": "resources/assets/js/pages/manage/setting/license.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1415,7 +1415,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1434,17 +1434,17 @@ ] }, "resources/assets/js/pages/manage/setting/password.vue": { - "file": "js/build/password.34ef52c3.js", + "file": "js/build/password.030411c7.js", "src": "resources/assets/js/pages/manage/setting/password.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1461,7 +1461,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1477,17 +1477,17 @@ ] }, "resources/assets/js/pages/manage/setting/email.vue": { - "file": "js/build/email.f542170a.js", + "file": "js/build/email.0afe9b64.js", "src": "resources/assets/js/pages/manage/setting/email.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1504,7 +1504,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1520,17 +1520,17 @@ ] }, "resources/assets/js/pages/manage/setting/system.vue": { - "file": "js/build/system.2285283c.js", + "file": "js/build/system.7c99cb3f.js", "src": "resources/assets/js/pages/manage/setting/system.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1547,7 +1547,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1563,7 +1563,7 @@ ] }, "resources/assets/js/pages/manage/setting/version.vue": { - "file": "js/build/version.a1835d12.js", + "file": "js/build/version.8a875668.js", "src": "resources/assets/js/pages/manage/setting/version.vue", "isDynamicEntry": true, "imports": [ @@ -1572,10 +1572,10 @@ "_openpgp_hi.15f91b1d.js", "_index.40a8e116.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1592,7 +1592,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1611,7 +1611,7 @@ ] }, "resources/assets/js/components/VMEditor/preview.vue": { - "file": "js/build/preview.74e7b5c4.js", + "file": "js/build/preview.8cce7ada.js", "src": "resources/assets/js/components/VMEditor/preview.vue", "isDynamicEntry": true, "imports": [ @@ -1619,10 +1619,10 @@ "_index.40a8e116.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1639,7 +1639,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1661,17 +1661,17 @@ "file": "js/build/index.40a8e116.js" }, "resources/assets/js/pages/manage/setting/delete.vue": { - "file": "js/build/delete.ae94fe17.js", + "file": "js/build/delete.0f4e4825.js", "src": "resources/assets/js/pages/manage/setting/delete.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1688,7 +1688,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1704,17 +1704,17 @@ ] }, "resources/assets/js/pages/manage/projectInvite.vue": { - "file": "js/build/projectInvite.6b40c864.js", + "file": "js/build/projectInvite.90612102.js", "src": "resources/assets/js/pages/manage/projectInvite.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1731,7 +1731,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1750,25 +1750,25 @@ ] }, "resources/assets/js/pages/manage/project.vue": { - "file": "js/build/project.c10747c6.js", + "file": "js/build/project.e38eadbd.js", "src": "resources/assets/js/pages/manage/project.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "_vuedraggable.dbf1607a.js", - "_ProjectLog.d652e5c8.js", + "_ProjectLog.12dff91b.js", "_le5le-store.b40f9152.js", "resources/assets/js/app.js", - "_index.4892e747.js", - "_tip.7b94707c.js", - "_DialogWrapper.86de099a.js", + "_index.e6513292.js", + "_tip.434a62e4.js", + "_DialogWrapper.df01caa2.js", "_longpress.5305f240.js", "_@babel.49d8906a.js", "_sortablejs.20b8ddfe.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1784,7 +1784,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vue-resize-observer.452c7636.js", "_element-sea.e89b014c.js", "_deepmerge.cecf392e.js", @@ -1805,26 +1805,26 @@ "_lodash-es.df04b444.js", "_quill-mention-hi.f348056f.js", "_vue-virtual-scroll-list-hi.3a8a6077.js", - "_ImgUpload.52758ba6.js" + "_ImgUpload.cc22c426.js" ] }, "resources/assets/js/pages/manage/file.vue": { - "file": "js/build/file.a4de8a58.js", + "file": "js/build/file.1a62fb3d.js", "src": "resources/assets/js/pages/manage/file.vue", "isDynamicEntry": true, "imports": [ "_openpgp_hi.15f91b1d.js", "_vuex.cc7cb26e.js", "_lodash.63d8be61.js", - "_index.4892e747.js", + "_index.e6513292.js", "_longpress.5305f240.js", "resources/assets/js/app.js", - "_tip.7b94707c.js", + "_tip.434a62e4.js", "_@babel.49d8906a.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1840,7 +1840,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1860,21 +1860,21 @@ ] }, "resources/assets/js/pages/manage/application.vue": { - "file": "js/build/application.c6b5c54a.js", + "file": "js/build/application.5eb5d1b2.js", "src": "resources/assets/js/pages/manage/application.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", - "_index.4892e747.js", + "_index.e6513292.js", "resources/assets/js/app.js", - "_CheckinExport.1b4423b3.js", + "_CheckinExport.9ac164be.js", "resources/assets/js/pages/manage/setting/checkin.vue", "_le5le-store.b40f9152.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1890,7 +1890,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1903,26 +1903,26 @@ "_async-validator.5f40db32.js", "_babel-runtime.4773988a.js", "_core-js.314b4a1d.js", - "_tip.7b94707c.js", - "_ImgUpload.52758ba6.js", - "_ReportEdit.22763e0c.js", - "_ReportDetail.1ea08cae.js" + "_tip.434a62e4.js", + "_ImgUpload.cc22c426.js", + "_ReportEdit.8be7d715.js", + "_ReportDetail.b39ad266.js" ] }, "resources/assets/js/pages/single/fileMsg.vue": { - "file": "js/build/fileMsg.4fc63b7c.js", + "file": "js/build/fileMsg.5715099d.js", "src": "resources/assets/js/pages/single/fileMsg.vue", "isDynamicEntry": true, "imports": [ "_openpgp_hi.15f91b1d.js", "_vuex.cc7cb26e.js", - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1938,7 +1938,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -1964,25 +1964,25 @@ "js/build/fileMsg.9d89f22e.css" ] }, - "_IFrame.7f63db7a.js": { - "file": "js/build/IFrame.7f63db7a.js", + "_IFrame.aae7507a.js": { + "file": "js/build/IFrame.aae7507a.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/single/fileTask.vue": { - "file": "js/build/fileTask.d07363e5.js", + "file": "js/build/fileTask.333ab18e.js", "src": "resources/assets/js/pages/single/fileTask.vue", "isDynamicEntry": true, "imports": [ "_openpgp_hi.15f91b1d.js", - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -1999,7 +1999,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2026,7 +2026,7 @@ ] }, "resources/assets/js/pages/single/file.vue": { - "file": "js/build/file.b4eaa610.js", + "file": "js/build/file.e506d17e.js", "src": "resources/assets/js/pages/single/file.vue", "isDynamicEntry": true, "imports": [ @@ -2035,12 +2035,12 @@ "resources/assets/js/app.js", "_openpgp_hi.15f91b1d.js", "_vuex.cc7cb26e.js", - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2056,7 +2056,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2075,19 +2075,19 @@ ] }, "resources/assets/js/pages/manage/components/FileContent.vue": { - "file": "js/build/FileContent.35e44d8b.js", + "file": "js/build/FileContent.8003b48c.js", "src": "resources/assets/js/pages/manage/components/FileContent.vue", "isDynamicEntry": true, "imports": [ "_openpgp_hi.15f91b1d.js", "_vuex.cc7cb26e.js", "resources/assets/js/app.js", - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2103,7 +2103,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2131,18 +2131,18 @@ ] }, "resources/assets/js/pages/manage/components/FilePreview.vue": { - "file": "js/build/FilePreview.1f20c4b0.js", + "file": "js/build/FilePreview.1e9ff7fd.js", "src": "resources/assets/js/pages/manage/components/FilePreview.vue", "isDynamicEntry": true, "imports": [ "_openpgp_hi.15f91b1d.js", - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2159,7 +2159,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2183,7 +2183,7 @@ ] }, "resources/assets/js/pages/single/taskContent.vue": { - "file": "js/build/taskContent.b7f2a3f0.js", + "file": "js/build/taskContent.4da98bb7.js", "src": "resources/assets/js/pages/single/taskContent.vue", "isDynamicEntry": true, "imports": [ @@ -2191,12 +2191,12 @@ "resources/assets/js/app.js", "_tinymce.46b8e261.js", "_@babel.49d8906a.js", - "_ImgUpload.52758ba6.js", + "_ImgUpload.cc22c426.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2213,7 +2213,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2232,18 +2232,18 @@ ] }, "resources/assets/js/pages/single/task.vue": { - "file": "js/build/task.1f0c8920.js", + "file": "js/build/task.933db9c8.js", "src": "resources/assets/js/pages/single/task.vue", "isDynamicEntry": true, "imports": [ - "_TaskDetail.75c13dec.js", + "_TaskDetail.4cdae640.js", "_vuex.cc7cb26e.js", "resources/assets/js/app.js", - "_ProjectLog.d652e5c8.js", - "_DialogWrapper.86de099a.js", + "_ProjectLog.12dff91b.js", + "_DialogWrapper.df01caa2.js", "_le5le-store.b40f9152.js", "_longpress.5305f240.js", - "_index.4892e747.js", + "_index.e6513292.js", "_quill-hi.b7c37d93.js", "_parchment.d5c5924e.js", "_quill-delta.4f4718f3.js", @@ -2255,16 +2255,16 @@ "_lodash-es.df04b444.js", "_quill-mention-hi.f348056f.js", "_vue.c448ed56.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vue-virtual-scroll-list-hi.3a8a6077.js", - "_ImgUpload.52758ba6.js", - "_tip.7b94707c.js", + "_ImgUpload.cc22c426.js", + "_tip.434a62e4.js", "resources/assets/js/components/TEditor.vue", "_tinymce.46b8e261.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2297,20 +2297,20 @@ ] }, "resources/assets/js/pages/single/apps.vue": { - "file": "js/build/apps.db7c3805.js", + "file": "js/build/apps.1f3c46d0.js", "src": "resources/assets/js/pages/single/apps.vue", "isDynamicEntry": true, "imports": [ - "_MicroApps.bd23f92f.js", + "_MicroApps.d5179821.js", "resources/assets/js/app.js", "_vue.c448ed56.js", "_@babel.49d8906a.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_DialogWrapper.86de099a.js", + "_DialogWrapper.df01caa2.js", "_le5le-store.b40f9152.js", "_longpress.5305f240.js", - "_index.4892e747.js", + "_index.e6513292.js", "_quill-hi.b7c37d93.js", "_parchment.d5c5924e.js", "_quill-delta.4f4718f3.js", @@ -2320,13 +2320,13 @@ "_eventemitter3.78b735ad.js", "_lodash-es.df04b444.js", "_quill-mention-hi.f348056f.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vue-virtual-scroll-list-hi.3a8a6077.js", - "_ImgUpload.52758ba6.js", - "_tip.7b94707c.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_ImgUpload.cc22c426.js", + "_tip.434a62e4.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2356,16 +2356,16 @@ ] }, "resources/assets/js/pages/single/validEmail.vue": { - "file": "js/build/validEmail.32d69f59.js", + "file": "js/build/validEmail.6920ea3a.js", "src": "resources/assets/js/pages/single/validEmail.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2383,7 +2383,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2402,19 +2402,19 @@ ] }, "resources/assets/js/pages/single/reportEdit.vue": { - "file": "js/build/reportEdit.53145ec5.js", + "file": "js/build/reportEdit.2220c6f1.js", "src": "resources/assets/js/pages/single/reportEdit.vue", "isDynamicEntry": true, "imports": [ - "_ReportEdit.22763e0c.js", + "_ReportEdit.8be7d715.js", "resources/assets/js/app.js", "_openpgp_hi.15f91b1d.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2430,7 +2430,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2449,18 +2449,18 @@ ] }, "resources/assets/js/pages/single/reportDetail.vue": { - "file": "js/build/reportDetail.312f7535.js", + "file": "js/build/reportDetail.becb3dea.js", "src": "resources/assets/js/pages/single/reportDetail.vue", "isDynamicEntry": true, "imports": [ - "_ReportDetail.1ea08cae.js", + "_ReportDetail.b39ad266.js", "resources/assets/js/app.js", "_vuex.cc7cb26e.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2477,7 +2477,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2496,16 +2496,16 @@ ] }, "resources/assets/js/pages/token.vue": { - "file": "js/build/token.e6a56e96.js", + "file": "js/build/token.53c7275e.js", "src": "resources/assets/js/pages/token.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2523,7 +2523,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2542,7 +2542,7 @@ ] }, "resources/assets/js/pages/login.vue": { - "file": "js/build/login.08e928ee.js", + "file": "js/build/login.65762120.js", "src": "resources/assets/js/pages/login.vue", "isDynamicEntry": true, "imports": [ @@ -2551,10 +2551,10 @@ "resources/assets/js/app.js", "_@chenfengyuan.dfd1ecb7.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2570,7 +2570,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2586,16 +2586,16 @@ ] }, "resources/assets/js/pages/404.vue": { - "file": "js/build/404.4d567a8e.js", + "file": "js/build/404.766ad184.js", "src": "resources/assets/js/pages/404.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2613,7 +2613,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2632,16 +2632,16 @@ ] }, "resources/assets/js/components/PreviewImage/components/video.vue": { - "file": "js/build/video.bcb944e6.js", + "file": "js/build/video.1a7cfeca.js", "src": "resources/assets/js/components/PreviewImage/components/video.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2659,7 +2659,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2678,7 +2678,7 @@ ] }, "resources/assets/js/components/PreviewImage/components/view.vue": { - "file": "js/build/view.a0b20db3.js", + "file": "js/build/view.d343368a.js", "src": "resources/assets/js/components/PreviewImage/components/view.vue", "isDynamicEntry": true, "imports": [ @@ -2695,9 +2695,9 @@ "_babel-runtime.4773988a.js", "_core-js.314b4a1d.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2714,7 +2714,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js" @@ -2724,7 +2724,7 @@ ] }, "resources/assets/js/components/PreviewImage/components/swipe.vue": { - "file": "js/build/swipe.ee8ae442.js", + "file": "js/build/swipe.e6b4680e.js", "src": "resources/assets/js/components/PreviewImage/components/swipe.vue", "isDynamicEntry": true, "imports": [ @@ -2732,10 +2732,10 @@ "_photoswipe.a7142509.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2752,7 +2752,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2774,7 +2774,7 @@ ] }, "resources/assets/js/components/VMEditor/engine/preview.vue": { - "file": "js/build/preview.da06ba47.js", + "file": "js/build/preview.7086f0af.js", "src": "resources/assets/js/components/VMEditor/engine/preview.vue", "isDynamicEntry": true, "imports": [ @@ -2787,9 +2787,9 @@ "_copy-to-clipboard.a53c061d.js", "_toggle-selection.d2487283.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2806,7 +2806,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2825,17 +2825,17 @@ ] }, "resources/assets/js/components/AceEditor.vue": { - "file": "js/build/AceEditor.b43f1f26.js", + "file": "js/build/AceEditor.a7748af5.js", "src": "resources/assets/js/components/AceEditor.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2852,7 +2852,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2868,18 +2868,18 @@ ] }, "resources/assets/js/components/OnlyOffice.vue": { - "file": "js/build/OnlyOffice.27bc47d9.js", + "file": "js/build/OnlyOffice.6f62b626.js", "src": "resources/assets/js/components/OnlyOffice.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2896,7 +2896,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2915,18 +2915,18 @@ ] }, "resources/assets/js/components/Drawio.vue": { - "file": "js/build/Drawio.c7f7ca00.js", + "file": "js/build/Drawio.69ced14f.js", "src": "resources/assets/js/components/Drawio.vue", "isDynamicEntry": true, "imports": [ "_vuex.cc7cb26e.js", - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2943,7 +2943,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -2962,17 +2962,17 @@ ] }, "resources/assets/js/components/Minder.vue": { - "file": "js/build/Minder.9eb9a4e8.js", + "file": "js/build/Minder.2fb84ce4.js", "src": "resources/assets/js/components/Minder.vue", "isDynamicEntry": true, "imports": [ - "_IFrame.7f63db7a.js", + "_IFrame.aae7507a.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -2990,7 +2990,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -3009,7 +3009,7 @@ ] }, "resources/assets/js/components/VMEditor/index.vue": { - "file": "js/build/index.64428982.js", + "file": "js/build/index.12cb3aa3.js", "src": "resources/assets/js/components/VMEditor/index.vue", "isDynamicEntry": true, "imports": [ @@ -3017,10 +3017,10 @@ "_index.40a8e116.js", "resources/assets/js/app.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", + "_jquery.8b0d6caa.js", "_@babel.49d8906a.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -3037,7 +3037,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", @@ -3056,7 +3056,7 @@ ] }, "resources/assets/js/components/VMEditor/engine/editor.vue": { - "file": "js/build/editor.d5ddd8a7.js", + "file": "js/build/editor.85bb3838.js", "src": "resources/assets/js/components/VMEditor/engine/editor.vue", "isDynamicEntry": true, "imports": [ @@ -3065,15 +3065,15 @@ "resources/assets/js/app.js", "_codemirror.b84e0a0e.js", "_index.40a8e116.js", - "_ImgUpload.52758ba6.js", + "_ImgUpload.cc22c426.js", "_@babel.49d8906a.js", "_vue.c448ed56.js", "_copy-to-clipboard.a53c061d.js", "_toggle-selection.d2487283.js", "_@micro-zoe.c2e1472d.js", - "_jquery.a7761dd9.js", - "_dayjs.93c58ba1.js", - "_localforage.81c5d73d.js", + "_jquery.8b0d6caa.js", + "_dayjs.b7f7bb8e.js", + "_localforage.ec5c12b8.js", "_markdown-it.f48c10fc.js", "_entities.797c3e49.js", "_uc.micro.39573202.js", @@ -3090,7 +3090,7 @@ "_vue-router.2d566cd7.js", "_vue-clipboard2.6e355525.js", "_clipboard.7eddb2ef.js", - "_view-design-hi.563cfadb.js", + "_view-design-hi.d2045547.js", "_vuedraggable.dbf1607a.js", "_sortablejs.20b8ddfe.js", "_vue-resize-observer.452c7636.js", diff --git a/resources/mobile b/resources/mobile index 0dd90aa66..15def242b 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit 0dd90aa668e8ccea93e5cd2abb4b2b82445f130f +Subproject commit 15def242b3ff852c5842da2ade57791f16de8ccd